<?xml version="1.0" encoding="utf-8" ?>
<rdf:RDF 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
<channel rdf:about="http://www.sklar.com/blog/rss.php?version=1.0">
    <title>sklar.com/blog</title>
    <link>http://www.sklar.com/blog/</link>
    <description>...composed of an indefinite, perhaps infinite number of hexagonal galleries...</description>
    <dc:language>en</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:web-blog@sklar.com" />

    <image rdf:resource="http://www.sklar.com/blog/templates/sklar-sm/img/s9y_banner_small.png" />

    <items>
      <rdf:Seq>
        <rdf:li resource="http://www.sklar.com/blog/archives/120-guid.html" />
        <rdf:li resource="http://www.sklar.com/blog/archives/119-guid.html" />
        <rdf:li resource="http://www.sklar.com/blog/archives/118-guid.html" />
        <rdf:li resource="http://www.sklar.com/blog/archives/117-guid.html" />
        <rdf:li resource="http://www.sklar.com/blog/archives/116-guid.html" />
        <rdf:li resource="http://www.sklar.com/blog/archives/115-guid.html" />
        <rdf:li resource="http://www.sklar.com/blog/archives/114-guid.html" />
        <rdf:li resource="http://www.sklar.com/blog/archives/113-guid.html" />
        <rdf:li resource="http://www.sklar.com/blog/archives/112-guid.html" />
        <rdf:li resource="http://www.sklar.com/blog/archives/111-guid.html" />
        <rdf:li resource="http://www.sklar.com/blog/archives/110-guid.html" />
        <rdf:li resource="http://www.sklar.com/blog/archives/109-guid.html" />
        <rdf:li resource="http://www.sklar.com/blog/archives/108-guid.html" />
        <rdf:li resource="http://www.sklar.com/blog/archives/107-guid.html" />
        <rdf:li resource="http://www.sklar.com/blog/archives/106-guid.html" />
</rdf:Seq>
    </items>
</channel>

<image rdf:about="http://www.sklar.com/blog/templates/sklar-sm/img/s9y_banner_small.png">
        <url>http://www.sklar.com/blog/templates/sklar-sm/img/s9y_banner_small.png</url>
        <title>RSS: sklar.com/blog - ...composed of an indefinite, perhaps infinite number of hexagonal galleries...</title>
        <link>http://www.sklar.com/blog/</link>
        <width>100</width>
        <height>21</height>
    </image>
<item rdf:about="http://www.sklar.com/blog/archives/120-guid.html">
    <title>ZendCon 2008: Static and Dynamic Analysis at Ning</title>
    <link>http://www.sklar.com/blog/archives/120-ZendCon-2008-Static-and-Dynamic-Analysis-at-Ning.html</link>
    <description>
I presented my &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=425&amp;amp;entry_id=120&quot; title=&quot;http://www.zendcon.com/ZendCon08/public/schedule/detail/48&quot; onmouseover=&quot;window.status='http://www.zendcon.com/ZendCon08/public/schedule/detail/48';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;Static and Dynamic Analysis at Ning&lt;/a&gt; talk today at the 2008 Zend/PHP Conference. The conference is much bigger this year than last, very exciting to see all the different things people are doing.&lt;br /&gt;
&lt;br /&gt;
The slides from my talk are available at &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=426&amp;amp;entry_id=120&quot; title=&quot;http://www.sklar.com/files/static-dynamic-analysis-zendcon-2008.pdf&quot; onmouseover=&quot;window.status='http://www.sklar.com/files/static-dynamic-analysis-zendcon-2008.pdf';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;http://www.sklar.com/files/static-dynamic-analysis-zendcon-2008.pdf&lt;/a&gt; .    </description>
        <dc:publisher>sklar.com/blog</dc:publisher>
    <dc:creator>sklar@sklar.com (David)</dc:creator>
    <dc:subject>php, ning, conferences</dc:subject>
    <dc:date>2008-09-16T16:42:55Z</dc:date>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=120</wfw:comment>
    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.sklar.com/blog/rss.php?version=1.0&amp;type=comments&amp;cid=120</wfw:commentRss>
</item>
<item rdf:about="http://www.sklar.com/blog/archives/119-guid.html">
    <title>PHP + Emacs</title>
    <link>http://www.sklar.com/blog/archives/119-PHP-+-Emacs.html</link>
    <description>
