Author Archive

Thursday, May 29th, 2008

Apache Tip: Blocking by User-Agent in Tomcat/mod_jk configurations

The key here is using Location (instead of Directory) for your Deny directive (otherwise your JkUnmount’d calls will not be blocked)

SetEnvIfNoCase User-Agent “Firefox” bad_bot

<Location “/”>
Deny from env=bad_bot
</Location>

No Comments » - Posted in Java by dkaz

Tuesday, February 5th, 2008

WTF/M - best code review stat ever

So damn funny, yet so damn true.

No Comments » - Posted in Programming by dkaz

Friday, November 2nd, 2007

Kids, Keyboards and Oscar Peterson

My oldest kid, a 2nd grader, has started taking some (group) piano classes on a trial basis.
She seems to enjoy it a lot, so I bought her a 5-octave keyboard, a stand and a seat - a $300+ investment.
As it happens, I played piano for 11 years as a kid, so this has also provided […]

2 Comments » - Posted in Personal, Video, Music by dkaz

Thursday, November 1st, 2007

phpmyadmin Tip #1: rename your phpmyadmin dir to something unique

Found in Apache logs…on a domain that doesn’t even have MySQL installed…

85.17.155.21 “GET /phpmyadmin/main.php HTTP/1.0″ 404 - “-” “-”
85.17.155.21 “GET /admin/main.php HTTP/1.0″ 404 - “-” “-”
85.17.155.21 “GET /myadmin/main.php HTTP/1.0″ 404 - “-” “-”
85.17.155.21 “GET /phpMyAdmin/main.php HTTP/1.0″ 404 - “-” “-”
85.17.155.21 “GET /PMA/main.php HTTP/1.0″ 404 - “-” “-”
85.17.155.21 “GET /admin/phpmyadmin/main.php HTTP/1.0″ 404 - “-” “-”
85.17.155.21 “GET […]

3 Comments » - Posted in Programming by dkaz

Wednesday, September 12th, 2007

Top 10 Actors of Our Generation

Argued about it at work today…here’s my list…in no particular order…
These are the men at the top of their game (therefore Pacino, Nicholson and DeNiro are not present)

Leonardo DiCaprio
Christian Bale
Sean Penn
Russell Crowe
Philip Seymour Hoffman
Brad Pitt
Forest Whitaker
Paul Giamatti
Johnny Depp
Jude Law

5 Comments » - Posted in Movies by dkaz

Thursday, August 16th, 2007

Skyler’s B-day….Animoto’d

I tried out a new video mixing service, Animoto, tonight.
I have it to give it very high marks for ease of use, because even my first video (created during “So You Think You Can Dance” commercials) came out way better than I expected.

2 Comments » - Posted in Personal, Video, Music by dkaz

Friday, June 1st, 2007

Surface Computing - Future of Microsoft?

Most brilliant work from Microsoft in years…

UPDATE (6/2/07): The Register questions whether all this hype about Surface Computing is more “smoke and mirrors” than actual breakthrough. Good reading.

2 Comments » - Posted in Technology, Interesting by dkaz

Thursday, May 24th, 2007

Linux Tip #7: For loop on a range of numbers

Little know seq (sequence) utility is a great way to loop on a range of numbers in Linux. It came in very handy today and will hopefully stick in my brain in the future.
for i in `seq 1 10`
do
..
done

No Comments » - Posted in Linux, Programming by dkaz

Wednesday, May 16th, 2007

“Different” use of the ternary

Amusing use of the ternary from our codebase..
log.debug( ( randomize ? “R” : “Not r” ) + “andomizing content” );
:)

1 Comment » - Posted in Java, Programming by dkaz

Saturday, April 28th, 2007

Bugatti Veyron - Hold on to your seat watching this clip!

Great car TV show on the planet - TopGear - presents an incredibly enthralling clip of the fastest car on the planet - Bugatti Veyron.
Watching clips of “Top Gear” makes you wonder why the show is nowhere to be seen in US. Come on Discovery, buy rights to this damn thing instead of spending money […]

2 Comments » - Posted in Interesting, Video, TV by dkaz

Tuesday, April 3rd, 2007

Quite Thrifty

Facebook development team has open-sourced their light-weight, cross-language development platform, Thrift.
I played around it with it for a while and it looks interesting enough, but I don’t have an immediate need for it.
Check it out if you have a cross-language environment Thrift currently supports C++, Java, Ruby, Python and PHP - a list that should […]

No Comments » - Posted in Java, Ruby, Python, Programming by dkaz

Sunday, April 1st, 2007

10 Most Polluted Places in the World

Great article from The Guardian about Linfen, China puts a spotlight on some of the world’s scariest places to live.
Blacksmith Institute has a full list of world’s most polluted places here.

No Comments » - Posted in Current Events by dkaz