<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>

<feed xmlns="http://purl.org/atom/ns#" version="0.3" xml:lang="en-ZA">
<link href="https://www.blogger.com/atom/17679098" rel="service.post" title="BurningDogBlog" type="application/atom+xml"/>
<link href="https://www.blogger.com/atom/17679098" rel="service.feed" title="BurningDogBlog" type="application/atom+xml"/>
<title mode="escaped" type="text/html">BurningDogBlog</title>
<tagline mode="escaped" type="text/html">Technical musings: from open_source to Apple to linux to Windows; from projectors to websites to hacking and things; also details a bit of the Burning Dog's current work.</tagline>
<link href="http://www.burningdog.co.za/blog" rel="alternate" title="BurningDogBlog" type="text/html"/>
<id>tag:blogger.com,1999:blog-17679098</id>
<modified>2006-09-05T14:25:32Z</modified>
<generator url="http://www.blogger.com/" version="6.72">Blogger</generator>
<info mode="xml" type="text/html">
<div xmlns="http://www.w3.org/1999/xhtml">This is an Atom formatted XML site feed. It is intended to be viewed in a Newsreader or syndicated to another site. Please visit the <a href="http://help.blogger.com/bin/answer.py?answer=697">Blogger Help</a> for more info.</div>
</info>
<convertLineBreaks xmlns="http://www.blogger.com/atom/ns#">false</convertLineBreaks>
<entry xmlns="http://purl.org/atom/ns#">
<link href="https://www.blogger.com/atom/17679098/115746603024667776" rel="service.edit" title="Upgrading mysql on Tiger" type="application/atom+xml"/>
<author>
<name>Roger Saner</name>
</author>
<issued>2006-09-05T15:21:42+02:00</issued>
<modified>2006-09-05T14:25:32Z</modified>
<created>2006-09-05T14:20:30Z</created>
<link href="http://www.burningdog.co.za/blog/2006/09/upgrading-mysql-on-tiger.html" rel="alternate" title="Upgrading mysql on Tiger" type="text/html"/>
<id>tag:blogger.com,1999:blog-17679098.post-115746603024667776</id>
<title mode="escaped" type="text/html">Upgrading mysql on Tiger</title>
<content type="application/xhtml+xml" xml:base="http://www.burningdog.co.za/blog" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">
<p>
After a system crash I've bought a MacBookPro and have ALL of my settings and preferences imported onto it from my iBook (running 10.3.9). The only thing that hasn't come across seamlessly (so far?) is mysql. Apparently there are different binaries for Panther and Tiger, so I need to reinstall.
</p>
<p>
First, I removed the old mysql from my system by backing up the following to a "mysql old" folder:
</p>
<blockquote>
/Library/MySQL
<br/>/Library/StartupItems/MySQL
<br/>/Library/Receipts/MySQL.pkg
</blockquote>
<p>
This at least means I have a full backup of my data.
</p>
<p>
Secondly, I downloaded the <a href="http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-standard-4.1.21-apple-darwin8.5.1-i686.dmg/from/pick">binary from dev.mysql.com</a> and installed it. I could've used mysql 5 but am sticking with 4 because I like it (and because all of my old tables are in that format - I don't have sql exported versions I can use for importing).
</p>
<p>
Installed mysql-standard, the MySQLStartupItem and the MySQL.prefPane (for controlling mysql through System Preferences). Then I started mysql through terminal (open it up, type "cd /usr/local/mysql" then "sudo ./bin/mysqld_safe" and it should start up) although <a href="http://www.billstevenson.org/news/2005/05/getting_mysql_r.html">the instructions I'm following</a> advocate a full reboot. Seeing that I can't seem to get php talking to mysql, reboot time it is.
</p>
<p>
After rebooting although ./bin/mysqlcheck -p -A -r now works, I still can't get apache/php talking to mysql. Downloaded a Dashboard app called <a href="http://protagonist.co.uk/tailDash/">TailDash</a> which gives me the output of my log files (httpd, error_log etc). Nothing obvious.
</p>
<p>
Ah ha! According to <a href="http://www.macdevcenter.com/pub/a/mac/2002/03/08/apache_mac_5.html?page=3">a comment at MacDevCenter</a>, "After updating to Mac OS X 10.4.4, you may find that the connection between PHP and MySQL running on your local webserver is broken. Apparently the socket file got moved in the update." (see <a href="http://www.macosxhints.com/article.php?story=20060111113313511">osxhints article</a>)
</p>
<p>
The fix is quite simple:
</p>
<blockquote>
sudo mkdir -p /var/mysql
<br/>sudo chgrp mysql /var/mysql
<br/>sudo chmod g+w /var/mysql
</blockquote>
<p>
edit/create /private/etc/my.cnf and add the lines:
</p>
<blockquote>
[mysqld]
<br/>socket=/var/mysql/mysql.sock
<br/>[client]
<br/>socket=/var/mysql/mysql.sock
</blockquote>
<p>
restart mysql
</p>
<p>
And it works! Hooray!
</p>
<!-- technorati tags start --><p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/macbook pro" rel="tag">macbook pro</a>, <a href="http://www.technorati.com/tag/macosx" rel="tag">macosx</a>, <a href="http://www.technorati.com/tag/mysql" rel="tag">mysql</a>, <a href="http://www.technorati.com/tag/tiger" rel="tag">tiger</a>
</p>
<!-- technorati tags end -->
</div>
</content>
<draft xmlns="http://purl.org/atom-blog/ns#">false</draft>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="https://www.blogger.com/atom/17679098/115599649052981075" rel="service.edit" title="How to find your flickr user id" type="application/atom+xml"/>
<author>
<name>Roger Saner</name>
</author>
<issued>2006-08-19T16:02:56+02:00</issued>
<modified>2006-08-19T14:08:10Z</modified>
<created>2006-08-19T14:08:10Z</created>
<link href="http://www.burningdog.co.za/blog/2006/08/how-to-find-your-flickr-user-id.html" rel="alternate" title="How to find your flickr user id" type="text/html"/>
<id>tag:blogger.com,1999:blog-17679098.post-115599649052981075</id>
<title mode="escaped" type="text/html">How to find your flickr user id</title>
<content type="application/xhtml+xml" xml:base="http://www.burningdog.co.za/blog" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">Simply visit <a href="http://idgettr.com/">http://idgettr.com/</a>
<!-- technorati tags start --><p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/flickr" rel="tag">flickr</a>
</p>
<!-- technorati tags end -->
</div>
</content>
<draft xmlns="http://purl.org/atom-blog/ns#">false</draft>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="https://www.blogger.com/atom/17679098/115592316888322795" rel="service.edit" title="BarCamp Johannesburg" type="application/atom+xml"/>
<author>
<name>Roger Saner</name>
</author>
<issued>2006-08-18T19:41:00+02:00</issued>
<modified>2006-08-18T17:46:08Z</modified>
<created>2006-08-18T17:46:08Z</created>
<link href="http://www.burningdog.co.za/blog/2006/08/barcamp-johannesburg.html" rel="alternate" title="BarCamp Johannesburg" type="text/html"/>
<id>tag:blogger.com,1999:blog-17679098.post-115592316888322795</id>
<title mode="escaped" type="text/html">BarCamp Johannesburg</title>
<content mode="escaped" type="text/html" xml:base="http://www.burningdog.co.za/blog" xml:space="preserve">&lt;img src="http://barcamp.org/f/barcampjozi_copy.jpg"&gt;&lt;br&gt;
&lt;br&gt;See you there!
&lt;!-- technorati tags start --&gt;&lt;p style="text-align:right;font-size:10px;"&gt;Technorati Tags: &lt;a href="http://www.technorati.com/tag/barcamp" rel="tag"&gt;barcamp&lt;/a&gt;, &lt;a href="http://www.technorati.com/tag/Johannesburg" rel="tag"&gt;Johannesburg&lt;/a&gt;, &lt;a href="http://www.technorati.com/tag/South Africa" rel="tag"&gt;South Africa&lt;/a&gt;&lt;/p&gt;&lt;!-- technorati tags end --&gt;</content>
<draft xmlns="http://purl.org/atom-blog/ns#">false</draft>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="https://www.blogger.com/atom/17679098/115507176771942650" rel="service.edit" title="Using Firefox as an html editor" type="application/atom+xml"/>
<author>
<name>Roger Saner</name>
</author>
<issued>2006-08-08T23:11:19+02:00</issued>
<modified>2006-08-08T21:16:07Z</modified>
<created>2006-08-08T21:16:07Z</created>
<link href="http://www.burningdog.co.za/blog/2006/08/using-firefox-as-html-editor.html" rel="alternate" title="Using Firefox as an html editor" type="text/html"/>
<id>tag:blogger.com,1999:blog-17679098.post-115507176771942650</id>
<title mode="escaped" type="text/html">Using Firefox as an html editor</title>
<content mode="escaped" type="text/html" xml:base="http://www.burningdog.co.za/blog" xml:space="preserve">Here's a tip courtesy of &lt;a href="http://lorelle.wordpress.com/2005/08/22/designing-a-wordpress-theme-building-a-sandbox/"&gt;Lorelle&lt;/a&gt;:&lt;br&gt;&lt;blockquote&gt;
Get and install the two free add-on Extensions for Firefox: &lt;a href="https://addons.mozilla.org/extensions/moreinfo.php?id=60"&gt;Edit CSS&lt;/a&gt; and &lt;a href="http://www.webaim.org/techniques/evaluating/devtoolbar/devtool"&gt;Web Development Tools&lt;/a&gt;.&lt;/blockquote&gt;
&lt;!-- technorati tags start --&gt;&lt;p style="text-align:right;font-size:10px;"&gt;Technorati Tags: &lt;a href="http://www.technorati.com/tag/firefox" rel="tag"&gt;firefox&lt;/a&gt;&lt;/p&gt;&lt;!-- technorati tags end --&gt;</content>
<draft xmlns="http://purl.org/atom-blog/ns#">false</draft>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="https://www.blogger.com/atom/17679098/115507099742894816" rel="service.edit" title="Using Wordpress as a CMS" type="application/atom+xml"/>
<author>
<name>Roger Saner</name>
</author>
<issued>2006-08-08T22:57:52+02:00</issued>
<modified>2006-08-08T21:03:17Z</modified>
<created>2006-08-08T21:03:17Z</created>
<link href="http://www.burningdog.co.za/blog/2006/08/using-wordpress-as-cms.html" rel="alternate" title="Using Wordpress as a CMS" type="text/html"/>
<id>tag:blogger.com,1999:blog-17679098.post-115507099742894816</id>
<title mode="escaped" type="text/html">Using Wordpress as a CMS</title>
<content mode="escaped" type="text/html" xml:base="http://www.burningdog.co.za/blog" xml:space="preserve">I wanted to define a custom home page on a Wordpress site, then link to the actual blog itself. A bit of a mission, but this helped:&lt;br&gt;
&lt;a href="http://codex.wordpress.org/Pages#Using_a_Page_as_the_Front_Page"&gt;http://codex.wordpress.org/Pages#Using_a_Page_as_the_Front_Page&lt;/a&gt;&lt;br&gt;&lt;br&gt;
I created a page called "Home" which had my home info on it.&lt;br&gt;&lt;br&gt;
&lt;blockquote&gt;Using the Static Front Page Plugin, it is possible to set any Page as the "front page" of your site. The plugin modifies the home page query and sticks the Page with a Page slug of "home" to the front page.&lt;/blockquote&gt;I then created blog.php in my theme folder, with the following content:
&lt;blockquote&gt;
&amp;lt;?php
/*
Template Name: Blog
*/
?&amp;gt;

