Monthly Archives: November 2005

Found out what the Issue is with Internet Explorer…


The long and short of it: Internet Explorer wants this tidbit of code to be OUTSIDE the <div> boundries…
<sigh> Move this little snippet outside of all <div> boundries and it works ok.
Nuts. I need to do a little research and see if the API will allow me to insert this little Snippet into the bottom portion of the HTML code…

<script>
<!–
//<![CDATA[
var icon = new GIcon();
icon.image = "http://www.google.com/mapfiles/marker.png";
icon.shadow = "http://www.google.com/mapfiles/shadow50.png";
icon.iconSize = new GSize(20, 34);
icon.shadowSize = new GSize(37, 34);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);

var map = new GMap(document.getElementById("map001"));
map.setMapType(G_MAP_TYPE);
// map.addControl(new GLargeMapControl());
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.centerAndZoom(new GPoint(-73.987707, 40.741805), 2);
var point = map.getCenterLatLng();
var marker = new GMarker(point, icon);
map.addOverlay(marker);
var WINDOW_HTML = ‘<div style="width: 12em; style: font-size: small">11 Madison Avenue Nice Place</div>’;
GEvent.addListener(marker, ‘click’, function() {
marker.openInfoWindowHtml(WINDOW_HTML);
});

//]]>
–>
</script>

MTGoogleMaps

I’m Playing around with a new plugin called MTGoogleMaps By Nick Punter. It’s a cool idea and should be fun to implement. Also, the PERL code is a nice and neat piece of programing.

Update: It would have helped if I had the HTML::Template and LWP::Simple perl Modules installed. Fixed via ´perl -MCPAN -e shell´ and just installing them.

Another Update: Get the Process Tags plugin. With my installation of MT, Embedded Tags in the Entry won’t work without it. After installing it I changed my Templates from ´<$MTEntryBody$>´ to ´<$MTEntryBody process_tags="1" $>´ which seemed to do the trick nicely.

Yet Another Update: Don’t use the Ajaxify WYSIWYG Plugin with this as Ajaxify striped out all sorts of things!

Last Update: In GoogleMap.pl, sub jstemplate, fixed a slight and subtle bug:
Changed:
$loglat .= "$1, $2"; to
$loglat = "$1, $2";

Also added zoomcontrol and Maptype as parameters.

The Map was created with:
<MTGoogleMaps address="11 Madison avenue,NY, NY, 10010"
info="11 Madison Avenue Nice Place"
width="540px"
height="300px"
zoom="2"
zoomcontrol="large"
maptype="map">
</MTGoogleMaps>

zoomcontrol can be “large” or “small”
maptype can be "map", "hybrid", or "satellite"
Both zoomcontrol and maptype are optional.

My Modifications are trivial, Nick Punter did the hard work by researching the hows and why to apply this to Movable Type.

Note:It breaks with Internet Explorer. Bizarre! It works fine in Firefox & Opera!!! The authors Web page blows up too.

Anyone use Safari on a Mac? Let me know the result at sd_042 ât yahoo.com

I’m betting that the HTML that gets generated is not quite agreeable to Internet Explorer so I’ve modified the generated javascript code to detect the browser. I’ve isolated it to the script block, but can’t quite figure out what it is exactly. I’ll put it on my List of things to do…

Finally fixed the RSS feed on my Blog…

Finally Fixed the RSS feed on my page. I use my Blog as a book mark for sites I like and I include RSS feeds. Originally, I used a MT plugin to put the RSS info in, but that meant that it would only be updated when I updated my Blog.

Solution: Write a PERL script.

My current implementation is not at all elegant. I use WGET to pull down the  RSS feed, some simple parsing in PERL and Boom! I have my RSS in my margin. Run it via a crontab entry, a simple PHP include and I have links provided by my favorite RSS feeds. The right way would to get the RSS data, parse it via XML::Parse and work with the resulting data structure.

Maybe That will be my next task… 

Update: Ok, rewriting it to use XML::RSS and XML::Parser was a little Too easy. I still use WGET, but pulled out the RSS parsing I put in previously.  

Guess where NYC?

One Nice feature of Flickr is groups.
One cool group is “guess where NYC”, where I’ve posted a couple of photos I took. See all my photos here.

See here for the Above one.
See here for the Above Below.

This one below was guesed fairly quick:

The Stormtrooper Chronicles

StormtrooperOne of the web sites I like to go to is Danny Choo‘s.  To put it mildly, he’s someone who really likes to enjoy life. He currently lives in Tokyo and he has a really interesting blog that I regularly visit. His site has posts about Anime, Modeling, Ipods , etc.

In July of 2005, he purchased a set of Star Wars Stormtrooper Armor. Yep, you read that right! He’s been kind enough to document his trials and travails. 

I Highly recomend reading about it, His journey is very funny and he’s taken lots of photographs and some Video. The most recent Entry "Stormtrooper haircut" made me laugh out loud.

His "Stormtrooper in Tokyo – Episode 2 : Akihabara" posting is great too. 

For a complete Stormtrooper Summary on Danny Choo’s site See here.

He’s also got excelent tips for people switching from Windows to a Mac.

 

Building a PG Mk II

PG-MK-II-AEUG-box.jpg

I’ve started building a Perfect Grade RX-178 Gundam Mk- A.E.U.G.

Building these is a hobby I’ve been doing for a few years. It keeps me out of trouble and is, frankly, fun.

As for the model I think the proportion is off, but like almost all of Bandai’s Perfect Grade models it has a Nice level of detail.

Box photo from Hobbysearch

Continue reading

MG Aile Strike Gundam – Pre painting

Not that the model is done, I need to paint it. After separating the different color parts into different sandwich bags, I’ll use Tamiya grey primer. For the I’ll use this set, I have a half used bottle of Red from the PG RX-78 that I made.

 

I’ll take pictures once I prime and paint.

 

Here is the Strike with No Armor on…

Ajaxify: EnhancedEntryEditing

Lately, I’ve been playing around with different plugins for Movable type. One of them is a plugin that replaces the New Entry Interface with a AJAX  WYSIWYG interface. This is created by movalog.com

Ajaxify is a set of plugins that adds several ajax/javascript widgets into the Movable Type interface. It currently consists of EnhancedEntryEditing – that adds a WYSIWYG editor and resizable textarea controls to the entry screen – and Search Suggestions – that add a "Google Suggest" like feature to the quicksearch box. 

This post was made with the EnhancedEntryEditing Plugin.
So far so good. You can find it here

 

Slight Update:  "Emoticon" was a little broken under Firefox. Nothing much that a little html editing didn’t fix.