« February 2006 | Main | April 2006 »

Main > Software > jFlash

March 26, 2006

jFlash 1.6 Released

I wanted to add a couple of lessons tonight in order to study for an exam I've got on Tuesday and I discovered that since I updated my server to PHP 5, the darned PHP frontend was no longer functional.

I am becoming very inspired to re-write the entire thing in about 50 lines of ruby.

After some research I discovered that they changed the XML DOM API for PHP 5. Someone has nicely added a compatibility script that I've integrated into the project to keep it compatibile with both PHP 4 and PHP 5. Things seem to work well.

The CHANGELOG is here.

Please browse over to the main jFlash entry or download the 1.6 release here: jFlash-1.6.tar.gz

Posted by jordanh at 11:18 PM | Comments (0) | TrackBack |

Main > Photoblog

March 25, 2006

The Moment of Inception

00201.jpg
View in Photoblog

My dad sent this picture to me in an e-mail last week. He called and called to make sure that I would print it and put it in my office as well as post it on my photoblog.

When my dad lived in Minneapolis, he had a copy of this photograph hanging on the refrigerator. Next to it was a picture of my brother at a similar age with a guitar in his hands. Whenever we would have a new guest come over he would make sure to point out both of these pictures and say, "these were their moments of inception."

Someone had to expose us and encourage us in those situations. Thank you dad!

 

Posted by jordanh at 11:12 AM | Comments (6) | TrackBack |

Main > Photoblog

March 23, 2006

Evan, Film at 11

00200.jpg
View in Photoblog
CameraKonica Minolta MAXXUM 7D
Lens (35mm Equiv.)Minolta 50mm f/1.4 (75 mm)
Exp. Prog. / Shutter @ ApertureAperture priority / 1/640 s @ f/3.5
Metering w/Adj. @ ISOCenter weighted average w/0.00 eV @ 100

When Evan and I departed for Japan, I took my DSLR and Evan packed his video camera. He had every intention of faithfully documenting the trip but we found out by the first tape change that the write head had failed. Our footage was lost.

It's too bad.

This was the portion of the trip that Evan wanted to film most. The major reason he had chosen to come to Japan was to travel to Kamakura to find the grave of the esteemed golden-era Japanese filmmaker Yasujiro Ozu.

Evan wanted to take out his camera after arriving at the station to establish location and shoot a sweeping shot of the high school students milling about. I stood just outside of his frame and saw the train approaching behind him. I waited until it was in just the right places before snapping this photo.

 

Posted by jordanh at 11:37 PM | Comments (0) | TrackBack |

Main > Photoblog

March 18, 2006

Japanese Homeless

00199.jpg
View in Photoblog
CameraKonica Minolta MAXXUM 7D
Lens (35mm Equiv.)Sigma 100-300mm f/4-5.6 @ 160 mm (240 mm)
Exp. Prog. / Shutter @ ApertureNormal Program / 1/125 s @ f/4.5
Metering w/Adj. @ ISOCenter weighted average w/0.30 eV @ 100

Homelessness in Tokyo stands as a sharp contrast to the rest of the cities gleaming, post-industrial image. Whisked out of the public eye and congregated into parks, Tokyo's homeless often hold jobs but are unable to afford housing in one of the world's most expensive cities.

 

Posted by jordanh at 3:46 PM | Comments (2) | TrackBack |

Main > Photoblog

March 15, 2006

Frustration

00198.jpg
View in Photoblog
CameraKonica Minolta MAXXUM 7D
Lens (35mm Equiv.)Sigma 100-300mm f/4-5.6 @ 135 mm (202 mm)
Exp. Prog. / Shutter @ ApertureNormal Program / 1/80 s @ f/4.5
Metering w/Adj. @ ISOCenter weighted average w/0.00 eV @ 100

It can be hard sometimes to travel with family. Traveling with your older brother to a foreign country doubly so.

It can be fun to take your camera to an urban park in Tokyo. Using a long lens to catch peple unawares doubly so.

When the these premsis meet the above is the result.

I love my brother and I am very glad that he's coming back to town for has Spring Break on Saturday. Some Spring Break up here in Minnesota. We've just got a fresh 18 inches of snow on Monday!

 

Posted by jordanh at 10:32 PM | Comments (1) | TrackBack |

Main > Photoblog

March 14, 2006

Sun Bather on a Concrete Beach

00197.jpg
View in Photoblog
CameraKonica Minolta MAXXUM 7D
Lens (35mm Equiv.)Sigma 100-300mm f/4-5.6 @ 300 mm (450 mm)
Exp. Prog. / Shutter @ ApertureNormal Program / 1/160 s @ f/5.6
Metering w/Adj. @ ISOCenter weighted average w/0.00 eV @ 100

My brother, friend Jesse, and I had finished looking out from atop the Tokyo Tocho building in Shinjuku and walked over to small square with a little pond and waterfall.

After sitting down for a rest I saw this guy come zooming into the park on his little bike and as quickly as he could he tore his shirt, took off shoes and, laying upon them, begun to sunbathe on the hot concrete. I was amazed.

