Archive for December, 2006

USB Drive Read-Only

Monday, December 18th, 2006

trio_mp3_player.jpgI was in a hurry on Sunday as our family was about to leave on a road trip to visit some relatives. Joshua had a problem copying some music from his Kubuntu Linux PC to an MP3 player that I have because the MP3 player was full. I had purchased the 512MB Trio MP3 player from eCost, one of my favorite discount online stores. I have used the MP3 player on many airline trips.
Joshua tried to delete the existing files on the MP3 player but his KDE Konqueror file manager window said that the files could not be deleted since the files were read-only. I had put the files on there with my Ubuntu Linux PC. Why couldn’t he use the USB drive?

I took over at his keyboard and attempted to remount the Trio USB thumb drive MP3 player as read-write:

$ mount -o remount,rw -t vfat /dev/sdb1 /media/sdb

mount refused replying that it could not mount the read-only file system as read-write. Maybe the drive was corrupted or something. I searched the internet for some information on fixing the filesystem of a USB flash drive. Then I tried to repartition and reformat:

$ fdisk /dev/sdb

I entered the fdisk utility as read-only and knew then that fdisk was not going to work. By this time I was really frustrated and it was time to leave. Why wouldn’t Linux allow me to delete the existing files or partition or format? We left the house without the music and began the trip. I was deep in thought about this perplexing issue.

trio_mp3_hold.jpgThen an idea came to me about half way to our destination. The Trio MP3 player has a HOLD button that I use to keep the keys from being pressed while it is in my pocket. I began to suspect that the hold button was preventing the USB flash drive files from being deleted. When we returned home, I moved the HOLD button, and inserted the Trio MP3 thumb drive into my Linux PC. I selected a music file and deleted it. Success! The drive had automatically mounted as read-write, and I could add and remove files at will. PEBKAC!

Autism Jigsaw Puzzle Piece

Saturday, December 16th, 2006

jigsaw_green_02.gifI helped create an Autism support group website several months ago. I needed some Autism related clipart and tried to find some of the colorful jigsaw puzzle pieces that are often found on Autism related sites and accessories. I didn’t find any that were suitable or in the public domain and decided to create my own. I found a single puzzle piece on the OpenClipart website. The OpenClipart website has lots of public domain clipart in SVG format.

Using Inkscape, a free and open source graphics illustration application, I fit four single puzzle pieces together and colored them. Then I fit those four pieces together until I had a small mat of puzzle pieces. I tried to match the color scheme with an Autism ribbon that I had seen. I exported the small mat into PNG format. I used the GIMP, a free and open source image manipulation tool, to add several of these together. I ended up with an autism puzzle background that I could create shapes or words in using the GIMP and masks.

jigsaw_puzzle_four_piece.gif jigsaw_puzzle_stk.gif jigsaw_puzzle.gif
faces.gif

I never did use the words on the website. I did use the small four puzzle piece on the website. The Autism puzzle piece also seems to be a popular search term for that site.

La Chartreuse in HDR

Friday, December 15th, 2006


La Chartreuse in HDR by bsidez.

I learned something new about photography while eating lunch today and browsing flickr: HDR. HDR stands for High Dynamic Range and is a photography technique used to represent the wide range of intensity levels as can be seen by the human eye. It is normally done by shooting multiple exposures and then blending the exposures in a photo manipulation program like the GIMP. Some of the HDR photos I saw today are really stunning and colorful. A lot of the HDR images are just tone mapped and look fake.

Although not necessarily the same as HDR, I sometimes fix a photograph using an exposure blending technique. I use a Neutral Density filter gradient technique in the GIMP. I would like to explore using HDR in my photography. Perhaps I will use pfstools. pfstools are open source applications for reading, writing, manipulating and viewing high-dynamic range (HDR) images and video frames.

Website backup using Linux Command Line

Friday, December 15th, 2006

easy buttonI needed to backup a website that I run onto a Linux server in my garage, and wondered what the easy button tool for Linux on the command line would be. Just try searching Google for “Website backup using Linux Command Line” and you don’t get what I was looking for. What I should have searched for was “Website Mirroring With wget” but I didn’t know what tool I was looking for, remember? As you may have guessed, I finally found a page full of ads and some outdated command line options for Windows describing how to website mirror with wget.

wget is a great tool for website backup, offline browsing, or mirroring as it is known in the server realm. A simple one line command gets you all the files and images that are accessable from the website index and puts them in a directory it creates named after the domain name:

$ wget -mp http://anencephaly.net/

Yeah! Job accomplished. That was easy, and I didn’t even have to ask the reindeer.