Recently, I’ve become very interested in iPhone web app development and Grails, so I decided to merge the two into a little project. Using Grails, jQTouch, and jQuery, I built an application to search a variety of torrent portals and aggregate the results. I could describe the application, but why not just head over to [...]
Ever need to parse some HTML is Java or Groovy? No matter what the source, you’re almost always guaranteed to get bad, unformed garbage as a response when scraping. Rather than ditch XML readers and bust out regex, you can transform this data into good xhtml with tools like TagSoup. The following class is a [...]
Your IDE can do more. Recently, I decided I had a need to build a quick web service to back an AJAX application for iPhone that I’m developing. jQTouch is making the front-end work pretty simple, but I just wanted a super fast way to get a web service up and running that would be [...]
From oauth.net, OAuth is An open protocol to allow secure API authorization in a simple and standard method from desktop and web applications. Unfortunately, as it turns out, OAuth is neither simple nor standard in practice. In case you don’t care to read the tutorials, OAuth works something like this: You request a consumer key [...]
Back from China, I’ve resume my normal programming schedule. I’m working through Pragmatic Bookshelf’s Programming Ruby, and there’s a lot more to ruby than I initially gave credit. For example, consider the following: str = ‘an’ * 3000 + ‘garbage’ + ‘an’*3000 r = /(?<pattern>.*) #The first part (?:.*?) #Garbage \k<pattern>/x #The first part, repeated. [...]
XSLT is a method of transforming XML with a set of rules, functions, and selectors. Transformations can be complex or simple, but the benefit of using XSLT is immediately obvious after first use. Consider the following: <posts> <post> <title>XSLT!</title> <description>A short post about XSLT</description> <content date = "01/03/2009"> Lorum ipsum </content> </post> <posts> The naive [...]
This month, I decided to go more in-depth with Spring and SpringMVC and model the web services for a CMS/Shopping Cart system. With Spring, Tomcat, XOM, and JUnit, I was able to speedily throw together a modular, DI-driven web service that implemented a simple web service interface without needing to worry about database details or [...]
If you’re like me, you heard about this language on the Java Posse Pod-cast (link), and you’re just now trying to figure out what all the hubbub is about. Well, Scala is functional, declaration, strongly typed (although it doesn’t feel like it), and most importantly, a JVM language. it compiles to Java classes, and with [...]
Doesn’t that subject line look crazy? Well, in Objective-C, methods, properties, and members are accessed with maniacal brackets. This is fine, aside from the fact that you need to know how deep you’re going to chain a method call BEFORE you actually do it, as otherwise you have to go back and add the correct [...]
Lorum Ipsum and such jQuery has plugins. Lots of them, in fact. The jQuery plugin page lists hundreds of additions to the base jquery package. These plugins make web development even easier and more glamorous than jQuery alone, doing splendid things like Show dialogs. Now isn’t that cool? jQuery plugins let external authors write neat [...]