<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.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>Tudor Barbu's professional blog</title>
	
	<link>http://blog.motane.lu</link>
	<description>skillz...i has them</description>
	<lastBuildDate>Fri, 19 Feb 2010 14:06:14 +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/motanelu" /><feedburner:info uri="motanelu" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Iterate thru dates in Python</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/af7RMfCrGcQ/</link>
		<comments>http://blog.motane.lu/2010/02/19/iterate-thru-dates-in-python/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 14:06:14 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1317</guid>
		<description>Few days ago I was working on some python scripts that needed to iterate back and forth through calendar dates. Working with dates in python is pretty easy, due to its datetime package. 
Basically is like this:

#!/usr/bin/env python
&amp;#160;
import datetime
&amp;#160;
start_date = datetime.date&amp;#40; year = 2010, month = 2, day = 1 &amp;#41;
end_date = datetime.date&amp;#40; year = [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/DXvG-XN7nAwnkZwPHz5yOphre5s/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DXvG-XN7nAwnkZwPHz5yOphre5s/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/DXvG-XN7nAwnkZwPHz5yOphre5s/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DXvG-XN7nAwnkZwPHz5yOphre5s/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/af7RMfCrGcQ" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2010/02/19/iterate-thru-dates-in-python/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2010/02/19/iterate-thru-dates-in-python/</feedburner:origLink></item>
		<item>
		<title>Insert at the beginning of an array in PHP</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/Rm5UVDjq6Uk/</link>
		<comments>http://blog.motane.lu/2010/02/16/insert-at-the-beginning-of-an-array-in-php/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 22:29:48 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1314</guid>
		<description>Last week, while programming, I needed to insert an array at the beginning of another. So, since basically I was just merging 2 arrays, I tried to do it like this:

