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.
Archives
- April 2012
- February 2012
- January 2012
- May 2011
- April 2011
- March 2011
- December 2010
- October 2010
- September 2010
- June 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
Microsoft Access is nice for quick and dirty manipulation of data and merging data sets. It also has a lot of nice functions you won’t find in other versions of SQL. One of these functions is the First() function. Although not available in Microsoft SQL Server or Oracle, it can be emulated by other means.
Update: 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.