Here are some links that are related to the Editor/IDE panel I'm on today at the &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=423&amp;amp;entry_id=119&quot; title=&quot;http://www.dcphpconference.com/&quot; onmouseover=&quot;window.status='http://www.dcphpconference.com/';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;2008 DC PHP Conference&lt;/a&gt;:&lt;br /&gt;
&lt;ul&gt;&lt;br /&gt;
&lt;li&gt;&lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=424&amp;amp;entry_id=119&quot; title=&quot;http://trac.sakura.ne.jp/geben/&quot; onmouseover=&quot;window.status='http://trac.sakura.ne.jp/geben/';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;GEBEN&lt;/a&gt; (interactive debugging)&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;&lt;a href=&quot;http://www.sklar.com/blog/exit.php?url=aHR0cDovL3d3dy5lbWFjc3dpa2kub3JnL2NnaS1iaW4vd2lraS9OeGh0bWxNb2Rl&amp;amp;entry_id=119&quot; title=&quot;http://www.emacswiki.org/cgi-bin/wiki/NxhtmlMode&quot; onmouseover=&quot;window.status='http://www.emacswiki.org/cgi-bin/wiki/NxhtmlMode';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;nxhtml-mode (php-mode, multiple major modes)&lt;/li&gt;&lt;br /&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
    </description>
        <dc:publisher>sklar.com/blog</dc:publisher>
    <dc:creator>sklar@sklar.com (David)</dc:creator>
    <dc:subject>php, conferences</dc:subject>
    <dc:date>2008-06-03T08:47:48Z</dc:date>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=119</wfw:comment>
    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.sklar.com/blog/rss.php?version=1.0&amp;type=comments&amp;cid=119</wfw:commentRss>
</item>
<item rdf:about="http://www.sklar.com/blog/archives/118-guid.html">
    <title>&quot;Little Bobby Tables&quot; vs. the US Government</title>
    <link>http://www.sklar.com/blog/archives/118-Little-Bobby-Tables-vs.-the-US-Government.html</link>
    <description>
&lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=419&amp;amp;entry_id=118&quot; title=&quot;http://shiflett.org&quot; onmouseover=&quot;window.status='http://shiflett.org';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;Chris&lt;/a&gt; often cites &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=420&amp;amp;entry_id=118&quot; title=&quot;http://xkcd.com/327/&quot; onmouseover=&quot;window.status='http://xkcd.com/327/';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;this xkcd&lt;/a&gt; cartoon in security talks, since it's a) funny and b) a good example of SQL Injection. &lt;br /&gt;
&lt;br /&gt;
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 &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=421&amp;amp;entry_id=118&quot; title=&quot;http://www.nyc.gov/html/doh/html/vr/vr.shtml&quot; onmouseover=&quot;window.status='http://www.nyc.gov/html/doh/html/vr/vr.shtml';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;NYC agency that issues birth certificates&lt;/a&gt; but here's what the US Social Security Agency told me:&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
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 for the last name is 26.  Full names will not be reduced to initials unless the combination of first and middle names exceeds 26 characters.  The only acceptable characters are alphas, hyphens, and apostrophes.  The SSN card will be printed as entered into the enumeration system, but the SSN record will not display the hyphens/apostrophes. &lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
So with hyphens and apostrophes you might be able to get away with a little syntax error mischief, I suppose.&lt;br /&gt;
&lt;br /&gt;
Turns out the SSA has &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=422&amp;amp;entry_id=118&quot; title=&quot;https://secure.ssa.gov/apps10/poms.nsf/lnx/0100202105&quot; onmouseover=&quot;window.status='https://secure.ssa.gov/apps10/poms.nsf/lnx/0100202105';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;really detailed public documentation&lt;/a&gt; of all their procedures.&lt;br /&gt;
    </description>
        <dc:publisher>sklar.com/blog</dc:publisher>
    <dc:creator>sklar@sklar.com (David)</dc:creator>
    <dc:subject>fun, security, ideas</dc:subject>
    <dc:date>2008-04-11T15:09:31Z</dc:date>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=118</wfw:comment>
    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.sklar.com/blog/rss.php?version=1.0&amp;type=comments&amp;cid=118</wfw:commentRss>
</item>
<item rdf:about="http://www.sklar.com/blog/archives/117-guid.html">
    <title>Prolific Name-Sources</title>
    <link>http://www.sklar.com/blog/archives/117-Prolific-Name-Sources.html</link>
    <description>
