Wednesday, December 26, 2007

olympus stylus 790 sw

i got my new olympus camera working with gphoto2 under linux. usb mass storage is easy; just hit 'ok' on 'pc' mode (or right arrow on 'pc', then 'storage'). mount just like any removable storage: mount /dev/sda1 /mnt/removable to download pictures automatically, hit right arrow on 'pc' then 'ok' on 'mtp'. this allows downloads with gphoto2 -P. if it's not in 'mtp' mode (eg, on of the 'print' modes). it will give the error, 'ptp protocol error, data expected'. apparently the version of gphoto2 i have can't handle the print ptp mode, or maybe olympus is doing non-standard things. but mtp is apparently a backwards compatibility mode. it makes the command i used to used with my cannon a10 work great with the new camera. as far as i can tell, all the files the camera produces are available to download. photos are jpegs, movies are avis, and audio captions show up as wavs with the same file number as the corresponding photo. oddly, though, the date is totally screwed up on the wav file. i'm guessing the camera doesn't save the date and time on wavs, so it just gives the max possible date. just need to make sure all files have the number in them, to match up wavs with jpegs.

Friday, December 14, 2007

config from grip

these are the rip and encode settings from grip. i like how grip works, but i'd like a cli tool. maybe abcde? flac --best -V -T TITLE='%n' -T ALBUM='%d' -T TRACKNUMBER=%t -T ARTIST='%a' -T GENRE='%G' -T CDDB='%i' -T DATE='%y' -o %m %w encode file format ~/Audio/%A/%d/%t-%n.%x m3u file format ~/Audio/%A-%d.m3u DiscDB primary server db server: freedb.freedb.org cgi path: ~cddb/cddb.cgi db submit email: freedb-submit@freedb.org DiscDB secondary server db server: www.mb.inhouse.co.uk cgi path: ~cddb/cddb.cgi

resuming downloads in pyytdl

maybe i should use something like this for resuming downloads.

Thursday, December 13, 2007

quad-head display

here's how i set up a killer four-headed display with two networked laptops. use nvidia-settings to make a twinview display, external monitor above each laptop. i was a little worried about nvidia-settings clobbering my beautifully hand-edited xorg.conf with years of krufty commented-out lines. it does clobber, but i actually appreciate the clean up. i had to add the pan space to the metamode line manually, even though nvidia-settings has a box for it. from Option "metamodes" "CRT:nvidia-auto-select +0+0, DFP: nvidia-auto-select +0+1200" to Option "metamodes" "CRT:nvidia-auto-select @1920x1200 +0+0, DFP: nvidia-auto-select +0+1200" on the right and Option "metamodes" "CRT: 1280x1024 @1920x1024 +640+0, DFP: nvidia-auto-select +0+1200" on the left run x2x on the one on the right with this script: #!/bin/bash # creates a connection to an x server physically located to the left ssh -X otherlaptopname "x2x -west -to:0." EDIT: i've found that panning the smaller screen is more hassle than it's worth, especially when switching the second monitor on and off without restarting x. so now i have Option "metamodes" "CRT:nvidia-auto-select +0+0, DFP: nvidia-auto-select +0+1200" on the right and Option "metamodes" "CRT: 1280x1024 +0+0, DFP: nvidia-auto-select +0+1200" on the left

Thursday, December 6, 2007

ANOVA ref

here's a very nice reference on anova techniques.

hp officejet 9130 firmware upgrade

in the embedded web server, go to the 'networking' tab. select 'other settings' and firmware upgrade. there is a link in there that will help you find the file you need on the hp website. then you can browse for the firmware upgrade file on the client. 'upgrade firmware' and you're done. easy as can be. this still hasn't fixed the no color problem, though.

Tuesday, December 4, 2007

gnu build tools

aclocal generates aclocal.m4 from configure.ac or configure.in automake generates Makefile.in from aclocal.m4 autoconf generates configure from aclocal.m4 configure generates makefile from config.sub make generates everything else

Monday, December 3, 2007

digital camera download

to download images from the canon a10 with informative filenames, use this gphoto2 command. very likely to work with other cameras, too. gphoto2 -P --filename "IMG_%n_%A_%B_%d_%y_%H_%M_%S.%C" Edit: gphoto2 -P --filename "%f_%A_%B_%d_%y_%H_%M_%S.%C" lets the camera pick better zero padding for the image numbers.

Officejet 9130

trying to get all the functionality of the printer working as a network printer
  • print color
  • scan
  • memory card reader
  • fax would be nice, too
right now, it only prints b&w, even with the internal test page function
  • setting up as a network printer is easy, although dhcp didn't work
  • tried factory reset, didn't actually reset everything
  • manual says this doesn't reset network
  • p 183 in manual says ual to contact hp support if configuration page has no color
  • can try calibrating the color
  • menu->maintenance->calibrate printheads-> follow the instructions
apparently, twain can work over the network
  • this should make network scanning relatively easy
embedded web server
  • when connected to network, you can just point a browser at the printer ip to get
  • admin functions
vulcan death pinch
  • 1 turn off
  • 2 while holding down the down arrow, -, and black/color buttons, turn it on again
  • this will reset to factory settings
if the death pinch doesn't work, try upgrading firmware to reset it
  • go to the support site, download new firmware, open the file
memory card on the network
  • can save to network folder (probably samba)
customer support
  • contacts on p 197 of manual
  • chat through embedded server
  • 1 year limited warranty
the full user's manual for the hp offiicejet 9130: officejet 9130

pdfs into beamer slides

how to insert pages from an external pdf file into a beamer presentation
\usepackage{pdfpages} % This line is included so a white background is not painted % over the top of the included slides. \setbeamercolor{background canvas}{bg=} \begin{document} \includepdf[pages={1-15}]{document_to_insert_from}
etc.