Unfortunately I wasn't quite amazed enough to get this shot perfect. The highlights are a little blown and the sharpness is off. I remember that it was the end of the day and I was running a little low on flash at the point. Well, I wanted to share the story anyway.

 

Posted by jordanh at 8:00 AM | Comments (1) | TrackBack |

Main > Photoblog

March 12, 2006

Achievement

00196.jpg
View in Photoblog
CameraKonica Minolta MAXXUM 7D
Lens (35mm Equiv.)Minolta 50mm f/1.4 (75 mm)
Exp. Prog. / Shutter @ ApertureNormal Program / 1/640 s @ f/2.8
Metering w/Adj. @ ISOCenter weighted average w/0.30 eV @ 200

I've updated my script to automatically parse EXIF info from the source image I hand it, I hope you find the new format useful!

I was having so much fun shooting pictures of the pigeons...my friend Steve knows how much I like to take pictures of birds. Our high school trip to Disney World was consumed by me stalking and photographing every featured creature I could find!

My fun was spoiled when a Japanese girl who couldn't have been older than 20 came by and quite rudely shooed the birds away while I was shooting. She was armed with a broom and a dustbin and remorselessly swept up the cone and carried it off.

I asked her in Japanese if she had seen what I was doing and I showed her a couple of the shots on the back of my camera. She seemed throughly unimpressed and even a little scared—I get that every once in awhile when people don't expect you to speak any Japanese whatsoever—and she quickly tittered off to the safety of her ice-cream stand. I hope a pigeon poops on her.

 

Posted by jordanh at 7:22 PM | Comments (0) | TrackBack |

Main > Diary

Genes, Genes the Musical Fruit

It's tax refund time and I am looking for an appropriate waste to spend it on. A while ago a friend of mine pointed me to The Genographic Journey which will determine your haplotype and tell you about the migration of your genetic marker over time. What I wanted to know was how recent the results are so I knew what to expect for my $99 + shipping.

Suprisingly, I was only able to find one poster who actually had received their results and decided to share. Sanjiva over at Overtures had this to report about his genetic testing. It seems the results for him went as far back as the Eurasian notching point about 60,000-80,000 years ago up to about 15,000 years ago.

He discovered that his haplotype travelled out of Africa, into central Asia (like all P-I-E speaking ancestral groups), as expected. However that's when things took a funny turn: his ancestores had the type common with the group that migrated to Siberia. Sadly, that's where the story ends. Via this project, he may never know how his ancestors reached the Indian Subcontinent.

Personally I hope that once your genetic haplotype is known over the years better and better data will become available and you'll be able to glean more and more data about one's ancestral journey. With that hope, I go to order a kit!

12:23 PM: Here's another person's results, this time she's been tracked with her mDNA.

Posted by jordanh at 12:08 PM | Comments (0) | TrackBack |

Main > Diary > Development

March 10, 2006

mtcolorer-0.2 plugin source code cleanup

Here is a patch for mtcolorer-0.2 to clean up the source a bit. I was initially having trouble getting the plugin to work and I made some mostly cosmetic improvements to the source in order to facilitate debugging. Happy coding!

Here's the diff (link), using mtcolorer:

--- mtcolorer.pl.orig   2006-03-10 18:48:32.000000000 -0600
+++ mtcolorer.pl        2006-03-10 18:46:19.000000000 -0600
@@ -1,5 +1,5 @@
 # ---------------------------------------------------------------------------
-# MT-Colorer
+# MT-Colorer
 # A plugin for Movable Type
 #
 # Release 1.0.0
@@ -11,66 +11,70 @@
 # You may use it for commercial or personal use.
 # If you distribute it, please keep this notice intact.
 #
-# Copyright (c) 2006
-# ---------------------------------------------------------------------------
+# Copyright (c) 2006
+# ---------------------------------------------------------------------------
+#
+# Additional Changes:
+#
+# 10-Mar-2006 - minor fixes/clean-up work Jordan Husney <jordan@husney.com>
+#

 package MT::Plugin::Colorer;
 use Syntax::Highlight::Universal;
 use strict;
 use MT;
-use MT::Entry;
-use MT::Plugin;
+use MT::Plugin;
 use MT::Template::Context;
-use MT::WeblogPublisher;
-my $highlighter = Syntax::Highlight::Universal->new();
-my $plugin = new MT::Plugin();
-$plugin->name("MT Colorer");
-$plugin->description('Source code hightlighter based on Colorer (http://colorer.sf.net)');
-$plugin->doc_link('http://klim.doslash.org/projects/mtcolorer');
-$plugin->author_name('Vladimir Klimontovich');
+my $highlighter = Syntax::Highlight::Universal->new();
+my $plugin = new MT::Plugin();
+$plugin->name("MT Colorer");
+$plugin->description('Source code hightlighter based on Colorer (http://colorer.sf.net)');
+$plugin->doc_link('http://klim.doslash.org/projects/mtcolorer');
+$plugin->author_name('Vladimir Klimontovich');
 $plugin->author_link('http://klim.doslash.org/eng_index.shtml');
 $plugin->plugin_link('http://klim.doslash.org/projects/mtcolorer');
