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...
Re: Tom Riddle's Magical Diary Comes to Life with AJAX You people have a little too much time on your hands. May I suggest going for a jog? Eating? Watching TV? Go bowling? Rent a sailboat? Go for an airplane ride? ANYTHING! You guys are completely nuts! Go do something with your life, don't be so obsessed...
Re: Tom Riddle's Magical Diary Comes to Life with AJAX i just wonder how you think of the relationship bettween harry and blike
when you read the scipt and play your roel.
Also,do you have another plan after you finish acting in HP?
Re: Subtle Guarding Error No, Evert is quite correct. The member variable is a value, so it will be constructed using a copy constructor -- a new Semaphore instance. The member variable should be a reference as well as the constructor parameter.
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...