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.
Category: Technology
Gaming the GoDaddy Facebook Fan Page $1 Coupon
The other day I saw GoDaddy giving out “$1 for a domain” coupons if you “liked” them on facebook. That’s cool. I love $1 domains. But I don’t “like” anyone on facebook. So after almost an of poking around and reading their javascript, here is what I discovered. (Btw, this does not work anymore, so… Continue reading Gaming the GoDaddy Facebook Fan Page $1 Coupon
How to download amazon s3 files with the AWS::S3 ruby gem
The AWS::S3 gem is very convenient, but it was not immediately apparent to me how you could use it to download private files from amazon s3. It took me a while to figure this out, so hopefully it will help someone. 1. Connect to your s3 as usual 2. Find the file: file = S3Object.find… Continue reading How to download amazon s3 files with the AWS::S3 ruby gem
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.
When I got sued by GM and screwed by Godaddy
When I first heard of the “Chevy Volt” I went on Godaddy and bought the domain name “chevyvolt.org” — I would have bought “chevyvolt.com”, but it wasn’t available. GM had already bought it. I worked on chevyvolt.org for almost two years, as a fan site, adding content to it and creating a robust site that… Continue reading When I got sued by GM and screwed by Godaddy
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
Local newspaper websites needs a down vote button
Sometime I like to browse the local newspaper to read stories about my area (specifically the Sacramento Bee and Davis Enterprise). I also like to read the user comments about the stories because I hope to get a local perspective on issues affecting my neighborhood. Although most of the comment systems have a like/upvote option,… Continue reading Local newspaper websites needs a down vote button
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