I had never heard of &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=413&amp;amp;entry_id=117&quot; title=&quot;http://en.wikipedia.org/wiki/Haskell_Curry&quot; onmouseover=&quot;window.status='http://en.wikipedia.org/wiki/Haskell_Curry';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;Haskell Curry&lt;/a&gt; before I read &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=414&amp;amp;entry_id=117&quot; title=&quot;http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-7.html&quot; onmouseover=&quot;window.status='http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-7.html';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;the preface to SICP&lt;/a&gt; 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 (&lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=415&amp;amp;entry_id=117&quot; title=&quot;http://haskell.org/&quot; onmouseover=&quot;window.status='http://haskell.org/';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;Haskell&lt;/a&gt; the programming language and &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=416&amp;amp;entry_id=117&quot; title=&quot;http://haskell.org/haskellwiki/Currying&quot; onmouseover=&quot;window.status='http://haskell.org/haskellwiki/Currying';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;Curry&lt;/a&gt; the operation) is sort of like how &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=417&amp;amp;entry_id=117&quot; title=&quot;http://en.wikipedia.org/wiki/Glenn_T._Seaborg&quot; onmouseover=&quot;window.status='http://en.wikipedia.org/wiki/Glenn_T._Seaborg';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;Glenn Seaborg&lt;/a&gt;, working at &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=418&amp;amp;entry_id=117&quot; title=&quot;http://www.lbl.gov&quot; onmouseover=&quot;window.status='http://www.lbl.gov';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;LBL&lt;/a&gt;, could have a letter addressed to him using element names (seaborgium / lawrencium berkelium / californium / americium.)&lt;br /&gt;
&lt;br /&gt;
Who else can you think of that falls into this admittedly fuzzy-edged bucket?    </description>
        <dc:publisher>sklar.com/blog</dc:publisher>
    <dc:creator>sklar@sklar.com (David)</dc:creator>
    <dc:subject>fun, ideas</dc:subject>
    <dc:date>2008-03-28T16:26:21Z</dc:date>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=117</wfw:comment>
    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.sklar.com/blog/rss.php?version=1.0&amp;type=comments&amp;cid=117</wfw:commentRss>
</item>
<item rdf:about="http://www.sklar.com/blog/archives/116-guid.html">
    <title>Let a thousand string concatenations bloom</title>
    <link>http://www.sklar.com/blog/archives/116-Let-a-thousand-string-concatenations-bloom.html</link>
    <description>
How many different ways (in PHP) are there to concatenate the string values in two variables and put the result in a third variable?&lt;br /&gt;
&lt;br /&gt;
Here are a few to start:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;code&gt;$alice = $bob . $charlie;&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code&gt;$alice = &quot;$bob$charlie&quot;;&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code&gt;$alice = sprintf('%s%s', $bob, $charlie);&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code&gt;ob_start(); echo $bob, $charlie; $alice = ob_get_clean();&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code&gt;$alice = implode('', array($bob,$charlie));&lt;/code&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
I would say something like &quot;Of course, this entire exercise is just for fun and in practice is totally useless,&quot; but whenever I start out thinking that something actually productive eventually emerges. So perhaps this is totally useless, perhaps not!    </description>
        <dc:publisher>sklar.com/blog</dc:publisher>
    <dc:creator>sklar@sklar.com (David)</dc:creator>
    <dc:subject>software, php, fun</dc:subject>
    <dc:date>2007-11-14T16:31:36Z</dc:date>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=116</wfw:comment>
    <slash:comments>7</slash:comments>
    <wfw:commentRss>http://www.sklar.com/blog/rss.php?version=1.0&amp;type=comments&amp;cid=116</wfw:commentRss>
</item>
<item rdf:about="http://www.sklar.com/blog/archives/115-guid.html">
    <title>DC PHP 2007 Slides</title>
    <link>http://www.sklar.com/blog/archives/115-DC-PHP-2007-Slides.html</link>
    <description>
The slides from my &quot;API Design in PHP&quot; talk at the &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=411&amp;amp;entry_id=115&quot; title=&quot;http://www.dcphpconference.com/?q=node/262&amp;id=19&quot; onmouseover=&quot;window.status='http://www.dcphpconference.com/?q=node/262&amp;id=19';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;2007 DC PHP Conference&lt;/a&gt; are up at &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=412&amp;amp;entry_id=115&quot; title=&quot;http://www.sklar.com/files/dcphp-2007-api-design.pdf&quot; onmouseover=&quot;window.status='http://www.sklar.com/files/dcphp-2007-api-design.pdf';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;http://www.sklar.com/files/dcphp-2007-api-design.pdf&lt;/a&gt;. Enjoy!    </description>
        <dc:publisher>sklar.com/blog</dc:publisher>
    <dc:creator>sklar@sklar.com (David)</dc:creator>
    <dc:subject>php, ning, conferences</dc:subject>
    <dc:date>2007-11-08T15:36:42Z</dc:date>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=115</wfw:comment>
    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.sklar.com/blog/rss.php?version=1.0&amp;type=comments&amp;cid=115</wfw:commentRss>
