HDR using Linux, in bulk, via Command Line

HDR
Have been playing with HDR after going out doing some photography. Problem was that i was having to do the entire process of merging all images before i even knew if i had a viable image to do some ‘making pretty’ too.

I figured, i should be able to script this, how hard can it be?

Turns out, fairly easy!

First i removed any images that were not part of an HDR sequence, so all HDR were left and in numeric order. Then I made a dir for each ‘set’ of 3 images and moved them into that using the following shell script

n=0; y=1 ; for i in *.CR2 ; do  mkdir hdr-${y} ; n=$(($n+1)) ;echo image number $n ;  mv $i hdr-$y/ \
 if [ $n -gt 2 ] ; then echo resetting $n and $y ; n=0;y=$(($y+1)); fi ;  done

I then found this script which saved me having to write anything else much http://linuxdarkroom.tassy.net/hdr-creation-script/ .This does require a few things installed as dependencies, but nothing overly major.

Now making and HDR is as simple as running

for i in  Photos/2012/06/HDR-hamilton-gardens/* ; do echo doing $i ; ./createHDR.sh $i ; done

Bingo, now i have 40 or so HDR automatically generated as an xcf in gimp, with a layer for each effect so i can open them all, weed out the crap and tweak anything else!

I did end up editing the script since i did not like the default end result, i found i kept changing the fattal layer to be a HARDLIGHT_MODE instead of OVERLAY so it had a stronger feel, then i also added in the following to take down the brightness and saturation.

 (gimp-brightness-contrast fattallayer -60 15)
(gimp-hue-saturation fattallayer 0 0 0 -20)

HDR

Wordcamp New Zealand – Scaling Servers

On the 22nd of April, I (Liz) was lucky enough to be able to speak on scaling WordPress and servers at the New Zealand WordCamp.

The people there were great, and i ended up meeting and talking to many fascinating people about all sorts of code, servers, set ups among other things.
I was a little nervous that i only had 30 minutes to fit in a lot of information, and i had to dumb it down a fair bit for those with less technical knowledge to make it understandable.

I did manage to fit the talk in with no problems at all, it only took 45 mins, plus question time! Nobody seemed to notice the missing 15 minutes from their clocks luckily, and everyone appeared to understand and have great questions about how it worked.

Because scaling is really specific, the hardest part i came up against was really trying to describe something, and explain something, in a way that was non-specific. Anyone who knows servers, knows that there is no one solution to suit everyone. How ever there are a few common areas you can usually look into.

For WordPress one of the bet things you can do is deactivate and DELETE any unused plugins or themes. Get a developer to check them, a broken one can take down your entire server easily! Not deleting them leaves a potential security hole should that plugin be discontinued, those files are still accessible via the web remember!

A few things identified were setting up things like a Cache (or Cache Plugin), enabling the wordpress object cache in wp-config, and moving as many things offsite as possible.
By moving things offsite, i mean things like video content, photos, music etc.
Why spend hours of your time setting up a shockwave/html5 video player, converters, and using disk space to play video when you can just use youtube? This is what they do for a living, they have extensive programmers who specialize in this, so it stands to reason they are very good at it, and it will save you a lot of money and time.

The same method works for Photography, Music, or any other large files if you can do it. It will save you a lot of pain and money later on down the track.

Another key thing for scaling a single server larger is setting up HyperDB, then having 2 separate databases on other servers. This offloads database offsite, but without the difficulty of having to setup MySQL replication.

If you are using WordPress and want to know more, check here for your nearest WordCamp http://central.wordcamp.org/

Sexism, TechWebCast and Brad Chasenore

Anyone who knows me, knows that i’m most definitely not a hugely vocal feminist , i’m usually the first person to say some feminists go over the top. However, when i see it blatantly, i usually will call it, and not tolerate it.

One thing that does make my blood boil, is people who cross over female pornography or near naked pictures, with Tech. These things are NOT related. Females in Tech do not generally just rip off their clothes and pose with half a can of paint on their face.

Sure, some females in technology do this, but most do not. I also play ukulele, im not seeing anyone posting ukuleles on their I.T. blogs or feeds? Just because somebody may model or do other things as well as I.T., does not make it related to I.T.

The worst part about this crappy idealism in I.T., is that men somehow start expecting that females in I.T. ARE these sorts of people. It’s embarrassing and awkward when a guy hears you work in I.T. and asks for a picture.

So yesterday, i was a bit ‘WTF’ when i saw a picture of a near naked women go past in my google+ stream. Now, I have nothing against pornography, nor near naked females, models, or anything of the sort at all. I just have a problem when its posted by what is supposedly a Technology related page. In this case, it was  TechWebCast

I took a breath and carefully worded a question and my objection to the image in question, only to be laughed at and have it trivialized by the guy that runs it Brad Chasenore . After i commented a second time, to explain that it was seriously objectionable, he removed the post.

Original Post:  

I was rather annoyed at the treatment, but did not want to make a huge deal of it at the time, so i private messaged him asking why it was posted in the first place. I am always a believer in educating people rather than screaming at them, i figured perhaps he just did not realize how important this is to people?

In that conversation i felt that, again, he did not seem to really care, and seemed to try and imply somebody else posted it, but did not reply when i asked who. I went to his profile and found he had posted several other similar images of the same and another women at the same time from his own profile.

At this point i was still a little peeved off, but i can live with that, i was going to let things lie, i had mentioned something in passing to a friend Randi who also is female in Tech that i was a bit miffed . At this point in time, i was happy to let things lie, block him and forget about it all, accepting that he’s just a another idiot who does not get it. I had hoped for an apology, but had accepted that was not going to happen.

Private Conversation:

Randi made a small post about it which said

“So after all the controversy about geekli.st, they got a ton of signups. I guess +Brad Chasenore is trying to do the same thing with +Techwebcast … but in a far less interesting way. Learn some unique marketing techniques, buddy.”

At this point , he +1’d that, reshared it, and asked what that meant and what it was about, Several people commented asking about it. Randi mentioned to me this had happened, so i checked it out. I posted a link to a screenshot i had taken, because people were asking what it was about.

This was when Brad pitched in and must have decided to go all out and say ‘If you dont like what i post dont look’.

Brads Post  

For me, that was the tipping point. It’s one thing to make a mistake, its another to be deliberately offensive and sexist, especially when you represent a Tech Podcast and have a larger Technical audience than average.

So i post this, in the hope that others will see the stupidity that most women in technology area have to deal with , and would prefer not too.

Another related post by Brad  

And he shared my post (and deleted it)