Archive for January, 2010

Dear Priceline: Seriously, WTF?

Tuesday, January 26th, 2010

Dear Priceline, You really can't do better than $680 for a flight from LAX to Vegas? Seriously, why is this the #1 listing? For those of you who aren't aware, it's a 1 hour flight that normally costs $60 each way. Southwest (cropped out middle prices for simplicity) Lame.

The Lack of Flexibility of Stored Procedures in MySQL

Wednesday, January 6th, 2010

Over three years ago I wrote about how you cannot use a stored procedure in a subquery. Well, it's 2010, and I'm still annoyed by this and a handful of other things. I was just working today on a report consisting of a series of queries, taking about a minute ...

Redhat/Centos: Control Apache Startup with Chkconfig

Tuesday, January 5th, 2010

Copy apachectl (or symlink it) to /etc/init.d/httpd, and add these two lines at the end of the comment section: # chkconfig: 2345 64 36 # description: script for starting and stopping httpd chkconfig --add httpd These commands will now work: service httpd start service httpd stop Additionally, apache will start when the system boots. You can ...

Linux/OSX: find out what network ports are in use

Tuesday, January 5th, 2010

To get a quick idea of what ports you have open on your local box, you can use nmap. ~ jhaddad$ nmap localhost Starting Nmap 5.00 ( http://nmap.org ) at 2010-01-05 11:06 PST Interesting ports on localhost (127.0.0.1): Not shown: 499 closed ports, 492 filtered ports PORT STATE SERVICE 80/tcp ...