</item>
<item rdf:about="http://www.sklar.com/blog/archives/114-guid.html">
    <title>Subversion Time Machine</title>
    <link>http://www.sklar.com/blog/archives/114-Subversion-Time-Machine.html</link>
    <description>
&lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=408&amp;amp;entry_id=114&quot; title=&quot;http://jonaquino.blogspot.com/&quot; onmouseover=&quot;window.status='http://jonaquino.blogspot.com/';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;Jon Aquino&lt;/a&gt;, my &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=409&amp;amp;entry_id=114&quot; title=&quot;http://www.ning.com/about/team.html&quot; onmouseover=&quot;window.status='http://www.ning.com/about/team.html';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;talented cow-orker&lt;/a&gt; built a &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=410&amp;amp;entry_id=114&quot; title=&quot;http://code.google.com/p/svn-time-lapse-view/&quot; onmouseover=&quot;window.status='http://code.google.com/p/svn-time-lapse-view/';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;time-lapse view&lt;/a&gt; for Subversion. This is fantastic.&lt;br /&gt;
&lt;br /&gt;
We switched from Perforce to Subversion recently (at Ning), and one of the things that I miss about Perforce was its handy time-lapse-view feature. No longer!    </description>
        <dc:publisher>sklar.com/blog</dc:publisher>
    <dc:creator>sklar@sklar.com (David)</dc:creator>
    <dc:subject>software, ning</dc:subject>
    <dc:date>2007-10-19T12:17:23Z</dc:date>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=114</wfw:comment>
    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.sklar.com/blog/rss.php?version=1.0&amp;type=comments&amp;cid=114</wfw:commentRss>
</item>
<item rdf:about="http://www.sklar.com/blog/archives/113-guid.html">
    <title>API Design Talk Slides</title>
    <link>http://www.sklar.com/blog/archives/113-API-Design-Talk-Slides.html</link>
    <description>
The &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=405&amp;amp;entry_id=113&quot; title=&quot;http://www.sklar.com/files/zendcon-2007-api-design.pdf&quot; onmouseover=&quot;window.status='http://www.sklar.com/files/zendcon-2007-api-design.pdf';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;slides&lt;/a&gt; from my API design talk yesterday are available.&lt;br /&gt;
&lt;br /&gt;
If you missed Zendcon, come to the &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=406&amp;amp;entry_id=113&quot; title=&quot;http://www.dcphpconference.com/&quot; onmouseover=&quot;window.status='http://www.dcphpconference.com/';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;DC PHP Conference&lt;/a&gt; in a few weeks. I'll be talking about API Design there on &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=407&amp;amp;entry_id=113&quot; title=&quot;http://www.dcphpconference.com/?q=node/87&quot; onmouseover=&quot;window.status='http://www.dcphpconference.com/?q=node/87';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;November 8&lt;/a&gt;.    </description>
        <dc:publisher>sklar.com/blog</dc:publisher>
    <dc:creator>sklar@sklar.com (David)</dc:creator>
    <dc:subject>php, ning, conferences</dc:subject>
    <dc:date>2007-10-12T13:40:48Z</dc:date>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=113</wfw:comment>
    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://www.sklar.com/blog/rss.php?version=1.0&amp;type=comments&amp;cid=113</wfw:commentRss>
</item>
<item rdf:about="http://www.sklar.com/blog/archives/112-guid.html">
    <title>Ning Turns Two</title>
    <link>http://www.sklar.com/blog/archives/112-Ning-Turns-Two.html</link>
    <description>
