Well, the place in the front seem to be a nice place, but all the stuff behind there...
Sorry, the harbour of Oslo isn't very nice.
Thursday, June 30, 2005
This is Oslo
Saturday, June 25, 2005
Python snippet
Python lack the ?: conditional short-cut from for instance C. It is, however, possible to do:
a and b or cThere is, though, a small problem with this. If 'a' evaluates to True, the result should be 'b'. But if 'b' also evaluates to False, python will go on with 'c', and return the result of 'c'. A quick fix is:
(a and [b] or [c])[0].
As [b] always is True, regardless of 'b', the result will be [b] if 'a' is True, and the last [0] will extract the first entry from the list [b], which is 'b'.
Take care!
Tuesday, June 21, 2005
Sunday, June 19, 2005
Focal-length statistics!
Download img-focalstat. Save the file as img-focalstat.pl or whatever you like.
img-focalstat is a Perl script which takes a directory as input, scan the directory recursively for jpeg's, and check the focal length for each picture using jhead. The script show the number of pictures for each focal length, sorted from shortest to longest.
If you like, a GD bar-plot can be made of the data, with a width of each bar of your choice.
Also, all images for a particular focal length can be showed. This requires gthumb at the moment. May be made configureable on user-request.
To use the script, you need perl with File::Find, Getopt::Std, POSIX, and GD::Graph, as well as jhead and optionally gthumb. Should work on any linux, Mac OS X or other **ix. May work on Window$ as well.
The script is licenced under GPL.
syntax: img-focalstat.pl [directory| [-s focal-length] [-g ] [ -o filename ] [-n integer ] [ -i ] [ -b directory]
Description of options:
-s focal-length: Show all images with the given focal length using gthumb. Focal length should be specified as jhead show it, but without "mm". For instance 24.0 (and not just 24, at least with my jhead...)
-g : Make a GD::Graph bar-plot
-o : Output filename for bar-plot, must be a non-existant file, the script refuse to overwrite. Output will be a PNG image.
-n ingeger : The number of bars to have in the plot. Focal length will be distributed evenly on this number of bars.
-i : Include images with unknown focal length in the count and bar plot, show up as "n/a". For those cases where jhead are unable to detext any focal length in the EXIF data.
-b basedir : The basedirectory to scan. If any options are given, the base directory must be specified with the -b option. If no option is given, the base directory can just be given as the only argument to the script (without the -b)
Feel free to use or abuse or whatever. Comments are welcome :-)
Take care!
Closeup experiments
Try the +4 closeup on my 75-300, in my garden. A nice sunny day, and stopped down the lens can still be kind of sharp.
Haven't done any rigorous tests, but I think the closeup give me at least true macro (1:1 magnification) on the 75-300.
In other news, I am still writing my Ph.D stuff.
Friday, June 17, 2005
Salt and pepper!
Got a new close-up diopter/filter for my lenses. It's a +4 strength close-up
that fit on both the kit-lens and my 75-300. This picture is with the
kit-lens. The magnification is significantly higher with the 75-300, but
it's hard to do anything serious without a tripod (which I do not have yet).
Will probably go look for bugs in the garden tomorrow...
Thursday, June 16, 2005
flies having dinner
Took a little detour with the camera today. Didn't get that many great shots, but at least a few.
I am pretty satisfied with the EF 75-300 for now. Sharpness is quite ok, and the range is great. Good learning-tool together with the kit-lens.
Monday, June 13, 2005
Another in the oow series
I like the place I live. Who wouldn't when this is what it looks like out of your home-office window!
Saturday, June 11, 2005
Tuesday, June 07, 2005
What a day!
On a completely different end of things, I manage to get a ride on my bicycle yesterday - about 22km. Man, that hurts. Too long since last time I did something like that - I'm in even worser shape than I thought. So I better get started with some training.
No good pics today, sorry folks.
Take care!