&amp;lt;?php query_posts('cat=-0'); //gets all posts
    load_template( TEMPLATEPATH . '/index.php'); //loads index
 ?&amp;gt;&lt;/blockquote&gt;
Now, log into Wordpress and create a page named "Blog" with template "blog". Also updated my permalinks to begin with "blog" like so:
&lt;blockquote&gt;"/blog/%year%/%monthnum%/%postname%/".&lt;/blockquote&gt;Wordpress is a bit more powerful than I thought!
&lt;!-- technorati tags start --&gt;&lt;p style="text-align:right;font-size:10px;"&gt;Technorati Tags: &lt;a href="http://www.technorati.com/tag/customised" rel="tag"&gt;customised&lt;/a&gt;, &lt;a href="http://www.technorati.com/tag/front page" rel="tag"&gt;front page&lt;/a&gt;, &lt;a href="http://www.technorati.com/tag/wordpress" rel="tag"&gt;wordpress&lt;/a&gt;&lt;/p&gt;&lt;!-- technorati tags end --&gt;</content>
<draft xmlns="http://purl.org/atom-blog/ns#">false</draft>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="https://www.blogger.com/atom/17679098/114184968740038542" rel="service.edit" title="How to run Windows under OS X" type="application/atom+xml"/>
<author>
<name>Roger Saner</name>
</author>
<issued>2006-03-08T22:27:18+02:00</issued>
<modified>2006-03-08T20:28:07Z</modified>
<created>2006-03-08T20:28:07Z</created>
<link href="http://www.burningdog.co.za/blog/2006/03/how-to-run-windows-under-os-x.html" rel="alternate" title="How to run Windows under OS X" type="text/html"/>
<id>tag:blogger.com,1999:blog-17679098.post-114184968740038542</id>
<title mode="escaped" type="text/html">How to run Windows under OS X</title>
<content type="application/xhtml+xml" xml:base="http://www.burningdog.co.za/blog" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">Of course with the release of the Intel Macs the race is on to run Windows XP natively on a Mac. However, it's fairly simple to run it under OS X - for the princely sum of $25. <a href="http://openosx.com/wintel/index.html">WinTel</a> is a product which will let you do that, along with their <a href="http://openosx.com/XP-Tutorial/index.html">XP installation guide</a>.</div>
</content>
<draft xmlns="http://purl.org/atom-blog/ns#">false</draft>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="https://www.blogger.com/atom/17679098/114130806379913047" rel="service.edit" title="Who to vote for? Some remarks on design" type="application/atom+xml"/>
<author>
<name>Roger Saner</name>
</author>
<issued>2006-03-02T15:56:30+02:00</issued>
<modified>2006-03-02T14:01:03Z</modified>
<created>2006-03-02T14:01:03Z</created>
<link href="http://www.burningdog.co.za/blog/2006/03/who-to-vote-for-some-remarks-on-design.html" rel="alternate" title="Who to vote for? Some remarks on design" type="text/html"/>
<id>tag:blogger.com,1999:blog-17679098.post-114130806379913047</id>
<title mode="escaped" type="text/html">Who to vote for? Some remarks on design</title>
<content mode="escaped" type="text/html" xml:base="http://www.burningdog.co.za/blog" xml:space="preserve">It's almost 2pm on March 1st, local government election day. Being someone who doesn't follow politics much and yet wants to make an informed vote I did the only logical thing: I visited elections.org.za to find the websites of all the political parties and see how they rank. Summary: sorely disappointing.&lt;br&gt;&lt;br&gt;