-$plugin->version("0.2");
+$plugin->version("0.2-jrh");

+MT->add_plugin($plugin);
 MT->add_callback("BuildPage", 1, $plugin, \&hightlight_text);

-MT->add_plugin($plugin);
-

-sub trim
-{
-   my($string)=@_;
-   for ($string)
-   {
-      s/^\s+//;
-      s/\s+$//;
-   }
-   return $string;
+sub trim
+{
+   my($string)=@_;
+   for ($string)
+   {
+      s/^\s+//;
+      s/\s+$//;
+   }
+   return $string;
 }
 sub hightlight_block
-{
-   my ($lang, $source) = @_;
-   my $htext =  $highlighter->highlight($lang, $source);
+{
+   my ($lang, $source) = @_;
+   my $htext = $highlighter->highlight($lang, $source);
    $htext = trim($htext);
    return "<pre class=\"mtc_block\">".$htext."</pre>";
-}
+}

 sub hightlight_inline
-{
-   my ($lang, $source) = @_;
-   my $htext =  $highlighter->highlight($lang, $source);
+{
+   my ($lang, $source) = @_;
+   my $htext = $highlighter->highlight($lang, $source);
    $htext = trim($htext);
    return "<span class=\"mtc_inline\">".$htext."</span>";
-}
-
-sub hightlight_text
-{
+}
+
+sub hightlight_text
+{
    my ($cb, %args) = @_;
-   use Data::Dumper;
    my $html = ${$args{'Content'}};
+
    $html =~ s/<mtc:block([^>]*?)lang="([^"]+?)"([^>]*?)>(.*?)<\/mtc:block>/hightlight_block($2,$4)/ges;
    $html =~ s/<mtc:inline([^>]*?)lang="([^"]+?)"([^>]*?)>(.*?)<\/mtc:inline>/hightlight_inline($2,$4)/ges;
-   ${$args{'Content'}} = $html;
-   return 1;
+   ${$args{'Content'}} = $html;
+
+   return 1;
 }

+1;

Posted by jordanh at 6:49 PM | Comments (0) | TrackBack |

Main > Diary > Development

mtcolorer test

This is a test of the mt-colorer plugin, test #18:

int main(int argc, char *argv[])
{
    printf("hello, %s world!\n", "big");

    return 0;
}

Success!

If you are having trouble getting the plugin working, see my comments over at http://klim.doslash.org/projects/mtcolorer/index.shtml, the mtcolorer home page.

Posted by jordanh at 4:34 PM | Comments (1) | TrackBack |

Main > Photoblog

March 9, 2006

Cone Hunting

00195.jpg
View in Photoblog
CameraKonica Minolta 7d
LensTamron 28-200mm f/2.8 @ 75mm
Shutter / Aperture1/125s / f/5
ISO (Adj.)200 (+0.30 EV)

I can’t stand in line at the store
The mean little people are such a bore
But it’s alright if you act like a turd
’causeI like
Birds

After our hike around Sensoji Temple, we walked up the street for a Japanese classic: mattya soft-serve ice cream. There was a small flock of pigeons nearby. They were fighting over a cone that was left behind by someone. I couldn't resist but to take more pictures. The luxury of digital: to press the button just to press the button.

I got lucky with the depth of field on this one, I think; everything that should be in focus is and everything that should be out is out.

 

Posted by jordanh at 12:29 AM | Comments (4) | TrackBack |

Main > Photoblog

March 6, 2006

Displeased

00194.jpg
View in Photoblog
CameraKonica Minolta 7d
LensSigma 100-300mm f/4-5.6 @ 135mm
Shutter / Aperture1/80s / f/4.5
ISO (Adj.)400 (+0.30 EV)

I spied this lady's expression from across the prominade area of the temple and couldn't resist but to take a picture. She looks completely displeased with something. If I had to wear that uniform everyday and work with tourists I guess don't blame her for being a little sour.

 

Posted by jordanh at 1:48 PM | Comments (1) | TrackBack |

Main > Photoblog

March 2, 2006

Temple Roof

00193.jpg
View in Photoblog

CameraKonica Minolta 7d
LensSigma 100-300mm f/4-5.6 @ 280mm
Shutter / Aperture1/1600s / f/6.3
ISO400

At the risk of getting a reputation for either liking telephoto or swastika containing shots too much I offer the following shot today.

Part of the fun of carrying a compact telephoto lens around with you is that—given that it's bright enough—you've got a great spyglass in your bag with which you can examine an object up close. And what's more, if you like what you see you can save it for posterity. I was surprised to see how intricate the tile work was. I only wish I had a wide shot so I could give you a sense of scale.

 

Posted by jordanh at 11:57 PM | Comments (1) | TrackBack |