
<rss version="0.91">
  <channel>
  <copyright>Copyright 1997-2005 eden</copyright>
  <pubDate>Thu, 01 Jan 1970 01:33:31 +0100</pubDate>
  <description>Why bother? I mean, really, why?</description>
  <link>http://teethgrinder.co.uk/</link>
  <title>teethgrinder</title>

  <webMaster>rss&#064;teethgrinder.co.uk</webMaster>
  <managingEditor>rss&#064;teethgrinder.co.uk</managingEditor>
  <language>en-us</language>

<item><title>DIY Board Game :: Programming</title><link>http://teethgrinder.co.uk/perm.php?id=370</link><description>&lt;p&gt;I&#039;ve been thinking about making a little board game for me and my 2.5 year old boy to play. My thoughts so far are:&lt;/p&gt;
&lt;p&gt;A dice would mean that one of us could jump too far ahead to make it interesting. Plus Archie can&#039;t count very well. So maybe writting &#039;2&#039; on one side of a coin and &#039;3&#039; on the other would do.&lt;/p&gt;
&lt;p&gt;Designing the board to make it interesting. Knowing that you either move 2 or 3 squares would make jumping &#039;dangerous holes&#039; of length 2 fun.&lt;/p&gt;
&lt;p&gt;Lots of paths through the board.&lt;/p&gt;
&lt;p&gt;Have to go down one path to pick up an item to complete the game. E.g. you have to go through the woods to pick up a sword, then back through the woods and into the cave to slay the dragon.&lt;/p&gt;
&lt;p&gt;Make it co-operative, some bits require both players to help each other over. One play stands on a switch to lower a bridge while the other player crosses it.&lt;/p&gt;
&lt;p&gt;Players can swap moves if they want. Trade moves, items.&lt;/p&gt;
&lt;p&gt;Quests to make money and power up the players.&lt;/p&gt;
&lt;p&gt;Need to cut out interesting pictures of dragons, trees and landscape to make the board fun to look at.&lt;/p&gt;
&lt;p&gt;Part of the story could involve meeting a friendly wizard who casts a secret spell on the player. Then when they get stuck or something happens and they lose interest the spell will activate to help the character and make the game easier.&lt;/p&gt;
&lt;p&gt;Multiple endings or loose rules. Talk to the end bad guy. Negotiate a different ending?&lt;/p&gt;
&lt;p&gt;Some links to investigate: &lt;a href=&quot;http://www.bgdf.com&quot;&gt;board game design forum&lt;/a&gt;, a &lt;a href=&quot;http://www.escapadedirect.com/blankgamekit.html&quot;&gt;blank board game kit&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>deadsulky clothing :: Programming</title><link>http://teethgrinder.co.uk/perm.php?id=369</link><description>&lt;p&gt;Just finished a new &lt;a href=&quot;http://deadsulky.co.uk&quot;&gt;shopping website for kids and teen clothing&lt;/a&gt;, accessories, &lt;a href=&quot;http://deadsulky.co.uk/speakers-girl-p-11.html&quot;&gt;cool speakers&lt;/a&gt;, cool funky headphones, bracelets (&lt;a href=&quot;http://deadsulky.co.uk/accessories-c-3.html&quot;&gt;chunky candy bangles&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;It&#039;s also got some amazing &lt;a href=&quot;http://deadsulky.co.uk&quot;&gt;hand printed tshirts&lt;/a&gt; by a local artist. &lt;a href=&quot;http://deadsulky.co.uk&quot;&gt;Clothing with attitude&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Zend Framework Element Form Image Edit Upload :: Programming</title><link>http://teethgrinder.co.uk/perm.php?id=368</link><description>&lt;p&gt;I wanted to show an image uploader (using &lt;span style=&quot;font-family: Courier New;&quot;&gt;Zend_Form_Element_File&lt;/span&gt;) but when the user was editing the image (replacing it) it showed the current image in the form.&lt;/p&gt;
&lt;p&gt;For some reason ZF devs won&#039;t let you change the view helper for a &lt;span style=&quot;font-family: Courier New;&quot;&gt;Zend_Form_Element_File&lt;/span&gt;, so subclassing it and changing the view helper don&#039;t work. There is a half baked example of this here (&lt;a href=&quot;http://www.contentwithstyle.co.uk/content/custom-zend-form-image-upload-element/&quot;&gt;extend zend form file element&lt;/a&gt;), note that he is extending &lt;span style=&quot;font-family: Courier New;&quot;&gt;Zend_Form_Element&lt;/span&gt;, not &lt;span style=&quot;font-family: Courier New;&quot;&gt;Zend_Form_Element_File&lt;/span&gt; because (I assume) of the bug reported here (&lt;a href=&quot;http://framework.zend.com/issues/browse/ZF-8136&quot;&gt;Zend_Form_Element_File doesn&#039;t make use of $helper member&lt;/a&gt;) BOO!&lt;/p&gt;
&lt;p&gt;So anyway, in the end I just did this:&lt;/p&gt;
&lt;pre&gt;
&amp;lt;?php

