<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Erik's Lab &#187; Development</title>
	<atom:link href="http://erikslab.com/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://erikslab.com</link>
	<description>Things I'm working on, not necessarily functioning yet.</description>
	<lastBuildDate>Tue, 10 Nov 2009 10:06:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Joost&#8217;s WordPress-Bundle for TextMate gets the fun back into theme-hacking</title>
		<link>http://erikslab.com/2008/07/16/joosts-wordpress-bundle-for-textmate-gets-the-fun-back-into-theme-hacking/</link>
		<comments>http://erikslab.com/2008/07/16/joosts-wordpress-bundle-for-textmate-gets-the-fun-back-into-theme-hacking/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 12:36:11 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Web-Development]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[TextMate]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://erikslab.com/2008/07/16/joosts-wordpress-bundle-for-textmate-gets-the-fun-back-into-theme-hacking/</guid>
		<description><![CDATA[I told you about Joost&#8217;s great WordPress-Bundle for TextMate in the post A WordPress-Bundle for TextMate and I stand by the title of this post. It really brings back the fun in hacking WordPress-themes. I found one deprecated call (in two incarnations): listcats expands to list_cats, but the beauty in using the Bundle is, I [...]]]></description>
			<content:encoded><![CDATA[<p>I told you about <a href="http://yoast.com">Joost&#8217;s</a> great <a href="http://yoast.com/articles/wordpress-textmate-bundle/">WordPress-Bundle for TextMate</a> in the post <a href="http://erikslab.com/2008/06/17/a-wordpress-bundle-for-textmate/">A WordPress-Bundle for TextMate</a> and I stand by the title of this post. It really brings back the fun in hacking <a href="http://wordpress.org">WordPress</a>-themes.</p>
<p>I found one deprecated call (in two incarnations): <code>listcats</code> expands to <code>list_cats</code>, but the beauty in using the Bundle is, I just exchanged it to expand to <code>wp_list_categories</code> and I was done. I don&#8217;t have to remember which calls are deprecated, I&#8217;ll just have to make sure to check the Bundle as soon as new lists with deprecated calls show up and exchange them. The only &#8220;clear and present danger&#8221; I see in this approach is: <i>What do i do, while not using TextMate?</i> But that holds true for almost anything handled by a Bundle in <em>TextMate</em>. (I just found out, that the editor in WordPress <i>does not close HTML-Tags</i> when <kbd>&#x2318;</kbd> – <kbd>&#x2325;</kbd> – <kbd>.</kbd> is pressed. <img src='http://erikslab.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' />  )</p>
<p>Kudos to Joost for picking up the task. Thanks, really.</p>
]]></content:encoded>
			<wfw:commentRss>http://erikslab.com/2008/07/16/joosts-wordpress-bundle-for-textmate-gets-the-fun-back-into-theme-hacking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A WordPress-Bundle for TextMate</title>
		<link>http://erikslab.com/2008/06/17/a-wordpress-bundle-for-textmate/</link>
		<comments>http://erikslab.com/2008/06/17/a-wordpress-bundle-for-textmate/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 10:40:38 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Web-Development]]></category>
		<category><![CDATA[TextMate]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://erikslab.com/2008/06/17/a-wordpress-bundle-for-textmate/</guid>
		<description><![CDATA[I just found a WordPress-Bundle for my favorite editor, TextMate. Download it from the Website of SEO-/Wordpress-wizzard extraordinaire Joost de Valk. I&#8217;m going to test it later today.]]></description>
			<content:encoded><![CDATA[<p>I just found a <em>WordPress-Bundle</em> for my favorite editor, <a href="http://macromates.com/">TextMate</a>. <a href="http://yoast.com/articles/wordpress-textmate-bundle/">Download it</a> from the Website of SEO-/Wordpress-wizzard extraordinaire <a href="http://yoast.com/">Joost de Valk</a>.</p>
<p>I&#8217;m going to test it later today.</p>
]]></content:encoded>
			<wfw:commentRss>http://erikslab.com/2008/06/17/a-wordpress-bundle-for-textmate/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Logging in FrontBase, quick and dirty</title>
		<link>http://erikslab.com/2008/04/04/logging-in-frontbase-quick-and-dirty/</link>
		<comments>http://erikslab.com/2008/04/04/logging-in-frontbase-quick-and-dirty/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 16:03:32 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[FrontBase]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://erikslab.com/2008/04/04/logging-in-frontbase-quick-and-dirty/</guid>
		<description><![CDATA[This is a quick tip (and thus something I don&#8217;t have to remember as long as I have an Internet-connection and a browser at my disposal ) for all FrontBase-users out there. The following is a rundown of handy commands if you need to log activities on a database. sudo ln -s /Users/admin/FBLogs /Library/FrontBase/LogFiles(OS X) [...]]]></description>
			<content:encoded><![CDATA[<p>This is a quick tip (and thus something I don&#8217;t have to remember as long as I have an Internet-connection and a browser at my disposal <img src='http://erikslab.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ) for all <a href="http://www.frontbase.com/">FrontBase</a>-users out there. The following is a rundown of handy commands if you need to log activities on a database.</p>
<p><code>sudo ln -s /Users/admin/FBLogs /Library/FrontBase/LogFiles</code>(<b>OS X</b>)<br />
Creates a symbolic link to the directory <code>FBLogs</code> (the directory needs to be created first) named <code>LogFiles</code> in your FrontBase-directory. If FrontBase &#8220;sees&#8221; this directory, all logs will be created and written there instead of the standard-location in <code>Databases</code>. If you are using Linux or Unix, choose a convenient location on your hard-disk.</p>
<p>Now you&#8217;re ready to log (and roll), but you have to tell FrontBase first. Fire up <code>sql92</code>, connect to the database in question and use</p>
<p><code>SET WRITE SQL TRUE GLOBAL;</code></p>
<p>to convince FrontBase to start logging. To turn logging off, use</p>
<p><code>SET WRITE SQL FALSE GLOBAL;</code></p>
<p>The logfile-name is the one with &#8220;sql&#8221; added, so <code>[name_of_your_database].fb.sql</code> is the file the commands shown above use for logging. Said file will grow to astonishing proportions in a very short time, on a busy database, that is. If you want to use a new file while logging is active, use</p>
<p><code>SWITCH TO NEW SQL LOG;</code></p>
<p>The current file will be renamed to <code>[name_of_your_database].fb.sql.YYYYMMDDHHMMSS</code> and a new file named <code>[name_of_your_database].fb.sql</code> will be created and used (keep this in mind when using <code>tail -f</code>).</p>
<p>Again, this is supposed to be a <em>debugging-feature</em>, not something you enable and let run forever. Check out the documentation, there is more to logging in FrontBase; especially the explanation of the contents of your log files.</p>
<p>Hope this helps, if you tend (like me) to forget these commands, bookmark the post. <img src='http://erikslab.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://erikslab.com/2008/04/04/logging-in-frontbase-quick-and-dirty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CouchDB, Database re-invented?</title>
		<link>http://erikslab.com/2007/09/06/couchdb-database-re-invented/</link>
		<comments>http://erikslab.com/2007/09/06/couchdb-database-re-invented/#comments</comments>
		<pubDate>Thu, 06 Sep 2007 12:24:28 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Unix/Linux]]></category>

		<guid isPermaLink="false">http://erikslab.com/2007/09/06/couchdb-database-re-invented/</guid>
		<description><![CDATA[A document-centric, replicating database written in an object-oriented language called Erlang, sounds great.]]></description>
			<content:encoded><![CDATA[<p>I stumbled over a document-oriented, replicating Database named <a href="http://couchdb.org/">CouchDB</a>. It&#8217;s still in &#8220;alpha&#8221; but everything sounds <em>very</em> promising:</p>
<ul>
<li>Written in <a href="http://en.wikipedia.org/wiki/Erlang_%28programming_language%29">Erlang</a></li>
<li>Flat-file and document-centered</li>
<li>Replication built in</li>
<li>Runs on
<ol>
<li>Linux</li>
<li>OS X</li>
<li>Windows</li>
</ol>
</li>
<li>Open Source</li>
</ul>
<p>What&#8217;s not to like? And since the local database is replicated with the peers, <em>no backups</em>. But don&#8217;t forget to put two or three machines in another building. <img src='http://erikslab.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://erikslab.com/2007/09/06/couchdb-database-re-invented/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AppleScript: How to split a string</title>
		<link>http://erikslab.com/2007/08/31/applescript-how-to-split-a-string/</link>
		<comments>http://erikslab.com/2007/08/31/applescript-how-to-split-a-string/#comments</comments>
		<pubDate>Fri, 31 Aug 2007 11:39:02 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[AppleScript]]></category>

		<guid isPermaLink="false">http://erikslab.com/2007/08/31/applescript-how-to-split-a-string/</guid>
		<description><![CDATA[Sadly, AppleScript lacks a function to split a string into its contents by using a defined character as delimiter. Here's a handler to tackle the problem.]]></description>
			<content:encoded><![CDATA[<p>I think of <a href="http://www.apple.com/macosx/features/applescript/">AppleScript</a> as a fantasic tool to automate things in OS X. But, people—like me—being used to the likes of Perl, Ruby or Python miss the <code>split()</code>-function.</p>
<p>A short explanation regarding <code>split()</code>: The function allows the programmer (a.k.a. us) to translate a string like &#8216;A-B-C-D&#8217; into a character array, using (in this case) <code>-</code> as delimiter, or marker where data ends or begins during the translation.</p>
<p>Back to AppleScript, there is no function to split a string easily; the &#8220;whys&#8221; seem to be buried in the vaults of the developers. Not that we wouldn&#8217;t need that kind of functionality on a recurring basis, though. <img src='http://erikslab.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  But since AppleScript has a property called <code>text item delimiters</code>, we could make use of said property, couldn&#8217;t we? Let&#8217;s take a look at the code first:</p>
<pre><code style='font-family:sans-serif; font-weight:normal'>
	<span style='color:blue;font-weight:bold'>set</span> <span style='color:green'>myTestString</span> <span style='color:blue;font-weight:bold'>to</span> "1-2-3-5-8-13-21"

	<span style='color:blue;font-weight:bold'>set</span> <span style='color:green'>myArray</span> <span style='color:blue;font-weight:bold'>to my</span> <span style='color:green'>theSplit</span>(<span style='color:green'>myTestString</span>, "-")

	<span style='color:blue;font-weight:bold'>on</span> <span style='color:green'>theSplit</span>(<span style='color:green'>theString</span>, <span style='color:green'>theDelimiter</span>)
		<span style='font-style:italic'>-- save delimiters to restore old settings</span>
		<span style='color:blue;font-weight:bold'>set</span> <span style='color:green'>oldDelimiters</span> <span style='color:blue;font-weight:bold'>to</span> <span style='color:blue'>AppleScript's text item delimiters</span>
		<span style='font-style:italic'>-- set delimiters to delimiter to be used</span>
		<span style='color:blue;font-weight:bold'>set</span> <span style='color:blue'>AppleScript's text item delimiters</span> <span style='color:blue;font-weight:bold'>to</span> <span style='color:green'>theDelimiter</span>
		<span style='font-style:italic'>-- create the array</span>
		<span style='color:blue;font-weight:bold'>set</span> <span style='color:green'>theArray</span> <span style='color:blue;font-weight:bold'>to every</span> <span style='color:blue'>text item</span> <span style='color:blue;font-weight:bold'>of</span> <span style='color:green'>theString</span>
		<span style='font-style:italic'>-- restore the old setting</span>
		<span style='color:blue;font-weight:bold'>set</span> <span style='color:blue'>AppleScript's text item delimiters</span> <span style='color:blue;font-weight:bold'>to</span> <span style='color:green'>oldDelimiters</span>
		<span style='font-style:italic'>-- return the result</span>
		<span style='color:blue;font-weight:bold'>return</span> <span style='color:green'>theArray</span>
	<span style='color:blue;font-weight:bold'>end</span> <span style='color:green'>theSplit</span>
</code></pre>
<p>The first two lines make use of the handler and display the result in the, appropriately named, &#8220;Result&#8221;-window in <code>Script Editor.app</code>. The Handler <code>theSplit</code> expects a string and the delimiter to be used as arguments. We need to store the current setting of <code>text item delimiters</code> first. (<em>Never ever</em> override the delimiter <em>without</em> restoring it as soon as you are done, debugging of larger scripts can be a real pain should you forget to restore, believe me.) Then we override the current setting with our delimiter. The <code>theArray</code> is populated with the split-up contents of <code>theString</code>, the delimiter is restored and we return the result.</p>
<p>I&#8217;m aware that I could have just used <code>theString</code> and overwrite it with the result, but doing it this way allows the insertion of another handler to convert the array to a different data-type, if needed. <img src='http://erikslab.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The other thing I&#8217;m aware of is the fact, that the code shown above ruins my XHTML-conformity for good, a sacrifice for you, dear reader. <img src='http://erikslab.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://erikslab.com/2007/08/31/applescript-how-to-split-a-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding Redundant CSS-Code</title>
		<link>http://erikslab.com/2007/07/09/finding-redundant-css-code/</link>
		<comments>http://erikslab.com/2007/07/09/finding-redundant-css-code/#comments</comments>
		<pubDate>Mon, 09 Jul 2007 08:31:05 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Web-Development]]></category>

		<guid isPermaLink="false">http://erikslab.com/2007/07/09/finding-redundant-css-code/</guid>
		<description><![CDATA[So you are one hundred percent sure, that you are using all the CSS-classes you defined in your stylesheet(s)? Great. Move on. Nothing to see here. Or did the question made you uneasy? If you could scrape some definitions from your stylesheet, then—depending on the traffic on your website—getting rid of some stuff might mean [...]]]></description>
			<content:encoded><![CDATA[<p>So you are one hundred percent sure, that you are using all the CSS-classes you defined in your stylesheet(s)? Great. Move on. Nothing to see here. Or did the question made you uneasy?</p>
<p>If you could scrape some definitions from your stylesheet, then—depending on the traffic on your website—getting rid of some stuff might mean less traffic. Besides, knowing your code is clean makes you feel better, believe me. The idea is so obvious, I wonder why nobody came up with something like <a href="http://infovore.org/archives/2007/07/06/the-css-redundancy-checker/">The CSS Redundancy Checker</a> a long time ago. IMHO, the work of a genius.</p>
<p>The author hints, that the functionality might come as a TextMate-Plugin in the future, BTW.<br />
<!-- WSA: rules for context 'lab-content1' did not apply --></p>
]]></content:encoded>
			<wfw:commentRss>http://erikslab.com/2007/07/09/finding-redundant-css-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
