<?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>Big Trapeze &#187; Rant</title>
	<atom:link href="http://bigtrapeze.com/category/rant/feed/" rel="self" type="application/rss+xml" />
	<link>http://bigtrapeze.com</link>
	<description>Big Ideas From the Little Guys</description>
	<lastBuildDate>Wed, 16 May 2012 21:31:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Uploading an Image in PHP Gives a Black Box (Another Internet Explorer Error)</title>
		<link>http://bigtrapeze.com/2009/04/20/uploading-an-image-in-php-gives-a-black-box-another-internet-explorer-error/</link>
		<comments>http://bigtrapeze.com/2009/04/20/uploading-an-image-in-php-gives-a-black-box-another-internet-explorer-error/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 00:58:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Rant]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[homepage]]></category>
		<category><![CDATA[homepost]]></category>

		<guid isPermaLink="false">http://bigtrapeze.com/?p=98</guid>
		<description><![CDATA[Really, I&#8217;m tired of supporting IE. Half the time, I find a &#8220;mistake&#8221; in my HTML coding that I didn&#8217;t catch in Firefox, because Firefox is so forgiving with semantics. The other half of my IE errors are really IE&#8217;s fault. Let&#8217;s take this story (and fix) as one of the flagship examples of Microsoft [...]]]></description>
			<content:encoded><![CDATA[<p>Really, I&#8217;m tired of supporting IE. Half the time, I find a &#8220;mistake&#8221; in my HTML coding that I didn&#8217;t catch in Firefox, because Firefox is so forgiving with semantics. The other half of my IE errors are really IE&#8217;s fault. Let&#8217;s take this story (and fix) as one of the flagship examples of Microsoft Idiocracy.</p>
<p>I build a simple image upload script in PHP. On the page where the form posts its data to, I used PHP&#8217;s built in <a href="http://us3.php.net/getimagesize">getimagesize</a> function to get data about the image. What I wanted was the mime-type&#8211;for example if it was a JPG, GIF, or PNG&#8211;so I could do further processing on it.</p>
<p>For JPG images, the mime type is &#8220;img/jpeg&#8221;, for GIF&#8211;&#8221;img/gif&#8221;, and so on. Once you know the mime type, you can use PHP&#8217;s imagecreatefromjpeg, for example, to create a new image from the JPG file that was uploaded.</p>
<p>So, in my code, if I wanted to do a switch statement based on the image type, it might look something like this:</p>
<p><code><br />
$image_data = getimagesize($image_file);</code></p>
<p>switch($image_data['mime']) {<br />
case &#8220;image/jpeg&#8221;:<br />
// Do code for a JPG image here<br />
break;</p>
<p>case &#8220;image/gif&#8221;:<br />
// Do code for a GIF image here<br />
break;<br />
}</p>
<p>In most cases, this works perfectly. That is, until you get to Internet Explorer. Internet Explorer interprets the mime type of a JPG image as &#8220;image/pjpeg&#8221;, breaking your code, breaking the standards, driving you batty, and adding to it&#8217;s lengthy list of inexplicable ways of doing things. To fix, you&#8217;d simply change the code to:</p>
<p><code><br />
case "image/jpeg":<br />
case "image/pjpeg":<br />
// Do code for a JPG image here<br />
break;<br />
</code></p>
<p>&#8230; and the world is right again.</p>
]]></content:encoded>
			<wfw:commentRss>http://bigtrapeze.com/2009/04/20/uploading-an-image-in-php-gives-a-black-box-another-internet-explorer-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Badly Englished</title>
		<link>http://bigtrapeze.com/2008/05/14/badly-englished/</link>
		<comments>http://bigtrapeze.com/2008/05/14/badly-englished/#comments</comments>
		<pubDate>Wed, 14 May 2008 21:51:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Rant]]></category>

		<guid isPermaLink="false">http://www.bigtrapeze.com/?p=46</guid>
		<description><![CDATA[I post this for three reasons. One, to let you know I&#8217;m alive. Two, because it really confused me when I read this, and I wanted to see if it was just me or the author. And three, because it&#8217;s really annoying to read this on a &#8220;professional&#8221; website. This blurb was found on the [...]]]></description>
			<content:encoded><![CDATA[<p>I post this for three reasons. One, to let you know I&#8217;m alive. Two, because it really confused me when I read this, and I wanted to see if it was just me or the author. And three, because it&#8217;s really annoying to read this on a &#8220;professional&#8221; website.</p>
<p>This blurb was found on the Major League Baseball section of <a href="http://www.espn.com/mlb/">ESPN.com</a>. Headlines are meant to be quickly skimmed and comprehended. We shouldn&#8217;t have to read a headline more than a couple of times before we understand the point of the story. Read the offending headline highlighted below, and see how long it takes for you to figure out what it&#8217;s talking about.</p>
<p style="text-align: center;"><img src="http://www.bigtrapeze.com/images/kos.jpg" alt="" /></p>
<p style="text-align: left;">&#8220;Rookie called up after kneecap KO&#8217;s 2nd Reds SS.&#8221;</p>
<p style="text-align: left;">Maybe it&#8217;s just me, but it took me three reads to figure out that a &#8220;rookie short-stop was called up from the minor leagues after two previous short-stops for the Cincinnati Reds had suffered knee-cap injuries.&#8221; Granted, that&#8217;s a lot to say in 10 words or less, but I think &#8220;Kneecap injury sidelines second Reds SS | Rookie called up&#8221; would have been better.</p>
<p style="text-align: left;">If you&#8217;re from another country that knows nothing about baseball, you probably wouldn&#8217;t be on this site&#8211;but if by mistake you had stumbled upon it, you would have no idea what that statement meant. You could look at the other headlines around it and easily infer what was going on with them. Maybe mixing two abbreviations (KO&#8217;s and SS) should be a no-no when writing headlines.</p>
<p style="text-align: left;">Yes, I have more important things to do with my time than to rant on ill-formed headlines, but for the sake of humanity I couldn&#8217;t help myself.</p>
]]></content:encoded>
			<wfw:commentRss>http://bigtrapeze.com/2008/05/14/badly-englished/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefoxless.</title>
		<link>http://bigtrapeze.com/2008/04/28/firefoxless/</link>
		<comments>http://bigtrapeze.com/2008/04/28/firefoxless/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 16:33:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Rant]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.bigtrapeze.com/?p=44</guid>
		<description><![CDATA[I pull for the little guy, I really do. But in this case, Firefox gives me more trouble than it does a sense of the downtrodden and oppressed sticking it to the man. So, I&#8217;m with Safari. In its defense, Firefox may not be entirely to blame. I&#8217;m running Leopard on an iMac, and I [...]]]></description>
			<content:encoded><![CDATA[<p>I <a href="http://www.nusoni.com/">pull for the little guy</a>, I really do. But in this case, Firefox gives me more trouble than it does a sense of the downtrodden and oppressed sticking it to the man. So, I&#8217;m with Safari.</p>
<p>In its defense, Firefox may not be entirely to blame. I&#8217;m running Leopard on an iMac, and I have two plugins installed, <a href="https://addons.mozilla.org/en-US/firefox/addon/1843">Firebug</a> and <a href="https://addons.mozilla.org/en-US/firefox/addon/1865">Adblock Plus.</a> Your mileage may vary. But, I can count on at least 2 hangs/force-quits a day. I especially notice problems when exiting Gmail, but<a href="http://groups.google.com/group/firebug/browse_thread/thread/b05560443b65e83e"> I don&#8217;t think it&#8217;s related to Firebug.</a></p>
<p>I haven&#8217;t used Firefox in two-weeks, and having used it since the first beta it feels very weird not to use it now. I&#8217;ll still use it to test my web designs across the board, but no more than I&#8217;ll use IE6/7 for the same purpose. And I do miss a few features too, like the way it restores my tabs and browsing session if there is a crash, or let&#8217;s me undo a tab close (Safari doesn&#8217;t do this for me), and I do find Firebug to be a very handy tool when debugging some of my Javascript.</p>
<p>I should be fair and let you know that while I was writing this post, Safari crashed. It happened while I frantically did a cut-copy-paste into a popup window, but I&#8217;m guessing it was a clever twist of Firefox irony, letting me know I can&#8217;t just depend on one browser&#8211;and for the little guy, that&#8217;s a good thing.</p>
]]></content:encoded>
			<wfw:commentRss>http://bigtrapeze.com/2008/04/28/firefoxless/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bloggers: Stop Using &#8220;After the jump&#8221;</title>
		<link>http://bigtrapeze.com/2008/03/31/bloggers-stop-using-after-the-jump/</link>
		<comments>http://bigtrapeze.com/2008/03/31/bloggers-stop-using-after-the-jump/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 23:10:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Rant]]></category>

		<guid isPermaLink="false">http://www.bigtrapeze.com/?p=41</guid>
		<description><![CDATA[Geez I&#8217;m really tired of this. We&#8217;re not all corporate lackeys that have to entice someone with a tantalizing leader and follow it with a picture or ad then follow it up with the rest of the story. So why do I see people use &#8220;more after the jump&#8221; on so many posts? Maybe I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>Geez I&#8217;m really tired of this. We&#8217;re not all corporate lackeys that have to entice someone with a tantalizing leader and follow it with a picture or ad then follow it up with the rest of the story. So why do I see people use &#8220;more after the jump&#8221; on so many posts?</p>
<p>Maybe I&#8217;m missing the point, but we&#8217;re supposed to be minimizing, not bloating. Just get to the point without any extra clicks or scrolling.</p>
]]></content:encoded>
			<wfw:commentRss>http://bigtrapeze.com/2008/03/31/bloggers-stop-using-after-the-jump/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oy vey!</title>
		<link>http://bigtrapeze.com/2007/05/25/oy-vey/</link>
		<comments>http://bigtrapeze.com/2007/05/25/oy-vey/#comments</comments>
		<pubDate>Fri, 25 May 2007 15:16:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Rant]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.bigtrapeze.com/?p=8</guid>
		<description><![CDATA[I switched servers this week and made a cardinal mistake&#8211;I didn&#8217;t properly backup my blog. I&#8217;ve got copies of most of the entries, and I&#8217;ll be adding those today&#8211;but I&#8217;ve lost a lot of comments. Learn from my mistakes&#8230;]]></description>
			<content:encoded><![CDATA[<p>I switched servers this week and made a cardinal mistake&#8211;<strong>I didn&#8217;t properly backup my blog.</strong> I&#8217;ve got copies of most of the entries, and I&#8217;ll be adding those today&#8211;but I&#8217;ve lost a lot of comments. Learn from my mistakes&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://bigtrapeze.com/2007/05/25/oy-vey/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

