Enterprise Ruby on Rails

Enterprise Ruby on Rails Various things over the past few weeks (MinneBar, discussions, encouragement) led me to put together an outline for a Ruby on Rails book/wiki. Basically, it would explore challenges that are relatively uncharted on the RoR platform, but are well known among .NET / Java folks. Up... [Read More]

Harnessing The Power of Maven2 Through Antlib

Harnessing The Power of Maven2 Through Antlib Maven is a powerful platform, however it is unforgiving to existing projects developed outside of its archetypical, convention based paradigm. In the event of being constrained to the Ant platform by budget or other external forces, all hope is not lost. Maven2's Antlib... [Read More]

A Sane Way of Using EJB3 Named Queries

A Sane Way of Using EJB3 Named Queries Start off by putting the @NamedQuery annotation on your entity classThen add a corresponding entry to your NamedQueries class along with a comment. You'll notice that the value of the constant is the named attribute we provided to the @NamedQuery annotation above.The... [Read More]

10 Minutes With BIND

10 Minutes With BIND Today I decided to spend a little time getting a nameserver set up for my local network, because typing IP addresses is annoying. To my surprise, BIND is installed on FreeBSD systems by default so I got to forego that step and move straight to the... [Read More]

EJB3 Entity Callbacks for Password Fields

EJB3 Entity Callbacks for Password Fields After about an hour of pounding my head over how I can automatically encode a stored password after it has been modified I came up with what I think is a pretty clever solution (though hopefully not the best, let me know if you... [Read More]

Lighttpd+FastCGI PHP5 Is Faster Than Apache2+mod_php5

Lighttpd+FastCGI PHP5 Is Faster Than Apache2+mod_php5 Today I was benchmarking my upcoming PhpFaces code and was thoroughly impressed by the numbers returned by apachebench; until I started testing concurrency, that is. I tested a simple phpinfo() call with various levels of concurrency and was shocked to see that the problem... [Read More]

Half Baked Idea About PHP Shared Memory

Half Baked Idea About PHP Shared Memory I had a seemingly interesting idea for an isolated runtime environment for PHP. One could conceivably create a master/slave configuration where the master forks child processes and is able to 'reload' classes after a code change. It would work like PHP shared memory... [Read More]

What the heck is JMX?

What the heck is JMX? JMX, or Java Management Extensions, is a nifty, somewhat underappreciated part of the J2EE spec. It is the only part of the spec (that I know of) that is not designed to respond to requests or events; the closest thing to JMX is JMS (message... [Read More]

Use Generics For Patterns

Use Generics For Patterns This evening I made a fun discovery in Java which I've never read about before (though surely it's been done, and was probably an intended use). It involves using generics and interface inheritance to ease (and enforce) the use of patterns.Create a generic interface:public interface DAO... [Read More]

J2EE Status Update

J2EE Status Update I haven't mentioned it on this blog, but my colleagues know I've been serious about learning J2EE and I'd just like to report to them here that it's going phenomenal. After just a few weeks I feel pretty comfortable that I know what's up in the land... [Read More]