As &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=401&amp;amp;entry_id=112&quot; title=&quot;http://blog.diegodoval.com/2007/10/2_years_of_ning.html&quot; onmouseover=&quot;window.status='http://blog.diegodoval.com/2007/10/2_years_of_ning.html';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;Diego&lt;/a&gt; and &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=402&amp;amp;entry_id=112&quot; title=&quot;http://blog.ning.com/2007/10/happy_2nd_birthday.html&quot; onmouseover=&quot;window.status='http://blog.ning.com/2007/10/happy_2nd_birthday.html';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;Gina&lt;/a&gt; have pointed out, the Ning Platform has just celebrated its second birthday.&lt;br /&gt;
&lt;br /&gt;
The past &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=403&amp;amp;entry_id=112&quot; title=&quot;http://www.sklar.com/blog/archives/67-Ning!.html&quot; onmouseover=&quot;window.status='http://www.sklar.com/blog/archives/67-Ning!.html';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;two years&lt;/a&gt; have been a lot of work and a lot of fun. It's been gratifying to see the crazy, heartwarming, innovative uses folks have come up with for the platform and also extremely rewarding to work with such &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=404&amp;amp;entry_id=112&quot; title=&quot;http://www.ning.com/about/team.html&quot; onmouseover=&quot;window.status='http://www.ning.com/about/team.html';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;talented people&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
I wonder what I'll have to say in a blog post a year from now that links to this one?&lt;br /&gt;
    </description>
        <dc:publisher>sklar.com/blog</dc:publisher>
    <dc:creator>sklar@sklar.com (David)</dc:creator>
    <dc:subject>php, 24hl, ning</dc:subject>
    <dc:date>2007-10-04T10:39:11Z</dc:date>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=112</wfw:comment>
    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.sklar.com/blog/rss.php?version=1.0&amp;type=comments&amp;cid=112</wfw:commentRss>
</item>
<item rdf:about="http://www.sklar.com/blog/archives/111-guid.html">
    <title>Zendcon 2007</title>
    <link>http://www.sklar.com/blog/archives/111-Zendcon-2007.html</link>
    <description>
&lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=399&amp;amp;entry_id=111&quot; title=&quot;http://www.zendcon.com/&quot; onmouseover=&quot;window.status='http://www.zendcon.com/';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;Zendcon&lt;/a&gt; (aka &quot;The 2007 Zend/PHP Conference and Expo&quot;) draws near. I'll be there giving a talk about &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=400&amp;amp;entry_id=111&quot; title=&quot;http://www.sklar.com/blog/archives/109-API-Design-in-PHP-at-ZendCon-2007.html&quot; onmouseover=&quot;window.status='http://www.sklar.com/blog/archives/109-API-Design-in-PHP-at-ZendCon-2007.html';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;API Design in PHP&lt;/a&gt; and undoubtedly getting sucked into various conversations about how PHP's disorganized ugliness is its greatest asset.&lt;br /&gt;
    </description>
        <dc:publisher>sklar.com/blog</dc:publisher>
    <dc:creator>sklar@sklar.com (David)</dc:creator>
    <dc:subject>php, conferences</dc:subject>
    <dc:date>2007-09-24T11:14:45Z</dc:date>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=111</wfw:comment>
    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.sklar.com/blog/rss.php?version=1.0&amp;type=comments&amp;cid=111</wfw:commentRss>
</item>
<item rdf:about="http://www.sklar.com/blog/archives/110-guid.html">
    <title>E-Mail Address Validation and Mission Creep</title>
    <link>http://www.sklar.com/blog/archives/110-E-Mail-Address-Validation-and-Mission-Creep.html</link>
    <description>
+1 to &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=397&amp;amp;entry_id=110&quot; title=&quot;http://www.santosj.name/programming/php-related/php/stop-doing-email-validation-the-wrong-way/#comment-11900&quot; onmouseover=&quot;window.status='http://www.santosj.name/programming/php-related/php/stop-doing-email-validation-the-wrong-way/#comment-11900';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;what ndg said&lt;/a&gt; in response to &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=398&amp;amp;entry_id=110&quot; title=&quot;http://www.santosj.name/programming/php-related/php/stop-doing-email-validation-the-wrong-way/&quot; onmouseover=&quot;window.status='http://www.santosj.name/programming/php-related/php/stop-doing-email-validation-the-wrong-way/';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;Jacob's post about e-mail address validation&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
I think Jacob sort of touches on this in his post but too often it's not explicit what people are looking for under the vague and broad umbrella of &quot;e-mail validation&quot;.&lt;br /&gt;
&lt;br /&gt;
If it's &quot;Did the AOL user signing up for my site forget the '.com' part at the end of the address?&quot; then some pretty simplistic text-based matching will do.&lt;br /&gt;
&lt;br /&gt;
If it's &quot;Is the address supplied a valid mailbox that is controlled by the person who is supplying it to me?&quot; then all the string parsing in the world isn't going to save you. You'll need to roundtrip something out to the mailbox with confirmation instructions. And even then you're not out of the woods -- maybe the user's mailbox is full, or a transient DNS error is causing a problem.&lt;br /&gt;
&lt;br /&gt;
I think e-mail address validation tends to be a bit of a tarpit for nerds (myself included) because the delicious complexity of RFCs 822 and 2822 makes writing code to handle the grammars they describe a fun challenge. That makes it easy to forget what the point of the address validation in the real world actually is: handholding well-meaning users that may have made a careless mistake, or robust protection against malicious users, or bot protection (in which case you probably want to ban RFC-valid addresses that have known-suspicious domain names or components), etc.&lt;br /&gt;
    </description>
        <dc:publisher>sklar.com/blog</dc:publisher>
    <dc:creator>sklar@sklar.com (David)</dc:creator>
    <dc:subject>php</dc:subject>
    <dc:date>2007-07-12T10:27:19Z</dc:date>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=110</wfw:comment>
    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://www.sklar.com/blog/rss.php?version=1.0&amp;type=comments&amp;cid=110</wfw:commentRss>
