<?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>Tom Sartain &#124; Blog</title>
	<atom:link href="http://blog.ummwhat.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ummwhat.com</link>
	<description></description>
	<lastBuildDate>Sat, 08 Sep 2012 23:58:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Dec 11 OSX System Update broke Java, and I had to fix it again</title>
		<link>http://blog.ummwhat.com/2009/12/dec-11-osx-system-update-broke-java-and-i-had-to-fix-it-again/</link>
		<comments>http://blog.ummwhat.com/2009/12/dec-11-osx-system-update-broke-java-and-i-had-to-fix-it-again/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 16:40:23 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[osx]]></category>
		<category><![CDATA[reference]]></category>

		<guid isPermaLink="false">http://blog.ummwhat.com/?p=3439</guid>
		<description><![CDATA[Upgrading from OSX 10.5 Leopard to OSX 10.6 Snow Leopard had some unexpected consequences for the Java installation, basically ditching Java 1.5 and only having Java 1.6. I would think most Java based apps would be fine with an upgrade, but, then again, I&#8217;m not a Java man. I found that Zend Studio had some [...]]]></description>
				<content:encoded><![CDATA[<p>Upgrading from OSX 10.5 Leopard to OSX 10.6 Snow Leopard had some unexpected consequences for the Java installation, basically ditching Java 1.5 and only having Java 1.6. I would think most Java based apps would be fine with an upgrade, but, then again, I&#8217;m not a Java man. </p>
<p>I found that Zend Studio had some strange issues when starting up (it didn&#8217;t) and the answer was to get the original OSX 10.5 Java 1.5 and put it back where it could be used and do some finagling with settings to let applications use it. It&#8217;s all spelled out in this article on <a href="http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard">how to fix Snow Leopard&#8217;s Java Problem</a></p>
<p>After this past friday&#8217;s software update though, it happened again. After a little bit of research and some trial and error, I found out that I had to re-do a part of the previous fix.</p>
<p>Specifically, I had to re-update the symlink for 1.5.0 in /System/Library/Frameworks/JavaVM.framework/Versions so it was pointed at my 1.5.0-leopard folder. I&#8217;m not sure if I&#8217;ll need to update my other 1.5 related folder to <strong>not</strong> point to the CurrentJDK. </p>
<p>My /System/Library/Frameworks/JavaVM.framework/Versions directory now looks like this:</p>
<pre>
1.3        -> 1.3.1
1.3.1
1.4        -> CurrentJDK
1.4.2      -> CurrentJDK
1.5        -> CurrentJDK
1.5.0      -> 1.5.0-leopard
1.5.0-leopard
1.6        -> 1.6.0
1.6.0
A
Current    -> A
CurrentJDK -> 1.6
</pre>
<p>All of these were updated on Dec 11 when I did the update. So a quick</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-snf</span> 1.5.0-leopard 1.5.0</pre></td></tr></table></div>

<p>And things were good.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ummwhat.com/2009/12/dec-11-osx-system-update-broke-java-and-i-had-to-fix-it-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox Bookmarks Corruption</title>
		<link>http://blog.ummwhat.com/2009/11/firefox-bookmarks-corruption/</link>
		<comments>http://blog.ummwhat.com/2009/11/firefox-bookmarks-corruption/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 01:30:44 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[reference]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[sqlite]]></category>

		<guid isPermaLink="false">http://blog.ummwhat.com/?p=3415</guid>
		<description><![CDATA[I&#8217;d noticed that my Firefox bookmarking was acting wonky. When I tried to bookmark a page, the form would pre-populate with an existing bookmark and upon saving, would save a new bookmark with the old bookmark&#8217;s information. Not quite what it should have been doing. Using the built-in bookmark manager was useless since there seemed [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;d noticed that my Firefox bookmarking was acting wonky. When I tried to bookmark a page, the form would pre-populate with an existing bookmark and upon saving, would save a new bookmark with the old bookmark&#8217;s information. Not quite what it should have been doing. </p>
<p>Using the built-in bookmark manager was useless since there seemed to be an underlying problem with the SQLite database Firefox uses, so I tried opening up the database using the excellent <a href="https://addons.mozilla.org/en-US/firefox/addon/5817">SQLite Manager Add on for Firefox</a>. By running the <a href="http://www.sqlite.org/pragma.html#debug">PRAGMA integrity_check command</a> I saw that the database disk image is malformed. Uh oh.</p>
<p>It had to be rebuilt.</p>
<p>First, I had to make sure I had a <a href="http://www.sqlite.org/download.html">SQLite Command Line Client</a> because I wouldn&#8217;t really be able to work on Firefox&#8217;s databases from inside Firefox.</p>
<p>Then I navigated over to where my places.sqlite database file inside my Firefox profile (which, for me was ~/Library/Application Support/Firefox/Profiles/{profile_name} )</p>
<p>I &#8216;connected&#8217; to my SQLite database</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">sqlite3 places.sqlite</pre></td></tr></table></div>

<p>I reran the integrity check to see if I could garner more information</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="sql" style="font-family:monospace;">PRAGMA integrity_check;</pre></td></tr></table></div>

<p>Which told me some more information that I didn&#8217;t know about</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">On page <span style="color: #000000;">11</span> at right child: 2nd reference to page <span style="color: #000000;">1609</span>
rowid <span style="color: #000000;">912</span> missing from index moz_bookmarks_itemlastmodifiedindex
SQL error: database disk image is malformed</pre></td></tr></table></div>

<p>I&#8217;d read that doing a straightforward dump/reload of the data should fix this sort of problem, so exited out of the SQLite shell and did a <a href="http://www.sqlite.org/sqlite.html">dump from SQLite</a></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">sqlite3 places.sqlite .dump <span style="color: #000000; font-weight: bold;">&gt;</span> places.sql</pre></td></tr></table></div>

<p>Followed by load into a new SQLite database</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">sqlite3 places.new.sqlite <span style="color: #000000; font-weight: bold;">&lt;</span> places.sql</pre></td></tr></table></div>

<p>But then I got a bunch of primary key errors</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">SQL error near line <span style="color: #000000;">872</span>: PRIMARY KEY must be unique
SQL error near line <span style="color: #000000;">877</span>: PRIMARY KEY must be unique
SQL error near line <span style="color: #000000;">883</span>: PRIMARY KEY must be unique
SQL error near line <span style="color: #000000;">884</span>: PRIMARY KEY must be unique
SQL error near line <span style="color: #000000;">885</span>: PRIMARY KEY must be unique
SQL error near line <span style="color: #000000;">888</span>: PRIMARY KEY must be unique
SQL error near line <span style="color: #000000;">889</span>: PRIMARY KEY must be unique
SQL error near line <span style="color: #000000;">890</span>: PRIMARY KEY must be unique</pre></td></tr></table></div>

<p>I popped open places.sql and checked out the lines in question. I saw what appeared to be the primary key which had stopped logically increasing and was sort of random</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #ff0000;">&quot;moz_bookmarks&quot;</span> <span style="color: #993333; font-weight: bold;">VALUES</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">915</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">16546</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">110</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'Bookmark Page Name #1'</span><span style="color: #66cc66;">,</span><span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span><span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">1256413281706712</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">1256413281711799</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #ff0000;">&quot;moz_bookmarks&quot;</span> <span style="color: #993333; font-weight: bold;">VALUES</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">29</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">33509</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">135</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'Bookmark Page Name #2'</span><span style="color: #66cc66;">,</span><span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span><span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">1258662433785621</span><span style="color: #66cc66;">,</span><span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #ff0000;">&quot;moz_bookmarks&quot;</span> <span style="color: #993333; font-weight: bold;">VALUES</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">28</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">31347</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">27</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'Bookmark Page Name #3'</span><span style="color: #66cc66;">,</span><span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span><span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">1258472420957472</span><span style="color: #66cc66;">,</span><span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #ff0000;">&quot;moz_bookmarks&quot;</span> <span style="color: #993333; font-weight: bold;">VALUES</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">27</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">,</span><span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">134</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'Bookmark Page Name #4'</span><span style="color: #66cc66;">,</span><span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">''</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">1258472420951405</span><span style="color: #66cc66;">,</span><span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p>After a cursory glance through the rest of the file, I figured that I could change those primary keys to whatever I wanted as long as they were unique. A quick run through with that, running the same code as before</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">sqlite3 places.new.sqlite <span style="color: #000000; font-weight: bold;">&lt;</span> places.sql</pre></td></tr></table></div>

<p>And success! I renamed my new places.new.sqlite to replace my old places.sqlite, restarted Firefox and everything worked out hunky dory.</p>
<p>A few notes:</p>
<ul>
<li>Make sure Firefox is completely closed before attempting to do anything with the databases from the command line. You will get errors about the database being locked</li>
<li>After restarting Firefox, I did notice issues with my AwesomeBar not quite remembering my usual auto-complete and I also had to click through all of the items in my toolbar in order to get the favicons showing again, but so far nothing major</li>
</ul>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.ummwhat.com/2009/11/firefox-bookmarks-corruption/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Timing command line functions</title>
		<link>http://blog.ummwhat.com/2009/11/timing-command-line-functions/</link>
		<comments>http://blog.ummwhat.com/2009/11/timing-command-line-functions/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 18:08:46 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[osx]]></category>
		<category><![CDATA[reference]]></category>

		<guid isPermaLink="false">http://blog.ummwhat.com/?p=3404</guid>
		<description><![CDATA[Yet another basic command line tool that is awesome: time This lets you do a quick and dirty profile on some code you&#8217;re executing. Basic Usage time &#60;command&#62; This will execute the command and put out a summary detailing how long the command took in total, how long it was tied up in actual execution, [...]]]></description>
				<content:encoded><![CDATA[<p>Yet another basic command line tool that is awesome:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">time</span></pre></td></tr></table></div>

<p>This lets you do a quick and dirty profile on some code you&#8217;re executing.</p>
<p><strong>Basic Usage</strong></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">time</span> <span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #7a0874; font-weight: bold;">command</span><span style="color: #000000; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

<p>This will execute the command and put out a summary detailing how long the command took in total, how long it was tied up in actual execution, and how long it was tied up in system overhead:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">real	0m0.031s
user	0m0.004s
sys	0m0.023s</pre></td></tr></table></div>

<p>Another nifty function that does one thing and one thing only, but does it well. Thanks Unix philosophy!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ummwhat.com/2009/11/timing-command-line-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache, PHP, Snow Leopard and Oracle conspired to kill me, but I didn&#8217;t let them!</title>
		<link>http://blog.ummwhat.com/2009/10/apache-php-snow-leopard-and-oracle-conspired-to-kill-me-but-i-didnt-let-them/</link>
		<comments>http://blog.ummwhat.com/2009/10/apache-php-snow-leopard-and-oracle-conspired-to-kill-me-but-i-didnt-let-them/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 18:23:22 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[osx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[oci8]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://blog.ummwhat.com/?p=3375</guid>
		<description><![CDATA[In a nice epilogue to my post about how Apache, PHP, Zend Debugger and Snow Leopard are conspiring to kill me, I have good news! Thanks to Zend&#8217;s release of a 64-bit version of the Zend Debugger for Mac OSX, I finally got to get everything working together nicely in 64-bit world. I ended up [...]]]></description>
				<content:encoded><![CDATA[<p>In a nice epilogue to my post about how <a href="http://blog.ummwhat.com/2009/09/apache-php-zend-debugger-and-snow-leopard-are-conspiring-to-kill-me/">Apache, PHP, Zend Debugger and Snow Leopard are conspiring to kill me</a>, I have good news!</p>
<p>Thanks to Zend&#8217;s release of a <a href="http://www.zend.com/en/products/studio/downloads">64-bit version of the Zend Debugger for Mac OSX</a>, I finally got to get everything working together nicely in 64-bit world. </p>
<p>I ended up doing a complete format and re-install of Snow Leopard, since I had too many 32-bit binaries laying around. This gave me a great opportunity to clean up my computer too. Double win! </p>
<p>Along the way, I had a couple of hurdles&#8230;</p>
<ul>
<li>iconv continued to throw defined symbol errors. Tried <a href="http://jspr.tndy.me/2009/07/php-5-3-iconv-osx-symbols-missing-_libiconv/">manually compiling iconv in 64-bit</a> but that didn&#8217;t work, eventually just went with a <a href="http://www.macports.org/">Macports</a> install and that worked. Also, tacked &#8220;-liconv&#8221; to the end of my EXTRA_LIBS in the Makefile. For good measure.</li>
<li>Tacked &#8220;-lresolv&#8221; to the end of EXTRA_LIBS in the Makefile too, thanks to <a href="http://www.firewing1.com/node/31">this handy PHP on Snow Leopard reference</a></li>
<li>I used Macports to install the GD related stuff, since the native OSX build of PHP references were broken</li>
<li>We use Oracle as a backend at work, and I had gotten the Oracle Instant Client working on my Leopard build but was having a hell of a time getting it working on Snow Leopard.</li>
</ul>
<p>All of this repeated many times over the past couple of days, trying to get OCI8 to work properly:</p>
<ul>
<li><a href="http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/intel_macsoft.html">Downloaded the Instant Client Basic, SDK and SQL*Plus from Oracle</a></li>
<li>Unpacked them all into /opt/oracle/instantclient_10_2</li>
<li>Recompiled PHP with &#8220;&#8211;with-oci8=instantclient,/opt/oracle/instantclient_10_2,10.2&#8243;</li>
<li>Got lots and lots of &#8220;PHP Warning:  ocilogon(): OCIEnvNlsCreate() failed. There is something wrong with your system &#8211; please check that DYLD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries&#8221;</li>
<li>Tried setting the environment variables via
<ul>
<li>Bash shell</li>
<li>/etc/profile</li>
<li><a href="http://httpd.apache.org/docs/2.0/mod/mod_env.html#setenv">SetEnv</a> in the Apache configs</li>
<li><a href="http://php.net/putenv">putenv()</a> on the script</li>
<li>Voodoo</li>
</ul>
<p>        But none of it worked.
    </li>
</ul>
<p>The problem was that I had made the decision to use the default install of Apache that came with OSX, which has ever so slightly different rules associated with it.</p>
<p>Eventually, I found out about plist files, and how OSX&#8217;s Apache ends up caring about them. So a quick addition to /System/Library/LaunchDaemons/org.apache.httpd.plist and an Apache restart later and my DYLD_LIBRARY_PATH woes were over!</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #00bbdd;">&lt;!DOCTYPE plist PUBLIC &quot;-//Apple Computer//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;plist</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dict<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Disabled<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;true</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Label<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>org.apache.httpd<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>ProgramArguments<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;array<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/usr/sbin/httpd<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>-D<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>FOREGROUND<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/array<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>OnDemand<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;false</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>SHAuthorizationRight<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>system.preferences<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>EnvironmentVariables<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dict<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>DYLD_LIBRARY_PATH<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/opt/oracle/instantclient_10_2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>TNS_ADMIN<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/opt/oracle/tns<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dict<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dict<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/plist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>By adding lines 19 to 25, the environment variables given are passed along to PHP via Apache and eventually the Oracle Instant Client.</p>
<hr />
<p>Other than the OCI issues, the recompiling of PHP went smoothly. Of course, this is in large part thanks to what I learned on my previous adventures in PHP OSX compilation. I&#8217;d still like to know more about .plist files, but for now, I&#8217;m happy that I&#8217;m back up and running where I need to be.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ummwhat.com/2009/10/apache-php-snow-leopard-and-oracle-conspired-to-kill-me-but-i-didnt-let-them/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache, PHP, Zend Debugger and Snow Leopard are conspiring to kill me</title>
		<link>http://blog.ummwhat.com/2009/09/apache-php-zend-debugger-and-snow-leopard-are-conspiring-to-kill-me/</link>
		<comments>http://blog.ummwhat.com/2009/09/apache-php-zend-debugger-and-snow-leopard-are-conspiring-to-kill-me/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 18:59:16 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[osx]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.ummwhat.com/?p=3349</guid>
		<description><![CDATA[After an OS upgrade to Snow Leopard, I find myself unable to rebuild PHP. iconv still throws undefined symbol errors. This is no longer fixable by adding -liconv to the EXTRA_LIBS in the Makefile MH_BUNDLE_FLAGS needs to be moved to the end of the group at line 155 otherwise I get more undefined errors After [...]]]></description>
				<content:encoded><![CDATA[<p>After an OS upgrade to Snow Leopard, I find myself unable to rebuild PHP.</p>
<ul>
<li>iconv <a href="http://bugs.php.net/bug.php?id=43189">still</a> <a href="http://bugs.php.net/bug.php?id=48195">throws</a> <a href="http://jspr.tndy.me/2009/07/php-5-3-iconv-osx-symbols-missing-_libiconv/">undefined symbol errors</a>. This is no longer fixable by adding -liconv to the EXTRA_LIBS in the Makefile</li>
<li><a href="http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/">MH_BUNDLE_FLAGS needs to be moved</a> to the end of the group at line 155 otherwise I get more undefined errors</li>
<li>After giving up on doing it manually, <a href="http://www.macports.org/">Macports </a>install of tidy gives a fatal error about lazy symbol binding failing</li>
<li>Many of my libraries were built as 32-bit, though this was easy to rectify</li>
<li>Even after giving up on iconv and tidy, ZendDebugger is not available for 64-bit on OSX yet. At least, <a href="http://dmitry-dulepov.com/article/zend-debugger-goes-64-bit-on-mac-os-x.html">not that I can get to</a>.</li>
</ul>
<p>That last one is the kicker, since I really enjoy having the debugger so well integrated with Zend Studio 5.5.</p>
<p>So for the time being, it looks like I&#8217;ll be staying with the install I&#8217;ve got. Unless Zend releases a 64-bit version for OSX, my next step will be to figure out how to compile as 32-bit so I can retain control over my install. </p>
<p>Entirely too many hours spent on getting this to work, and I end up using Time Machine to restore my old install. Hooray for frequent backups though. Otherwise I&#8217;d have had to recompile all of my old libraries as 32-bit. And that would have been the end of me.</p>
<hr />
<p>Update: <a href="http://blog.ummwhat.com/2009/10/apache-php-snow-leopard-and-oracle-conspired-to-kill-me-but-i-didnt-let-them/">Success!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ummwhat.com/2009/09/apache-php-zend-debugger-and-snow-leopard-are-conspiring-to-kill-me/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Web Safe Fonts</title>
		<link>http://blog.ummwhat.com/2009/09/web-safe-fonts/</link>
		<comments>http://blog.ummwhat.com/2009/09/web-safe-fonts/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 19:33:22 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[reference]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[fonts]]></category>

		<guid isPermaLink="false">http://blog.ummwhat.com/?p=3337</guid>
		<description><![CDATA[Windows fonts / Mac fonts / Font family Arial, Arial, Helvetica, sans-serif Arial Black, Arial Black, Gadget, sans-serif Comic Sans MS, Comic Sans MS, cursive Courier New, Courier New, Courier, monospace Georgia, Georgia, serif Impact, Impact, Charcoal, sans-serif Lucida Console, Monaco, monospace Lucida Sans Unicode, Lucida Grande, sans-serif Palatino Linotype, Book Antiqua, Palatino, serif Tahoma, [...]]]></description>
				<content:encoded><![CDATA[<table>
<caption>Windows fonts / <span class="mac">Mac fonts</span> / <em>Font family</em></caption>
<tbody>
<tr style="font-family: Arial,Helvetica,sans-serif;">
<td>Arial, <span class="mac">Arial, Helvetica</span>, <em>sans-serif</em></td>
</tr>
<tr style="font-family: 'Arial Black',Gadget,sans-serif;">
<td>Arial Black, <span class="mac">Arial Black, Gadget</span>, <em>sans-serif</em></td>
</tr>
<tr style="font-family: 'Comic Sans MS',Textile,cursive;">
<td>Comic Sans MS, <span class="mac">Comic Sans MS</span>, <em>cursive</em></td>
</tr>
<tr style="font-family: 'Courier New',Courier,monospace;">
<td>Courier New, <span class="mac">Courier New, Courier</span>, <em>monospace</em></td>
</tr>
<tr style="font-family: Georgia,'Times New Roman',Times,serif;">
<td>Georgia, <span class="mac">Georgia</span>, <em>serif</em></td>
</tr>
<tr style="font-family: Impact,Charcoal,sans-serif;">
<td>Impact, <span class="mac">Impact, Charcoal</span>, <em>sans-serif</em></td>
</tr>
<tr style="font-family: 'Lucida Console',Monaco,monospace;">
<td>Lucida Console, <span class="mac">Monaco</span>, <em>monospace</em></td>
</tr>
<tr style="font-family: 'Lucida Sans Unicode','Lucida Grande',sans-serif;">
<td>Lucida Sans Unicode, <span class="mac">Lucida Grande</span>, <em>sans-serif</em></td>
</tr>
<tr style="font-family: 'Palatino Linotype','Book Antiqua',Palatino,serif;">
<td>Palatino Linotype, Book Antiqua, <span class="mac">Palatino</span>, <em>serif</em></td>
</tr>
<tr style="font-family: Tahoma,Geneva,sans-serif;">
<td>Tahoma, <span class="mac">Geneva</span>, <em>sans-serif</em></td>
</tr>
<tr style="font-family: 'Times New Roman',Times,serif;">
<td>Times New Roman, <span class="mac">Times</span>, <em>serif</em></td>
</tr>
<tr style="font-family: 'Trebuchet MS',Helvetica,sans-serif;">
<td>Trebuchet MS, <span class="mac">Helvetica</span>, <em>sans-serif</em></td>
</tr>
<tr style="font-family: Verdana,Geneva,sans-serif;">
<td>Verdana, <span class="mac">Verdana, Geneva</span>, <em>sans-serif</em></td>
</tr>
<tr class="symbol" style="font-family: Symbol;">
<td>Symbol, <span class="mac">Symbol</span> <span style="font-family: Verdana; white-space: nowrap;">(Symbol, <span class="mac">Symbol</span>)</span></td>
</tr>
<tr class="symbol" style="font-family: Webdings;">
<td>Webdings, <span class="mac">Webdings</span> <span style="font-family: Verdana; white-space: nowrap;">(Webdings, <span class="mac">Webdings</span>)</span></td>
</tr>
<tr class="symbol" style="font-family: Wingdings,'Zapf Dingbats';">
<td>Wingdings, <span class="mac">Zapf Dingbats</span> <span style="font-family: Verdana; white-space: nowrap;">(Wingdings, <span class="mac">Zapf Dingbats</span>)</span></td>
</tr>
<tr style="font-family: 'MS Sans Serif',Geneva,sans-serif;">
<td>MS Sans Serif, <span class="mac">Geneva</span>, <em>sans-serif</em></td>
</tr>
<tr style="font-family: 'MS Serif','New York',serif;">
<td>MS Serif, <span class="mac">New York</span>, <em>serif</em></td>
</tr>
</tbody>
</table>
<p>Lifted from <a href="http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html">http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ummwhat.com/2009/09/web-safe-fonts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git and SVN Notes</title>
		<link>http://blog.ummwhat.com/2009/08/git-and-svn-notes/</link>
		<comments>http://blog.ummwhat.com/2009/08/git-and-svn-notes/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 16:27:44 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[reference]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[git-svn]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://blog.ummwhat.com/?p=109</guid>
		<description><![CDATA[More for my own reference than anything else&#8230; I have an SVN repository cloned locally. I&#8217;ve made a couple of changes in order for my application to run locally and I committed those all against the &#8220;dev&#8221; branch I set up. I then go off and do some actual work, which then needs to get [...]]]></description>
				<content:encoded><![CDATA[<p>More for my own reference than anything else&#8230;</p>
<p>I have an SVN repository cloned locally. I&#8217;ve made a couple of changes in order for my application to run locally and I committed those all against the &#8220;dev&#8221; branch I set up. </p>
<p>I then go off and do some actual work, which then needs to get sent back upstream to SVN. This is my workflow.</p>
<p>Starting in the dev branch, with all of my changes committed&#8230;</p>
<ol class="code_instruction">
<li>
<div>Because I should be making sure I have the newest stuff from SVN, just in case</div>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git</span> <span style="color: #c20cb9; font-weight: bold;">svn</span> rebase</pre></td></tr></table></div>

</li>
<li>
<div>Switch over to the master, which should mimic SVN</div>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git checkout</span> master</pre></td></tr></table></div>

</li>
<li>
<div>Bring master up to date with the dev branch</div>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git rebase</span> dev</pre></td></tr></table></div>

</li>
<li>
<div>Remove the commits I don&#8217;t want to push back to SVN</div>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git rebase</span> <span style="color: #660033;">-i</span> <span style="color: #c20cb9; font-weight: bold;">git-svn</span></pre></td></tr></table></div>

</li>
<li>
<div>Because I&#8217;m paranoid and want to make sure only the commits I want are actually coming through</div>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git</span> <span style="color: #c20cb9; font-weight: bold;">svn</span> dcommit <span style="color: #660033;">--dry-run</span></pre></td></tr></table></div>

</li>
<li>
<div>Commit it off to SVN</div>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git</span> <span style="color: #c20cb9; font-weight: bold;">svn</span> dcommit</pre></td></tr></table></div>

</li>
</ol>
<hr />
<h3>Changing History</h3>
<div class="code_instruction">
<div>Revise the last 37 commits. Opens up a log in $EDITOR where you can &#8216;squash&#8217; commits together</div>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git rebase</span> <span style="color: #660033;">-i</span> HEAD~<span style="color: #000000;">37</span></pre></td></tr></table></div>

</div>
<hr />
<h3>Undoing crazy rebases</h3>
<ol class="code_instructions">
<li>
<div>Find the commit you want to bring back, copy it&#8217;s sha1 starter</div>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git reflog</span></pre></td></tr></table></div>

</li>
<li>
<div>Boom, commit is back.</div>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git cherry-pick</span> <span style="color: #000000; font-weight: bold;">&lt;</span>sha1 starter<span style="color: #000000; font-weight: bold;">&gt;&lt;/</span>sha1<span style="color: #000000; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.ummwhat.com/2009/08/git-and-svn-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
