sklar.com/blog...composed of an indefinite, perhaps infinite number of hexagonal galleries...DC PHP 2007 Slides- (Found July 2, 2008 ) The slides from my "API Design in PHP" talk at the 2007 DC PHP Conference are up at http:www.sklar.comfilesdcphp-2007-api-design.pdf. Enjoy!http://www.sklar.com/blog/archives/115-DC-PHP-2007-Slides.html Let a thousand string concatenations bloom- (Found July 2, 2008 ) How many different ways (in PHP) are there to concatenate the string values in two variables and put the result in a third variable Here are a few to start: $alice = $bob . $charlie;$alice = "$bob$charlie";$alice = sprintf('%s%s', $bob, $charlie);ob_start(); echo $bob, $charlie; $alice = ob_get_clean();$alice = implode('', array($bob,$charlie)); I would say something like "Of course, this entire exercise is just for fun and in practice is totally useless," but whenever I start out thinking...http://www.sklar.com/blog/archives/116-Let-a-thousand-string-concatenations-bloom.html Prolific Name-Sources- (Found July 2, 2008 ) I had never heard of Haskell Curry before I read the preface to SICP just now, but it occurs to me that his distinction of having each of his names (first and last) turned into a term used in the discipline he studied (Haskell the programming language and Curry the operation) is sort of like how Glenn Seaborg, working at LBL, could have a letter addressed to him using element names (seaborgium lawrencium berkelium californium americium.) Who else can you think of that falls into this...http://www.sklar.com/blog/archives/117-Prolific-Name-Sources.html "Little Bobby Tables" vs. the US Government- (Found July 2, 2008 ) Chris often cites this xkcd cartoon in security talks, since it's a) funny and b) a good example of SQL Injection. I was curious to see what sorts of shenanigans one can get away with in a legal name. I'm still waiting to hear back from the NYC agency that issues birth certificates but here's what the US Social Security Agency told me: The maximum number of characters to be shown on the Social Security number (SSN) card for the first and middle name is 26; the maximum number of characters...http://www.sklar.com/blog/archives/118-Little-Bobby-Tables-vs.-the-US-Government.html What function are you- (Found July 2, 2008 ) This story from George via Andrei is simultaneously hilarious and scary. I'm not sure, if I were a PHP function, which function I'd be. Although figuring that out would be a lot easier if my name were, for example, Max Levenshtein.http://www.sklar.com/blog/archives/105-What-function-are-you.html |