</item>
<item rdf:about="http://www.sklar.com/blog/archives/109-guid.html">
    <title>API Design in PHP at ZendCon 2007</title>
    <link>http://www.sklar.com/blog/archives/109-API-Design-in-PHP-at-ZendCon-2007.html</link>
    <description>
I'm going to be giving a talk on &quot;API Design in PHP&quot; at &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=396&amp;amp;entry_id=109&quot; title=&quot;http://www.zendcon.com/speakers_list.php&quot; onmouseover=&quot;window.status='http://www.zendcon.com/speakers_list.php';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;ZendCon 2007&lt;/a&gt; in October.&lt;br /&gt;
&lt;br /&gt;
Our PHP API at Ning is a little over two years old at this point. There are some things I love about it that I think we've done really well, some things that we have revised, some things we can do better, and some interesting things planned for the future.&lt;br /&gt;
&lt;br /&gt;
The talk is all about what we've learned developing, building, and supporting the API with both a ferocious devotion to backwards compatibility and a rapid new release cycle.&lt;br /&gt;
&lt;br /&gt;
See you in October!    </description>
        <dc:publisher>sklar.com/blog</dc:publisher>
    <dc:creator>sklar@sklar.com (David)</dc:creator>
    <dc:subject>php, ning, conferences</dc:subject>
    <dc:date>2007-07-11T16:52:12Z</dc:date>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=109</wfw:comment>
    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://www.sklar.com/blog/rss.php?version=1.0&amp;type=comments&amp;cid=109</wfw:commentRss>
</item>
<item rdf:about="http://www.sklar.com/blog/archives/108-guid.html">
    <title>Runkit, &quot;static&quot;, and inheritance</title>
    <link>http://www.sklar.com/blog/archives/108-Runkit,-static,-and-inheritance.html</link>
    <description>
