<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Carsten's Random Ramblings</title>
	<atom:link href="http://www.bitbybit.dk/carsten/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.bitbybit.dk/carsten/blog</link>
	<description>on MySQL, PHP, programming and stuff</description>
	<pubDate>Sun, 26 Dec 2010 14:34:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>I Really Need to Get a Life&#8230;</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=313</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=313#comments</comments>
		<pubDate>Sun, 26 Dec 2010 12:52:49 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=313</guid>
		<description><![CDATA[Poul-Henning Kamp, of FreeBSD fame, posted a year-end question (in Danish) on his blog at the IT rag version2.dk: What would be the computer equivalent of Shannon&#8217;s ultimate machine?
Based on one of the comment suggestions, inspired by the fact that I&#8217;d been messing around with automating the Windows cursor some months back, and having half [...]]]></description>
			<content:encoded><![CDATA[<p>Poul-Henning Kamp, of FreeBSD fame, posted a year-end question (in Danish) <a href="http://www.version2.dk/artikel/17384-det-mest-nytteloese-program">on his blog</a> at the IT rag version2.dk: What would be the computer equivalent of <a href="http://www.youtube.com/watch?v=cZ34RDn34Ws">Shannon&#8217;s ultimate machine</a>?</p>
<p>Based on one of the comment suggestions, inspired by the fact that I&#8217;d been messing around with automating the Windows cursor some months back, and having half an hour too much spare time, I came up with my own contender for the world&#8217;s most useless computer program:</p>
<p><iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="349" src="http://www.youtube.com/embed/9WTq2nRgYeQ?rel=0" frameborder="0"></iframe> (<a href="http://www.youtube.com/watch?v=9WTq2nRgYeQ">http://www.youtube.com/watch?v=9WTq2nRgYeQ</a>)</p>
<p>If you&#8217;re intensely interested, the interesting part of the C# program is here:<br />
<span id="more-313"></span><br />
<code>using System;<br />
using System.Runtime.InteropServices;<br />
using System.Threading;<br />
using System.Windows.Forms;<br />
using System.Drawing;</code></p>
<p>namespace Shannon {<br />
public partial class Shannon : Form {<br />
[DllImport("user32.dll")]<br />
static extern void mouse_event(int dwFlags, int dx, int dy, int dwData, int dwExtraInfo);<br />
[Flags]<br />
public enum MouseEventFlags {<br />
MOVE = 0&#215;1,<br />
LEFTDOWN = 0&#215;2,<br />
LEFTUP = 0&#215;4,<br />
}</p>
<p>public Shannon() {<br />
InitializeComponent();<br />
}</p>
<p>// In order to show what&#8217;s going on, we don&#8217;t do any work until the<br />
// program has settled down.<br />
protected override void OnLoad(EventArgs e) {<br />
base.OnLoad(e);<br />
Application.Idle += new EventHandler(OnLoaded);<br />
}</p>
<p>private void OnLoaded(object sender, EventArgs e) {<br />
Application.Idle -= new EventHandler(OnLoaded);<br />
// form is centered on a 1600&#215;1200 screen<br />
Cursor.Position = new Point(790, 575);<br />
Thread.Sleep(500);<br />
for (int i = 0; i &lt; 135; i++) {<br />
mouse_event((int)(MouseEventFlags.MOVE), 1, -1, 0, 0);<br />
Thread.Sleep(20);<br />
}<br />
Thread.Sleep(150);<br />
mouse_event((int)(MouseEventFlags.LEFTDOWN), 0, 0, 0, 0);<br />
mouse_event((int)(MouseEventFlags.LEFTUP), 0, 0, 0, 0);<br />
}<br />
}<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=313</wfw:commentRss>
		</item>
		<item>
		<title>E-mail Hosting Recommendations?</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=299</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=299#comments</comments>
		<pubDate>Fri, 02 Apr 2010 13:57:32 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=299</guid>
		<description><![CDATA[If you think I&#8217;ve been a long time in replying to your e-mails in the past month or so, there&#8217;s a good explanation for that.
For the past many years, I&#8217;ve been using an e-mail hosting provider that prides itself on offering a special class of services. Things have actually been very good, with few hiccups [...]]]></description>
			<content:encoded><![CDATA[<p>If you think I&#8217;ve been a long time in replying to your e-mails in the past month or so, there&#8217;s a good explanation for that.</p>
<p>For the past many years, I&#8217;ve been using an e-mail hosting provider that prides itself on offering a special class of services. Things have actually been very good, with few hiccups along the way. However, for the past month, things have seriously gone downhill with e-mails taking hours or even days to arrive.</p>
<p>And the problem is indeed with the provider: The Received: headers tell their own very sad story on just how long it takes for an e-mail to progress through their internal systems.<span id="more-299"></span></p>
<p>Worse, the support people are being less than helpful, refusing to recognize the problems and doing nothing to communicate what they are doing to resolve their problems.</p>
<p>Below is a quick analysis of just how things have been in March. The times shown are from the time an e-mail first enters the provider&#8217;s network (according to the first Received header with the provider&#8217;s IP) until actual delivery (last Received: header, which coincides with the time that I see the mail in my client).</p>
<p style="text-align: center;"><a href="http://www.bitbybit.dk/carsten/blog/wp-content/uploads/2010/04/mailhost.png"><img class="size-full wp-image-300 aligncenter" title="mailhost" src="http://www.bitbybit.dk/carsten/blog/wp-content/uploads/2010/04/mailhost.png" alt="" width="454" height="266" /></a></p>
<p style="text-align: left;">Some 40% of the emails take more than 5 minutes to arrive. Whenever I trigger something in a web form that requires me to confirm an e-mail, there&#8217;s a 1 in 5 chance that I&#8217;ll be waiting for an hour or more before that e-mail arrives.</p>
<p style="text-align: left;">Clearly, this doesn&#8217;t work. What&#8217;s worse, this isn&#8217;t just a single-day fluke: This has been going on throughout the month:</p>
<p style="text-align: center;"><a href="http://www.bitbybit.dk/carsten/blog/wp-content/uploads/2010/04/mailhost2.png"><img class="size-full wp-image-301 aligncenter" title="mailhost2" src="http://www.bitbybit.dk/carsten/blog/wp-content/uploads/2010/04/mailhost2.png" alt="" width="386" height="226" /></a></p>
<p style="text-align: left;">(Note that avg/median times are on the scale to the left; max times are on the scale to the right. Click for larger version)</p>
<p style="text-align: left;">So now the hunt is on to find an e-mail hosting company which can provide a proven, stable service, preferably one in Scandinavia or elsewhere in Northern Europe.</p>
<p style="text-align: left;">Yes. I&#8217;ve considered Google Mail. But I value my privacy too much.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=299</wfw:commentRss>
		</item>
		<item>
		<title>Expert PHP and MySQL</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=281</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=281#comments</comments>
		<pubDate>Fri, 02 Apr 2010 13:12:46 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[Books]]></category>

		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=281</guid>
		<description><![CDATA[
Just released by Wrox: Expert PHP and MySQL by Andrew Curioso, Ronald Bradford and Patrick Galbraith.
For once, an &#8220;Expert&#8221; book where you not only can, but must take the title seriously. This book is choke-full of information, examples and best practices written by some of the foremost experts in their respective fields. All of the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.amazon.com/gp/product/0470563125?ie=UTF8&amp;tag=bitbybit01-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0470563125"><img title="Expert PHP and MySQL" src="http://www.bitbybit.dk/carsten/blog/wp-content/uploads/2010/04/51eyfh4fzl_sl110_.jpg" border="0" style="margin: 3px" alt="Expert PHP and MySQL" width="87" height="110" align="right" /></a></p>
<p>Just released by <a href="http://www.wrox.com/">Wrox</a>: <a href="http://www.amazon.com/gp/product/0470563125?ie=UTF8&amp;tag=bitbybit01-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0470563125"><em>Expert PHP and MySQL</em></a> by <a href="http://andrewcurioso.com/">Andrew Curioso</a>, <a href="http://ronaldbradford.com/">Ronald Bradford</a> and <a href="http://patg.net/">Patrick Galbraith</a>.</p>
<p>For once, an &#8220;Expert&#8221; book where you not only can, but must take the title seriously. This book is choke-full of information, examples and best practices written by some of the foremost experts in their respective fields. All of the authors clearly have extensive experience working on setups requiring expert knowledge. Best of all, they are not afraid of thinking outside the box and the solutions they present are in no way limited to pure PHP and MySQL solutions.</p>
<p>This book really does expect something from the reader, so perhaps a word of caution is in order: you really do need <span id="more-281"></span>to be familiar with a range of non-beginner subjects on both PHP and MySQL. I strongly recommend that you first read Chapter 1 of the book, <a href="http://expertphpandmysql.com/ExpertPhpandMySQL-ch01.pdf">helpfully available on the books&#8217; website.</a> If you are not familiar with the contents presented here, you&#8217;re not likely to gain much from your purchase.</p>
<p>If, on the other hand, all that you read there is Known Stuff, you&#8217;re really in for a treat with this book. If you write programs because you have that personal itch, this book is going to make you feel as if you&#8217;ve just been attacked by a horde of mosquitoes. Really. You&#8217;ll be re-thinking everything about how you build your websites from now on. But you won&#8217;t need any itches for this book to make you re-think how you work with PHP and MySQL.</p>
<p><!-- begin google --></p>
<div style="text-align: center"><script type="text/javascript"><!--
google_ad_client = "pub-2260420754115125";
/* 468x60, oprettet 20-02-08 */
google_ad_slot = "3274928356";
google_ad_width = 468;
google_ad_height = 60;
// --></script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script></div>
<p><!-- end google --></p>
<p>The book is extremely information-packed. I&#8217;m not one to shy away from reading 3-400 pages of technical references in a day, but this book is so densely filled that you simply won&#8217;t be able to do that. Considering the breadth of topics covered, the authors at the same time  manage to dive very deeply into each subject, covering all relevant resources, options, program libraries and best practices along the way. This does not make the book hard to read, to the contrary the language is very clear and concise. Don&#8217;t expect information to be repeated anywhere.</p>
<p>Whether it&#8217;s due to the authors or excellent editing, the language is very consistent and flows very well from chapter to chapter. If it wasn&#8217;t for the change in subject matter and the authors&#8217; stated focus areas in the beginning of the book, it would be hard to discern that three people have been involved in writing this book.</p>
<p>A wonderful trait of all the authors is that they are very frank in assessing the available technologies, and don&#8217;t mind telling you which things simply don&#8217;t work, and why you should stay away from them - even when those technologies are offered by their respective employers.</p>
<p>You&#8217;ll learn not only how to make the most optimal pure-PHP and pure-MySQL solutions, you will also see how you can integrate both of these with external programs by writing your own extensions and libraries. Descriptions of best practices in subjects such as user authentication and security will probably make you want to go back and check whether something could be improved in your own code and web server setup.</p>
<p>The chapters on advanced caching techniques, multi-tasking, optimization and debugging considerations are all very detailed and to the point. You&#8217;ll be able to immediately put the techniques presented to use, and the book will serve you not only as a great tutorial, it will also be a great reference later on when you want to tune your setup.</p>
<p>There are of course a few chapters that could have used a bit more work. One chapter consists of barely more than a listing of output of feature lists, another contains very lengthy outputs that the reader might as well pull up on his own screen when working with some of the products. But these examples really are exceptions in an otherwise extremely well-written, informative and above all useful book.</p>
<p>Another word of caution: The book is highly UNIX (Linux) centric. If all your work is done using Windows, your benefit from reading this book might be limited. Then again, reading the book and realizing the potentials just might explain to you why it is most shops deploy their PHP/MySQL solutions on Linux.</p>
<p>You can buy the book from <a href="http://www.amazon.com/gp/product/0470563125?ie=UTF8&amp;tag=bitbybit01-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0470563125">amazon.com</a>, or <a href="http://www.amazon.co.uk/gp/product/0470563125?ie=UTF8&amp;tag=bitbybit-21&amp;linkCode=as2&amp;camp=1634&amp;creative=6738&amp;creativeASIN=0470563125">amazon.co.uk</a></p>
<p style="border: 1px solid  black; padding: 0px; background-color: #ffffa0; text-align: center;  float: none; margin-top: 0px; margin-right: 45px; margin-left: 45px" align="center">For more MySQL-related information om this  site, see:<br />
<a href="http://www.bitbybit.dk/carsten/blog/?page_id=13">Other (My)SQL book  reviews</a> || <a href="http://www.bitbybit.dk/carsten/blog/?cat=2">Other MySQL blog  entries</a><a href="http://www.bitbybit.dk/carsten/blog/?page_id=158"><br />
MySQL Pop  Quizzes</a> || <a href="http://www.bitbybit.dk/carsten/blog/?page_id=157">MySQL  Function of the Day<br />
</a><a href="http://www.bitbybit.dk/carsten/blog/?cat=2"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=281</wfw:commentRss>
		</item>
		<item>
		<title>More MySQL quizzes</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=275</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=275#comments</comments>
		<pubDate>Sat, 06 Feb 2010 13:05:10 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[Pop Quiz]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=275</guid>
		<description><![CDATA[Not quite pop quiz format, but if you enjoyed the ones I published some time ago (almost 2 years ago now&#8230; how time flies), you&#8217;ll probably be interested to know that &#8220;plogi&#8221; and &#8220;urs&#8221; (whoever they are) have picked up on the idea and started on their own set of questions and answers.
Do pay them [...]]]></description>
			<content:encoded><![CDATA[<p>Not quite pop quiz format, but if you enjoyed <a href="http://www.bitbybit.dk/carsten/blog/?page_id=158">the ones I published</a> some time ago (almost 2 years ago now&#8230; how time flies), you&#8217;ll probably be interested to know that <span id="more-275"></span>&#8220;plogi&#8221; and &#8220;urs&#8221; (whoever they are) have <a href="http://mysql-qotd.casperia.net/">picked up on the idea and started on their own set of questions and answers.</a></p>
<p>Do pay them a visit. You might learn something!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=275</wfw:commentRss>
		</item>
		<item>
		<title>Skype: Remove the Cat (Webcam Avatar)</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=269</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=269#comments</comments>
		<pubDate>Wed, 03 Feb 2010 07:38:08 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=269</guid>
		<description><![CDATA[It took us a while to figure out where this was hidden, so I thought I&#8217;d post it here&#8230;
A member of my family has for a long time been battling with a &#8220;Webcam Avatar&#8221;, a stupid white cat that replaced his video feed in Skype. Apart from not knowing how it had entered his computer [...]]]></description>
			<content:encoded><![CDATA[<p>It took us a while to figure out where this was hidden, so I thought I&#8217;d post it here&#8230;</p>
<p>A member of my family has for a long time been battling with a &#8220;Webcam Avatar&#8221;, a stupid white cat that replaced his video feed in Skype. Apart from not knowing how it had entered his computer in the first place, whatever he did to reset his webcam settings, it would keep reappearing once Skype was restarted.</p>
<p>It turns out that the &#8220;Webcam Avatar&#8221; is not Skype-specific, but <span id="more-269"></span>rather something that gets pre-installed along with all the other crap Dell puts on a laptop (or perhaps as part of a system upgrade).</p>
<p>To remove it, you need to go the path of Control Panel-&gt; Add/Remove programs -&gt; Remove Live Cam Avatar. It might appear in more than one place</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=269</wfw:commentRss>
		</item>
		<item>
		<title>There are Places You Just Don&#8217;t Want to Go&#8230;</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=262</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=262#comments</comments>
		<pubDate>Sat, 07 Nov 2009 20:52:54 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=262</guid>
		<description><![CDATA[on the web.
Overheard someone mentioning &#8220;Delhi Belly&#8221; in a conversation, and unable to figure from context what it was about, I headed to the otherwise very helpful Merriam-Webster dictionary.
Which, having defined the term, promptly and cheerfully suggests that you follow a link to &#8220;Visually explore traveler&#8217;s diarrhea&#8221;
Uhm. No thanks. I don&#8217;t think I will.
]]></description>
			<content:encoded><![CDATA[<p>on the web.</p>
<p>Overheard someone mentioning &#8220;Delhi Belly&#8221; in a conversation, and unable to figure from context what it was about, I headed to the otherwise very helpful <a href="http://www.aolsvc.merriam-webster.aol.com/dictionary/traveler%27s+diarrhea">Merriam-Webster dictionary</a>.</p>
<p>Which, having defined the term, promptly and cheerfully suggests that you follow a link to &#8220;Visually explore traveler&#8217;s diarrhea&#8221;</p>
<p>Uhm. No thanks. I don&#8217;t think I will.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=262</wfw:commentRss>
		</item>
		<item>
		<title>And When the Delivery Truck Left, &#8230;</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=237</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=237#comments</comments>
		<pubDate>Wed, 29 Apr 2009 06:50:20 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=237</guid>
		<description><![CDATA[grmbl&#8230;

]]></description>
			<content:encoded><![CDATA[<p>grmbl&#8230;</p>
<p><a href="http://www.bitbybit.dk/carsten/blog/wp-content/uploads/2009/04/img_0059.jpg"><img class="alignnone size-medium wp-image-238" title="img_0059" src="http://www.bitbybit.dk/carsten/blog/wp-content/uploads/2009/04/img_0059-225x300.jpg" alt="" width="225" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=237</wfw:commentRss>
		</item>
		<item>
		<title>Please stop wasting my time&#8230;</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=233</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=233#comments</comments>
		<pubDate>Tue, 28 Apr 2009 08:53:42 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=233</guid>
		<description><![CDATA[Another day, another application that insists on having to count every single object in the db/filesystem/whatever, just to show me a progress bar as it copies/updates/deletes something.
I. Don&#8217;t. Care.
Really. I just want you to get started on your task and get the job done.
If you insist on showing a progress bar, fine. But then get [...]]]></description>
			<content:encoded><![CDATA[<p>Another day, another application that insists on having to count every single object in the db/filesystem/whatever, just to show me a progress bar as it copies/updates/deletes something.</p>
<p>I. Don&#8217;t. Care.</p>
<p>Really. I just want you to get started on your task and get the job <em>done.</em></p>
<p>If you insist on showing a progress bar, fine. But then get the counts you need <em>in parallel</em> with the operation you&#8217;ve been asked to perform. Perhaps you&#8217;ll find that the job you&#8217;ve been asked to do is completed before you finish counting.</p>
<p>User-friendliness my ****.</p>
<p>Getting the job done is user friendly. Wasting my time isn&#8217;t.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=233</wfw:commentRss>
		</item>
		<item>
		<title>Those were the days&#8230;</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=231</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=231#comments</comments>
		<pubDate>Mon, 20 Apr 2009 13:24:02 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=231</guid>
		<description><![CDATA[Feb. 15, 2006:
&#8220;We will be part of a larger company, but it will be called MySQL&#8221; Mickos said.
Sigh&#8230;
]]></description>
			<content:encoded><![CDATA[<p><a href="http://news.zdnet.com/2100-9593_22-146851.html">Feb. 15, 2006:</a></p>
<blockquote><p>&#8220;We will be part of a larger company, but it will be called MySQL&#8221; Mickos said.</p></blockquote>
<p style="text-align: left;">Sigh&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=231</wfw:commentRss>
		</item>
		<item>
		<title>My First Flash (nee Haxe) App</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=221</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=221#comments</comments>
		<pubDate>Thu, 04 Dec 2008 21:17:42 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[Haxe]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=221</guid>
		<description><![CDATA[Kristian introduced me to Haxe, a cool scripting language that will let you easily write Flash, JavaScript and PHP applications that utilize the same set of libraries. Always keen to learn new stuff, I thought I&#8217;d try my hands at writing my nth iteration of the Game of Life, this time for Flash. (The Game [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://kristiannielsen.livejournal.com/">Kristian</a> introduced me to <a href="http://haxe.org/">Haxe</a>, a cool scripting language that will let you easily write Flash, JavaScript and PHP applications that utilize the same set of libraries. Always keen to learn new stuff, I thought I&#8217;d try my hands at writing my <em>n</em>th iteration of <a href="http://www.math.com/students/wonders/life/life.html">the Game of Life</a>, this time for Flash. (The Game of Life is my preferred &#8220;Hello World&#8221; equivalent; just slightly more complicated and good for learning how programming languages do basic UI stuff).</p>
<p>Writing the app turned out to be surprisingly trivial; from the time I downloaded Haxe until I was looking at the first iterations blink on the screen was just a few hours.</p>
<p>The main problem in using Haxe is the lack of structured library documentation; most of my &#8220;coding&#8221; time was spent Googling for information on which classes to use and how to use them.</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="350" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="/carsten/blog/wp-content/uploads/2008/12/index.swf" /><embed type="application/x-shockwave-flash" width="350" height="350" src="/carsten/blog/wp-content/uploads/2008/12/index.swf"></embed></object></p>
<p>Give it a whirl! If you need inspiration for starting patterns, try one of the two patterns below.
</p>
<p style="text-align: center;"><a href="http://www.bitbybit.dk/carsten/blog/wp-content/uploads/2008/12/dots.png"><img class="size-medium wp-image-222 aligncenter" title="Starting positions" src="http://www.bitbybit.dk/carsten/blog/wp-content/uploads/2008/12/dots.png" alt="" width="123" height="71" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=221</wfw:commentRss>
		</item>
	</channel>
</rss>
