Yes, a bit specific, but I need to store some links!
I created a PNG that was bright red, but in Firefox, it is a duller red. The fix was to remove the color profile from the PNG by using the tool TweakPNG.
Main> nameGame "alonzo" "alonzo, alonzo bo blonzo bonana fanna fo flonzo fee fy mo mlonzo, alonzo" Main> nameGame "haskell" "haskell, haskell bo baskell bonana fanna fo faskell fee fy mo maskell, haskell"LOLz. Here's some real beginner-level source code for a version of the "Name Game". The Name Game was a song from way back. It's silly.
Sources after the jump.
While writing a template for spam, I learned the following about mobile email formatting.
I accidentally reused the variable name $count twice in a function.
This is an example template file that will export articles from your bespoke CMS to and XML file that WordPress version 3.5 will import.
I found a good tutorial at Wikibooks, Haskell. It's beginner level like these notes, but is way more organized.
A couple years ago I tried to learn Haskell and dropped the study. I'm not sure what happened, but it's really hard to find a solid block of time to study it.
I'm publishing this to help other software developers who write applications to support community actions. The article was originally written on November 2, 2011.
I swiped this code from php.net.
So I'm working on a small "speech bubble" library, and needed to delay hiding of the bubble. It's not that it was required, but it was a pain in the butt figuring out how to arrange the event handlers on the different elements so that you don't end up with a situation where you get a flickering bubble because you hide the bubble, and that fires a mouseover event that, in turn, displays the bubble again. That fires a mouseout event that causes the bubble to be hidden.
Getting Started with Exploratory Parsing. Describes a system where you can write your parser by analyzing huge bodies of text. In short, a system for writing all the parsers required to analyze the text on the internet. (In English.) (Ward Cunningam invented the idea of the Wiki.)
For the past few months I've been working on web apps. The first was a mobile site based on jQuery Mobile. While it was "cool", it quickly dawned on me that it wouldn't get any significant usership. For one, it was like a clone of 4square and Scvngr - and who really uses that? I'd peer into the lists of checkins, and it wasn't looking too encouraging. People use it when they're bored and alone, and my scenario didn't involve either of those situations.
It took a while to wrap my mind around PHP namespaces - despite the fact I've needed them for years. It's just one of those features that seems weirder in PHP than in other systems. But that's normal for PHP - quirky. Unfortunately, it's not quirky like Perl, where the quirk eventually makes you feel good. With PHP you just feel kind of odd, maybe a little inferior... like your language is slipping toward becoming the Visual Basic of the web.
Recent blog posts