<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2titles.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemtitles.css"?><rss 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" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Spare Pencil</title>
	
	<link>http://sparepencil.com</link>
	<description />
	<lastBuildDate>Sat, 17 Jan 2009 14:48:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/sparepencil" /><feedburner:info uri="sparepencil" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fsparepencil" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fsparepencil" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Fsparepencil" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/sparepencil" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fsparepencil" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fsparepencil" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fsparepencil" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><item>
		<title>Advanced Excerpt + PHP 4 problem (solved)</title>
		<link>http://feedproxy.google.com/~r/sparepencil/~3/o6lrvROa1uQ/</link>
		<comments>http://sparepencil.com/archives/2009/01/17/advanced-excerpt-php-4-problem-solved/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 14:48:42 +0000</pubDate>
		<dc:creator>Bas</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[advanced-excerpt]]></category>
		<category><![CDATA[bugfix]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://sparepencil.com/?p=146</guid>
		<description><![CDATA[<p>Immediately after the release of version 0.2.1, I was made aware of a huge problem. The plugin fails to work on PHP 4, causing a fatal error.</p>
<p>A quick update has been released that fixes this. The new safe release&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Immediately after the release of version 0.2.1, I was made aware of a huge problem. The plugin fails to work on PHP 4, causing a fatal error.</p>
<p>A quick update has been released that fixes this. The new safe release is now 0.2.2, which should be available from <a href="http://wordpress.org/extend/plugins/advanced-excerpt/">the WordPress plugin repository</a> shortly.</p>
<p>The cause for this problem is the fact that PHP 4 can have mbstring enabled, but not support all its functions.  Ironically.</p>
<p>By the way, this would be a good time to urge your host to update PHP. The version 4 releases are all historical now.</p>
]]></content:encoded>
			<wfw:commentRss>http://sparepencil.com/archives/2009/01/17/advanced-excerpt-php-4-problem-solved/feed/</wfw:commentRss>
		<slash:comments>52</slash:comments>
		<feedburner:origLink>http://sparepencil.com/archives/2009/01/17/advanced-excerpt-php-4-problem-solved/</feedburner:origLink></item>
		<item>
		<title>Advanced Excerpt 0.2.1 released</title>
		<link>http://feedproxy.google.com/~r/sparepencil/~3/MooioNBVnNY/</link>
		<comments>http://sparepencil.com/archives/2009/01/16/advanced-excerpt-021-released/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 20:32:25 +0000</pubDate>
		<dc:creator>Bas</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[advanced-excerpt]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://sparepencil.com/?p=143</guid>
		<description><![CDATA[<p>The previous version of the Advanced Excerpt plugin has lasted a long time, but its increasing popularity and several feature requests have finally resulted in a new version.</p>
<p>What new features are included?</p>
<p>Well, most importantly, multi-byte character support. The&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>The previous version of the Advanced Excerpt plugin has lasted a long time, but its increasing popularity and several feature requests have finally resulted in a new version.</p>
<p>What new features are included?</p>
<p>Well, most importantly, multi-byte character support. The plugin has received a lot of attention on the Asian side of the world (judging from the pingbacks), but unfortunately it fails with Chinese, Japanese and a whole host of other character sets. <a href="http://myfairland.net/">Betty</a> was the first to <a href="http://sparepencil.com/archives/2007/08/21/advanced-excerpt-plugin-for-wordpress/#comment-5618">report this problem</a> and kindly helped me solve it. The plugin now supports multi-byte character sets.</p>
<p>I should point out, though, that it will only work when the <em>mbstring</em> PHP extension is enabled on the host. Furthermore, using UTF-8 on your blog is the safest way to make everything work.</p>
<p>People who don&#8217;t have the <em>mbstring</em> extension need not worry, the plugin will continue to work but with multi-byte character support disabled.</p>
<p>Another effort to internationalise the plugin includes the support for translations. The plugin now comes with a language file that can be used for translation. The only languages that are currently available are English and Dutch, but additional translations can be made using the PO file. If you want to translate, but don&#8217;t know how: stay tuned, there will be a post on that shortly.</p>
<p>Many people have been complaining about the problematic implementation of the Advanced Excerpt plugin in templates (using <code>$advancedexcerpt-&gt;filter()</code>). Admittedly, this was a confusing method and besides, the plugin FAQ was slightly incorrect. Sorry to all users who have been trying to get this work for so long.</p>
<p>This problem should be solved with the new release, which introduces the_advanced_excerpt() function. Using advanced excerpts in your template is now as easy as using any of WordPress&#8217; default template tags. Usage details can be found in the <a title="How to use the new API" href="http://wordpress.org/extend/plugins/advanced-excerpt/faq/">plugin FAQ</a>.</p>
<p>One final new addition to the feature set is the ability to ignore custom excerpts (you know, the ones you can write manually for every post you publish). The default behaviour is to always use custom excerpts, but for some reason a blogger might change his mind. One setting changes the behaviour.</p>
<p>Other updates include consistency of the options page with the rest of the new WordPress 2.7 admin interface as well as a compatibility check (which was by far the least work).</p>
<p>So, go ahead and update the plugin and enjoy the new features! Also, feel free to inform me of problems or features you would like to see in a next version in the comments section.</p>
]]></content:encoded>
			<wfw:commentRss>http://sparepencil.com/archives/2009/01/16/advanced-excerpt-021-released/feed/</wfw:commentRss>
		<slash:comments>45</slash:comments>
		<feedburner:origLink>http://sparepencil.com/archives/2009/01/16/advanced-excerpt-021-released/</feedburner:origLink></item>
		<item>
		<title>Smokescreen visualisation using Flash AS 3.0</title>
		<link>http://feedproxy.google.com/~r/sparepencil/~3/MuKX6Bd5MzQ/</link>
		<comments>http://sparepencil.com/archives/2008/05/04/smokescreen-visualisation-using-flash-as-30/#comments</comments>
		<pubDate>Sun, 04 May 2008 15:32:29 +0000</pubDate>
		<dc:creator>Bas</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://sparepencil.com/?p=123</guid>
		<description><![CDATA[<p>I have been messing around a bit in Flash recently. I actually managed to learn many things about the new version of the ActionScript language (AS 3.0). Codewise, it is a huge improvement over AS 2.0 (one reason why I&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>I have been messing around a bit in Flash recently. I actually managed to learn many things about the new version of the ActionScript language (AS 3.0). Codewise, it is a huge improvement over AS 2.0 (one reason why I was never very fond of programming with Flash) but on the other hand quite tricky to understand at first. I still find it a little bit confusing.  However, I did make something cool, so I am not totally lost.</p>
<p>Thanks to a number of useful tutorials over at <a href="http://gotandlearn.com">gotoAndLearn()</a> I was introduced to <a href="http://gotoandlearn.com/player.php?id=62">sound spectrums</a>, <a href="http://gotoandlearn.com/player.php?id=63">bitmap filters</a> and <a href="http://gotoandlearn.com/player.php?id=72">creating packages/classes</a> in AS3.0. Of course I had to test myself to see if I had actually learned something. A music visualisation was the result!</p>
<p>Here is what it looks like (if the SWF file is buggy, please tell me how much I suck).</p>
<p><script type="text/javascript" src="http://sparepencil.com/wp-content/plugins/pb-embedflash/js/swfobject.js"></script><span class="embedflash" id="swfidd61947e0cc63c4cde103d48feaea31d5"><small>(Please open the article to see the flash file or player.)</small></span><script type="text/javascript">
				var flashvars = {}; var params = {}; var attributes = {};params.allowfullscreen = "true"; params.allowscriptaccess = "always";
				swfobject.embedSWF("http://sparepencil.com/wp-content/uploads/2008/05/smokescreendemo.swf","swfidd61947e0cc63c4cde103d48feaea31d5","400","360","9.0.0","http://sparepencil.com/wp-content/plugins/pb-embedflash/swf/expressInstall.swf",flashvars,params,attributes);
		</script></p>
<p>What it does is actually quite simple (once you&#8217;ve completed the previously mentioned tutorials, that is). Every time a frame is rendered it computes the sound spectrum. Flash has a function that does the comlicated stuff and then returns a set of values which describe how the sound is distributed in the frequency spectrum. Basically the same thing as those &#8216;jumping bars&#8217; in your media player (or stereo). The visualisation plots this data on a bitmap object, which is then blurred and scrolled up depending on the overall volume. The process repeats itself over and over, which results in a smoke effect. Variations in volume usually create nice puffs of smoke.</p>
<p>I thought this was quite an interesting little project, so I created an ActionScript class which makes the visualisation easy to reuse in other Flash applications. Admittedly, this is my first well-structured ActionScript code ever. Please <a href="http://sparepencil.com/wp-content/uploads/2008/05/smokescreen.as">have a look at it</a> and then proceed to critise my attempt at programming in the comments.</p>
<p>If you happen to like my creation and want to put it to good use, you can <a href="http://sparepencil.com/wp-content/uploads/2008/05/smokescreen.zip">download the AS3.0 package</a>. You are free to use and modify it without any limitations, but please let me know in case it&#8217;s a public project.</p>
<p>The music in the demo was made by <a href="http://www.ocremix.org/remix/OCR01328/">PriZm at OC ReMix</a>. A great website by the way.</p>
]]></content:encoded>
			<wfw:commentRss>http://sparepencil.com/archives/2008/05/04/smokescreen-visualisation-using-flash-as-30/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://sparepencil.com/archives/2008/05/04/smokescreen-visualisation-using-flash-as-30/</feedburner:origLink></item>
		<item>
		<title>Permission bug resolved in WP 2.5</title>
		<link>http://feedproxy.google.com/~r/sparepencil/~3/AS7H5jj7QmQ/</link>
		<comments>http://sparepencil.com/archives/2008/03/30/permission-bug-resolved-in-wp-25/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 20:44:27 +0000</pubDate>
		<dc:creator>Bas</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://sparepencil.com/?p=119</guid>
		<description><![CDATA[<p>With the release of WordPress 2.5, the AJAX verification method seems to have been changed. This means that my <strong>AJAX Referer Fix</strong> plugin which addresses the related permission issue in previous versions is no longer adequate.</p>
<p>But don&#8217;t worry, the&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>With the release of WordPress 2.5, the AJAX verification method seems to have been changed. This means that my <strong>AJAX Referer Fix</strong> plugin which addresses the related permission issue in previous versions is no longer adequate.</p>
<p>But don&#8217;t worry, the good news is that the new verification method doesn&#8217;t <a href="http://sparepencil.com/archives/2007/06/03/wordpress-and-the-cookies/">conflict</a> with your webhost&#8217;s protection techniques!</p>
<p>To everybody who uses this plugin: it will not work in WP 2.5. If it worked for you in previous version, then you will likely not need it in WP 2.5.</p>
]]></content:encoded>
			<wfw:commentRss>http://sparepencil.com/archives/2008/03/30/permission-bug-resolved-in-wp-25/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		<feedburner:origLink>http://sparepencil.com/archives/2008/03/30/permission-bug-resolved-in-wp-25/</feedburner:origLink></item>
		<item>
		<title>“You don’t have permission” bug revisited</title>
		<link>http://feedproxy.google.com/~r/sparepencil/~3/h2rzodDrPCs/</link>
		<comments>http://sparepencil.com/archives/2007/08/29/you-dont-have-permission-bug-revisited/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 20:25:47 +0000</pubDate>
		<dc:creator>Bas</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://sparepencil.com/archives/2007/08/29/you-dont-have-permission-bug-revisited/</guid>
		<description><![CDATA[<p>A few months ago, I wrote <a href="http://sparepencil.com/archives/2007/06/03/wordpress-and-the-cookies/">an extensive article</a> about a problem that can occur in WordPress due to certain server configurations. This problem causes several issues in the Admininistration Panel, such as <strong>You don&#8217;t have permission to do</strong>&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>A few months ago, I wrote <a href="http://sparepencil.com/archives/2007/06/03/wordpress-and-the-cookies/">an extensive article</a> about a problem that can occur in WordPress due to certain server configurations. This problem causes several issues in the Admininistration Panel, such as <strong>You don&#8217;t have permission to do that</strong> and <strong>Are you sure you want to edit this page: &#8220;&#8221;?</strong>.</p>
<p>The solution I offered solves the problem in most cases, but it wasn&#8217;t really good. Main reason: I provided a patch for a <em>pluggable function</em>! Secondly, the solution was less secure than the original.</p>
<p>However, I have returned to this issue to come up with a better solution. Behold, <a href="http://sparepencil.com/code/ajax-referer-fix/">a plugin to fix this problem</a>! No need to modify any WordPress files (now we can upgrade like any other WordPress user  <img src='http://sparepencil.com/wp-includes/images/smilies/icon_smile.gif' alt=':smile:' class='wp-smiley' />  ), just upload the plugin and activate it.</p>
<p>I have also improved the fix: it is now just as secure as the original one. You should <a href="http://svn.wp-plugins.org/ajax-referer-fix/trunk/ajax-referer-fix.php">check out the code</a> if you want to know why. <img src='http://sparepencil.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://sparepencil.com/archives/2007/08/29/you-dont-have-permission-bug-revisited/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		<feedburner:origLink>http://sparepencil.com/archives/2007/08/29/you-dont-have-permission-bug-revisited/</feedburner:origLink></item>
		<item>
		<title>Advanced Excerpt plugin for WordPress</title>
		<link>http://feedproxy.google.com/~r/sparepencil/~3/MQTNjNkxFmE/</link>
		<comments>http://sparepencil.com/archives/2007/08/21/advanced-excerpt-plugin-for-wordpress/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 23:11:52 +0000</pubDate>
		<dc:creator>Bas</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://sparepencil.com/archives/2007/08/21/advanced-excerpt-plugin-for-wordpress/</guid>
		<description><![CDATA[<p>I promised to release some WordPress plugins I&#8217;ve been working on. Well, here is <a href="http://sparepencil.com/code/advanced-excerpt/">the first one</a>! <img src='http://sparepencil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>It&#8217;s called &#8220;Advanced Excerpt&#8221; and basically it just improves the way excerpts are created. By default,&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>I promised to release some WordPress plugins I&#8217;ve been working on. Well, here is <a href="http://sparepencil.com/code/advanced-excerpt/">the first one</a>! <img src='http://sparepencil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>It&#8217;s called &#8220;Advanced Excerpt&#8221; and basically it just improves the way excerpts are created. By default, if a post has no explicit excerpt, WordPress creates one by grabbing the post content, stripping all the tags, shortening it to a (hard-coded) length and adding an ellipsis (which is, by the way, also hard-coded). The result: a dull excerpt.</p>
<p>This plugin changes that. The most notable feature is that it keeps your HTML. Furthermore, it allows you to choose the length of the excerpt (using either words or characters) and which character(s) is/are used as an ellipsis. You can even choose which HTML tags are stripped and which are not! It is very useful if your WordPress theme uses excerpts at prominent places (like mine).</p>
<p>There is <a href="http://wordpress.org/extend/plugins/wp-smarter-excerpt/">another plugin</a> that attempts to improve excerpt creation, but I tried it and it just doesn&#8217;t work properly (in fact, it inspired me to write a better one). One major problem is that it breaks your HTML. My plugin solves this by counting only the words or characters that are not part of an HTML tag and by properly closing tags that are left open.</p>
<p>If you want to see it in action, just look at my <a href="http://sparepencil.com/">front page</a>, a category or try a search. Of course, you can also <a href="http://sparepencil.com/code/advanced-excerpt/">download it yourself</a>. <img src='http://sparepencil.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://sparepencil.com/archives/2007/08/21/advanced-excerpt-plugin-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>147</slash:comments>
		<feedburner:origLink>http://sparepencil.com/archives/2007/08/21/advanced-excerpt-plugin-for-wordpress/</feedburner:origLink></item>
		<item>
		<title>New theme “Restless” launched!</title>
		<link>http://feedproxy.google.com/~r/sparepencil/~3/qOxaH3NGGTw/</link>
		<comments>http://sparepencil.com/archives/2007/08/20/new-theme-restless-launched/#comments</comments>
		<pubDate>Sun, 19 Aug 2007 23:07:19 +0000</pubDate>
		<dc:creator>Bas</dc:creator>
				<category><![CDATA[Web design]]></category>

		<guid isPermaLink="false">http://sparepencil.com/archives/2007/08/20/new-theme-restless-launched/</guid>
		<description><![CDATA[<p>I am proud to announce &#8220;Restless,&#8221; a brand new and appropriately named theme for Spare Pencil. After several weeks of development, it is finally complete.</p>
<p>The theme is probably one of my most extensively templated themes yet. It has special&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>I am proud to announce &#8220;Restless,&#8221; a brand new and appropriately named theme for Spare Pencil. After several weeks of development, it is finally complete.</p>
<p>The theme is probably one of my most extensively templated themes yet. It has special templates for single posts, pages, categories, archives and search results. I have also made a template for pages featuring downloadable attachments, which will be useful when I am going to provide files for download.</p>
<p>I have thoroughly tested the theme on my local server. There have been four revisions during that time (5 days) and I have fixed all the issues I found, so I suppose the theme is quite stable now. You never know when you run into something, though, so I am expecting to make some additional revisions (another reason is because I still have a couple of ideas that I want to add to the theme).</p>
<p>The theme is enhanced with a few cool plugins. Not everything I found worked well, so I ended up writing two plugins myself. I will probably release those after I get some more time to test and finish them.</p>
<p>As for the name: I don&#8217;t consider myself very skilful at making up names for my themes, but in this case I found that &#8220;Restless&#8221; would probably be a good choice. I got the idea from <a href="http://www.last.fm/music/The+Crystal+Method/_/Restless">a song</a> by <a href="http://www.thecrystalmethod.com/">The Crystal Method</a>, which was some of the music I listened to while coding. It&#8217;s also appropriate, because I tended to work on this theme until (after) midnight.</p>
<p>That&#8217;s all for now. I hope you enjoy the new look. Don&#8217;t forget to leave a reply telling me what you think and maybe some suggestions as to what I should change in the next revision. <img src='http://sparepencil.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://sparepencil.com/archives/2007/08/20/new-theme-restless-launched/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://sparepencil.com/archives/2007/08/20/new-theme-restless-launched/</feedburner:origLink></item>
		<item>
		<title>Did you know this about PHP?</title>
		<link>http://feedproxy.google.com/~r/sparepencil/~3/_NeGxlHSf7E/</link>
		<comments>http://sparepencil.com/archives/2007/08/18/did-you-know-this-about-php/#comments</comments>
		<pubDate>Sat, 18 Aug 2007 15:43:44 +0000</pubDate>
		<dc:creator>Bas</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://sparepencil.com/archives/2007/08/18/did-you-know-this-about-php/</guid>
		<description><![CDATA[<p>It occurred to me today that there is actually a difference between using the <code>$GLOBALS</code> array and the <code>global</code> keyword in PHP.</p>
<p>You write:</p>
<pre>function foo()
{
   global $var;
}</pre>
<p>PHP does:</p>
<pre>function foo()
{
   $var =&#038; $GLOBALS['var'];
}</pre>
<p>Why&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>It occurred to me today that there is actually a difference between using the <code>$GLOBALS</code> array and the <code>global</code> keyword in PHP.</p>
<p>You write:</p>
<pre>function foo()
{
   global $var;
}</pre>
<p>PHP does:</p>
<pre>function foo()
{
   $var =&#038; $GLOBALS['var'];
}</pre>
<p>Why does this matter? The manual <a href="http://php.net/manual/en/language.references.whatdo.php#id2550420">knows the answer</a>.</p>
<p>On another note: I have been working on a new theme for a while now. It&#8217;s probably going to be my best one yet, but I&#8217;ll let you judge about that. I am also developing a WordPress plugin at the moment, it will be released when I launch the theme. <img src='http://sparepencil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://sparepencil.com/archives/2007/08/18/did-you-know-this-about-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://sparepencil.com/archives/2007/08/18/did-you-know-this-about-php/</feedburner:origLink></item>
		<item>
		<title>Dummy content for Wordpress</title>
		<link>http://feedproxy.google.com/~r/sparepencil/~3/ZrG9Yuq2MjY/</link>
		<comments>http://sparepencil.com/archives/2007/08/15/dummy-content-for-wordpress/#comments</comments>
		<pubDate>Wed, 15 Aug 2007 18:35:35 +0000</pubDate>
		<dc:creator>Bas</dc:creator>
				<category><![CDATA[Web design]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://sparepencil.com/archives/2007/08/15/dummy-content-for-wordpress/</guid>
		<description><![CDATA[<p>Designing and coding a Wordpress theme is often a pretty straightforward task: You write one or multiple implementations of <a href="http://codex.wordpress.org/The_Loop">the Loop</a> in the corresponding <a href="http://codex.wordpress.org/Template_Hierarchy">template files</a>, add some CSS and images and you&#8217;re basically good to go. Obviously&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Designing and coding a Wordpress theme is often a pretty straightforward task: You write one or multiple implementations of <a href="http://codex.wordpress.org/The_Loop">the Loop</a> in the corresponding <a href="http://codex.wordpress.org/Template_Hierarchy">template files</a>, add some CSS and images and you&#8217;re basically good to go. Obviously you&#8217;ll want to test before uploading the theme to your live blog. So you set up a local server and install Wordpress.</p>
<p>You&#8217;ll notice that there is a lot of tweaking to be done on the theme, but that&#8217;s why you are testing the theme in the first place. However, even after testing it on a local installation of Wordpress, you may discover a few flaws after launching the theme. Apparently, the testing wasn&#8217;t thorough enough.</p>
<p>Luckily, we can add dummy content to our (local) Wordpress installation with only a few clicks. You do need a useful data dump from another blog, though. I have found a dump of the dummy content used for the <a href="http://www.sndbx.org/">sndbx</a> theme contest, together with <a href="http://www.sndbx.org/forums/viewtopic.php?id=16">some instructions</a> on how to use it. The good thing about it is that it contains a wide variety of content. Not only a lot of common (and less common) HTML elements, but also different types of comments (pingbacks, trackbacks), content (pages, paged posts) and large images that can fubar your layout if you don&#8217;t deal with them.</p>
<p>I suppose that if your theme works with this on your local server, it will probably stand a good chance on the &#8216;Interweb.&#8217; Or can you name a better source for dummy content? <img src='http://sparepencil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><em>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://sparepencil.com/archives/2007/08/15/dummy-content-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://sparepencil.com/archives/2007/08/15/dummy-content-for-wordpress/</feedburner:origLink></item>
		<item>
		<title>It’s timing time</title>
		<link>http://feedproxy.google.com/~r/sparepencil/~3/1R2wyZFeMj4/</link>
		<comments>http://sparepencil.com/archives/2007/07/03/its-timing-time/#comments</comments>
		<pubDate>Tue, 03 Jul 2007 16:44:00 +0000</pubDate>
		<dc:creator>Bas</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://sparepencil.com/archives/2007/07/03/its-timing-time/</guid>
		<description><![CDATA[<p>Have you ever been doing something without realising how much time it required, even though it would be quite useful to know? I have. Actually, it is something you must keep track of when doing some freelance work (unless you&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Have you ever been doing something without realising how much time it required, even though it would be quite useful to know? I have. Actually, it is something you must keep track of when doing some freelance work (unless you and your client really don&#8217;t care).</p>
<p><img src="/wp-content/uploads/2007/07/st-logo_large.gif" class="alignright" alt="SlimTimer Logo" /><br />
Anyway, I have been looking for some cool free tool to do this for me and I have found <a href="http://slimtimer.com">SlimTimer</a>. This tool is fairly simple, you basically make a todo-list and whenever you start working on something of the list, you click the item and the timer starts running. This all happens in a &#8216;client&#8217; page, which you can simply bookmark (as a sidebar in Firefox).</p>
<p>On the SlimTimer website, you can view all your tasks and see the total amount of time spent per task (which may have been spread over any amount of time).</p>
<p>My only problem so far was that I had to keep my browser open while timing. Even the sidebar in Firefox is not perfect, because it gets in the way and if I accidentally close the browser it&#8217;s gone and the timing is stopped. Luckily, this issue is solved by viewing the page in <a href="http://www.slimtimer.com/help#desktop">Bubbles</a>. (I guess there must be a Linux equivalent to Bubbles out there somewhere.)</p>
]]></content:encoded>
			<wfw:commentRss>http://sparepencil.com/archives/2007/07/03/its-timing-time/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://sparepencil.com/archives/2007/07/03/its-timing-time/</feedburner:origLink></item>
	</channel>
</rss>
