Mixing google places and jQuery will lead to frustration

May 27, 2012, 1:30 p.m. Google , jQuery

var input = document.getElementById($("#from"));var autocomplete = new google.maps.places.Autocomplete(input, autoOptions);If you are familiar with both jquery and google places javascript API, you will raise your eyebrows wondering why I am posting such trivial code in this blog. If you really know ...

Ruby Symbols

May 14, 2012, 7:28 a.m. Ruby

In my learn Ruby in 48 hours project, I left one black box unopened, Now I am attacking it with a hammer and chisel. It's those tiny little ':' symbols scattered all over ruby code that's bugging me. You find them in many different tutorials and books with little or no explaination.Sample codes that ...

Toshiba L655D Toast

May 13, 2012, 6:25 a.m. L655D , Macbook , toast , toshiba

Well, been an year since I had this Toshiba L655D, which was a replacement for my dead macbook. What replace a macbook with a Toshiba? yes. That's pretty obvious! Though I used to own a mac doesn't mean I am a fan boy. At the time the Toshiba was bought, it was more powerful than the Macbook and per ...

Iterators and Generators and Yields

May 12, 2012, 3:04 a.m. Python , Ruby , Threads , Yield

Both python and ruby have a yield which is thoroughly confusing to Java programmers and looks like the stuff that nightmares are made of. But eventually you realize that it isn't so bad after all. But before we deal with our nightmares, we to look at iterators.Python for loops look so nifty thanks t ...

Python functions

May 8, 2012, 3:59 p.m. Python , Ruby , vargs

We've already taken quick glance at python functions elsewhere, and know that they are created with the def keyword, can have default parameters and which part of the code belongs to the function is identified by it's indentation level When using default parameters, the PHP approach is that you nee ...

Python Packages, Modules and Classes

May 4, 2012, 3:32 a.m. Python

Modules Python says Don't Repeat Yourself. This is made possible by module. A module is just a python script that is 'included' into another one. The syntax for doing that though is with the import keyword. For example if you have a file named crazyModule.py with some code in it you can import it in ...

Django

May 3, 2012, 7:25 a.m. Django , Python , ROR , Ruby , Zope

On thursday morning I set out to learn python and by saturday morning I had read through the official tutorial on the python website as well as gone on numerous side trips on additional references. Blog posts are still paying catch up. You will not find me writing a killer python app in a few days b ...