<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Fri, 24 May 2013 02:16:17 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Davey Shafik's Blog: The Closure Puzzle]]></title>
      <guid>http://www.phpdeveloper.org/news/17397</guid>
      <link>http://www.phpdeveloper.org/news/17397</link>
      <description><![CDATA[<p>
<i>Davey Shafik</i> has <a href="http://daveyshafik.com/archives/32789-the-closure-puzzle.html">posted about an interesting find with closures</a> in PHP revolving around an update to add "$this" access inside the closure.
</p>
<blockquote>
However, it didn't stop there; there was also the addition of Closure::bind() and Closure->bindTo(). These methods are identical except one is a static method into which the closure is passed, the second an instance method on the closure itself. These methods both take two arguments (on top of the closure for the static version): $newthis and $newscope. What this means is that unlike the regular object model the concept of $this and lexical scope (what is in scope for the function with regards to private/protected methods inside objects) are completely separated.
</blockquote>
<p>
He also mentions that you can change the "$this" to a different object (complex) or swapping out the object the closure is bound to while keeping "$this" the same (simpler). He mentions that it could be useful for unit testing but can have its drawbacks. He's <a href="https://gist.github.com/1607647">included code</a> to illustrate 
 the breakage it can cause in the PHP OOP model (with an explanation).
</p>]]></description>
      <pubDate>Mon, 16 Jan 2012 09:52:38 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Josh Holmes' Blog: Toughest Developer Puzzle Ever]]></title>
      <guid>http://www.phpdeveloper.org/news/14591</guid>
      <link>http://www.phpdeveloper.org/news/14591</link>
      <description><![CDATA[<p>
If you're looking for a challenge to keep you occupied for a while and want to flex those developer skills, check out the <a href="http://www.joshholmes.com/blog/2010/06/01/toughest-developer-puzzle-ever/">Toughesst Developer Puzzle Ever</a> as created by <a href="http://www.jeffblankenburg.com/">Jeff Blankenburg</a>.
</p>
<blockquote>
For the second year in a row, my friend and colleague Jeff Blankenburg has created what is quickly proving to live up to it's namesake - the Toughest Developer Puzzle Ever. Some of the puzzles are technical, some are not but all require that you understand the web, development and technology to solve. Even if you don't get in on the fantastic prizes that Jeff has lined up, there's great bragging rights in being able to solve the Toughest Developer Puzzle Ever.
</blockquote>
<p>
<i>Josh Holmes</i> (whose blog is linked above) was the creator of three of the levels of <a href="http://www.toughestdeveloperpuzzleever.com/begin/">this difficult puzzle</a>. Give <a href="http://www.toughestdeveloperpuzzleever.com/begin/">it</a> a try if you're looking for something to really stretch your knowledge!
</p>]]></description>
      <pubDate>Wed, 02 Jun 2010 11:11:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Kae Verens' Blog: Extracting a sudoku puzzle from a photo]]></title>
      <guid>http://www.phpdeveloper.org/news/11881</guid>
      <link>http://www.phpdeveloper.org/news/11881</link>
      <description><![CDATA[<p>
<i>Kae Verens</i> has posted a <a href="http://verens.com/archives/2009/02/03/extracting-a-sudoku-puzzle-from-a-photo/">cool little application</a> of how to pull information out of a photo and parse it with the GD library. His example is a <a href="http://verens.com/archives/2009/02/02/visual-sudoku-solver/">visual sudoku solver</a> (part one, at least).
</p>
<blockquote>
The plan for this one is that, if you're doing a sudoku puzzle in the pub or on the train, and you get stuck, you just take a snapshot of the puzzle with your camera-phone, send the photo to a certain mobile number, and a few seconds later the solution is sent back as an SMS message. The solution costs you something small - 50 cents, maybe.
</blockquote>
<p>
The script looks at a picture of a sudoku puzzle, converts it to b&w and tries to find the squares surrounding each position of the board. With these measurements, the next step is to grab the numbers already in the puzzle and hand those off to the puzzle solver to be processed.
</p>]]></description>
      <pubDate>Wed, 04 Feb 2009 12:57:18 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: SQL Puzzle]]></title>
      <guid>http://www.phpdeveloper.org/news/9176</guid>
      <link>http://www.phpdeveloper.org/news/9176</link>
      <description><![CDATA[<p>
<i>Sebastian Bergmann</i> has figured out <a href="http://sebastian-bergmann.de/archives/721-SQL-Puzzle.html">half of the puzzle</a> he was working on but is still a bit stuck on the second half. He knows how to mine information from Subversion, but not they queries to ask the database for the info he needs.
</p>
<blockquote>

I have written a small <a href="http://www.php.net/">PHP</a> script (the initial version of the script can be found <a href="http://shiflett.org/blog/2007/dec/php-advent-calendar-day-3">here</a>) to import the relevant data from a <a href="http://subversion.tigris.org/">Subversion</a> repository into the following tables of a relational database. [...] What I need now is two queries to ask the database
</blockquote>
<p>
There's already been <a href="http://sebastian-bergmann.de/archives/721-SQL-Puzzle.html#comments">tons of comments</a> in an effort to help him out, but it doesn't look quite like he's resolved the issue just yet.
</p>
<p>
<b>UPDATE 12.06.207</b>: Seems he's <a href="http://sebastian-bergmann.de/archives/724-BugMiner.html">found a solution</a> that'll work for him - <a href="http://www.phpunit.de/browser/svn_bug_miner">here's the script</a>.
</p>]]></description>
      <pubDate>Wed, 05 Dec 2007 08:46:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Codewalkers.com: Flickr Puzzle Mashup]]></title>
      <guid>http://www.phpdeveloper.org/news/6696</guid>
      <link>http://www.phpdeveloper.org/news/6696</link>
      <description><![CDATA[<p>
A new tutorial has been posted over on the <a href="http://codewalkers.com/">Codewalkers.com</a> website today looking at creating a "first mashup" - a <a href="http://codewalkers.com/tutorials/98/1.html">Flickr Puzzle</a> (by <i>Timothy Boronczyk</i>).
</p>
<blockquote>
I'll take you through a sample project in this tutorial'"a mini-mashup if you will'"that will take a photograph, break it up and present it to the user as simple puzzle.
</blockquote>
<p>
They use a picture from Flickr, the drag & drop feature of the Yahoo UI Library, and some PHP 5 (including GD) to create a simple, fun little application. It shows how to integrate content from one location, use functionality from another, and combine them into one seamless application.
</p>]]></description>
      <pubDate>Tue, 14 Nov 2006 07:03:25 -0600</pubDate>
    </item>
  </channel>
</rss>
