Ruby or vs ||

I just discovered that there is a difference between or and || work: variable = this || that No work: variable = this or that This is one of those things that when you overlook, it will drive you insane.

Published
Categorized as Technology

Example curl JSON POST

A reminder to myself on how to craft a JSON POST using cURL. curl -i -H “Accept: application/json” -H “Content-Type: application/json” -X POST -d “{‘json’:{‘data’:’here’}}” http://theurl.com/to/post/to A good reference link.

Published
Categorized as Technology

How to show errors in php

ini_set(‘display_errors’,’on’); error_reporting(E_ALL); Just future reference in case you need to show errors in php when it is not enabled in php.ini. Otherwise you’ll get the uninformative “Server Error” page.

US Passport Status Check

Here is a great example of terrible of programming. The US Passport Status Check website http://travel.state.gov/passport/status/status_2567.html Get this. The “Last Name” field is case sensitive. Yes. Case. Fkin. Sensitive. I know that .NET is pretty outdated and all, but how fcking incompetent do you have to be to not know how to do a proper… Continue reading US Passport Status Check

Google Doodle Keys

Want to waste a few minutes of your life? Go here: http://www.google.com/logos/2011/lespaul.html Press the keys listed below Titanic: K KK K JK k JK L ; L K KK K JK k JK KL G Godfather Theme: D H K J H K H J H F G D Twinkle Twinkle Little star: AAGGHHG FFDDSSA… Continue reading Google Doodle Keys

Published
Categorized as Technology

GKM681R Review

I am in the market for a wireless keyboard with built-in trackpad or trackball. I found the GKM681R which looks like the predecessor to the GKM561R, which has 4 stars on amazon. The GKM681R seems to have more features and addressed many customer concerns present in the older model such as lack of right click… Continue reading GKM681R Review

Published
Categorized as Technology