Single Table Polymorphic Inheritance with ActiveRecords Implementing a single table polymorphic inheritance in rails is dead easy.
Simply do
class Fruit
or if you a migrating...
class Fruit
Now, all you have to do is to create your sub-classes
class Fruit
Don't forget to put Apple in a separate fi...
GreenMail v1.3 Released This release contains minor changes to GreenMail core, most notable the introduction of slf4j for logging.
New in this release is a JBoss service for GreenMail.
The service runs GreenMail as a lightweight mail server sandbox, nicely suited for develop...
Internet Explorer 6 & 7 document.domain bug Disclaimer: Im not sure this a bug discovery...couldn't find anything that resembled it after a couple of minutes of googling, or a super silly security restriction.
I've been coding some javascript ajax code that inserts an iframe, and into the creat...
RXTX on Gumstix
Since it could be tricky to get the RXTX sources compiling properly for the gumstix platforms I thought I'd spare anyone the pain by providing my binaries.
librxtxSerial_PXA255...
Groovy vs BeanShell Below is a quick and dirty test to compare the speed performance between bean shell and groovy. Bean shell is an order of magnitude faster. If you don't need groovy closure and other nice groovy features...just use bean shell. It's only one small jar a...
Recent Responses
Re: Using AJAX with CAPTCHA - AJAX Security Part 3 of 3 I like it, might be easier for people if you put clipart instead of actual pictures. You could put three clipart pictures in each block and name the three in the steps.
Also maybe make the dot a little bigger or make it an asterisk or something.
Cool...
Re: Subtle Guarding Error The code should be correct since the GuardPost constructor is using GuardPost(Semaphore& _s) as opposed to GuardPost(Semaphore* _s)
Re: Subtle Guarding Error There is a programming error in the non-lazy guard: the object needs to store a reference to a semaphore, not a semaphore. Currently, a copy of the semaphore gets locked and released, which probably is not what you want ;-)
Re: W AJAX design pattern What if the browser doesnt have access to the 3rd party server directly?
In our case we were submitting regional demographic requests to esri which costs money.
Re: RXTX on Gumstix Hey, I'm about to run a SunSPOT on an gumstix. Suns SDK for SunSPOT makes use of rxtx. Do you know anything about this exception?
-run-spotclient-once...
Re: DisplayTag Paging If you want to get the current page for a particular table you can use the following:
int curPage = Integer.parseInt(req...
Re: Subtle Guarding Error Is this truly an anti-pattern?
Looks like a bug, rather than an anti-pattern to me. What the author is trying to do is okay, but they made an implementation mistake.