<?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>dbaranski.net</title>
	<atom:link href="http://www.dbaranski.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dbaranski.net</link>
	<description>Tomorrow&#039;s Interweb technology... Today!</description>
	<lastBuildDate>Mon, 06 Feb 2012 20:03:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Handling iOS dates (ISO 8601) with Django/Python</title>
		<link>http://www.dbaranski.net/2012/02/handling-ios-dates-iso-8601-with-djangopython/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=handling-ios-dates-iso-8601-with-djangopython</link>
		<comments>http://www.dbaranski.net/2012/02/handling-ios-dates-iso-8601-with-djangopython/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 20:03:57 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[snipet]]></category>

		<guid isPermaLink="false">http://www.dbaranski.net/?p=55</guid>
		<description><![CDATA[When you use modern HTML5 input types, like type=&#8221;datetime&#8221;, on iOS then the data is return in ISO 8601 standard. Surprisingly, python can&#8217;t handle this standard very well with any of its date functions out of the box.  Here&#8217;s a quick snip to make Django DateTimeField forms work with ISO 8601 dates. Here&#8217;s the HTML5 [...]]]></description>
			<content:encoded><![CDATA[<p>When you use modern HTML5 input types, like type=&#8221;datetime&#8221;, on iOS then the data is return in ISO 8601 standard. Surprisingly, python can&#8217;t handle this standard very well with any of its date functions out of the box.  Here&#8217;s a quick snip to make Django DateTimeField forms work with ISO 8601 dates.</p>
<p>Here&#8217;s the HTML5 element, this would be within an iOS app or webpage</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;input id=&quot;starttime&quot; type=&quot;datetime&quot; name=&quot;starttime&quot; value=&quot;&quot; /&gt;</pre></div></div>

<p>Here&#8217;s the form to process the input and validate it</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">from</span> django.<span style="color: black;">utils</span> <span style="color: #ff7700;font-weight:bold;">import</span> formats
&nbsp;
<span style="color: #ff7700;font-weight:bold;">class</span> DateTimeForm<span style="color: black;">&#40;</span>forms.<span style="color: black;">Form</span><span style="color: black;">&#41;</span>:
    <span style="color: #808080; font-style: italic;"># append to input formats, don't replace</span>
    my_formats = formats.<span style="color: black;">get_format</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'DATETIME_INPUT_FORMATS'</span><span style="color: black;">&#41;</span> + <span style="color: black;">&#40;</span><span style="color: #483d8b;">'%Y-%m-%dT%H:%M:%S.%fZ'</span>,<span style="color: black;">&#41;</span>
&nbsp;
    starttime = forms.<span style="color: black;">DateTimeField</span><span style="color: black;">&#40;</span>input_formats=my_formats<span style="color: black;">&#41;</span></pre></div></div>

<p>That&#8217;s it! Process your ISO dates away!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dbaranski.net/2012/02/handling-ios-dates-iso-8601-with-djangopython/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python&#8217;s documentation will never be as good as PHPs</title>
		<link>http://www.dbaranski.net/2011/07/pythons-documentation-will-never-be-as-good-as-phps/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pythons-documentation-will-never-be-as-good-as-phps</link>
		<comments>http://www.dbaranski.net/2011/07/pythons-documentation-will-never-be-as-good-as-phps/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 19:21:16 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[Review]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.dbaranski.net/?p=26</guid>
		<description><![CDATA[Python&#8217;s great, don&#8217;t get me wrong.. The big issue is the steep learning curve.  I honestly think adoption would be stronger if they could nail down a set of usable documents. The main issue is how long and wordy it&#8217;s pages are.  Instead of giving a brief overview and an example it goes on to [...]]]></description>
			<content:encoded><![CDATA[<p>Python&#8217;s great, don&#8217;t get me wrong.. The big issue is the steep learning curve.  I honestly think adoption would be stronger if they could nail down a set of usable documents.</p>
<p>The main issue is how long and wordy it&#8217;s pages are.  Instead of giving a brief overview and an example it goes on to explain concepts no one but a scholar would care about.  Developers usually want answers, fast.</p>
<p>Here&#8217;s an example, searching for <em>&#8220;php timestamp&#8221;</em> results in the following website showing <a href="http://docs.python.org/library/datetime.html  ">first: http://php.net/manual/en/function.time.php</a></p>
<p>Without scrolling, one can see the function signature and an example!</p>
<p>With python, searching for <em>&#8220;python timestamp&#8221;</em> gives the following documentation hit:<br />
<a href="http://docs.python.org/library/datetime.html"> http://docs.python.org/library/datetime.html</a></p>
<p>More of an explanation of higher overarching concepts then usage information.  It takes over 3 minutes to find any usable information.</p>
<p>This is a simple example, searching for exceptions is even more frustrating!  Bottom line is there needs to be alternative documentation that&#8217;s quick, concise and to the point for Python.  If they nail that they&#8217;ll covert many people over from older languages like PHP.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dbaranski.net/2011/07/pythons-documentation-will-never-be-as-good-as-phps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Linux guys are buying Macs?</title>
		<link>http://www.dbaranski.net/2011/03/the-linux-guys-are-buying-macs/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-linux-guys-are-buying-macs</link>
		<comments>http://www.dbaranski.net/2011/03/the-linux-guys-are-buying-macs/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 03:42:15 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[macbook pro]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.dbaranski.net/?p=9</guid>
		<description><![CDATA[I&#8217;ve recently purchased a MacBook pro to replace my aging HP Pavilion laptop that served me well through out the years.  Now, it&#8217;s noteworthy to mention that no Microsoft product ever saw the light of day on my old HP.  Instead, it ran a few flavour of Linux to eventually settle on Ubuntu for the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently purchased a MacBook pro to replace my aging HP Pavilion laptop that served me well through out the years.  Now, it&#8217;s noteworthy to mention that no Microsoft product ever saw the light of day on my old HP.  Instead, it ran a few flavour of Linux to eventually settle on Ubuntu for the rest of its 4 year life.</p>
<p>I was happy with my Ubuntufied HP.  I tinkered. I tweaked.  Everything worked in the end.  It was great fun and it taught me so much of the command line and of Unix which is so coveted in today web world.</p>
<p>Eventually it died.. and it was time to replace it.  At first, I never considered the MacBook.  There was no way Apple was going to have me buy one of it&#8217;s ridiculously locked down products at some outrageous price.</p>
<p>But all reviews I read kept pointing me to this notebook.  Its superior build quality, excellent keyboard, awesome trackpad.. To me, a developer this was all somewhat fluff.  I was after usability on the system itself!  I was after.. the terminal..  Now, this was one thing that REALLY sold me on a Mac.  The Unix environment is second to none.  As much fun as it is tweak the living hell out of Ubuntu, there are just some days when you install something you just want it to work out of the box.  Mac scores serious usability points for being a unix environment and just &#8220;working&#8221;.</p>
<p>So, add up the fact that it&#8217;s a great machine with a more and more supported OS every day that&#8217;s based on Unix.. and you might have a winner.  At least that&#8217;s what sold me in the end.</p>
<p>I still think that Apple as a company are a bunch of pricks.  The way they treat their customers is outrageously obscene.  But someone seems to have done their homework when it comes to usability which seems to be keeping people coming back.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dbaranski.net/2011/03/the-linux-guys-are-buying-macs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Site Maintenance</title>
		<link>http://www.dbaranski.net/2011/03/site-maintenance/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=site-maintenance</link>
		<comments>http://www.dbaranski.net/2011/03/site-maintenance/#comments</comments>
		<pubDate>Mon, 14 Mar 2011 15:46:18 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dbaranski.net/?p=3</guid>
		<description><![CDATA[Okay.. I&#8217;ve recently migrated hosts and If you&#8217;ve come here looking for some particular content it will be back within a week. Sorry for the inconvenience! You can email or leave me a comment here and I will try to answer any questions you may have for what you were looking for.]]></description>
			<content:encoded><![CDATA[<p>Okay.. I&#8217;ve recently migrated hosts and If you&#8217;ve come here looking for some particular content it will be back within a week.  Sorry for the inconvenience! You can email or leave me a comment here and I will try to answer any questions you may have for what you were looking for.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dbaranski.net/2011/03/site-maintenance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

