By barneyb on May 21, 2009
Image manipulation is a common tasks for web applications, usually centered around creating and managing thumbnails (of photos, PDFs, videos, whatever). Photo manipulation is a subset of image manipulation, and has a couple aspects that differentiate it other types.
First and foremost, photo quality is of high importance. Contrast this with creating a thumbnail of a [...]
Posted in development
By barneyb on April 10, 2009
Ever done functional programming? Chances are you'll say "no", but you'll probably be wrong. Javascript is a functional language, and while a lot of people use it in a procedural and/or object oriented way (\me raises hand), it's foundation is functional. Same deal with ActionScript. Used Groovy? Ruby? Python? None are functional (let [...]
Posted in development, groovy
By barneyb on April 6, 2009
If you read my blog regularly, chances are you write software and therefore can't, because your tools don't exist in the visual world. They're just magic strings of minuscule magnets on a rapidly spinning chunk of plastic…
I took my chef's knife to the sharpener a few days ago. Cost a whopping $4 to have him [...]
Posted in development, personal, tools
By barneyb on March 17, 2009
Ray Camden posted an interesting article over on InsideRIA about expanding short urls using jQuery and ColdFusion. After reading the article, I thought he was overcomplicating things somewhat by relying on the url shortening services' APIs to do the lookups. Yes, that's what APIs are for, but for this case, HTTP happens to be a [...]
Posted in cfml, development, javascript
By barneyb on March 17, 2009
In Spring 1.2 (and ColdSpring, which emulates it), you have the "singleton" attribute, which was a boolean flag for whether a bean is a singleton (the default) or a prototype (instantiated afresh for every getBean call). If you've used Spring 2.0+, you've probably come across the "scope" attribute, which supersedes the "singleton" attribute, and allows [...]
Posted in cfml, development, tools
By barneyb on March 5, 2009
Project Euler is a collection of mathematics/computer science problems, as you probably already know. I've solved almost 50 of them so far, and I've developd a collection of utilities to make my job easier. Some of them (factorization routines, prime generators, etc.) I'm not going to share as they are fundamental to solving certain problems. [...]
Posted in development, groovy, java, project euler
By barneyb on February 5, 2009
In my ongoing rampage through the Project Euler problems I've needed a prime factorization routine several times, and figured I'd share it as a complement to the sieve I shared last week. Implemented in Groovy, of course. Typing is a little strange on first glimpse because Groovy uses Integer by default which only supports values [...]
Posted in development, groovy, project euler
By barneyb on February 5, 2009
In the comments to my post about my prime sieve from last week, Duncan pointed me to Project Euler, which is a collection of math problems that you can solve. Not sure if it makes me crazy that I think it's really cool, but I do. Even better, once you solve a problem, you gain [...]
Posted in development, project euler
By barneyb on February 4, 2009
This is the final expected RC for CFGrovoy 1.0 and includes a couple more API tweaks (backwards compatible, of course). Bad form to do this right now, but like the attributes-to-params change, I want to get them in before the 1.0 release so I can build the next round of enhancements without mucking up the [...]
Posted in cfml, database, development, groovy, tools
By barneyb on January 29, 2009
Ok, it's really Eratosthenes', but it's my implementation (in Groovy, of course) along with simple display (in CFML, of course), and can be found here (with full source, of course). If you just want to see the core sieve, here it is ('bound' is the upper range of the search):
class Node {
[...]
Posted in cfml, development, groovy