<?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>Squirrel Hacker &#187; sad mac</title>
	<atom:link href="http://blog.seanja.com/tag/sad-mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.seanja.com</link>
	<description>I have come forward in time from the year 1986 to share this with you</description>
	<lastBuildDate>Mon, 06 Feb 2012 12:38:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>jQuery bsod plugin</title>
		<link>http://blog.seanja.com/2009/03/jquery-bsod-plugin/</link>
		<comments>http://blog.seanja.com/2009/03/jquery-bsod-plugin/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 06:01:01 +0000</pubDate>
		<dc:creator>SeanJA</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[ado]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[amiga]]></category>
		<category><![CDATA[Blue Screen of Death]]></category>
		<category><![CDATA[bsod]]></category>
		<category><![CDATA[Computer errors]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[moo-tools]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[random site]]></category>
		<category><![CDATA[sad mac]]></category>
		<category><![CDATA[Sennheiser IE 7 Headphone/Headset]]></category>
		<category><![CDATA[Sennheiser IE 8 Headphone/Headset]]></category>
		<category><![CDATA[Technology_Internet]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.seanja.com/?p=542</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.seanja.com/2009/03/jquery-bsod-plugin/' addthis:title='jQuery bsod plugin '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>So I was checking up on my twitter feed yesterday and saw a tweet that direceted me to this: http://devthought.com/wp-content/projects/mootools/BSOD/: The script BSOD.js provides an easy-to-use class to boost the error reporting user experience of your websites. To fully understand the characteristics of this technique please refer to this external article I thought to myself… [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.seanja.com/2009/03/jquery-bsod-plugin/' addthis:title='jQuery bsod plugin ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>
Related posts:<ol>
<li><a href='http://blog.seanja.com/2008/06/jquery-and-wordpress/' rel='bookmark' title='JQuery and WordPress'>JQuery and WordPress</a></li>
<li><a href='http://blog.seanja.com/2010/03/using-the-jquery-ui-autocomplete-widget/' rel='bookmark' title='Using the jQuery-UI Autocomplete Widget'>Using the jQuery-UI Autocomplete Widget</a></li>
<li><a href='http://blog.seanja.com/2009/07/a-better-way-to-use-jquery-in-wordpress-themes/' rel='bookmark' title='A better way to use jQuery in WordPress Themes'>A better way to use jQuery in WordPress Themes</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.seanja.com/2009/03/jquery-bsod-plugin/' addthis:title='jQuery bsod plugin '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div><p>So I was checking up on my <a title="Follow me!" href="http://twitter.com/SeanJA" target="_blank">twitter feed</a> yesterday and saw a tweet that direceted me to this:  <a href="http://devthought.com/wp-content/projects/mootools/BSOD/" target="_blank">http://devthought.com/wp-content/projects/mootools/BSOD/</a>:</p>
<blockquote><p>The script BSOD.js provides an easy-to-use class to boost the error reporting user experience of your websites.</p></blockquote>
<blockquote><p>To fully understand the characteristics of this technique please refer to this <a href="http://en.wikipedia.org/wiki/Blue_Screen_of_Death" target="_blank">external article</a></p></blockquote>
<p>I thought to myself… I can do that. I will use jQuery. So I spent most of yesterday after work learning up on how to make a jQuery extension (I wanted to be able to call it the same way as the moo-tools one)</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$.<span style="color: #660066;">bsod</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>I got a bit carried away. I didn’t want just a bsod, I wanted each user to feel like the error was specifically made for them, so I added in os detection and os specific styles. I liked the way that he incorporated <a href="http://davidwalsh.name/ajax-evil-spyjax" target="_blank">Spyjax (ajax for evil!)</a>, so I added that by default (you can turn it off of course if you want, it will blame a random site that is in the list). I also liked the colour changing, so that is in there too (it works only for the windows bsod though because linux and mac have images).  Here are the options:</p>
<ul>
<li>color: the background colour (win only, others are all black)</li>
<li>font_color: the font colour</li>
<li>error: the error message you want to display</li>
<li>os: the os (default is to guess the user’s os)</li>
<li>blame_url: boolean &#8211; true = blame a specific url</li>
<li>url_array: an array of urls you are looking to blame</li>
<li>error_array: a bunch of errors that you would like to use (one is randomly choosen)</li>
</ul>
<h3>Dependencies</h3>
<p>Right now, the images and jQuery (tested with 1.3.1).</p>
<p>There is also a style that is compressed using <a href="http://seanja.com/tools/csstidy" target="_blank">cssTidy</a> and inserted with the bsod.</p>
<p>Without further ado:</p>
<p><a href="http://seanja.com/demos/bsod" target="_blank">The demo</a> (click on a word to see the bsod)</p>
<p><a href="http://blog.seanja.com/wp-content/uploads/2009/03/bsod10.zip">bsod.1.0.zip</a> (with the dependencies included so you can use it right away!)</p>
<p>And some screen shots:</p>
<p><a href="http://blog.seanja.com/wp-content/uploads/2009/03/screen1.png"><img class="size-medium wp-image-545 alignnone" title="screen1" src="http://blog.seanja.com/wp-content/uploads/2009/03/screen1-300x124.png" alt="screen1" width="300" height="124" /></a> <a href="http://blog.seanja.com/wp-content/uploads/2009/03/screen2.png"><img class="size-medium wp-image-546 alignnone" title="screen2" src="http://blog.seanja.com/wp-content/uploads/2009/03/screen2-300x124.png" alt="screen2" width="300" height="124" /></a> <a href="http://blog.seanja.com/wp-content/uploads/2009/03/screen3.png"><img class="alignnone size-medium wp-image-547" title="screen3" src="http://blog.seanja.com/wp-content/uploads/2009/03/screen3-300x124.png" alt="screen3" width="300" height="124" /></a> <a href="http://blog.seanja.com/wp-content/uploads/2009/03/screen4.png"><img class="size-medium wp-image-548 alignnone" title="screen4" src="http://blog.seanja.com/wp-content/uploads/2009/03/screen4-300x124.png" alt="screen4" width="300" height="124" /></a></p>
<p>Tested in:</p>
<ul>
<li> IE 8, IE 7</li>
<li>Firefox 3</li>
<li>Opera 9.63</li>
<li>Chrome 1.0.154.48</li>
</ul>
<h3>In case you missed it:</h3>
<p><a href="http://seanja.com/demo/bsod" target="_blank" class="broken_link">The demo</a> (click on a word to see the bsod)</p>
<p><a href="http://blog.seanja.com/wp-content/uploads/2009/03/bsod10.zip">bsod.1.0.zip</a> (with the dependencies included so you can use it right away!)</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.seanja.com/2009/03/jquery-bsod-plugin/' addthis:title='jQuery bsod plugin ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div><p>Related posts:<ol>
<li><a href='http://blog.seanja.com/2008/06/jquery-and-wordpress/' rel='bookmark' title='JQuery and WordPress'>JQuery and WordPress</a></li>
<li><a href='http://blog.seanja.com/2010/03/using-the-jquery-ui-autocomplete-widget/' rel='bookmark' title='Using the jQuery-UI Autocomplete Widget'>Using the jQuery-UI Autocomplete Widget</a></li>
<li><a href='http://blog.seanja.com/2009/07/a-better-way-to-use-jquery-in-wordpress-themes/' rel='bookmark' title='A better way to use jQuery in WordPress Themes'>A better way to use jQuery in WordPress Themes</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.seanja.com/2009/03/jquery-bsod-plugin/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

