<?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>Josh.st &#187; bug</title>
	<atom:link href="http://josh.st/tag/bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://josh.st</link>
	<description>Web, English, 中国, and various geekosity</description>
	<lastBuildDate>Wed, 18 Apr 2012 23:37:52 +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>IE7 expected a string, identifier or number</title>
		<link>http://josh.st/2012/04/19/ie7-expected-a-string-identifier-or-number/</link>
		<comments>http://josh.st/2012/04/19/ie7-expected-a-string-identifier-or-number/#comments</comments>
		<pubDate>Wed, 18 Apr 2012 23:37:52 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[pebkac]]></category>

		<guid isPermaLink="false">http://josh.st/?p=1734</guid>
		<description><![CDATA[JSON is nice to read. It’s also nice when parsers are forgiving, but here we are. I just spent ages chasing [what I thought was] a bug using $.getJSON in IE7 that turned out to be an issue with something else entirely. If you’re using $(el).css or .animate with JSON, make sure you’ve terminated all [...]]]></description>
			<content:encoded><![CDATA[<p>JSON is nice to read. It’s also nice when parsers are forgiving, but here we are.</p>
<p>I just spent ages chasing [what I thought was] a bug using $.getJSON in IE7 that turned out to be an issue with something else entirely.</p>
<p>If you’re using $(el).css or .animate with JSON, make sure you’ve terminated all items correctly and don’t have any hanging commas left over:</p>
<p><img src="http://josh.st/blog/wp-content/2012/03/unterminatedJSON.png" alt="Hanging comma at end of JSON params" title="Unterminated JSON. Not where you might think." width="245" height="65" class="alignnone size-full wp-image-1737" /></p>
<p>This case sent me particularly crazy as I was also dealing with an actual JSON request in the same general vicinity that I’d validated a bunch of times and seemed perfect.</p>
<p>Note to self: Before you go down the whitespace and text encoding rabbithole next time, make sure you’re actually checking the right JSON!</p>
]]></content:encoded>
			<wfw:commentRss>http://josh.st/2012/04/19/ie7-expected-a-string-identifier-or-number/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MAMP’s MySQL status red &amp; not starting</title>
		<link>http://josh.st/2011/05/09/mamps-mysql-status-red-not-starting/</link>
		<comments>http://josh.st/2011/05/09/mamps-mysql-status-red-not-starting/#comments</comments>
		<pubDate>Sun, 08 May 2011 23:15:34 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[mamp]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[note-to-self]]></category>

		<guid isPermaLink="false">http://josh.st/?p=1690</guid>
		<description><![CDATA[MAMP is a good way to setup a low-maintenance dev environment for OS X in very little time, but its handling of MySQL is quite annoying. When you suspend/sleep a computer, often when you resume MAMP has lost track of the MySQL instance it started and can no longer connect to it. Not sure if [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mamp.info">MAMP</a> is a good way to setup a low-maintenance dev environment for OS X in very little time, but its handling of MySQL is quite annoying.</p>
<p>When you suspend/sleep a computer, often when you resume MAMP has lost track of the MySQL instance it started and can no longer connect to it. Not sure if this is a problem with the MySQL build being used, but as the problem has existed since 2009, I don’t have high hopes for it being fixed anytime soon.</p>
<p>The quickest solution is to kill off the process it had started previously and then hit “Start Servers” again — it just takes one line on the terminal.</p>
<p><code>killall -9 mysqld</code></p>
<p>Be aware that this will kill all running MySQL processes (including those outside of MAMP’s control) — this is normally fine, as no-one actually hosts websites on OS X!</p>
]]></content:encoded>
			<wfw:commentRss>http://josh.st/2011/05/09/mamps-mysql-status-red-not-starting/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CMYK thumbnailing of JPEGs with Gmail/Google Mail</title>
		<link>http://josh.st/2009/09/16/cmyk-thumbnailing-of-jpegs-with-gmailgoogle-mail/</link>
		<comments>http://josh.st/2009/09/16/cmyk-thumbnailing-of-jpegs-with-gmailgoogle-mail/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 00:39:27 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[attachment]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[cmyk]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[IMAP]]></category>
		<category><![CDATA[JPEG]]></category>
		<category><![CDATA[jpg]]></category>
		<category><![CDATA[PIL]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[rgb]]></category>

		<guid isPermaLink="false">http://josh.st/2009/09/16/cmyk-thumbnailing-of-jpegs-with-gmailgoogle-mail/</guid>
		<description><![CDATA[I periodically freak out when reviewing emails that I’ve sent, particularly to printers, using Gmail’s (hosted apps) webmail interface. It has this habit of converting CMYK JPGs to RGB thumbnails really badly — but without apparent corruption. The blue in the image above is actually a deep red! Accordingly, while the colours are totally out [...]]]></description>
			<content:encoded><![CDATA[<p>I periodically freak out when reviewing emails that I’ve sent, particularly to printers, using Gmail’s (hosted apps) webmail interface. It has this habit of converting CMYK JPGs to RGB thumbnails really badly — but without apparent corruption.</p>
<p><img class="alignnone size-full wp-image-1614" title="Gmail getting CMYK thumbnails wrong" src="http://josh.st/blog/wp-content//2009/09/gmail-cmyk.jpg" alt="Gmail getting CMYK thumbnails wrong" width="380" height="265" /></p>
<p>The blue in the image above is actually a deep red!</p>
<p>Accordingly, while the colours are totally out of whack, there are no other artifacts in the image. Normally this just looks weird — sometimes, in the case of logo variants, it looks plausible but utterly incorrect! My guess is they’re using an older version of <a href="http://www.pythonware.com/products/pil/">PIL</a> (we all know how much Google loves Python) prior to <a href="http://mail.python.org/pipermail/image-sig/2009-March/005519.html">this March 2009</a> patch. Sounds like the same phenomenon.</p>
<p>Still, those people emailing CMYK JPGs has to be a little bit niche, so I’m not heaps hopeful of this getting fixed too soon! The main reason I care is because web interfaces are so much faster than retrieving large attachments from IMAP stores.</p>
]]></content:encoded>
			<wfw:commentRss>http://josh.st/2009/09/16/cmyk-thumbnailing-of-jpegs-with-gmailgoogle-mail/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The future of mobile computing</title>
		<link>http://josh.st/2009/09/08/the-future-of-mobile-computing/</link>
		<comments>http://josh.st/2009/09/08/the-future-of-mobile-computing/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 21:58:55 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[battery]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[future]]></category>
		<category><![CDATA[Haha]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[power]]></category>
		<category><![CDATA[vista]]></category>

		<guid isPermaLink="false">http://josh.st/2009/09/08/the-future-of-mobile-computing/</guid>
		<description><![CDATA[I wish this weren’t just Vista being special!]]></description>
			<content:encoded><![CDATA[<p><img src="http://josh.st/blog/wp-content//2009/09/battery-haha.png" alt="177 hours 38 min (7%) remaining - your battery is low." title="177 hours 38 min (7%) remaining - your battery is low." width="507" height="134" class="alignnone size-full wp-image-1611" /></p>
<p>I wish this weren’t just Vista being special!</p>
]]></content:encoded>
			<wfw:commentRss>http://josh.st/2009/09/08/the-future-of-mobile-computing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress issues this last week</title>
		<link>http://josh.st/2009/07/17/wordpress-issues-this-last-week/</link>
		<comments>http://josh.st/2009/07/17/wordpress-issues-this-last-week/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 12:48:30 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[mod_security]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://josh.st/?p=1557</guid>
		<description><![CDATA[Recently upgraded along with the rest of the world to WordPress 2.8.1 and hit a whole bunch of craziness that essentially encouraged me to move even this site across to WebFaction (eating your own dog food and all that) because of no longer being able to post from the WordPress admin panel. I hadn’t changed [...]]]></description>
			<content:encoded><![CDATA[<p>Recently upgraded along with the rest of the world to WordPress 2.8.1 and hit a whole bunch of craziness that essentially encouraged me to move even this site across to <a href="http://www.webfaction.com?affiliate=your_username">WebFaction</a> (eating your own dog food and all that) because of no longer being able to post from the WordPress admin panel.</p>
<p><img style="float: left; border: 0px initial initial;" title="Some issues with posting and mod_security" src="http://josh.st/blog/wp-content//2009/07/wget-issues.png" alt="Some issues with posting and mod_security" width="350" height="292" />I hadn’t changed any plugins, and the rest of the net was conspicuously quiet, so I figured that either my current host had near-simultaneously upgraded the database &amp; corrupted something along the way (with MySQL this can result in read-only tables in certain cases, I’m told), or else there was something more sinister at work. No plugins had changed, and because nothing else functioned differently for even a moment I presumed innocence on their behalf. I tried with and without Google Gears enabled, with and without tags, in different saved statuses, and still nothing worked!</p>
<p>Anyway. Turns out it was my use of the term “wget”. (Even now I need to be careful as I write that!)</p>
<p>mod_security on Apache basically threw up its lunch every time I threatened to post about it. Accordingly, I can’t share with you some things that I’ve learnt in migration just yet, and haven’t been posting about anything else as I’ve been trying to resolve this problem, thinking it was preventing me from posting. Perhaps mod_security is trying to get me to write about more meaningful things than file transfer trickery! *yawn*</p>
<p>At any rate, it’s all over now and we’ll be back to regularly scheduled programming shortly.</p>
]]></content:encoded>
			<wfw:commentRss>http://josh.st/2009/07/17/wordpress-issues-this-last-week/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: josh.st @ 2012-05-23 23:51:06 -->