&lt;a href="http://www.vf.co.za"&gt;The Freedom Front Plus&lt;/a&gt;: Afrikaans only - doesn't cater for any other languages.&lt;br&gt;
&lt;a href="http://www.udm.org.za/"&gt;United Democratic Movement&lt;/a&gt;: this site is visually repellent (and that's the nicest I can be). &lt;br&gt;They've tiled an image across the top of the page which clashes on the eyes. However, their election manifesto reads really wel&lt;br&gt;l.
&lt;a href="http://www.ucdp.org.za/"&gt;United Christian Democratic Party&lt;/a&gt;: the only site which addresses the elections directly on the front page - but it was completely insufficient.&lt;br&gt;
&lt;a href="http://www.mf.org.za/"&gt;Minority Front&lt;/a&gt;: site and graphics designed in Microsoft Word. The graphic for "Why vote MF?" reminds me of viagra spam. Good luck to you guys!&lt;br&gt;
&lt;a href="http://www.nnp.org.za/"&gt;New National Party&lt;/a&gt;: this one is interesting. Their site is actually just the Western Cape site with most of their core commitments focussed on results for that province. The link to their &lt;a href="http://www.nnp.co.za/"&gt;national site&lt;/a&gt; reflects a page which says "This will soon be the new home of the domain www.stanleyisland.co.za." Thanks for the laughs!&lt;br&gt;
&lt;a href="http://www.ifp.org.za/"&gt;IFP&lt;/a&gt;: one of the more decent sites. The 3 key words on the front page are: "Honour, Service, Delivery." I've heard that somewhere before.&lt;br&gt;
&lt;a href="http://www.da.org.za/"&gt;Democratic Alliance&lt;/a&gt;: ah, yes - this is where I've heard that before. Also the only party which has a &lt;a href="http://feeds.feedburner.com/DemocraticAlliancePodcast"&gt;podcast&lt;/a&gt; (!). Can't imagine anything more boring. But, perhaps I'll listen and let you know what I think...&lt;br&gt;
&lt;a href="http://www.azapo.org.za/"&gt;Azapo&lt;/a&gt;: probably the most creatively designed site. Black and yellow all the way but politically, I just am not all that stoked about "Azania." Plus I enjoyed the misspelling of "Discliamer" at the bottom of the home page.&lt;br&gt;
The &lt;a href="http://www.id.org.za/"&gt;Independent Democrats&lt;/a&gt; have the most creative single page - you can download ringtones and cellphone wallpaper - the latter comes in all shapes and sizes of "Patricia for President!" which I find hilarious - and very well done. They're the only site to have a blog (albeit one which has no entries) and a forum (which doesn't work) but I have to give them points for at least aiming in the right direction.&lt;br&gt;
&lt;a href="http://www.vf.co.za/"&gt;Vryheidsfront Plus&lt;/a&gt; is one of the better designs - they even use flash on the front page! (not that it's used to do anything, really, but still - points). You can also view the site on a whole bunch of languages - English, French (!), German (!), Russian (!), Setswana, Spanish (!), Zulu. I'm sure all the Russians in SA are pretty chuffed about that.&lt;br&gt;
The &lt;a href="http://www.anc.org.za/"&gt;ANC&lt;/a&gt; site is pretty decent and that's all I have to say about that.&lt;br&gt;&lt;br&gt;

What interests me the most about all of the parties contesting in the elections is the number of parties with "Christian" in their name. From the &lt;a href="http://www.elections.org.za/Registered_Parties/Registered_parties.asp?lPartyID=-1&amp;#38;;lMunicID=-1"&gt;elections.org.za page&lt;/a&gt;:&lt;br&gt;&lt;br&gt;

AFRICAN CHRISTIAN ALLIANCE-AFRIKANER CHRISTEN ALLIANSIE - ACA&lt;br&gt;
AFRICAN CHRISTIAN DEMOCRATIC PARTY - ACDP&lt;br&gt;
CHRISTEN PARTY/CHRISTIAN PARTY - CP&lt;br&gt;
CHRISTIAN CHAMPION PARTY - CCP&lt;br&gt;
CHRISTIAN DEMOCRATIC PARTY - CDP&lt;br&gt;
CHRISTIAN FRONT - CF&lt;br&gt;
NATIONAL CHRISTIAN DEMOCRATIC PARTY - N.C.D.P&lt;br&gt;
UNITED CHRISTIAN DEMOCRATIC PARTY - UCDP&lt;br&gt;&lt;br&gt;

And throw in the God's People's Party too.
&lt;!-- technorati tags start --&gt;&lt;p style="text-align:right;font-size:10px;"&gt;Technorati Tags: &lt;a href="http://www.technorati.com/tag/ANC" rel="tag"&gt;ANC&lt;/a&gt;, &lt;a href="http://www.technorati.com/tag/Azapo" rel="tag"&gt;Azapo&lt;/a&gt;, &lt;a href="http://www.technorati.com/tag/DA" rel="tag"&gt;DA&lt;/a&gt;, &lt;a href="http://www.technorati.com/tag/DA" rel="tag"&gt;DA&lt;/a&gt;, &lt;a href="http://www.technorati.com/tag/Democratic Alliance" rel="tag"&gt;Democratic Alliance&lt;/a&gt;, &lt;a href="http://www.technorati.com/tag/elections" rel="tag"&gt;elections&lt;/a&gt;, &lt;a href="http://www.technorati.com/tag/IFP" rel="tag"&gt;IFP&lt;/a&gt;, &lt;a href="http://www.technorati.com/tag/Independent Democrats" rel="tag"&gt;Independent Democrats&lt;/a&gt;, &lt;a href="http://www.technorati.com/tag/NNP" rel="tag"&gt;NNP&lt;/a&gt;, &lt;a href="http://www.technorati.com/tag/podcast" rel="tag"&gt;podcast&lt;/a&gt;, &lt;a href="http://www.technorati.com/tag/Christian" rel="tag"&gt;Christian&lt;/a&gt;, &lt;a href="http://www.technorati.com/tag/South Africa" rel="tag"&gt;South Africa&lt;/a&gt;, &lt;a href="http://www.technorati.com/tag/Tony Leon" rel="tag"&gt;Tony Leon&lt;/a&gt;, &lt;a href="http://www.technorati.com/tag/vote" rel="tag"&gt;vote&lt;/a&gt;, &lt;a href="http://www.technorati.com/tag/voting" rel="tag"&gt;voting&lt;/a&gt;&lt;/p&gt;&lt;!-- technorati tags end --&gt;</content>
<draft xmlns="http://purl.org/atom-blog/ns#">false</draft>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="https://www.blogger.com/atom/17679098/114053360958633909" rel="service.edit" title="No respect" type="application/atom+xml"/>
<author>
<name>Roger Saner</name>
</author>
<issued>2006-02-21T16:52:10+02:00</issued>
<modified>2006-02-21T14:53:29Z</modified>
<created>2006-02-21T14:53:29Z</created>
<link href="http://www.burningdog.co.za/blog/2006/02/no-respect.html" rel="alternate" title="No respect" type="text/html"/>
<id>tag:blogger.com,1999:blog-17679098.post-114053360958633909</id>
<title mode="escaped" type="text/html">No respect</title>
<content type="application/xhtml+xml" xml:base="http://www.burningdog.co.za/blog" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">-My hacker won't call me by my title, and doesn't seem to respect me at all.
-Your hacker doesn't respect your title. Hackers don't believe that management is "above" engineering; they believe that management is doing one job, and engineering is doing another. They may well frequently talk as if management is beneath them, but this is really quite fair; your question implies that you talk as if engineering is beneath you. Treat your hacker as an equal, and she will probably treat you as an equal -- quite a compliment!

From the "Social Issues" section in <a href="http://www.plethora.net/~seebs/faqs/hacker.html">The Hacker FAQ</a>.
<!-- technorati tags start --><p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/hacking" rel="tag">hacking</a>
</p>
<!-- technorati tags end -->
</div>
</content>
<draft xmlns="http://purl.org/atom-blog/ns#">false</draft>
</entry>
</feed>
