Skip to content


Club Nintendo Fail!

Much like many people, I got a Nintendo WII for the holidays and much like most of those people I attempted to signup for club nintendo – club.nintendo.com. I say attempted because nintendo doesn’t seem to know how to run a java web application or they didn’t plan for the kind of hit their application would receive after the holiday rush. I have been trying to register my wii serial number with them to extend my warranty and create my family account all day only to be met with 500 error after 500 error. The worst part is that they didn’t even create a custom error page. It is the standard error document. You will also notice that there was a 404 when the server attempted to fetch the error page it is supposed to display. It is bad enough that they can’t keep their app servers running but because of the sorry error document handling, I FAIL YOU NINTENDO!

Posted in Video Games.

OpenWRT and DynDNS

I have a Linksys WRT54G router and thanks to OpenWRT, its just about the best piece of home networking hardware I have. I recently moved and had to switch to DynDNS account for OpenWRT was very heavy. I’m an Engineer so I decided to make a really simple implementation of 2 scripts. A checker that runs every 15 minutes to verify that DynDNS is up to date and an updater script to update it if that check fails. After reading the api documention on DynDNS.com, I realized that it should be cake. Put them both in the /bin directory on your router. Here are the files.

(substitute your parameters)

Lastly add this to your /etc/crontabs/root file:

0,15,30,45 * * * * /bin//check_dns.sh > /dev/null
0 1 * * 1 /bin/update_dns.sh > /dev/null

The first line will add your check for every 15 minutes and the second will run the update every Monday morning at 1:00A.M. to keep your account up to date.

And there you have it. Easy and simple. The lightest weight DynDNS updater for your OpenWRT router.

(P.S. You can use this on any *NIX system with a little tweaking)

Links:
OpenWRT – http://openwrt.org
DynDNS – http://dyndns.com
Gist Repo – http://gist.github.com/14091

Posted in Tech.

I want my ruby

I have been working on a jms consumer for a tibco server that can monitor and do some calculations on the fly based on what is on the bus and I am going insane. I have to write the thing in java and I want remove my eyes with a spork… I forgot how annoying static languages are and all I want is my ruby language back. Why does tibco jms have to be so java… I would settle for python at this point. I hate java.

public void static main(String[] args) {
System.out.println(“Kill me”); }

Posted in General, Tech, Web.

Building my own Talky Boxy

After much downtime I have been working on a new album in my head and listening to some really good new music that has inspired me at a whole new level. I hear music in my head that I cannot wait to get out and on to tape…ok the computer but still… I have decided that the vocoder is not going to cut it for what I am hearing. I need a talk box. For those of you who don’t know what a talk box is I will explain. A talk box, in it’s simplist form, is a speaker that outputs sound through a tube. You then put the tube in your mouth and use your mouth to shape the sound. Most people feed the talk box with a guitar (like the Bon Jovi song) or a synthesizer (like California Love). How does someone build one you ask? Check out this site: http://www.mocheez.fr/I%20Play%20The%20Talkbox/Custom.html

I will post my pictures, videos, expierences, etc as I get around to doing the project. As of right now, I need to finish unpacking all my stuff; household as well as recording (Just moved to the valley of silicon).

Just to give an idea of what has inspired me check out these artists:
Squarepusher – http://www.myspace.com/akais5000
Daft Punk – http://www.myspace.com/daftpunk
The Society of Rockets – http://www.myspace.com/thesocietyofrockets
Girl Talk – http://www.myspace.com/girltalk

as well as the usual hardcore, metal, emo, etc influences…

You can find all the aforementioned music on my myspace profile playlist – http://www.myspace.com/deceptivedream

Posted in General.

Getting TinyUrl’s in Rails

If you have used twitter I am sure you have noticed that if you post a long url in your update it gets turned in to a tinyurl for you. This is really cool functionality and I have created a helper in rails to do it for me.

First, let’s talk about how you get a tinyurl. Tinyurl has a really simple api that you can call that will return a tiny url. It is rediculous how simple it is. You just call this url with a GET: http://tinyurl.comapi-create.php?url=http://example.com

The returned page will be a single line with the tinyurl equivalent. It is that simple. Now on to the rails part.

In your application.rb helper you would add this:

require ‘net/http’
require ‘uri’

def tinyfy(newurl)
   url = URI.parse(‘http://tinyurl.com/’)
   res = Net::HTTP.start(url.host, url.port) {|http|
   http.get(‘/api-create.php?url=’ + newurl)
   }
   if res.body.empty?
      #tinyurl is not responding properly… Return the original url
      return newurl
   else
      return res.body
   end
end

Now if you call the tinyfy method in your app, let’s say in your view, with the url you want to tinyurlify as the parameter the return will be the tinyurl. I take this one step further and have the tinyfy method make the url a link by adding the ‘a’ tags in the method like so:

require ‘net/http’
require ‘uri’

def tinyfy(newurl)
   url = URI.parse(‘http://tinyurl.com/’)
   res = Net::HTTP.start(url.host, url.port) {|http|
   http.get(‘/api-create.php?url=’ + newurl)
   }
   if res.body.empty?
      #tinyurl is not responding properly… Return the original url
      return ‘<a href=’ + newurl + ‘>’ + newurl + ‘</a>’
   else
      return ‘<a href=’ + res.body + ‘>’ + res.body + ‘</a>’
   end
end

That will return a nice linked tinyurl in your view. That is all there is to it.

Posted in Rails, Tech.