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
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
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
- 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
- this should make network scanning relatively easy
- when connected to network, you can just point a browser at the printer ip to get
- admin functions
- 1 turn off
- 2 while holding down the down arrow, -, and black/color buttons, turn it on again
- this will reset to factory settings
- go to the support site, download new firmware, open the file
- can save to network folder (probably samba)
- contacts on p 197 of manual
- chat through embedded server
- 1 year limited warranty
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.
Wednesday, November 28, 2007
adding a user
useradd username
mkdir /home/username
usermod -g users username
chown username:users /home/username
usermod -G wheel,floppy,cron,audio,cdrom,video,games,usb,users,portage username
got an error that crashed gnucash.
process 8521: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
after i ran dbus-uuidgen --ensure as root, dbus-uuidgen --get successfully returned the id (it failed previously).
now gnucash is happy.
Tuesday, November 27, 2007
had some problems streaming dynamically downsampled audio through ampache to xine. the first song played fine, but when it went on to the next one in the playlist, it would start downloading the mp3 at the max rate without playing. if i hit 'stop' and 'play', or if i skipped a track either way, it would start over and stream okay.
when it did this, it would give the error, 'AFD changed from -2 to -1'.
i think i fixed this once, but i can't remember how.
Subscribe to:
Posts (Atom)