<?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>Codegrind &#187; Mac OS X</title>
	<atom:link href="http://jordanovski.com/category/mac-os-x/feed" rel="self" type="application/rss+xml" />
	<link>http://jordanovski.com</link>
	<description>Homepage of Dusko Jordanovski</description>
	<lastBuildDate>Fri, 18 Jun 2010 17:37:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The Leopard 10.5.7 update, the keychain and the clock.</title>
		<link>http://jordanovski.com/os-x-1057-update-the-keychain-and-the-clock</link>
		<comments>http://jordanovski.com/os-x-1057-update-the-keychain-and-the-clock#comments</comments>
		<pubDate>Wed, 20 May 2009 16:22:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[10.5.7]]></category>
		<category><![CDATA[clock reset]]></category>
		<category><![CDATA[keychain]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://jordanovski.com/?p=161</guid>
		<description><![CDATA[I installed the 10.5.7 update for Mac OS X Leopard and after logging in i got a prompt that the system date was reset (to 1990-something). I am using the automatic date setting which gets the current date and time from apple.com so I figured that it was no biggie. But after a short while [...]]]></description>
			<content:encoded><![CDATA[<p>I installed the 10.5.7 update for Mac OS X Leopard and after logging in i got a prompt that the system date was reset (to 1990-something). I am using the automatic date setting which gets the current date and time from apple.com so I figured that it was no biggie. But after a short while I noticed that I have no wireless network connection and that the password for the network was blank, which is odd, since I am supposed to have this password saved in the keychain.</p>
<p>I opened up the keychain access and checked the "show password" on the wireless network in my office (I don't remember it, ofc ) and i got a message that "Access to this item is restricted.".</p>
<p>After a lot of digging around (on another laptop) I found out that <strong>if the current system date is earlier than the creation date of your keychain file (~/Library/Keychain/login.keychain) you cannot view the items in it. </strong>So here's a loophole: No internet - can't set correct system date - no correct system date - no internet ....</p>
<p>Luckily for me, I devised an extremely clever plan - I manually set the date to today, got the keychain working, and then switched back to auto-date. Ha-ha.</p>
]]></content:encoded>
			<wfw:commentRss>http://jordanovski.com/os-x-1057-update-the-keychain-and-the-clock/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python 2.6, Leopard 10.5.6 and psycopg 2.0.10</title>
		<link>http://jordanovski.com/python-26-leopard-1056-and-psycopg-2010</link>
		<comments>http://jordanovski.com/python-26-leopard-1056-and-psycopg-2010#comments</comments>
		<pubDate>Tue, 12 May 2009 23:37:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://jordanovski.com/?p=150</guid>
		<description><![CDATA[Psycopg2 is the postgreSQL adapter for Django. If you are trying to set it up on Mac OSX (using the supplied setup.py script) you may run into an error saying
File "setup.py", line 219, in finalize_options
NameError: global name 'w' is not defined

This is a simple thing to fix: open the setup.py file coming with psycopg2 and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://initd.org/pub/software/psycopg/">Psycopg2</a> is the <a href="http://postgresql.org">postgreSQL</a> adapter for Django. If you are trying to set it up on Mac OSX (using the supplied setup.py script) you may run into an error saying</p>
<pre><code>File "setup.py", line 219, in finalize_options
NameError: global name 'w' is not defined
</code></pre>
<p>This is a simple thing to fix: open the setup.py file coming with psycopg2 and edit the line 219 like this:</p>
<pre><code>except (Warning, w):
</code></pre>
<p>Remove the braces</p>
<pre><code>except Warning, w:
</code></pre>
<p>In python 2.6 (at least) putting exceptions in brackets will catch multiple exceptions in this case Warnings and <strong>'w'</strong>s. The author clearly meant to get the Warning instance as 'w'. Also, do not forget to edit the setup.cfg file on line 28 and type in your pg_config path. Mine is</p>
<pre><code>pg_config=/Library/PostgreSQL/8.3/bin/pg_config
</code></pre>
<p>and so should yours be if you used the default installer package for mac OS X. Oh, yeah, you need to install postgres before installing psycopg2.</p>
]]></content:encoded>
			<wfw:commentRss>http://jordanovski.com/python-26-leopard-1056-and-psycopg-2010/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
