<?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>www.jhodges.co.uk &#187; Mac OS X</title>
	<atom:link href="http://jhodges.co.uk/category/mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://jhodges.co.uk</link>
	<description>I ain&#039;t not never done nothing to nobody and there ain&#039;t not no way none of that couldn&#039;t not never have happened. See?</description>
	<lastBuildDate>Tue, 08 Jun 2010 20:34:23 +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>Explode into associative array</title>
		<link>http://jhodges.co.uk/explode-into-associative-array/</link>
		<comments>http://jhodges.co.uk/explode-into-associative-array/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 18:32:20 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.jhodges.co.uk/?p=55</guid>
		<description><![CDATA[Simple function to explode a string into an associative array. Works in the same way as the normal explode but takes an extra argument which is an array of keys to use for the returned associative array.

&#60;?php
function aexplode($delim,$string,$keys){
    foreach(explode($delim,$string) as $k=&#62;$v){
        $result[$keys[$k]]=$v;
    [...]]]></description>
			<content:encoded><![CDATA[<p>Simple function to explode a string into an associative array. Works in the same way as the normal explode but takes an extra argument which is an array of keys to use for the returned associative array.</p>
<p><span id="more-55"></span>
<pre style="color: #000080;" language="PHP">&lt;?php
function aexplode($delim,$string,$keys){
    foreach(explode($delim,$string) as $k=&gt;$v){
        $result[$keys[$k]]=$v;
    }
    return $result;
}
?&gt;</pre>
<p></span></p>
<p>Example:</p>
<p>print_r(aexplode(&#8220;|&#8221;,&#8221;silly|nice|chin|thanks&#8221;,array(&#8220;one&#8221;,&#8221;two&#8221;,&#8221;three&#8221;,&#8221;four&#8221;)));</p>
<p>Array<br />
(<br />
[one] =&gt; silly<br />
[two] =&gt; nice<br />
[three] =&gt; chin<br />
[four] =&gt; thanks<br />
)</p>
]]></content:encoded>
			<wfw:commentRss>http://jhodges.co.uk/explode-into-associative-array/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Keychain Nightmare</title>
		<link>http://jhodges.co.uk/keychain-nightmare/</link>
		<comments>http://jhodges.co.uk/keychain-nightmare/#comments</comments>
		<pubDate>Sun, 09 Nov 2008 01:28:04 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://www.jhodges.co.uk/?p=61</guid>
		<description><![CDATA[On Mac OS X 10.5.1 (Leopard) they keychain is great! A central place to store all passwords&#8230;
When browsing in Safari, the keychain remembers passwords and pre fills the username and password fields next time you are asked for them, making remembering passwords and logging in to sites easy.
There are two type of passwords the Keycahin [...]]]></description>
			<content:encoded><![CDATA[<p>On Mac OS X 10.5.1 (Leopard) they keychain is great! A central place to store all passwords&#8230;</p>
<p>When browsing in Safari, the keychain remembers passwords and pre fills the username and password fields next time you are asked for them, making remembering passwords and logging in to sites easy.</p>
<p>There are two type of passwords the Keycahin can remember for Safari; web form passwords (appear as a form inside a web page) and internet password (apper as the standard server authentication popup window).</p>
<p>This works great until a site that requires both.</p>
<p><span id="more-61"></span>This doesn&#8217;t usually happen on many web sites, but as a web site developer, I often work on sites that are completely password protected (internet password) until they are complete but also require you to log in to access certain features (web form password)</p>
<h3>The Problem</h3>
<p>Web form passwords seem to overwrite internet passwords, and visa versa.</p>
<p>If I enter a username and password to access the site (eg. username: test password: pass) this all works well and is remembered fine.</p>
<p>Next time I reopen the browser and revisit the site I am logged in automatically.</p>
<p>If, however, once logged it, I need to enter a user/pass into a form (eg. username: myuser password:mypass) and tell Safari to remember it, it seems to work, until next time I visit the site, at which point I get prompted to log in but the username field is pre filled with &#8216;myuser&#8217; rather than &#8216;test&#8217;. If i correct this and save it, when I reach the web form these details are now in there, rather than he correct ones.</p>
<p>Watching the passwords inside the keychain application, you can see it creates the initial entry correctly, but then modifies it rather than creating a new entry for the other type of password.</p>
<h3>Working Behavior</h3>
<p>Safari should remember these passwords separately, I can confirm this is how it works on another computer. I even imported a keychain from a working computer with both passwords set, this worked find initially, but then got mashed up as soon as I had logged in.</p>
<h3>Possible Cause</h3>
<p>I did have safari stand and SIMBL installed, I removed these incase they were the cause of the problem, this did not help. Could they have broken something permanently. Other than that this is quite a fresh install (archive and install from 10.3) with no other modifications.</p>
<h3>Attempted Fixes</h3>
<p>None of this made any difference. Not to say that it wouldn&#8217;t in other similar circumstances.</p>
<ul>
<li>Repair keychain</li>
<li>New keychain</li>
<li>Remove Safari Stand</li>
<li>Reinstall Safari</li>
<li>Reinstall OS X 10.5.1 Combo Updater</li>
</ul>
<p>I am waiting to see if OS X 10.5.2 will fix the problem&#8230; If not, maybe an OS reinstall will help, not usually the preferred solution on a Mac.</p>
<p><strong>&#8212; EDIT &#8212;</strong></p>
<p>10.5.2 didnt help <img src='http://jhodges.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I have given up and am now using firefox!</p>
]]></content:encoded>
			<wfw:commentRss>http://jhodges.co.uk/keychain-nightmare/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
