KBD

Keith Devens .com

Wednesday, July 9, 2008 Flag waving
Life moves pretty fast. If you don't stop and look around once in a while, you could miss it.... – Ferris Bueller

Archive: February 21, 2006

← February 20, 2006February 22, 2006 →

Daily link icon Tuesday, February 21, 2006

  1. Keyphrene Python SSH wrapper (via). I probably could have used this earlier... though I haven't yet tried it or looked at the source (there's no documentation! Smiley)

       (1) Tags: [Python]
  2. Manning: wxPython in Action (via). A book on wxPython... rock.

       (0) Tags: [wxPython]
  3. 18 Monospace fonts comparison screenshot (via Digg). To mine for more programming fonts.

       (0) Tags: [Fonts, Programming]

Tags are so cool!

Tags are so cool! You think anyone would find it useful if I released my tagging library as open source? It's very easy to plug into another system as long as you create some tables with specific names. Only thing is, it's just a library, and can't possibly include the forms you'd need to integrate it into your system. I could bundle an administration interface, however...

PHP's 'create_function' function

PHP's create_function function is so cumbersome to use that I'm creating shortcuts for the most common cases. Very often all you want to do is a map and return a particular field out of an associative array. So:

<?php
function mapfield($key$func=null){
    return 
create_function('$a',"return $func(\$a['$key']);");
}
?>

Used as in:

<?php
function tags_join($tags){
    
#given an array of tags give the canonical space separated listing
    
return join(' ',array_unique(array_map(mapfield('Name'), $tags)));
}
?>
← February 20, 2006February 22, 2006 →
July 2008
SunMonTueWedThuFriSat
 12345
6789101112
13141516171819
20212223242526
2728293031 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 2 posts

Recent comments XML

getElementsByClass function

http://pitfalls.wordpress.com/2008/​07/07/querying-it-jquery-way-getele​ments...

maxgandalf: Jul 7, 5:50am

Generated in about 0.054s.

(Used 7 db queries)

mobile phone