'prog' Category

  • m.stefankendall.com – My iPhone web apps

    May 22, 2010

    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 [...]

  • Easy HTML web scraping with Groovy and Java. (w/XOM)

    May 5, 2010

    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 [...]

  • Grails: Absolutely pure productivity.

    April 30, 2010

    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 [...]

  • OAuth is a joke.

    March 13, 2010

    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 [...]

  • Ruby and named regex matched groups.

    February 17, 2010

    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: How you should be transforming XML into HTML.

    January 5, 2010

    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 [...]

  • Spring 2.5 with SpringMVC

    November 19, 2009

    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 [...]

  • Scala – fun, powerful JVM fun

    October 12, 2009

    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 [...]

  • [[Objective-C prog] with: iPhone and: iTunes release]

    September 16, 2009

    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 [...]

  • jQuery: Plugins.

    August 19, 2009

    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 [...]

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org