A PHP &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=391&amp;amp;entry_id=108&quot; title=&quot;http://devzone.zend.com/node/view/id/1483#Heading4&quot; onmouseover=&quot;window.status='http://devzone.zend.com/node/view/id/1483#Heading4';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;issue&lt;/a&gt; that comes up &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=392&amp;amp;entry_id=108&quot; title=&quot;http://bugs.php.net/30934&quot; onmouseover=&quot;window.status='http://bugs.php.net/30934';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;over&lt;/a&gt; and &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=393&amp;amp;entry_id=108&quot; title=&quot;http://bugs.php.net/30423&quot; onmouseover=&quot;window.status='http://bugs.php.net/30423';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;over&lt;/a&gt; again is how the &lt;code&gt;static&lt;/code&gt; keyword doesn't know about inheritance. That is, code such as:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
class Masons {&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;static $where = &quot;World-wide&quot;;&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;static function show() {&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;print self::$where;&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
class Stonecutters extends Masons {&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;static $where = &quot;Springfield&quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Stonecutters::show();&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
prints &lt;code&gt;World-wide&lt;/code&gt;, not &lt;code&gt;Springfield&lt;/code&gt; because the &lt;code&gt;self&lt;/code&gt; inside &lt;code&gt;Masons::show()&lt;/code&gt; is bound at compile time to the &lt;code&gt;Masons&lt;/code&gt; class. This is different than how &lt;code&gt;$this&lt;/code&gt; works in instances, so it can be unexpected.&lt;br /&gt;
&lt;br /&gt;
There are plenty of good reasons why PHP 5 works this way and it seems that in PHP 6 the &lt;code&gt;static&lt;/code&gt; keyword will be able to be used in place of &lt;code&gt;self&lt;/code&gt; to get the dynamic behavior a lot of folks are looking for (that is, &lt;code&gt;print static::$where;&lt;/code&gt; in &lt;code&gt;Masons::show()&lt;/code&gt; would cause &lt;code&gt;Stonecutters::show()&lt;/code&gt; to print &lt;code&gt;Springfield&lt;/code&gt;.&lt;br /&gt;
&lt;br /&gt;
All well and good once PHP 6 is done.&lt;br /&gt;
&lt;br /&gt;
In the meantime, I was noodling around with &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=394&amp;amp;entry_id=108&quot; title=&quot;http://pecl.php.net/package/runkit&quot; onmouseover=&quot;window.status='http://pecl.php.net/package/runkit';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;runkit&lt;/a&gt; and came up with some glue that lets you do something like this:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
class Model {&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;public static function find($class, $filters) {&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;// This method would actually do an SQL query or &lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;// REST request to retrieve data&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;print &quot;I'm looking for a $class with &quot;;&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;$tmp = array();&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;foreach ($filters as $k =&gt; $v) { $tmp[] = &quot;$k=$v&quot;; }&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;print implode(', ', $tmp); &lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;print &quot;\n&quot;;&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;}&lt;br /&gt;
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;public static function findById($class, $id) {&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;return self::find($class, array('id' =&gt; $id));&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
class Monkey extends Model { }&lt;br /&gt;
&lt;br /&gt;
class Elephant extends Model {&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;public static function findByTrunkColor($color) {&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;return self::find(array('color' =&gt; $color));&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;}&lt;br /&gt;
}&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
And then after the mysterious (for a few seconds) glue:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
MethodHelper::fixStaticMethods('Model');&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
you can do:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
Monkey::find(array('name' =&gt; 'George', 'is' =&gt; 'curious'));&lt;br /&gt;
// prints: I'm looking for a Monkey with name=George, is=curious&lt;br /&gt;
&lt;br /&gt;
Elephant::findById(1274);&lt;br /&gt;
// prints: I'm looking for a Elephant with id=1274&lt;br /&gt;
&lt;br /&gt;
Elephant::findByTrunkColor('grey');&lt;br /&gt;
// prints: I'm looking for a Elephant with color=grey&lt;br /&gt;
&lt;br /&gt;
Monkey::findById('abe');&lt;br /&gt;
// prints: I'm looking for a Monkey with id=abe&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
(The innards of &lt;code&gt;MethodHelper&lt;/code&gt; after the jump...)&lt;br /&gt;&lt;a href=&quot;http://www.sklar.com/blog/archives/108-guid.html#extended&quot;&gt;Continue reading &quot;Runkit, &amp;quot;static&amp;quot;, and inheritance&quot;&lt;/a&gt;    </description>
        <dc:publisher>sklar.com/blog</dc:publisher>
    <dc:creator>sklar@sklar.com (David)</dc:creator>
    <dc:subject>php, ideas</dc:subject>
    <dc:date>2007-05-16T10:29:57Z</dc:date>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=108</wfw:comment>
    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.sklar.com/blog/rss.php?version=1.0&amp;type=comments&amp;cid=108</wfw:commentRss>
</item>
<item rdf:about="http://www.sklar.com/blog/archives/107-guid.html">
    <title>Visiting each character in a string</title>
    <link>http://www.sklar.com/blog/archives/107-Visiting-each-character-in-a-string.html</link>
    <description>
So I've got this string (in PHP) and I need to scan through it character by character. I can't scan byte by byte because it's 2007, our  users write in &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=388&amp;amp;entry_id=107&quot; title=&quot;http://blogyazarlari.ning.com/&quot; onmouseover=&quot;window.status='http://blogyazarlari.ning.com/';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;all sorts&lt;/a&gt; &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=389&amp;amp;entry_id=107&quot; title=&quot;http://canusa.ning.com/profiles/blog/show?id=674817%3ABlogPost%3A261&quot; onmouseover=&quot;window.status='http://canusa.ning.com/profiles/blog/show?id=674817%3ABlogPost%3A261';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;of languages&lt;/a&gt;, and the string is UTF-8.&lt;br /&gt;
&lt;br /&gt;
The PHP 5 solution uses mb_strlen() to find the length and then mb_substr() to grab each character:&lt;br /&gt;
&lt;br /&gt;
$j = mb_strlen($theString);&lt;br /&gt;
for ($k = 0; $k &lt; $j; $k++) {&lt;br /&gt;
    $char = mb_substr($theString, $k, 1);&lt;br /&gt;
    // do stuff with $char&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
In PHP 6, one would do:&lt;br /&gt;
&lt;br /&gt;
foreach (new TextIterator($theString, TextIterator::CHARACTER) as $char) {&lt;br /&gt;
    // do stuff with $char&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Some rough benchmarks on a 1500 character (and 2900 byte) string (Linux, whatever processor is inside this Thinkpad T43 here, your mileage may vary, etc etc etc) give me about 61 scans/sec  with PHP 5.2.1, where a &quot;scan&quot; is just moving through the loop above with mb_substr and doing one if() test comparing the char to '&lt;'&lt;br /&gt;
&lt;br /&gt;
Under PHP 6.0.0-dev with unicode.semantics=on, switching from mb_strlen() and mb_substr() to regular strlen() and substr() produces about the same result. And indexing with $theString[$k] is the same speed as substr().&lt;br /&gt;
&lt;br /&gt;
However, the TextIterator case is much faster, about 450 scans/sec!&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=390&amp;amp;entry_id=107&quot; title=&quot;http://www.gravitonic.com/do_download.php?download_file=talks/php-quebec-2007/unicoding-with-php-6.pdf&quot; onmouseover=&quot;window.status='http://www.gravitonic.com/do_download.php?download_file=talks/php-quebec-2007/unicoding-with-php-6.pdf';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;Nicely done!&lt;/a&gt;    </description>
        <dc:publisher>sklar.com/blog</dc:publisher>
    <dc:creator>sklar@sklar.com (David)</dc:creator>
    <dc:subject>php, ning</dc:subject>
    <dc:date>2007-04-25T09:55:26Z</dc:date>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=107</wfw:comment>
    <slash:comments>9</slash:comments>
    <wfw:commentRss>http://www.sklar.com/blog/rss.php?version=1.0&amp;type=comments&amp;cid=107</wfw:commentRss>
</item>
<item rdf:about="http://www.sklar.com/blog/archives/106-guid.html">
    <title>Ubuntu Feisty Fawn vs. Cisco VPN Client</title>
    <link>http://www.sklar.com/blog/archives/106-Ubuntu-Feisty-Fawn-vs.-Cisco-VPN-Client.html</link>
    <description>
I upgraded a machine to Ubuntu Feisty Fawn (7.10) today and was having trouble recompiling the Cisco VPN client. Thanks to &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=382&amp;amp;entry_id=106&quot; title=&quot;http://ubuntuforums.org/showthread.php?p=2511814&quot; onmouseover=&quot;window.status='http://ubuntuforums.org/showthread.php?p=2511814';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;this thread&lt;/a&gt;, I went to &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=383&amp;amp;entry_id=106&quot; title=&quot;http://tuxx-home.at/archives/2007/04/10/T15_55_43/&quot; onmouseover=&quot;window.status='http://tuxx-home.at/archives/2007/04/10/T15_55_43/';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;this blog post&lt;/a&gt; and applied &lt;a href=&quot;http://www.sklar.com/blog/exit.php?url_id=384&amp;amp;entry_id=106&quot; title=&quot;http://tuxx-home.at/projects/cisco-vpnclient/vpnclient-linux-2.6.19+-rev1.diff&quot; onmouseover=&quot;window.status='http://tuxx-home.at/projects/cisco-vpnclient/vpnclient-linux-2.6.19+-rev1.diff';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;this patch&lt;/a&gt; and everything was fine.&lt;br /&gt;
&lt;br /&gt;
I must admit that applying some random patch to one's VPN client inspires a moderate amount of queasiness, but fortunately the patch is simple enough to understand so one can be confident no mischief is involved.&lt;br /&gt;
    </description>
        <dc:publisher>sklar.com/blog</dc:publisher>
    <dc:creator>sklar@sklar.com (David)</dc:creator>
    <dc:subject>software, infrastructure</dc:subject>
    <dc:date>2007-04-25T09:51:53Z</dc:date>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=106</wfw:comment>
    <slash:comments>4</slash:comments>
    <wfw:commentRss>http://www.sklar.com/blog/rss.php?version=1.0&amp;type=comments&amp;cid=106</wfw:commentRss>
</item>
</rdf:RDF>