Category: GIS
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 »
Map Aitmachamh
I spent a wonderful weekend out at Ait macnamh last weekend and some thoughts occurred to me. I went for a walk around the quarter section of land (160 acres or ½ mile per side or ¼ sq miles.) Anyways, as I walked it it occurred to me that I would be int… more »