$originalArray = array&amp;#40;
    1 =&amp;#62; 'First item',
    4 =&amp;#62; 'Forth item',
    5 =&amp;#62; 'Fift item',
  [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Ph3X0odWiYfjn5wDCs4rn4NA-rE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Ph3X0odWiYfjn5wDCs4rn4NA-rE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Ph3X0odWiYfjn5wDCs4rn4NA-rE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Ph3X0odWiYfjn5wDCs4rn4NA-rE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/Rm5UVDjq6Uk" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2010/02/16/insert-at-the-beginning-of-an-array-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2010/02/16/insert-at-the-beginning-of-an-array-in-php/</feedburner:origLink></item>
		<item>
		<title>New theme</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/S8VgSriTT4Y/</link>
		<comments>http://blog.motane.lu/2010/02/01/new-theme/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 00:17:47 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[user interface]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1304</guid>
		<description>Got myself a new blog theme. The old one was getting&amp;#8230;well&amp;#8230;old. The design was made by Andrei Chirea. It&amp;#8217;s still in beta. Some things may work &amp;#8220;funny&amp;#8221;, other may not work at all. Should work in Internet Explorer.
Suggestions are welcome!
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/gdh6IQT7j54B-2V15XdM9PlHC_A/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/gdh6IQT7j54B-2V15XdM9PlHC_A/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/gdh6IQT7j54B-2V15XdM9PlHC_A/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/gdh6IQT7j54B-2V15XdM9PlHC_A/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/S8VgSriTT4Y" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2010/02/01/new-theme/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2010/02/01/new-theme/</feedburner:origLink></item>
		<item>
		<title>My Vim configuration</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/DdcV_FdR4CQ/</link>
		<comments>http://blog.motane.lu/2010/01/26/my-vim-configuration/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 21:55:28 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[efficiency]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1293</guid>
		<description>Vim is the editor of the Gods. The Elder Gods. It&amp;#8217;s by far the best text editor I&amp;#8217;ve ever encountered. Although I&amp;#8217;m not a &amp;#8220;vim purist&amp;#8221; (no hjkl   ), I&amp;#8217;m fascinated with its power. And there are always new things one can learn about it. It never gets old.
For instance, today the head [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Dll8ys7gyQARGpEq4kn-aSDqMGc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Dll8ys7gyQARGpEq4kn-aSDqMGc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Dll8ys7gyQARGpEq4kn-aSDqMGc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Dll8ys7gyQARGpEq4kn-aSDqMGc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/DdcV_FdR4CQ" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2010/01/26/my-vim-configuration/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2010/01/26/my-vim-configuration/</feedburner:origLink></item>
		<item>
		<title>Django “anonymous_required” decorator</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/_6Xrgl7c7ZM/</link>
		<comments>http://blog.motane.lu/2010/01/06/django-anonymous_required-decorator/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 11:12:20 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[django decorators]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1269</guid>
		<description>I like Django&amp;#8217;s login_required decorator. It&amp;#8217;s a clean and simple way to allow and/or deny un-logged-in users to access parts of the website. But I also felt the need for a decorator to allow me to restrict access to some views only to non logged-in users. For instance, if an user in logged in, it [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/tusCxg130yr1Grkz7DPRGmiCiCc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tusCxg130yr1Grkz7DPRGmiCiCc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/tusCxg130yr1Grkz7DPRGmiCiCc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tusCxg130yr1Grkz7DPRGmiCiCc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/_6Xrgl7c7ZM" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2010/01/06/django-anonymous_required-decorator/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2010/01/06/django-anonymous_required-decorator/</feedburner:origLink></item>
		<item>
		<title>Changing the time zone in Ubuntu</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/WdVFWkx7yHU/</link>
		<comments>http://blog.motane.lu/2010/01/04/changing-the-time-zone-in-ubuntu/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 18:55:22 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1279</guid>
		<description>This one is from the &amp;#8220;d&amp;#8217;oh&amp;#8221; category. As recently I&amp;#8217;ve moved to Barcelona and since Bucharest and Barcelona are in different time zones, I wanted to set my system&amp;#8217;s time an hour back, in order to display the correct time. 
I went the easy way: right clicked on the clock in the upper right, [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/cy8reQqgiRv5N2aiqGXxbUDse-E/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cy8reQqgiRv5N2aiqGXxbUDse-E/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/cy8reQqgiRv5N2aiqGXxbUDse-E/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cy8reQqgiRv5N2aiqGXxbUDse-E/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/WdVFWkx7yHU" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2010/01/04/changing-the-time-zone-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2010/01/04/changing-the-time-zone-in-ubuntu/</feedburner:origLink></item>
		<item>
		<title>Django configuration file</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/brquNSDy3gU/</link>
		<comments>http://blog.motane.lu/2009/12/28/django-configuration-file/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 11:01:47 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1245</guid>
		<description>I&amp;#8217;ve been using Django for quite some time now and I kind of like it. It provides a fast &amp;#8211; really fast &amp;#8211; and clean way of doing things. When I first started with Django, I&amp;#8217;ve used it mainly for simpler projects and kept the larger, more complicated ones on Zend Framework. That&amp;#8217;s because I [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7eY2EQ2TAC5UFOczeO8DuDLt0xE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7eY2EQ2TAC5UFOczeO8DuDLt0xE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7eY2EQ2TAC5UFOczeO8DuDLt0xE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7eY2EQ2TAC5UFOczeO8DuDLt0xE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/brquNSDy3gU" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2009/12/28/django-configuration-file/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2009/12/28/django-configuration-file/</feedburner:origLink></item>
		<item>
		<title>Gworld</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/XEMKYTWZQVA/</link>
		<comments>http://blog.motane.lu/2009/12/17/gworld/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 10:24:37 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[thoughts]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1250</guid>
		<description>Is Google taking over the web? It seems so. Lately Google launched its own services to compete with other companies / open source associations on all fronts &amp;#8211; DNS, source code hosting, url shortening, instant messaging, email. You name it and Google has it. Of course, not all Google&amp;#8217;s services are top of the [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/XFDudoGhoNplsqRnV5niRmCDsOk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XFDudoGhoNplsqRnV5niRmCDsOk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/XFDudoGhoNplsqRnV5niRmCDsOk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XFDudoGhoNplsqRnV5niRmCDsOk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/XEMKYTWZQVA" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2009/12/17/gworld/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2009/12/17/gworld/</feedburner:origLink></item>
		<item>
		<title>Help saving MySQL</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/ixK_SJnz7Sg/</link>
		<comments>http://blog.motane.lu/2009/12/14/help-saving-mysql/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 06:41:46 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[orac]]></category>
		<category><![CDATA[thoughts]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1246</guid>
		<description>As you probably know, the most popular Open Source RDBMS, MySQL, is being acquired by Oracle, which &amp;#8211; some say &amp;#8211; will most likely mean the end of the open source project. MySQL has been eroding Oracle&amp;#8217;s profits for quite some time now, and there&amp;#8217;s a fat chance that Oracle will kill MySQL in [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/pqgBT4V-tEqpYeHSGIA-m4pA0XQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pqgBT4V-tEqpYeHSGIA-m4pA0XQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/pqgBT4V-tEqpYeHSGIA-m4pA0XQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pqgBT4V-tEqpYeHSGIA-m4pA0XQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/ixK_SJnz7Sg" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2009/12/14/help-saving-mysql/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2009/12/14/help-saving-mysql/</feedburner:origLink></item>
		<item>
		<title>Unit testing &amp; TDD</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/1uTCoFlADWs/</link>
		<comments>http://blog.motane.lu/2009/12/02/unit-testing-tdd/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 14:48:52 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[theoretical issues]]></category>
		<category><![CDATA[unit testing]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1210</guid>
		<description>Last week, I had a discussion with Ionut &amp;#8211; my colleague at Ninespices &amp;#8211; about a piece of code I had wrote in one of our applications. The piece was meant to log the current user&amp;#8217;s actions to the database for future reference. It looked something like this (more or less, the actual code isn&amp;#8217;t [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/h9apiA6aZmgOzleTFoiOCrTeEvc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/h9apiA6aZmgOzleTFoiOCrTeEvc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/h9apiA6aZmgOzleTFoiOCrTeEvc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/h9apiA6aZmgOzleTFoiOCrTeEvc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/1uTCoFlADWs" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2009/12/02/unit-testing-tdd/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2009/12/02/unit-testing-tdd/</feedburner:origLink></item>
	</channel>
</rss>
