Skip to main content

Posts

Showing posts from July, 2010

How to count instances of an IP address in a log file

I was looking for a quick and painless way to determine what IP addresses used our web app the most and stumbled across this excellent post . I got reminded of the power of the command-line interface and that often, I underestimate the way these commands are supposed to make a sysad's life easier. So here's a quick tip for counting unique visitors to your web app. Locate your web app's log file and do a quick scan of the last few lines. In my case, this is what I saw: 112.198.79.223 - - [10/Jul/2010:00:57:29 -0400] "POST /v2/api/execute.php?method=upload_time&ver=win1.1.15 HTTP/1.1" 200 116 "-" "Mozilla/5.0" 117.241.112.254 - - [10/Jul/2010:00:57:30 -0400] "POST /v2/api/execute.php?method=timestat&ver=win1.1.15 HTTP/1.1" 200 288 "-" "Mozilla/5.0" 80.249.84.105 - - [10/Jul/2010:00:57:29 -0400] "POST /v2/api/execute.php?method=offtime&ver=win1.1.15 HTTP/1.1" 200 19 "-" "Mozilla/5.

The things Miguel does on a usual day

miguel1.mp4 Watch on Posterous In a month or so he'll be too big to fit in his laundry basket. He has his eye on the bigger hamper in our room. miguel2.mp4 Watch on Posterous He runs around and does the "happy feet". He also likes running while on top of the air bed, but I can't get any video of that yet as I'm too busy going after him lest he bounce too hard and hit the wall. miguel3.mp4 Watch on Posterous And he demands his time for "computer work". :)

Ever wondered how I look like after pulling an all-nighter?

via Gravity