Kuma's Lair

Making image contact sheets with ImageMagick’s montage & shell scripting

December 24th, 2013 by Scott Pettigrew

So, if you’re anything like me, you probably have a ton of digital photos laying around your hard drive. For my wife and I, the challenge was to be able to view all of these and figure out what to keep and what to discard. I organized the photos by year, and then by month…but then what to do?

I decided to make some photo contact sheets. I found an article at Pat David’s site on how to do this (thanks, by the way!), but didn’t want to go into multiple directories to do this…so I automated it!

Check out this script, which runs on linux machines.  From a directory of directories, it will switch into each directory (one level down only, my next step is to recurse!) and create a contact sheet for each.

Here is the script:

 for DIR in `ls`
  if test -d "$DIR"
   cd "$DIR"
    montage -verbose -label '%f' -font Helvetica -pointsize 10\
    -background\ '#000000' -fill 'gray' -define jpeg:size=200x200\
    -geometry 200x200+2+2 \ -auto-orient *.jpg\
    cd ..

Let me know what you think, or how this could be improved upon!

Test Map

November 10th, 2013 by Scott Pettigrew

View Larger Map

The heck with don’t tread on *ME*…

July 19th, 2013 by Scott Pettigrew


LP Porcupine Don't Tread on ANYONE


Don’t tread on anyone!!

I was working the Warren County Libertarian Party’s booth at the local county fair, when I saw the Tea Party’s Gadsden flags.  It occurred to me that while the Gadsden flag is pretty good, liberty-speaking, it could be better.  Gadsden only covers half of the equation, and could be taken as a plaintive plea for mercy, “Don’t tread on me!”

The more I thought about it, the more it seemed just WRONG.  The problem isn’t treading on ME…that’s territorial and isolationist.  The real statement is, “Don’t tread on ANYONE.”  Let people be.  Let them do what they want.  Let them live their lives, as long as it has no impact on you living yours.

So I found an image of the Libertarian Porcupine and made this mock-up.  It really makes me want to get a flagpole and fly this flag!


Raspberry Pi and PSK31: A work in progress

January 2nd, 2013 by Scott Pettigrew

300px-RaspberryPiI spent some time up at the Voice of America club station working on getting one of my 256MB Raspberry Pi Model B working with fldigi.  The results left something to be desired…

I started with a clean copy of the latest version of Raspbian, loaded onto a brand new 8 GB Class 10 SD card.  Nothing new there.  Things went very smoothly!  My hub, keyboard, mouse and wlan USB adapter worked fine.  I loaded all of the Raspbian updates, and got fldigi to load without a hitch. Things seemed to be going swimmingly.  In Ham Radio, as in life, when things seem to be going too well, disaster is bound to strike, and this was a classic example of that.

I hooked up my Tigertronics SignaLink USB sound card interface, and things started going south.  Apparently adding this was a bit too much for the Pi to power, because the keyboard and mouse started behaving very erratically. This was easily solved by switching to a powered USB hub.

To see if the Pi had recognized the SignaLink, I typed:

$ aplay -l

And sure enough, the USB sound card was listed. Cool Beans!

Launching into fldigi, everything looked as normal – the waterfall was flowing down the bottom of my screen, everything was responding seemingly well.  We turned on the radio, and started to receive signals into the Pi…and, well, got a bunch of gibberish.  Signals appeared OK in the waterfall, but what I received in the text window was…unintelligible.

An hour’s playing around was fruitless.  Changing settings in fldigi to match the Pi’s puny processing power, fiddling with settings on the USB interface to optimize the sound to the Pi, twiddling knobs on the radio to adjust levels, and even overclocking the tiny computer to its limits, all proved futile.  A quick search on the internet showed that I’m not the only one with this issue – apparently the complexity of the calculations involved is just too much for the Raspberry Pi to handle in its current form.

I’m going to keep at it – but in the meantime, if you’ve had any luck with getting your Pi to work with the Amateur digital modes, please let me know!

GJ2012: America Needs a Handyman

September 7th, 2012 by Scott Pettigrew


Introduction to Libertarianism

July 7th, 2012 by Scott Pettigrew

This is a good presentation, created by the Libertarian Party of Ohio, introducing what Libertarians are, and what we believe.

I am:

June 3rd, 2012 by Scott Pettigrew

Kuma's Lair is proudly powered by WordPress, and uses the kumaZen theme, a modification of NewZen
Entries (RSS) and Comments (RSS).44 queries. 1.852 seconds.