Categories: Science, GIS, Left, Numbers
Passing Ruby vars to Javascript
It may not be the best way of doing things, but it is the way I am doing it. I need to pass a Ruby variable to a javascript function, here's how:
<% @x = "#{params[:shortened_url]}" %>
<a href="javascript:task('<%= @x -%>')">Do it&l… more »
New Installation Headaches
I need to have a Linux instance running for a Rails app that I am to fix. That means I need Ruby, Rails, and MySql. Not sure yet about apache-passenger.Headache city as I know more about software then installation of these. I have done it before on a w… more »
Geolocation and PHP
Geo location is now so easy:
$geo = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip='.$_SERVER['REMOTE_ADDR']));
print_r($geo);
echo "City: " . $geo['geoplugin_city'];
...
Thanks geoPlugin! more »
999
its 9-9-9 today and i'm a little bummed out that i had nothing special planned. just noticed. it could have been the opposite of 6-6-6 day. rats. this day will not happen again. so sad. but wait, 12-12-12 which is double-bad because its twice 6-6-6, oh y… more »
Cool Space Panoramas
Wow! A site has some incredible pictures taken from the Apollo flights to the moon. Zooming in to check out the rover made me fell like I was there. Check it out here! more »
:: Next >>