Monthly Archives: August 2010

A Facebook Group Opt-In Widget

I thought I’d try this out first on this blog and get some initial reactions. It’s part landing-page big in-your-face button, part friends profile gallery… anyway, it’s a call to action!

If you’re a domainer who’s looking for some extra WordPress Plugin Swag, then JOIN the API Domainers on Facebook today!

[box]
[right]
[button href="%joinurl%"]Join[/button]
[p clear]
Join the
API Domainers

on Facebook!
[/p]
[/right]
[fb_group_gallery count="15" columns="5"][/box]

I Caught the MailChimp Chimp!

Signing up for MailChimp today, there’s a brief “loading” screen before you reach your admin control panel. It’s a retro-ascii chimp progress bar!

...................................'<=zzzz=+==<.............
.................................'=hhhzzzs=+=(s'............
................................-hhhhhDDDz+~+((.............
................................=DDDDDDhhzs+ss<.............
.............................'~(DBDDDBBDBNNNNNND=-..........
............................-zhzhDDDDhhzzzzhDBNNNN~.........
............................=D+~+DDDhhzzzzs==sNNNB~.........
............................sh'-sDDDhzz=(~<==+zz<'..........
............................+D-+BDDhhz+----(++-.............
.............................zhhDDDhhz(~~((-(<'.............
.............................=BDDDDhhz(~-=<--'..............
.............................sBDDDhhzh+-~s~'<~..............
.............................sBDDhhzs+(''-'.+~..............
.............................=BDDhzs(-''''.-'...............
.............................+BDhhz('~~''..''...............
.............................-DDhhs---((''..................
..........................-+zshBhhs----(<-'.................
.......................(+zhhzzzDDzz~----~((~-'..............
.....................-sDDhhzs=shDhz+-~------~'..............
....................<hDhDhhzs+sDDhhs(-------................
...................sDDhDhhzssshDDhhhz+~~-~-.................
..................(DhDhhhzzzszhzss=szh=('...................
..................hDhhhhhhzzzzss==+szh(.....................
.................+Dhhhhhhzzzzzs==+==s=<.....................
................(hhhhDhhzzhzzsss('(+s+<~....................
...............(zhhhhhhhzzhhzzs<<s~<<~((....................
..............-=szhhDDhhhzshhs==<Ds('..'....................
..............(++shhDhhhz=(~++shs<<-'.......................
.............(=<+=zhhhhz<-'..+Dzh+-'........................
............-=s<(+=zhhh=-'''''hD('-''.......................
...........-+++<(<+=zhz<(~-'''==(-''''..-...................
..........-+<+==+<<+=shh=(---~~((--'''..((..................
.........'==++ss+=+<<shzz+~-~~------''''=s<-.''.............
.........=s=+<=++++<=zzzhs(~~~~-~~----'-hhz==+-''...........
........(zss+(=++<=+szhhDz(~---~~-~---'(DDhhz=(---..........
........(zzss====++=hhhDBz~-~~-~-~~----=DhDDh+-'--'.........
.........=zsszs====hhhzhBD<-~~~~-~-~---~hDhDh<~----'........
.........'szzzzs==zhhhs==h+--~-~~-~(-~~.~DDhh<-((~-'........
..........-zzsszszhhhhzz==s~-~~--~~~~(==--sDD+~~(~~'........
...........(hzszzhhhhhDhzss+-~---~~-(szss..<z<''.~~.........
............<hzzhhhhhhhDhhzhs~--~--(zhhhz'..................
.............szzhhhhhDhDDDhhBz<(((+hDDhhh'..................
.............~zhhhhhhhDhhhD++zs+~sDDhhhDh...................
............'~=hhszDDhDhDh<......hhhhDDh=...................
............~<+ss=szDDDD='......<DhDhss(-...................
...........'(+=+==~.(((-........hDhhs<(((~~--...............
........''<<(====+~-----------~=hs++<<<<<<<<(-..............
.......~~(==+++++<((((~~~~~~~-<==++<<<<<<((~--'.............
............................................................

Ahhh… Good times…

Playing Perl: Counting Occurrences

Ever have a list of phrases and wonder which individual words appear the most? Me too! Here’s a handy Perl command that will get the job done:

perl -F\t -lane "map{$w{$_}++} split (/ /,$F[0]); END { print qq|$_\t$w{$_}| foreach sort{$w{$b}<=>$w{$a}} keys(%w) } "
< INPUT_FILE > OUTPUT_FILE

This assumes:

  • the input contains a TAB separated list of fields
  • the first field is the one containing our keyword phrase

Good Luck!