Posts Tagged: perl


15
Mar 10

Keeping Social While Forgetting About Social Networks

If you’re anything like me, you’ve subscribed to all of the recent social media trends.  Starting with MySpace, evolving to Facebook and throwing a little Twitter in there somewhere along the way with a sprinkle of Buzz at the end and a forgotten dabble of Orkut and hi5 to keep your palette tasteful along the years.  Even more is you, like me, have probably joined each of your favorites together with a smidgen of application glue so you only have to update one network before it propagates out to piss off the rest of the network nodes you now call friends.  Sleepless nights patrolling the internet, looking for something witty, interesting or off-your-rocker stupid.  Like a predator searching for his next meal in the desolate brush of an African terrain, you must show all your social friends just how cool you are in 140 characters or less.  Well NO MORE, my friends .. no more.
Continue reading →


2
Mar 10

Don’t forget your stems, smokey

Maybe I’ve been in this industry too long. Maybe I’m a complete moron. Maybe it’s a little shade of both and some of a third. Who knows. The point is that everywhere I seem to look, nobody knows about one of the most useful word matching algorithms. Not text matching as that’s a horse of a different color. Words. Word. The difference is subtle, but it is something that seems to come up a few times a year over the past decade for me, where if I had known about it earlier in my career I would probably have more hair now. The difference is this: word matching, you want to match near-exact gramatical terms. Not necessarily something that rhymes or sounds similar (that’s a something else entirely), but words that are one in the same with different suffixes. Yeah, it’s a little weird and out there, but it’s a problem that seems to bolster its head about every once in a while and knowing about Word Stemming will make your life just a little easier. Again, maybe everyone learned about this in their infancy and I’m just an idiot. Though, every time I use it in a solution, I surprise at least one person… hence why I bring it up now.

Continue reading →


1
Dec 09

Configure Your Web Server to Merge, Cache and Compress Dependent Js and Css Files.

It’s a well known trick by most developers and sysadmins alike to merge your static files into one another to reduce communication overhead between your servers and your coveted visitors. The premise is a simple one: if you require clients to download six JavaScript files, pipe them into a single file and have them download the single file instead of six. You just cut your static request cycle down by 83%. Good for you. The truth is, there are a lot of ways to do this as it’s a pretty well known and practiced concept. The problem is there has never been a simple; language, application and framework agnostic method of doing this with minimal (to no) intervention. They either suggest you use built-in functions like the following, injecting the JS onto the literal page:
Continue reading →


16
Jul 09

Generating Heat Maps Using Perl

A while back, I worked on a project with a company I’m working for and it eventually evolved into something I released to Perl’s open archive network, CPAN and chatted about for my first SPUG talk.  Naturally, as the Conwaytistical Perl programmer I am, I figured why not write about it one more time for old times sakes.  Generally speaking, Google has already found the documentation for the module which is all I really figure is necessary to explain it.  The crazy thing is that people seem to be using this… a lot.  Likely for the same reason I made it: there are no programmatic alternatives that I could find.  With this unfortune comes the destruction of my inbox with questions and curiosities ranging from examples to the process I took for making this module in the first place.  All things considered, I’m happy to see people using the module but it turns out I’m a little lazy and don’t like responding to strangers’ questions all that much.  Born from that comes this page.  When the forces of this are combined with the perldoc, I’m no longer needed and can feel much more at ease with the temperature of my shoulder as I ignore the trickle of emails that come to me.  Lucky for you, I am a personal fan of direct examples that can be followed without the needless bloat of words, and this is what I’m going to (try to) do.  The only predicate to this instruction set is that we will assume you are going to map the US.  It’s possible to map the entire world, but we will only work with the US for now.  Go USA!

Continue reading →