Archive for the ‘Uncategorized’ Category

Improved GPS removal

Friday, August 13th, 2010

I recently posted about a way to remove the GPS information from pictures. I wrote a script that will retain the Date/Time information. It requires jhead.
#!/bin/bash
# Will remove non-essential EXIF from a jpeg
# while retaining Date/Time value. I use it to
# remove GPS information from pictures I
# want to put on the internet.
 
# Created Wed Aug 11 18:43:03 PDT 2010
 
# For handling spaces. See:
# http://www.cyberciti.biz/tips/handling-filenames-with-spaces-in-bash.html
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
 
for img in $@; do
    echo Working on "$img"
 
    # Grab the original date/time
    DT=`jhead "$img"|grep 'Date/Time'`
 
    # Current format: " Date/Time : yyyy:mm:dd hh:mm:ss"
    # jhead requires: yyyy:mm:dd-hh:mm:ss
    DT=${DT:15:25}-${DT:25}
 
    # Strip non-essential information
    jhead -purejpg "$img"
 
    # Put the date/time back
    jhead -mkexif -ts$DT "$img"
done

It accepts image files as arguments. You can pass as many or as few as you feel like. If you’re interested in keeping other non-essential exif data, you might want to look into the jhead argument “-te”.

Removing GPS data from an image

Wednesday, August 11th, 2010

I constantly forget how to remove the geotags from my pictures before I put them on the internet. Here’s an imperfect way to do so:
jhead -purejpg /path/to/image.jpg
Source

This will get rid of timestamps and other ancillary information that you may want to keep attached to the image. It seems like it would be pretty simple to write a script that uses jhead with no arguments to grab the Date/Time field, then run it again with -purejpg to remove all extraneous data, then run it a third time with the appropriate arguments to re-set the Date/Time field.

Intermittent server outages

Saturday, August 7th, 2010

I noticed while I was in Portland last week that the server was down. When I got home, I discovered that the UPS was off. I pushed the button and turned it back on.

A day or two later, it was off again. I eventually figured out what it was:

Likes to sit on the UPS The newest family member. Likes to swat at Penny

The causes of the outages

Penny likes to sit atop the UPS. The newest member of our family likes to swat at Penny. Apparently, sometimes she hits the UPS power button instead.

I taped some cardboard over the button. I do not anticipate any further outages.

Penny investigates the addition, no doubt contemplating how to H@X0R her way around it.

Technology as explained by my mother: The Internet

Wednesday, July 7th, 2010

I was lamenting to my mother the difficulty in explaining technical answers to people who have limited experience with technology. She sighed sympathetically and said something along the lines of, “It’s very difficult for people who are used to dealing with a physical object to understand this thing fluttering all around us, breaking all the laws of physics.”
“Wait, where did you think the Internet is?”
She made a fluttering motion with her hands, “All around us. Like God.”

Technology as explained by my mother

Friday, July 2nd, 2010

Someday I’d like to rent out a hall or theater and charge $5 a head for my mom to answer the audience’s technical questions. The audience would require a certain amount of savvy to realize that her answers are hilarious, not informative.

I’ll probably never get around to renting that space, so in the mean time, I’ll be posting them here, in a series I call “Technology As Explained By My Mother “. The first installment has already been posted. I’ve got a few such episodes drafted, I can be reasonably certain this will be at least a three-part series. I hope you enjoy them as much as I do.

Facial hair in the news

Wednesday, June 30th, 2010

Some exciting news for those of us who love facial hair:
AUSSIE women find facial hair attractive and more men have sex and are “wilder in the bedroom”.

Even fish are in on it.

Technology as explained by my mother: Links

Tuesday, June 29th, 2010

I was fielding technology questions from a family friend who had a hilarious misunderstanding about what a link was (he expressed a concern that too many people would link to his web page and cause a short circuit). I went to tell my mom so we could both laugh about it, but first I quizzed her to make sure she knew what a link was.

I asked something along the lines of “If I told you Google links to CNN, would you know what that meant?”

A google is a thing that appears there and you click it and it does something, whether you want it to or not.

She stopped to tell me to stop making that face. I didn’t catch what she said when she continued because I was trying to keep a straight face.

Random Blogroll Category v1.5.1

Monday, June 28th, 2010

I just committed a minor revision to my Wordpress plugin Random Blogroll Category. The line that was supposed to remove an extraneous HTML tag was completely wrong. The latest version will put out valid HTML.

It’s worth noting that I have no further plans for developing this plugin unless it is broken by a future Wordpress update.

In memory of my dad

Thursday, May 20th, 2010

Today is the 15th anniversary of my dad’s death. One of the first things that comes up when I talk about him is the addiction that killed him, but I try to remember him as a whole person, not just an alcoholic.

I only remember him ever giving me two pieces of advice:

  1. Always have a firm handshake
  2. Always keep a good sense of humor

They’re both good pieces of advice, but the second one is something I really try to live by. I aspire to never take myself so seriously that I can’t laugh about something juvenile. I remember him as having a consummate love for fart jokes. In kindergarten I got both of us in trouble when I re-told one to my teacher.

Another time we got in trouble with my mom for jumping in my crib. We thought it was hilarious even after it broke. My mom was understandably less amused. The part that really stayed with me is laughing riotously with my dad even after we got in trouble. It’s that sense of mischief and joy that I really want to remember about him.

When I was your age, we wrote everything longhand

Wednesday, May 5th, 2010

I recently went to a classroom to watch a bunch of first and second graders interact with the software I work on. I’d only been working there a couple weeks, so my contributions were really very minimal, but that’s beside the point.

I hadn’t been in a second grade school since was about that age some two decades ago. In those days, most of the class artwork on the walls consisted of handmade crafts and stories demonstrating our best handwriting. While this classroom featured the requisite construction paper crafts, all the students’ writing was typed.

The kids had handwritten sentences the day before, and their assignment was to type it out and illustrate it on the software we’d built. Our job was to take note of anything that really seemed to work or not work. I had my spiral-bound notebook folded over so that the page full of hand-written notes were visible to anyone who might be looking up from the floor. Since I was in a room full of short people, I suppose it was inevitable that someone would take notice.

“I don’t see many people write like that,” the observant party announced.
“Wow! That’s a lot of writing! Did you write all that?” his friend inquired.
“I did. When I was your age,” I was pretty tickled to be able to say that to someone in a non-facetious manner, “we didn’t have computers, and everybody wrote like this.”
The friend’s jaw hit the floor. The observant party was nonplussed. “My mom already told me that.”

Hopefully that kid never hears about typewriters or it’ll take some of the shine off that story.