RailsConf 2009 Notes
Tuesday 05/12/2009 – Category: Uncategorized
Can someone smell stale blog? It’s been busy on this side and I haven’t had any blogworthy material for awhile…until now.
I had the opportunity to go to RailsConf last week in Las Vegas. A lot of smart people, an overwhelming array of Apple products and geeky shirts, and tons of nerdy sessions.
Here are some brief [...]
php usort
Tuesday 02/10/2009 – Category: Uncategorized
I learned about a nifty PHP function that allows you to sort an array with a user-defined comparison function. This is useful if you have an array of database results and need to sort by one element in the result array (normally it would be better to sort with the SQL query but I [...]
Google Latitude
Monday 02/9/2009 – Category: Uncategorized
I’ve been wondering when Google was going to jump on the location-based service bandwagon after seeing apps like Brightkite and Loopt started getting popular when the iPhone came out.
As of now, the following devices are supported:
- Android-powered devices with Maps v3.0 and above. G1 users in the US will be receiving Maps v3.0 in a [...]
IE – Expected identifier, string or number
Monday 02/9/2009 – Category: Uncategorized
If you’re getting this error, chances are you have an extra comma after a curly brace:
a = {
b: function() { },
c: function() { },
}
Get rid of the trailing comma and your JS error woes will disappear!
(source)
Safari doesn’t read inline css
Monday 02/9/2009 – Category: Uncategorized
I’m not sure why I haven’t come across this until this past week, but I found out that Safari doesn’t render css within style tags outside the head tags.
The workaround is to inject the style into the head with javascript–similar to what Rails’ content_for does:
var cssDefinitions = ‘..my style chunk goes here’;
var style = document.createElement(’style’);’
$(style).html(cssDefinitions);
$(‘head’).append(style);
[...]
Recent Posts
- Flickr Original updates
(Saturday 08/7/2010 – 7 Comments) - LED Light for iPhone 4
(Monday 06/28/2010 – 45 Comments) - WWDC 2010: Worth Every Minute
(Monday 06/14/2010 – No Comments) - Flickr Original for Safari 5!
(Wednesday 06/9/2010 – 26 Comments)