class Boo_Form_Element_ImageUpload extends Zend_Form_Element_File {
&amp;nbsp;&amp;nbsp;&amp;nbsp; public $options;
&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; public function __construct($image_name, $attributes, $image_path) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;options = $image_path;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; parent::__construct($image_name, $attributes);
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // By default the description is rendered last, but we want to use
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // it to show the &amp;lt;img&amp;gt; when the user is editing it, so we rearrange
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // the order in which the things are rendered
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;clearDecorators();
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $this
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;addDecorator(&#039;Description&#039;, array(&#039;tag&#039; =&amp;gt; &#039;div&#039;, &#039;class&#039; =&amp;gt; &#039;description image-preview&#039;, &#039;escape&#039; =&amp;gt; false))
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;addDecorator(&#039;File&#039;)
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;addDecorator(&#039;Errors&#039;)
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;addDecorator(&#039;HtmlTag&#039;, array(&#039;tag&#039; =&amp;gt; &#039;dd&#039;))
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;addDecorator(&#039;Label&#039;, array(&#039;tag&#039; =&amp;gt; &#039;dt&#039;));
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if ($image_path)
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;setDescription(&#039;Current image:&amp;lt;br&amp;gt;&amp;lt;img src=&amp;quot;&#039;.$image_path.&#039;&amp;quot;&amp;gt;&#039;);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}
&lt;/pre&gt;
&lt;div&gt;and you can add it to a form just like a normal form element:&lt;/div&gt;
&lt;pre&gt;
$file = new Boo_Form_Element_ImageUpload(&#039;file&#039;, array(), &#039;http://my-site.local/images/placeholder.jpg&#039;);
$file-&amp;gt;setOptions(array(
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &#039;required&#039;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; true,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &#039;label&#039;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#039;Upload a picture&#039;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ))
&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;setDestination(realpath(APPLICATION_PATH . self::DIR_TMP))
&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;addValidators(array(
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; array(&#039;Count&#039;, true, 1),
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; array(&#039;Extension&#039;, true, array(&#039;jpg,jpeg,gif,png&#039;)),
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; array(&#039;Size&#039;, true, self::MAX_FILE_SIZE)
&amp;nbsp;&amp;nbsp;&amp;nbsp; ));
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
$this-&amp;gt;addElement($file);
&lt;/pre&gt;
&lt;p&gt;Hope that helps someone else :)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>motorola flipout gameboid :: Programming</title><link>http://teethgrinder.co.uk/perm.php?id=367</link><description>&lt;p&gt;I didn&#039;t find much on the net about the motorola flipout with gameboid. It works fine. The little 4 way pad at the bottom of the keyboard works as left right up and down and all the diaganols. The 4 way has a little ridge that becomes hard on the thumb after 20 minutes or so, but other than that the keys work well.&lt;/p&gt;
&lt;p&gt;I also got Marvin (the ZX Spectrum emulator) working with the keyboard. Works great. R-Type doesn&#039;t work for some reason, it asks you to start and stop the tape which seems to confuse the emulator.&lt;/p&gt;</description></item><item><title>monads in php :: Programming</title><link>http://teethgrinder.co.uk/perm.php?id=366</link><description>&lt;p&gt;&lt;a href=&quot;http://www.reddit.com/r/programming/comments/g0idg/translation_from_haskell_to_javascript_of/c1k5e4o&quot;&gt;Monads in php&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Availability Booking Calendar :: Programming</title><link>http://teethgrinder.co.uk/perm.php?id=365</link><description>&lt;p&gt;&lt;a href=&quot;http://availabilitybookingcalendar.co.uk/&quot;&gt;Availability Booking Calendar&lt;/a&gt;, is a &lt;a class=&quot;aw-ti-resultsPanel-details&quot; href=&quot;http://availabilitybookingcalendar.co.uk/&quot;&gt;calendar in php&lt;/a&gt; for your website. A &lt;a class=&quot;aw-ti-resultsPanel-details&quot; href=&quot;http://availabilitybookingcalendar.co.uk/faq.htm&quot;&gt;professional online booking system&lt;/a&gt; for holiday cottages, campsites, holiday flats.&lt;/p&gt;</description></item><item><title>Another little project :: Programming</title><link>http://teethgrinder.co.uk/perm.php?id=364</link><description>&lt;p&gt;&lt;a href=&quot;http://courier-pages.co.uk/&quot;&gt;Professional Couriers&lt;/a&gt;, &lt;a href=&quot;http://courier-pages.co.uk/&quot;&gt;Courier services&lt;/a&gt;, &lt;a href=&quot;http://courier-pages.co.uk/&quot;&gt;Courier adverts&lt;/a&gt; and &lt;a href=&quot;http://courier-pages.co.uk/&quot;&gt;Courier search&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>1 and 1 1&amp;1 1and1 adventures :: Programming</title><link>http://teethgrinder.co.uk/perm.php?id=363</link><description>&lt;p&gt;1&amp;amp;1 shared hosting, .htaccess Zend Framework.&lt;/p&gt;
&lt;p&gt;Here is my .htaccess file to get ZF up and running:&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px;&quot;&gt;&lt;code&gt;AddType x-mapp-php5 .php&lt;br /&gt;
AddHandler x-mapp-php5 .php&lt;br /&gt;
&lt;br /&gt;
#php_value magic_quotes_gpc off&lt;br /&gt;
#php_flag magic_quotes_gpc off&lt;br /&gt;
&lt;br /&gt;
#SetEnv APPLICATION_ENV development&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# check SUB-DOMAIN&lt;br /&gt;
#&lt;br /&gt;
SetEnvIf Host ^demo\. APPLICATION_ENV=demo&lt;br /&gt;
&lt;br /&gt;
RewriteEngine On&lt;br /&gt;
RewriteBase /&lt;br /&gt;
RewriteCond %{HTTP_HOST} ^demo\.&lt;br /&gt;
RewriteRule robots.txt demo.robots.txt [NC,L]&lt;br /&gt;
#&lt;br /&gt;
RewriteRule robots.txt list.robots.txt [NC,L]&lt;br /&gt;
# if the file exists - serve it&lt;br /&gt;
RewriteCond %{REQUEST_FILENAME} -s&lt;br /&gt;
RewriteRule ^.*$ - [NC,L]&lt;br /&gt;
&lt;br /&gt;
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php&lt;br /&gt;
Options -MultiViews&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Note that php_value and php_flag DO NOT WORK they give 500 server errors (no idea why) but you can set these flags via a php.ini file saved in the same directory as the .htaccess.&lt;/p&gt;
&lt;p&gt;I have a subdomain (demo) that points at the same ZF project, but it passes in the demo flag to tell it not to worry about some things. It also passes a different robots.txt out for the demo site.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://andrewodendaal.com/error-500-php_value-htaccess/&quot;&gt;php_value php_flag 500 server error htaccess&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>cloudnext VPS hosting review :: Programming</title><link>http://teethgrinder.co.uk/perm.php?id=362</link><description>&lt;p&gt;Don&#039;t waste your money. I was with them from June 2010 to Jan 2011 at a cost of around &amp;pound;90 - &amp;pound;100. I couldn&#039;t even putty into the VPS. My website never worked, sometimes the PHP info page timed out.&lt;/p&gt;
&lt;p&gt;I opened several tickets with them but eventually they just gave up trying to offer support. Utterly pathetic.&lt;/p&gt;
&lt;p&gt;teethgrinder is hosted with &lt;a href=&quot;http://www.123-reg.co.uk/&quot;&gt;123-reg.co.uk&lt;/a&gt; and has 17,250,000 page views.&lt;/p&gt;</description></item><item><title>Tesco VX1 Party Phone review :: life</title><link>http://teethgrinder.co.uk/perm.php?id=361</link><description>&lt;p&gt;OK phone, cheap and cheerful. Just calls and text msgs. Which is fine for me :)&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: rgb(0, 0, 128);&quot;&gt;&lt;span style=&quot;font-size: larger;&quot;&gt;&lt;b&gt;When texting PRESS # to turn off predictive text!&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;For more hints and tips see the &lt;a href=&quot;http://www.mediariver.co.uk/bluechip/page.asp?pid=109&quot;&gt;VX-1 MINI  MOBILE PHONE FAQ&lt;/a&gt;&lt;/p&gt;</description></item>
</channel>
</rss>


