JQuery – Getting a Latitude & Longitude from address

I had a client realize today that their dealer search by radius function wasn’t working anymore so I dug in to find out why. The cause turns out to be the service we were using to geocode was no longer functioning which is rational since it was sevceral years old and before yahoo or google was offering geocoding. Basically they need the dealers address and latitude and longitude to be added to the database so…

"JQuery – Getting a Latitude & Longitude from address"

Metaprogramming as a tool for refactoring Ruby on Rails controllers

Once you learn about metaprogramming in Ruby on rails you probably want to use it all the time. Once I learned about it, I went looking for places in my code to use it. Here is a simple example of a controller that is in need of some love. This is a controller for a blog or a news site. A few methods have been added which get the top, latest and trending articles respectively.…

"Metaprogramming as a tool for refactoring Ruby on Rails controllers"

Google Place API for Android to Find City

I have seen the tutorial to find the city using autocomplete text view in android.i have done everything that is instructed but now when I hit this url. It always throws me an exception saying : java.net.UnknownHostException: Unable to resolve host “maps.googleapis.com”: No address associated with hostname but the same url work fine when i hit through browser and i am getting the results also. Here is the code I’m hitting with : public class…

"Google Place API for Android to Find City"

Changing the DHCP IP Address Range for VMware Player

VMware Workstation includes a utility called virtual network editor which can be used manage the virtual networks. VMware Player also had this utility but they decided to remove it and not by accident! It is an important utility since virtual machines will use NAT to automatically assign a virtual IP address that may or may not work for your network, it might collide with your network’s subnet. For the latest VMware Player the default range…

"Changing the DHCP IP Address Range for VMware Player"

Script for changing GNOME proxy settings

Most of us are working in corporate environments and corporate environments do love proxies. And I hate them; I hate setting them every morning I hate un-setting them every evening I am assuming that you also use the same laptop at work and at home. Since I am so sick of changing proxy settings every time, I created the following bash script to set and unset proxy settings. #!/bin/sh PROXY_HOST=$1 PROXY_PORT=$2 PROXY_USERNAME=$3 PROXY_PASSWORD=$4 # Your…

"Script for changing GNOME proxy settings"