Nice succinct blog on ROR debugging techniques, saving it for future reference.
Jotting this down for fellow googlers. I recently started learning a bit of python and wrote a small script to fetch the latest tweet. When you are new to a programming language, it takes time to grasp some errors. If you see this error while parsing json using python and simplejson, the problem possibly is that, the json is actually encosed in a list
[ ]. If you look carefully, you’ll see your json data (pyton dictionary datatype) is actually enclosed in a python list datatype. The following code will reproduce the error. Continue reading
Being a longtime C programmer, I love printfs. Printfs are the quickest way to debug simple bugs. Here is my WordPress version of Printf. This 3 line function ensures that it will spew junk only if you are logged in as the Administrator. Continue reading