News for hackers. Stuff that matters.
Re:Company withdrawing from Facebook as analytics show 80% o... by wpietri on Monday July 30, 2012 @12:57PM (#4313294)
This could be a businessperson's interpretation of what happened.

Or they might have indeed reinvented it. Kids these days and their Heroku! Back in my day we'd process each HTTP request by hand. And we'd do it uphill both ways in the snow.

Re:Company withdrawing from Facebook as analytics show 80% o... by vampirechicken on Monday July 30, 2012 @01:18PM (#4313440)
using awk.
Re:Company withdrawing from Facebook as analytics show 80% o... by jlgreco on Monday July 30, 2012 @03:09PM (#4314095)
Hey now, awk is simply lovely. It's ridiculous how popular it is to slight it these days.
Re:Company withdrawing from Facebook as analytics show 80% o... by dredmorbius on Monday July 30, 2012 @06:22PM (#4314989)
Indeed.

Most of the parsing required for the logfile analysis I describe is written in awk, and goes through roughly 1 million lines of logfile in about 75s on a commodity 2Ghz Intel Xeon.

Pre-caching of host lookups is done via xargs and a suitably high '-j' value. Running on a pre-sorted and de-duped list of IPs, this takes another few minutes. Lookups are read into hash tables for faster processing in the main awk parser (avoids system calls, DNS latency, and especially negative result caching failures).

It's fast and simple. Not a 100% solution, but quick to add bits to over time as new needs arise.

Re:Company withdrawing from Facebook as analytics show 80% o... by vampirechicken on Monday July 30, 2012 @06:09PM (#4314942)
How does 'using awk' count as a slight?

It was the proper add-on to the previous comment kids today don't learn awk. Becuase they have Perl, Ruby, and Python which are supersets of the unix command line tool set. Awk was the king in the years before Perl.

I never really learned to use cut, so I sitll use awk for one-liners the deal with columns in delimited-data text-files.

Re:Company withdrawing from Facebook as analytics show 80% o... by jlgreco on Monday July 30, 2012 @06:11PM (#4314954)
Sorry, I read it as a slight because it came right after "uphill both ways in the snow".
Re:Company withdrawing from Facebook as analytics show 80% o... by vampirechicken on Tuesday July 31, 2012 @02:46AM (#4316037)
Which usually precedes "Get off my lawn!"
Re:Company withdrawing from Facebook as analytics show 80% o... by vampirechicken on Tuesday July 31, 2012 @11:47AM (#4317828)
Anyway, if I want to take gratuitous pokes at a language, I usually choose XML; sometimes java.
Re:Company withdrawing from Facebook as analytics show 80% o... by vampirechicken on Wednesday August 01, 2012 @12:05PM (#4323690)
Which, of course, I've just been informed is the "preferred" integration language for the project I'm presently working on. Sigh.
Re:Company withdrawing from Facebook as analytics show 80% o... by tripzilch on Monday July 30, 2012 @07:16PM (#4315198)
You had awk? Ha! Luxuries! Why when I was a young programmer we had to write the code in the snow with our pee, and a compiler was just a word for the pilot of the hovering dirigible that read the instructions and passed them to the ALU, which was another fellow with an abacus. They would wrap the re- sults around a rock, and drop it on my house when the program would exit. We had to walk uphill...
Re:Company withdrawing from Facebook as analytics show 80% o... by scribblemacher on Monday July 30, 2012 @01:31PM (#4313513)
Using butterflies: http://xkcd.com/378/
Re:Company withdrawing from Facebook as analytics show 80% o... by jeffbarr on Monday July 30, 2012 @01:35PM (#4313538)
With VB6 you can check IP Addresses.
Re:Company withdrawing from Facebook as analytics show 80% o... by fsniper on Monday July 30, 2012 @01:54PM (#4313658)
Please guys. This is not Reddit.
Re:Company withdrawing from Facebook as analytics show 80% o... by Karunamon on Monday July 30, 2012 @05:08PM (#4314698)
Damn straight. Cheap jokes are not allowed.
Re:Company withdrawing from Facebook as analytics show 80% o... by jamiecurle on Monday July 30, 2012 @02:39PM (#4313926)
And that is how to do a c-c-c-c-c-combo breaker on Hacker News.