<?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>the echothis blog</title>
	<atom:link href="http://blog.echothis.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.echothis.com</link>
	<description>HelloWorld() shouldn't be so hard</description>
	<lastBuildDate>Fri, 16 Mar 2012 02:39:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>CakePHP 2.0 now requires an updated version of libpcre</title>
		<link>http://blog.echothis.com/2012/01/30/cakephp-2-0-now-requires-an-updated-version-of-libpcre/</link>
		<comments>http://blog.echothis.com/2012/01/30/cakephp-2-0-now-requires-an-updated-version-of-libpcre/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 21:30:22 +0000</pubDate>
		<dc:creator>Rolf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.echothis.com/?p=576</guid>
		<description><![CDATA[In a previous post, I included steps to fix the PCRE problem in Cake 1.3.  After upgrading to CakePHP 2.0, I found that those steps on CentOS 5.4 aren&#8217;t sufficient to run Cake console scripts.  To fix it, here are the steps: # yum remove pcre-devel # Download the latest source (v8.21) from http://sourceforge.net/projects/pcre/files/pcre/ # [...]]]></description>
			<content:encoded><![CDATA[<p>In a <a href="/2011/01/27/fixing-cakephp-1-3s-cache-key-error-on-red-hat-and-centos/">previous post</a>, I included steps to fix the PCRE problem in Cake 1.3.  After upgrading to CakePHP 2.0, I found that those steps on CentOS 5.4 <a href="http://cakephp.lighthouseapp.com/projects/42648/tickets/582">aren&#8217;t sufficient</a> to run Cake console scripts.  To fix it, here are the steps:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># yum remove pcre-devel</span>
<span style="color: #666666; font-style: italic;"># Download the latest source (v8.21) from http://sourceforge.net/projects/pcre/files/pcre/ </span>
<span style="color: #666666; font-style: italic;"># ./configure --enable-utf8 --enable-unicode-properties --prefix=/usr/bin --exec-prefix=/usr/lib --libdir=/usr/lib </span>
<span style="color: #666666; font-style: italic;"># make clean &amp;&amp; make install</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Run it again with the other libdir</span>
<span style="color: #666666; font-style: italic;"># ./configure --enable-utf8 --enable-unicode-properties --prefix=/usr/bin --exec-prefix=/usr/lib --libdir=/usr/lib64</span>
<span style="color: #666666; font-style: italic;"># make clean &amp;&amp; make install</span></pre></div></div>

<p>Then rebuild PHP.</p>
<p>After this you should be able to run Console scripts without errors.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.echothis.com/2012/01/30/cakephp-2-0-now-requires-an-updated-version-of-libpcre/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Connect broken again?  Here&#8217;s a workaround for the latest crash</title>
		<link>http://blog.echothis.com/2012/01/07/facebook-connect-broken-again-heres-a-workaround-for-the-latest-crash/</link>
		<comments>http://blog.echothis.com/2012/01/07/facebook-connect-broken-again-heres-a-workaround-for-the-latest-crash/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 23:31:04 +0000</pubDate>
		<dc:creator>Rolf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.echothis.com/?p=570</guid>
		<description><![CDATA[Facebook Connect is great when it works, but like with any SAAS solution, if they go down, your site does too. The latest bug is especially annoying, as it had previously arisen in December and was fixed by Facebook the following day.  The current incarnation is (as of now) still not fixed, 3 days later.  [...]]]></description>
			<content:encoded><![CDATA[<p>Facebook Connect is great when it works, but like with any SAAS solution, if they go down, your site does too.</p>
<p>The <a href="http://developers.facebook.com/bugs/245362365535898">latest bug</a> is especially annoying, as it had previously arisen in December and was fixed by Facebook the following day.  The current incarnation is (as of now) still not fixed, 3 days later.  It manifests itself in people being unable to log out of websites that use Connect.</p>
<p>The root problem, as I see it, is that the &#8220;domain&#8221; for the fbsr_ cookie that Facebook sets on your domain, suddenly changed from &#8220;www.yourdomain.com&#8221; to &#8220;.www.yourdomain.com&#8221;, which the Facebook SDK is unable to remove.  I suspect the problem is in the Javascript SDK, which they host, but it may be in the PHP SDK for all I know.  But regardless, this is a bug on the Facebook platform that causes it.</p>
<p>To work around it, download the excellent <a href="http://code.google.com/p/cookies">cookies project</a> from Google Code and reference it in your logout page. Then do this</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">    <span style="color: #003366; font-weight: bold;">var</span> fbsr_cookies <span style="color: #339933;">=</span> jaaulde.<span style="color: #660066;">utils</span>.<span style="color: #660066;">cookies</span>.<span style="color: #660066;">filter</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/fbsr_/</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>c <span style="color: #000066; font-weight: bold;">in</span> fbsr_cookies<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        jaaulde.<span style="color: #660066;">utils</span>.<span style="color: #660066;">cookies</span>.<span style="color: #660066;">del</span><span style="color: #009900;">&#40;</span>c<span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span> path<span style="color: #339933;">:</span> <span style="color: #3366CC;">'/'</span><span style="color: #339933;">,</span> domain<span style="color: #339933;">:</span> <span style="color: #3366CC;">'.'</span> <span style="color: #339933;">+</span> location.<span style="color: #660066;">host</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span></pre></div></div>

<p>There are much shorter ways of coding this yourself using regexes, but this works.  I do hope they fix this soon, and prevent it from coming back in the future.</p>
<p>Alas, sometimes you get what you pay for, and Facebook is free.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.echothis.com/2012/01/07/facebook-connect-broken-again-heres-a-workaround-for-the-latest-crash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yahoo Mail DOES Offer IMAP After All</title>
		<link>http://blog.echothis.com/2011/11/29/yahoo-mail-does-offer-imap-after-all/</link>
		<comments>http://blog.echothis.com/2011/11/29/yahoo-mail-does-offer-imap-after-all/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 13:53:02 +0000</pubDate>
		<dc:creator>Rolf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.echothis.com/?p=563</guid>
		<description><![CDATA[&#8230; at least for the paid Yahoo Mail Plus users like me.  After spending several days trying in vain to download all my 35000 emails via POP3 to Outlook 2010, I was about to switch to Gmail permanently (since from Day 1 it has offered free IMAP, which is much more reliable and faster) when [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230; at least for the paid Yahoo Mail Plus users like me.  After spending several days trying in vain to download all my 35000 emails via POP3 to Outlook 2010, I was about to switch to Gmail permanently (since from Day 1 it has offered free IMAP, which is much more reliable and faster) when I stumbled across <a href="http://social.technet.microsoft.com/Forums/en-US/outlook/thread/0111c5c2-9350-464a-8950-cc0cd23a039e">this link</a>.  In particular, see the reply from 11/18/2010.  These settings worked like a charm for me:</p>
<pre>Incoming:</pre>
<pre>imap.mail.yahoo.com</pre>
<pre>SSL: True</pre>
<pre>Port: 993</pre>
<pre>Outgoing:</pre>
<pre>smtp.mail.yahoo.com</pre>
<pre>SSL: False]</pre>
<pre>Port: 587</pre>
<pre>Outgoing server requires authentication:Checked</pre>
<pre>Use same settings as incoming server</pre>
<p>&nbsp;</p>
<p>I don&#8217;t know if it works for regular (free) Yahoo Mail accounts, or if it&#8217;s officially supported even, but I guess I will keep my paid account a little longer!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.echothis.com/2011/11/29/yahoo-mail-does-offer-imap-after-all/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>For automatic upgrading of WordPress, the directory owner has to be apache</title>
		<link>http://blog.echothis.com/2011/08/15/for-automatic-upgrading-of-wordpress-the-directory-owner-has-to-be-apache/</link>
		<comments>http://blog.echothis.com/2011/08/15/for-automatic-upgrading-of-wordpress-the-directory-owner-has-to-be-apache/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 11:49:58 +0000</pubDate>
		<dc:creator>Rolf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.echothis.com/?p=527</guid>
		<description><![CDATA[After setting up a new VPS to run this blog, among a few other sites, it only took a few minutes to get Wordpress running again.  That part was easy, but later on when I tried to auto-upgrade to the latest version, I was suddenly prompted for FTP credentials.  This is pretty odd, because: I don&#8217;t want to [...]]]></description>
			<content:encoded><![CDATA[<p>After setting up a new VPS to run this blog, among a few other sites, it only took a few minutes to get Wordpress running again.  That part was easy, but later on when I tried to auto-upgrade to the latest version, I was suddenly prompted for FTP credentials.  This is pretty odd, because:</p>
<ol>
<li>I don&#8217;t want to run an FTP server for security reasons</li>
<li>The whole point of auto-updating is to download the new version from WordPress.com, not to upload anything.  So why would I need to have an FTP server on my end anyway?</li>
</ol>
<p>It turns out that this situation results from a strange design decision by the WordPress folks.  As described <a href="http://www.lornajane.net/posts/2009/Wordpress-Automatic-Update-Asking-for-FTP">here</a>, you&#8217;ll get this prompt if:</p>
<ol>
<li>The owner of the WordPress webroot is anything other than the webserver user (in my case, &#8220;apache&#8221;).  It is not enough to chmod 775, which would be expected, <strong>but you have to change the owner to apache</strong>.</li>
<li>If you haven&#8217;t done #1, you get the FTP login prompt without any explanation or instruction.</li>
</ol>
<p>Now I understand the WordPress is often used in shared hosting environments so that was apparently the reasoning behind this, but IMO it&#8217;s a lot more dangerous to be running an FTP server than it is to simply make sure apache can write to the webroot.  Plus, requiring the owner to be apache is just weird.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.echothis.com/2011/08/15/for-automatic-upgrading-of-wordpress-the-directory-owner-has-to-be-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comcast Customer Support Chat &#8211; pretty awful, even if it&#8217;s a bot</title>
		<link>http://blog.echothis.com/2011/08/05/comcast-customer-support-chat-pretty-awful-even-if-its-a-bot/</link>
		<comments>http://blog.echothis.com/2011/08/05/comcast-customer-support-chat-pretty-awful-even-if-its-a-bot/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 14:40:10 +0000</pubDate>
		<dc:creator>Rolf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.echothis.com/?p=517</guid>
		<description><![CDATA[The other day I got a rather important-looking email from Comcast saying they thought my PC had been infected with a bot. Now, being in the business, I am religious about keeping up to date on both Windows Update and my antivirus program (Norton Security is supplied by Comcast). So to be infected with a [...]]]></description>
			<content:encoded><![CDATA[<p>The other day I got a rather important-looking email from Comcast saying they thought my PC had been infected with a bot. Now, being in the business, I am religious about keeping up to date on both Windows Update and my antivirus program (Norton Security is supplied by Comcast). So to be infected with a bot would be surprising and I wanted to get the details of why Comcast thought I had one. I had the following surreal experience with Comcast Customer Support.</p>
<p><code><br />
analyst Carlo has entered room</code></p>
<p>CarloCQNT: Hello Rolf, Thank you for contacting Comcast Live Chat Support. My name is Carlo. Please give me one moment to review your information.</p>
<p>Rolf: My Issue: I am an IT professional. I have now received 2 emails from Comcast stating that my computer (or presumably one of the PC&#8217;s on my LAN) is infected with a &#8220;bot&#8221; &#8211; I want technical details of why you think that&#8217;s the case.</p>
<p>CarloCQNT: Hi.</p>
<p>CarloCQNT: I know that can certainly be frustrating. Let me try to pin point what the problem is and work on getting this fixed for you.</p>
<p>Rolf: I have checked each of the 4 PC&#8217;s on the network and all 4 are, of course, up to date with the latest Windows updates and Norton Security updates. So I want to know what is triggering these alerts.</p>
<p>CarloCQNT: Thank you for that information Rolf.</p>
<p>CarloCQNT: &#8220;For security purposes, may I please have the following: 1] Full name listed on the account 2] Service address 3] Account number&#8221;</p>
<p>Rolf: Rolf Kaiser, [my address], and I don&#8217;t have a clue what my account number is, but I got to this chat via logging in with my Comcast login so you should be able to find it.</p>
<p>CarloCQNT: Thank you for that information.</p>
<p>CarloCQNT: Would you mind waiting for 2 minutes so that I can do the research in my system and provide you with the appropriate information?</p>
<p>Rolf: ok</p>
<p>CarloCQNT: Thank you for patiently waiting.</p>
<p>CarloCQNT: Was the error been recurring?</p>
<p>Rolf: Did you even read the description? I have received 2 emails from you so far and need to know why.</p>
<p>CarloCQNT: Thank you for that information Rolf.</p>
<p>Rolf: Well?</p>
<p>CarloCQNT: I&#8217;m currently working on why there are emails sent to you about your security.</p>
<p>CarloCQNT: Please check the validity of your antivirus software.</p>
<p>CarloCQNT: I may give you the link for Norton Support Site, http://www.symantec.com/en/au/norton/support/index.jsp</p>
<p>Rolf: I already said that the Norton software, installed on each machine, is up to date! It was the second thing I said!</p>
<p>Rolf: Are you a human being?</p>
<p>CarloCQNT: I am Rolf, I&#8217;m verifying it.</p>
<p>CarloCQNT: Please manage your account about recieving spam mails, in Customer Central.</p>
<p>Rolf: This is NOT a spam issue. These mails, as I clearly said, come from Comcast, specifically, &#8220;Comcast Security Assurance&#8221;, csa-noreply@comcast.net. Surely you&#8217;re not considering these security alerts to be &#8220;spam&#8221;, are you?</p>
<p>CarloCQNT: Alright, thank you for that information.</p>
<p>CarloCQNT: Thank you for patiently waiting Rolf.</p>
<p>Rolf: I don&#8217;t have any more time for this. I will have to get on the phone and call customer support in the morning. For the record, this chat has been 100% useless.</p>
<p>CarloCQNT: The email may be an alert for your security software service availability, a protocol to keep your system secured.</p>
<p>Rolf: That is meaningless. Just tell me why I am getting this email. Am I running listeners on unusual ports? I am hosting high-traffic websites? (The answer to both is &#8220;no&#8221;). What is it that makes you think I am infected with a &#8220;bot&#8221;?</p>
<p>CarloCQNT: Have you checked for malwares in your system?</p>
<p>Rolf: I run scheduled full-system scans, as well as &#8220;on demand&#8221; scanning on all 4 PCs. So the chance of any of them having any undetected malware is minimal. Why won&#8217;t you answer my question &#8211; why do you think I have a bot? If you give me the technical details of the traffic you&#8217;re seeing, that would indicate this, then I can track it down!</p>
<p>CarloCQNT: Thank you for that information.</p>
<p>CarloCQNT: We cannot have access to your computer, only our internet connection.</p>
<p>Rolf: Of course I realize that &#8211; that&#8217;s why I said &#8220;give me the technical details of the traffic you&#8217;re seeing&#8221;. Are you sure you&#8217;re a human? Based on this conversation, I am pretty sure the only &#8220;bot&#8221; here is you.</p>
<p>CarloCQNT: I recommend you contact your computer technician for the problem.</p>
<p>Rolf: Good grief. Well, at least I know the apocalypse from the Terminator movies isn&#8217;t going to hit anytime soon. Skynet has a long way to go before we have to worry about it.</p>
<p>Rolf: By the way that was a joke. But you won&#8217;t get it since you&#8217;re a bot.</p>
<p>The whole thing took over an hour, due to the long delays between messages from &#8220;Carlo&#8221;, which leads me to the second conclusion that current bots are also too slow to take over the world.</p>
<p>&nbsp;</p>
<p><strong>Update 8/7:</strong> After leaving pretty pointed feedback during the post-chat survey, I got a call the next day from a real person at Comcast Support.  The person I spoke to was very professional and gave me the straight answers I was looking for &#8211; specifically she told me what bots they thought they were seeing traffic from (it was Conficker, which is a pretty old one so that was surprising), and what times they saw the traffic occurring.  I told her that if they just put that information in the alert email (or at a link off it), then their customers could have debugged it themselves.  She gave a rather lame answer to the effect that Comcast, as a policy, didn&#8217;t publicize that sort of information.  It&#8217;s not clear to me why any of that would be sensitive information though.</p>
<p>One other comment she made was that she didn&#8217;t think highly of Norton Security, which was provided by Comcast, for finding malware like bots.  She recommended <a href="http://www.safer-networking.org/index2.html">Spyware Search and Destroy</a> as it seemed more thorough, which I will check out.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.echothis.com/2011/08/05/comcast-customer-support-chat-pretty-awful-even-if-its-a-bot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Impressions of Google Music Beta</title>
		<link>http://blog.echothis.com/2011/07/05/impressions-of-google-music-beta/</link>
		<comments>http://blog.echothis.com/2011/07/05/impressions-of-google-music-beta/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 18:00:32 +0000</pubDate>
		<dc:creator>Rolf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.echothis.com/?p=509</guid>
		<description><![CDATA[Since I&#8217;m always on the lookout for better music systems, I played with Google Music Beta a bit over the last week. Pros: The interface is pretty clean, but it’s a pain to make your own playlists (like it is with most jukeboxes). They have an &#8220;instant mix&#8221; button which makes a playlist based on [...]]]></description>
			<content:encoded><![CDATA[<p>Since I&#8217;m always on the lookout for better music systems, I played with <a href="http://music.google.com">Google Music Beta</a> a bit over the last week.</p>
<p><strong>Pros:</strong></p>
<ol>
<li>The interface is pretty clean, but it’s a pain to make your own playlists (like it is with most jukeboxes).</li>
<li>They have an &#8220;instant mix&#8221; button which makes a playlist based on the song and seems to work well enough; can’t tell if it’s better than MongoMusic was (back in the day) or not.</li>
<li>It’s free (for now at least)</li>
<li>Supports unprotected WMA in addition to MP3 and M4A (neither Amazon Music, nor Apple iCloud support WMA)</li>
</ol>
<p><strong>Cons:</strong></p>
<ol>
<li>You have to upload your music (Apple got a license to do fingerprint matching which would be much faster). So far for me it looks like it will take more than a week, to do the 20K songs.</li>
<li>Website doesn’t really work on my iPad or iPhone. This is a touchscreen UI issue, not a technical one (since their web UI uses HTML5 not Flash), so this can get fixed when they want to.</li>
<li>I couldn’t get the Google Music app to work on my cheapo Android phone. Didn’t try to find out why, so this is probably user error.</li>
<li>It’s capped at 20K songs which is enough for most people (but not me).</li>
</ol>
<p>&nbsp;</p>
<p>So basically Google Music is going to be the best option (better than Apple or Amazon), with a little work on their end. I’d even pay an annual fee to use it, if they fix the points above.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.echothis.com/2011/07/05/impressions-of-google-music-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hack to get Selenium IDE running on Firefox 4</title>
		<link>http://blog.echothis.com/2011/04/21/hack-to-get-selenium-ide-running-on-firefox-4/</link>
		<comments>http://blog.echothis.com/2011/04/21/hack-to-get-selenium-ide-running-on-firefox-4/#comments</comments>
		<pubDate>Thu, 21 Apr 2011 15:50:40 +0000</pubDate>
		<dc:creator>Rolf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.echothis.com/?p=496</guid>
		<description><![CDATA[With Firefox 4 being just out, the Selenium team hasn&#8217;t had a chance to update their Add-on packaging for the release Firefox version (although I see it&#8217;s been tested on the beta version). So I manually hacked the RDF files for the v1.0.10 IDE and PHP formatter, to get up and running. You&#8217;ll need to [...]]]></description>
			<content:encoded><![CDATA[<p>With Firefox 4 being just out, the <a href="http://seleniumhq.org">Selenium</a> team hasn&#8217;t had a chance to update their Add-on packaging for the release Firefox version (although I see it&#8217;s been tested on the beta version).</p>
<p>So I manually hacked the RDF files for the v1.0.10 IDE and PHP formatter, to get up and running.   You&#8217;ll need to unzip the attached file, then manually install each of the two XPI Add-on files by going to the Add-ons Manager and choosing &#8220;Install Add-on From File&#8230;&#8221; &#8211; click the button to the left of the search box to get the menu.</p>
<p>No ill effects I can tell, but use with caution.  I assume this will be fixed in 1.0.11 in the coming weeks, but this should work in the meantime.</p>
<p><a title="hacked_selenium_ide_and_php_xpis.zip" href="http://blog.echothis.com/wp-content/uploads/2011/04/hacked_selenium_ide_and_php_xpis.zip">hacked_selenium_ide_and_php_xpis.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.echothis.com/2011/04/21/hack-to-get-selenium-ide-running-on-firefox-4/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Fixing CakePHP 1.3&#8242;s Cache key error on Red Hat and CentOS</title>
		<link>http://blog.echothis.com/2011/01/27/fixing-cakephp-1-3s-cache-key-error-on-red-hat-and-centos/</link>
		<comments>http://blog.echothis.com/2011/01/27/fixing-cakephp-1-3s-cache-key-error-on-red-hat-and-centos/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 00:14:42 +0000</pubDate>
		<dc:creator>Rolf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.echothis.com/?p=487</guid>
		<description><![CDATA[I ran across this today, when upgrading from CakePHP 1.2 to 1.3 on a CentOS box. Since the bug didn&#8217;t appear on Windows, after a bit of debugging I realized it was actually caused by a misconfiguration in the PCRE library that ships with RedHat and thus CentOS 5.x. It&#8217;s been reported to CakePHP but [...]]]></description>
			<content:encoded><![CDATA[<p>I ran across <a href="http://cakephp.19694.n2.nabble.com/cache-key-not-working-td4960573.html">this</a> today, when upgrading from CakePHP 1.2 to 1.3 on a CentOS box.  Since the bug didn&#8217;t appear on Windows, after a bit of debugging I realized it was actually caused by a misconfiguration in the PCRE library that ships with RedHat and thus CentOS 5.x.  It&#8217;s been <a href="http://cakephp.lighthouseapp.com/projects/42648/tickets/1008-inflectorslug-returns-incorrect-results-in-rhel-or-centos-systems">reported to CakePHP</a> but it&#8217;s not their fault, it just surfaces in <a href="http://api.cakephp.org/view_source/view/#line-343">View::element() </a>because that uses Inflector::slug(), which in turn relies on PCRE.  I guess this codepath has changed since 1.2, hence it showed up during the migration.</p>
<p>Fixing it was not difficult though, based on <a href="http://chrisjean.com/2009/01/31/unicode-support-on-centos-52-with-php-and-pcre/">this blog post</a> and these <a href="http://yupmin.net/upgrade-pcre-with-unicode-on-centos">directions</a>.  Then rebuild PHP, bounce Apache, and you&#8217;re fixed.</p>
<p><strong>Update 2/8/11: </strong>If you&#8217;re on 64-bit, change the RPM upgrade line to be</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>redhat<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>x86_64<span style="color: #000000; font-weight: bold;">/</span>pcre-<span style="color: #000000;">6.6</span>-<span style="color: #000000;">2.7</span>.x86_64.rpm <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>redhat<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>x86_64<span style="color: #000000; font-weight: bold;">/</span>pcre-devel-<span style="color: #000000;">6.6</span>-<span style="color: #000000;">2.7</span>.x86_64.rpm</pre></div></div>

<p><strong>Update 1/30/2012: </strong> See <a href="/2012/01/30/cakephp-2-0-now-requires-an-updated-version-of-libpcre/">updated instructions</a> for CakePHP 2.0.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.echothis.com/2011/01/27/fixing-cakephp-1-3s-cache-key-error-on-red-hat-and-centos/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>FirePHP and CakePHP-Facebook-Plugin class collision</title>
		<link>http://blog.echothis.com/2011/01/02/firephp-and-cakephp-facebook-plugin-class-collision/</link>
		<comments>http://blog.echothis.com/2011/01/02/firephp-and-cakephp-facebook-plugin-class-collision/#comments</comments>
		<pubDate>Sun, 02 Jan 2011 19:31:47 +0000</pubDate>
		<dc:creator>Rolf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.echothis.com/?p=477</guid>
		<description><![CDATA[This took me an awfully long time to debug, but if you happen to be using both the CakePHP Facebook Plugin and FirePHP version 0.3.2 Server Library, you will get &#8220;redeclaration&#8221; errors if you try to include both FirePHP and the Facebook Connect component. This is because they both declare a FB() class. Eventually the [...]]]></description>
			<content:encoded><![CDATA[<p>This took me an awfully long time to debug, but if you happen to be using both the <a href="http://www.webtechnick.com/blogs/view/229/CakePHP_Facebook_Plugin_Auth_Facebook_and_more">CakePHP Facebook Plugin</a> and <a href="http://www.firephp.org">FirePHP</a> version 0.3.2 Server Library, you will get &#8220;redeclaration&#8221; errors if you try to include both FirePHP and the Facebook Connect component.  This is because they both declare a FB() class.</p>
<p>Eventually the solution was simple, just rename all instances of the FB class in the FirePHP code, to &#8220;FireBug&#8221;.  I did this for the PHP5 version only, since I didn&#8217;t care about PHP4.  Zipped and attached if you&#8217;d like to use it.</p>
<p><a href="http://blog.echothis.com/wp-content/uploads/2011/01/FirePHPCore-patched.zip">FirePHPCore-patched.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.echothis.com/2011/01/02/firephp-and-cakephp-facebook-plugin-class-collision/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deploying the first Titanium app to an iPhone</title>
		<link>http://blog.echothis.com/2010/12/28/deploying-the-first-titanium-app-to-an-iphone/</link>
		<comments>http://blog.echothis.com/2010/12/28/deploying-the-first-titanium-app-to-an-iphone/#comments</comments>
		<pubDate>Tue, 28 Dec 2010 22:43:13 +0000</pubDate>
		<dc:creator>Rolf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.echothis.com/?p=465</guid>
		<description><![CDATA[As might be expected, deploying a Titanium app to an iPhone was pretty easy. For the most part, just follow this video. However, there were these gotchas: Disabled Install Now button As per this post, it wasn’t obvious why the Install Now button was disabled. But clicking the &#8220;Upload&#8221; link next to the Upload Development [...]]]></description>
			<content:encoded><![CDATA[<p>As might be expected, deploying a Titanium app to an iPhone was pretty easy.  For the most part, just <a href="http://vimeo.com/10278960">follow this video</a>.  However, there were these gotchas:</p>
<p><strong>Disabled Install Now button</strong></p>
<p>As per <a href="http://developer.appcelerator.com/question/32001/run-on-device-iphone---install-now-button-is-disabled">this post</a>,  it wasn’t obvious why the Install Now button was disabled.  But clicking the &#8220;Upload&#8221; link next to the Upload Development Provisioning Profile line brought up a file dialog, where you navigate to your Mobile Provisioning file.  By following the directions in the video, mine went to ~/Downloads/ when previously downloaded from Safari.  Upload this file, quit and restart Titanium Developer, and you should see that it’s now detected the WWDR certificate and the Install Now button is enabled.  After waiting a bit, the application will be pushed to iTunes.</p>
<p><strong>iTunes needs to be able to sync to the phone</strong></p>
<p>In my case, I use iTunes on my PC to sync ordinarily.  So the Mac install of iTunes didn&#8217;t recognize my phone.   So I had to do the following:</p>
<ol>
<li>First I wanted to ensure it wouldn&#8217;t try to sync anything automatically.</li>
<li>Then I had to Authorize the Mac</li>
<li>Use iTunes to back up the phone, specifically the applications since I don&#8217;t want or need it to sync the music, movies, etc..</li>
<li>Then take a deep breath and click Sync &#8211; it will sync the apps now.</li>
<li>Check your new app (which will not have been synced by default), and sync again.</li>
</ol>
<p>You&#8217;ll now see the new app on your Home screen.  Of course all the other apps will be out of order but that&#8217;s a minor problem&#8230;</p>
<p><strong>&#8220;Test &amp; Package&#8221; tab can go AWOL</strong></p>
<p>I have no idea what caused this but at some point this tab completely disappeared from Titanium Developer, from all projects.  I tried launching it with the &#8211;debug flag, but nothing untoward appeared in the log.  So eventually I deleted the contents of /Library/Application Support/Titanium/modules/ and relaunched Titanium Developer.  This triggered a reload of the modules it needed from the Appcelerator website, and after doing so the &#8220;Test &amp; Package&#8221; tab mysteriously returned.  If you do this, you&#8217;ll have to reinstall any 3rd-party modules you have to /Library/Application Support/Titanium/modules so it&#8217;s a good idea to back those up first.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.echothis.com/2010/12/28/deploying-the-first-titanium-app-to-an-iphone/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

