Showing posts from February, 2010


During my recent forays into web development I'm learning about using other fonts. It seems that Web Open Font Format (WOFF) may be the way to incorporate a font on a web page. Support for WOFF: Several font foundries approve of the format Firefox (3.6) supports it Chrome is investigating support , star the issue to vote for it Internet Explorer might support it (@1:21) Safari and Opera: I wasn't able to find any solid info Existing TrueType/OpenType fonts can be converted to WOFF with these programs . Arch Linux users can install these programs using my AUR package .

Label Sphere v2

A reader pointed out that my Label Sphere wasn't working as advertised. I took a look at both our blogs and they both looked fine, then I realized it must be a browser issue. I looked again with Firefox and sure enough the labels were all stacked on each other at the bottom of the gadget. I made the mistake of only testing in one browser ( Google Chrome ). The issue with Firefox was that the label container was collapsing , then JavaScript got a very small height for the container which resulted in a very small sphere. To keep the container from collapsing I added the following to the style of the container (as stated in the link): overflow: hidden; width: 100%; For the sake of completeness I checked the Label Sphere using IE8 on my gf's computer (the only IE I can get on Arch Linux is IE6 and I've decided I don't want to support IE6 ) and sure enough IE8 had a JavaScript error about "Object doesn't support this property or method". This error occ

Global Temperature Change Map

My first project with Google App Engine was a Google Map that displayed temperature data for a given date. I used monthly grid data provided by NOAA . With this data the Earth is divided up into 5x5 degree grids for a total of 2592 grids. I wrote a simple Perl script to parse the NOAA data, find the min and max temperatures, generalize each temperature point into a scale of 1 (min) to 9 (max), calculate the latitude and longitude for each corner of the grid, and write a CSV file suitable for upload to the datastore. For the backend I wrote a Python script that created a kml of the data for the requested date. In the kml, each temperature range is a separate Placemark, and within each Placemark are GPolygons representing the grid data. The frontend used JavaScript and jQuery to load the kml as a GGeoXml. There was also a play button that steps through all the available dates. Unfortunately only 1 GPolygon for each Placemark would load. So I re-wrote the Perl script to output encode

Label Sphere

My first Google Gadget is at the top of the left column of my blog. I've seen label clouds around and they all used flash so I decided to write one in JavaScript. I figured it would be a good learning experience. This gadget uses JavaScript and jQuery to rotate divs around a single point. Depth is represented by changing the font size and opacity. You can add my gadget to your blogger layout by adding a new gadget and searching for either "Alex Dioso" or "Label Sphere". I've also updated my .vimrc for use with JavaScript.