Eddie Peloke's Blog

Saturday, July 30, 2005

Beanboy

After seeing Marco's Beeblex, I was inspired to create a search engine for Java and Beanboy was born. It is still very early in development and I only have a handful of sites indexed, but it might be useful if you do Java development.

Development has been fairly easy so far as I have been utilizing nutch which is built on top of lucene. At some point I might pull out the nutch layer and use lucene directly but nutch helped me get up and running fast. I am currently running a crawl on about 30 Java sites which will hopefully finish up this weekend. If you are interested in checking it out, visit Beanboy. It is currently just running off an old linux box in my basement so forgive me if it is slow.

Monday, July 11, 2005

AJAX-safe for solid surfaces and Safari

While working on some code today I decided to use Ajax for one of the searches. It is nothing major, just a basic search that returns the matching results from the db as you type in the search params (the js is kicked off on the onKeyUp event). One thing I was surprised to find is Safari seemed to handle it all better than Firefox. They both worked ok for the most part, I just found that if I typed fast, Firefox sometimes seemed to get confused and even locked up one time while Safari handled it all very well. It didn't work at all in IE 5.2 but who cares about IE 5.2.....right?

Saturday, July 09, 2005

Dennis the Menace

As my family and friends in northwest Florida hunker down and prepare for Dennis to roll down their streets..please say a prayer that it will spare them the huge destruction they are still dealing with from Ivan.

I grew up outside of Pensacola, Florida and we went back for a visit this spring and it was amazing and sad to see the damage one storm can cause. Many people there are still working to get their lives back to where they were before Ivan hit so we are praying that this storm will be all bark and no bite.

Cruisin'

Our build process currently consists of an ant script that checks out the code from cvs and runs our unit tests. Next week I will add a task to generate the code docs as well but there really isn't much to it. While the build process is fine, I really want to strive for a continuous integration approach. I briefly looked at Rephlux but really want to give CruiseControl a shot. I know it is geared toward java projects but I am curious to hear if anyone is using it for their php builds. It is supposed to work with jUnit so I am not sure if it will know what to do with the SimpleTest output or not....might end up writing some java code to make it all PHP/SimpleTest friendly.

If anyone is using CruiseControl to handle your php builds, please let me know what you think or if you are using Rephlux and like it, let me know also.

Let's play catch!

Yesterday, I had a chance to play a bit with exceptions. I have used them before in java but never in php. While I only have the basics in my code now, I am excited about their potential. In the past, when I wrote a method, I would just return false on any type of error. The method did contain error checking but ultimately would just send back false to let the calling code know there was a problem. This works ok but causes the calling code to handle some level of error checking and doesn't really allow the caller to know what is going on......sort of like going to the doctor and simply hearing..."Yep, there's a problem" and then having him walk out the door. I am hoping that exceptions will allow me to better control the error checking and keep it closer to the methods causing the trouble....then again I have onlly begun to play and may hate exceptions tomorrow.

Now to go play catch with my code.