Skip to content


Modifying the JavaScript String Prototype

When manipulating strings in JavaScript, it is often necessary to perform certain functions to escape characters, decode them, and perform other string manipulations. JavaScript makes it easy to modify the String prototype, making it possible to create new methods on String types. As of late, I’ve preferred this method (pun intended) over creating custom functions.

Read More »Modifying the JavaScript String Prototype

Playing the Empire Avenue Social Media Exchange

Update: e(RINGLE) has incorporated my algorithm into his P3 for Empire Avenue Chrome extension. Use his extension instead of mine, because it includes what I built and much more! If you already installed mine, be sure to uninstall it before installing P3, or some weird things can happen.

Recently, I started playing in a fantasy social media stock exchange, called Empire Avenue. It took me a while to get a handle on what moves the prices, and I’m still learning. With some help from Chris Pirillo, I think I’ve finally got a good handle on it and he’s helped me start a tool that can help you build a sound Empire Avenue portfolio too.

Read More »Playing the Empire Avenue Social Media Exchange

Urban Rivals Market Bot

urban-rivals-logoUpdate: Shortly after I posted this, the good folks of Urban Rivals politely asked me to remove the post and I politely declined. About a week later, someone informed me changes were made to the market, and the first few sales for each card are now displayed as images rather than HTML. He said up until then, the bot was working great for him, but the changes to the market have caused the bot to stop working. Unless someone is able to fix it with some sort of image to text JavaScript library (I think there are some libraries that do this w/ captchas), the script is effectively dead. I will leave the source posted, in case someone is able to repair it.

Some time ago, a friend got me into an online card game called Urban Rivals. It is similar to other card games such as Magic the Gathering, but played online either via iPhone/iPad app or in your browser. One aspect of the game that quickly got my attention (other than the game itself), was the card marketplace where you can buy and sell playing cards.

It didn’t take long for me to realize that it was an inefficient market. Profitable trades presented themselves quite regularly, and with a bit of automation it would be easy to take advantage of the market. I proceeded with developing a Google Chrome extension that would allow me to do so, and it worked quite well.

Read More »Urban Rivals Market Bot

Google Fusion Tables Could be a Game Changer

fusiontables_logo Google has been very busy lately with many new products recently. Many of them, such as Google Public DNS, Google Chrome OS, and real-time search have received the lion’s share of publicity. I’d like to talk about a little jewel sitting in Google Labs you may not heard of. It’s a shiny little jewel that could become a real game changer and not many people are talking about it yet: Google Fusion Tables.

Read More »Google Fusion Tables Could be a Game Changer

Make Cross-Domain AJAX Requests with xdRequest

xdRequest is an open-source JavaScript library that I’ve developed for making cross-domain AJAX requests. In this day and age, with web browsers becoming very fast and powerful, it has become quite possible to build web applications with much of the work performed by the client. xdRequest makes it possible to easily pull data from other sources and manipulate it all on the client-side. With xdRequest, you will no longer need to perform data extractions/manipulations from other sources on a server. It can all happen right in the browser.

Read More »Make Cross-Domain AJAX Requests with xdRequest