Finished my condensed summer course (math) and I’ve gone fishing for the weekend. Whoooo.. Enjoy your weekend, like I will. 🙂
Archive for June, 2006
I used to use a script to copy my files from my digital camera memory card to my computer. Since recent Ubuntu releases use gnome-volume-manager to automatically prompt you with a Photo Import dialog when you insert your memory card, I never bothered using my script.
If it was just a memory card over USB (as opposed to a digital camera over USB), then all this would do is open the memory card’s DCIM folder in gthumb and you would have to manually copy the files over. This has irritated me for a while, because I wanted the process to be as automated as possible. So… I spent most of the night battling Bash and playing with Zenity to create a new script. Behold!
Once installed, after you click Import Photos, you should get this screen to select the destination forlder.
Once you’ve done that, it should jump straight to copying the files.
When it’s finished, it will ask you if you want to browse the fresh files with your favourite photo program, which you set in the script.
Clicking OK will open the destination directory in your program of choice (gthumb, by default). Clicking Cancel will put a notification in the notification area with a bubble saying where the photos were copied to.
My old script also used jhead to rename the files according to date in the EXIF data, but I didn’t want to create a dependency on jhead. Maybe I’ll add that later, as an option.
…couldn’t be simpler.
- Download the script to a sensible place. (I use
- Make sure you have executable permissions on it.
chmod +x import-photos
- Go to gnome-volume-properties and change the command for Digital Camera from
to the path to the import-photos script with the same parameter
- You should be done. 🙂
Guess I’d better study for my math midterm, now. 🙁
Looks like this issue (lack of USB mass storage support in gphoto2) can be resolved simply by using bleeding-edge libgphoto2 package in Dapper. *gasp!* Davyd has built some packages and reports success. (Too bad I read his entry after writing the script….) Actually, I’m not sure I won’t continue using this script; it has some advantages. Maybe.
The first thing I want to do with pictures on my memory card is get them off of the memory card! I don’t need to see them, I’ll browse and edit them locally – it’s faster. The script currently copies all .jpg, .avi, .mov, and .mpg files found in the DCIM folder (and subfolders). As soon as the script has finished, I can unmount my memory card and plug it back into my camera, where it belongs. I don’t have to copy movie files in a seperate step. I will definitely try out the packages when I get a bit of time, though, because I honestly don’t know what I’m missing. Does it gphoto2 copy .avi files?
Regardless, it was a good experience writing it. 🙂
So I’ve been doing some research on OSS. I’m trying to prepare a presentation on the topic. Originally, I was planning on doing “Open Source Development” (ridiculously ironic considering the amount of OSS development I do…) but before I get into that, I wanted to be clear on what “Open Source” actually was. I’ve had a big interest in OSS and followed it for quite a while, but I’ve never bothered to become familiar with terms and licenses and history. It’s really quite interesting, but pretty overwhelming. I think I may have to change it to “An Introduction to OSS.” Which is fine, I guess.
So far, I’ve got lots of notes on different licenses, examples of software and bits of history about the software. I hope to incorporate some information and history on the figureheads of the “movement,” as it’s really interesting. At least, I find it really interesting. I’d also like to go over culture (goes with licenses), OSS development models, and development tools.
Anyways, I’m curious, if you are not terribly familiar with OSS (or even if you are), what are some topics you’d like to see in a presentation about OSS? Anything specific to development? Add your suggestions to the comments on this post.
I’ll end with this amusing quote from gnu.org:
Publishers often refer to prohibited copying as “piracy.” In this way, they imply that illegal copying is ethically equivalent to attacking ships on the high seas, kidnapping and murdering the people on them.
If you don’t believe that illegal copying is just like kidnapping and murder, you might prefer not to use the word “piracy” to describe it. Neutral terms such as “prohibited copying” or “unauthorized copying” are available for use instead. Some of us might even prefer to use a positive term such as “sharing information with your neighbor.”
Man, I should make an effort to read the news or something, more often. The highest I remember hearing the CDN dollar at, in recent years, has been about $0.80 US. I had NO idea it was above $0.90 US! Holy crap… time to plan a road trip down to the states, for the summer. And now, ?1000 JPN Yen is not even $10 CDN! When I was in Japan, it was almost $12 CDN. That’s HUGE. Converting “values” would have been so much easier… and affordable!