<?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>Evan Meagher &#187; Demo</title>
	<atom:link href="http://evanmeagher.net/category/demo/feed" rel="self" type="application/rss+xml" />
	<link>http://evanmeagher.net</link>
	<description>Pragmatic design and tech</description>
	<lastBuildDate>Sat, 13 Feb 2010 00:35:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to Maintain Accessibility When Using jQuery</title>
		<link>http://evanmeagher.net/2008/03/how-to-use-maintain-accessibility-when-using-jquery</link>
		<comments>http://evanmeagher.net/2008/03/how-to-use-maintain-accessibility-when-using-jquery#comments</comments>
		<pubDate>Wed, 19 Mar 2008 08:43:54 +0000</pubDate>
		<dc:creator>Evan</dc:creator>
				<category><![CDATA[Demo]]></category>
		<category><![CDATA[accesible]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[accordion]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[modern]]></category>
		<category><![CDATA[slide]]></category>
		<category><![CDATA[sliding]]></category>
		<category><![CDATA[tabs]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[usable]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[webdesign]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://evanmeagher.net/2008/03/how-to-use-maintain-accessibility-when-using-jquery</guid>
		<description><![CDATA[The world of web design is abuzz with talk of jQuery, a snappy Javascript library that lets you, among other things, have sweet-ass animations. In between studying for finals and playing Counter-Strike, I&#8217;ve been reading up on how to use it. Since I don&#8217;t &#8220;know&#8221; Javascript, jQuery is a godsend. It allows you to take [...]]]></description>
			<content:encoded><![CDATA[<p>The world of web design is abuzz with talk of <a href="http://jquery.com/" title="jQuery: The Write Less, Do More, JavaScript Library">jQuery</a>, a snappy Javascript library that lets you, among other things, have <a href="http://www.webdesignerwall.com/tutorials/jquery-tutorials-for-designers/" title="Web Designer Wall - jQuery Tutorials for Designers">sweet-ass animations</a>. In between studying for finals and playing Counter-Strike, I&#8217;ve been reading up on how to use it.</p>
<p>Since I don&#8217;t &#8220;know&#8221; Javascript, jQuery is a godsend. It allows you to take advantage of Javascript&#8217;s <acronym title="Document Object Model">DOM</acronym> abilities without having to write tons of code. I&#8217;m learning Java in school, so jQuery functions are well within my level of understanding.</p>
<h3>The Problem</h3>
<p>One quibble I have with jQuery is that pages using it often aren&#8217;t as accessible as they could be. <strong>For example, if you go to Web Designer Wall&#8217;s <a href="http://www.webdesignerwall.com/demo/jquery/" title="jQuery for Designers Demo">demo page</a> and turn off Javascript, </strong><strong>the demos break.</strong> In some cases you only lose the flashy animation, but in examples where jQuery allows you to slide previously-hidden content divs into view, the demos become unusable.</p>
<p>This is because the sliding effect is implemented by styling the elements to be hidden with <code>display: none</code>, effectively removing them from the page. When the jQuery function is triggered (generally by a user&#8217;s click), the element is toggled to an active state and slid into view.</p>
<p>So when you turn Javascript off, you&#8217;re left with the <acronym>CSS</acronym> <code>display: none</code> hiding your content.</p>
<p><strong>And so I set out to find a way to implement jQuery&#8217;s content-hiding animations while retaining accessibility.</strong> In particular, I attempted to create an accessible <a href="http://www.webdesignerwall.com/demo/jquery/accordion1.html" title="Web Designer Wall - Accordion 1">accordion-style menu</a>, meaning that the menu defaults to showing all content sections when Javascript is disabled.</p>
<h3>The Solution</h3>
<p>Since the root of the problem is that the <code>display: none</code> in the stylesheet hides the content, all we&#8217;d have to do is remove this line of <acronym title="Cascading Style Sheet">CSS</acronym>, right?</p>
<p>Wrong! If you do this, then the accordion loads with every section open by default, <em>with Javascript enabled</em>. This isn&#8217;t ideal since we&#8217;re using the jQuery effect to only show one chunk of content at a time. So, ideally we want a way to only render the <code>display: none</code> when Javascript is enabled.</p>
<p>After a bit of research and a single line of code, I&#8217;ve got a fully functional, accessible sliding accordion menu. Within the jQuery API, there&#8217;s a set of functions for <a href="http://docs.jquery.com/CSS" title="API/1.2/CSS - jQuery JavaScript Library">manipulating a page&#8217;s <acronym title="Cascading Style Sheets">CSS</acronym></a>. Using the css() function, I was able to add the <code>display: none</code> to the accordion&#8217;s content paragraphs using jQuery instead of <acronym title="Cascading Style Sheets">CSS</acronym>:</p>
<blockquote><p><code>$(".accordion p").css("display", "none");</code></p></blockquote>
<p>Here&#8217;s the result:</p>
<p><a href="/demos/accessiblejquery/" title="Demo of Accessible jQuery Accordion Menu"><img src="/demos/accessiblejquery/demo_thumb.png" alt="Demo of Accessible jQuery Accordion Menu" height="279" width="304" /><br />
Click to view demo </a></p>
<p>Since the paragraphs are styled to be hidden by jQuery, it defaults to display all content when Javascript is disabled. We now have the best of both worlds: the classy sliding jQuery animations and a fully accessible menu. Success!</p>
<p>For more information on jQuery and examples of it in action, check out <a href="http://www.sitepoint.com/article/jquery-javascipt-designers" title="SitePoint - jQuery: Easy JavaScript for Designers">this article</a> on SitePoint and the <a href="http://cameronmoll.com/archives/2008/03/extensible_css_interface_css_selectors_jquery/" title="Cameron Moll - Extensible CSS Interface II: CSS Selectors &amp; jQuery">second article</a> in Cameron Moll&#8217;s 4-part series, <a href="http://cameronmoll.com/archives/2008/02/the_highly_extensible_css_interface_the_series/" title="Cameron Moll - The Highly Extensible CSS Interface">The Highly Extensible CSS Interface</a>.</p>
<p><script type="text/javascript">submit_url = '<?php the_permalink() ?>';</script><br />
<script src="http://www.designfloat.com/evb/button.php" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://evanmeagher.net/2008/03/how-to-use-maintain-accessibility-when-using-jquery/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Dual-booting Windows XP and Ubuntu on a Sager NP2090</title>
		<link>http://evanmeagher.net/2007/10/dual-booting-windows-xp-and-ubuntu-on-a-sager-np2090</link>
		<comments>http://evanmeagher.net/2007/10/dual-booting-windows-xp-and-ubuntu-on-a-sager-np2090#comments</comments>
		<pubDate>Mon, 15 Oct 2007 04:50:42 +0000</pubDate>
		<dc:creator>Evan</dc:creator>
				<category><![CDATA[Demo]]></category>
		<category><![CDATA[2090]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[dual]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[notebook]]></category>
		<category><![CDATA[sager]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://evanmeagher.net/2007/10/dual-booting-windows-xp-and-ubuntu-on-a-sager-np2090</guid>
		<description><![CDATA[I&#8217;ve had my Sager NP2090 laptop for about 2 months now, so I&#8217;ve had plenty of time to wrestle with it and set everything up. The 2090 is a serious workhorse and very affordable. I bought mine OS-less for $1500. VoodooPC&#8217;s sells 2090&#8217;s under the model &#8220;M:152&#8221; for about $3300. Painting it red isn&#8217;t worth [...]]]></description>
			<content:encoded><![CDATA[<p align="center"><a href="http://evanmeagher.net/images/winxpdesk.JPG"></a></p>
<p>I&#8217;ve had my Sager NP2090 laptop for about 2 months now, so I&#8217;ve had plenty of time to wrestle with it and set everything up.</p>
<p style="text-align: center"><a href="http://evanmeagher.net/images/2090keyside.JPG"><img src="http://evanmeagher.net/images/2090keyside_thumb.JPG" alt="Oblique keyboard shot of NP2090" align="middle" height="338" vspace="10" width="450" /></a></p>
<p> The 2090 is a serious workhorse and very affordable. I bought mine OS-less for $1500. VoodooPC&#8217;s sells 2090&#8217;s under the model <a href="http://www.voodoopc.com/system/quotekitchenlast.aspx?spid=82">&#8220;M:152&#8221;</a> for about $3300. Painting it red isn&#8217;t worth more than doubling the price of the laptop, in my opinion.</p>
<p>First off, here are the laptop&#8217;s specs:</p>
<ul>
<li>15.4&#8221; WSXGA Matte Screen (1680x1050)</li>
<li>Intel Centrino Duo T7500 @ 2.2GHz</li>
<li>2GB of RAM</li>
<li>Nvidia GeForce 8600M GT w/ 512 MB</li>
<li>Full specs <a href="http://www.xoticpc.com/product_info.php?products_id=1876">here</a></li>
</ul>
<p>and what I set out to achieve with it:</p>
<ul>
<li>Dual-boot Windows XP and Ubuntu</li>
<li>Use WinXP strictly for gaming</li>
<li>Use Ubuntu for everything else</li>
<li>Thus, get Ubuntu to function as a usable, practical OS</li>
</ul>
<h3>Windows Setup</h3>
<p><a href="http://evanmeagher.net/images/winxpdesk.JPG"><img src="http://evanmeagher.net/images/winxpdesk_thumb.JPG" alt="NP2090 running Windows XP" align="middle" height="338" vspace="10" width="450" /></a></p>
<p>I began the setup process by turning the machine on and inserting my XP Home CD. The blue windows prompt screen appeared and began readying drivers and such for the install. Subsequently, it returned an error message complaining about &#8220;PCI.SYS.&#8221;</p>
<p>After finding and reading through <a href="http://www.techspot.com/vb/topic16553.html">documentation of the issue</a>, I&#8217;m assuming that XP SP1 is incompatible with the 2090&#8217;s hardware. Maybe the processor or graphics card? Whatever. Following the guide, I then compiled and burned a <a href="http://www.theeldergeek.com/slipstreamed_xpsp2_cd.htm">Slipstreamed SP2 CD</a>. Basically what this does is inject the updated SP2 files into the XP install I already had, allowing me to install a fresh copy of SP2 straightup.</p>
<p>I rebooted, put in my custom SP2 install, rebooted again and breathed a sigh of relief as Windows prompted to install. After about an hour and a half of formatting and installing, I was welcomed by the XP login screen.</p>
<p>However, after trying three different graphics drivers (the one on the provided CD, nvidia.com, and a third-party one from <a href="http://www.laptopvideo2go.com/forum/index.php?showtopic=14121">laptopvideo2go.com</a>, I started to think the laptop&#8217;s screen was broken. It constantly flickered, white portions of the screen were a pinkish/red color, and parts of the screen appeared distorted and fuzzy. I don&#8217;t have any pictures, because when i took screenshots, they appeared fine and I couldn&#8217;t get a photo that showed the distortion right.</p>
<p>I was just about to pack it up and send it back to Sager when the screen seemed to magically fix itself. The flickering and distortion stopped literally as I was calling Sager tech support to get the address to send it back to. I couldn&#8217;t breath a sigh of relief just yet though, because at that point, when I applied pressure to a certain spot on the back of the screen, it would get all distorted again until I let go. This kept me worried, but I ignored it for the time being.</p>
<p>Since then, the problem has seemed to have completely alleviated itself. I&#8217;m guessing that the driver from nvidia.com decided that it actually works after the screen was on for a day or so.</p>
<p><a href="http://evanmeagher.net/images/winxpfront.JPG"><img src="http://evanmeagher.net/images/winxpfront_thumb.JPG" align="middle" height="338" vspace="10" width="450" alt="NP2090 running WinXP - front view" /></a></p>
<p>I then spent the next few days downloading and installing all the games I own. I bought and started playing Bioshock, which ran like a dream. It runs decently well at max settings, however I toned them down just a bit to get a boost in FPS. Half-Life 2 runs perfectly at max settings as well, with FPS ranging from ~70 to 200.</p>
<h3>Ubuntu Setup</h3>
<p><a href="http://evanmeagher.net/images/ubuntuscreen.JPG"><img src="http://evanmeagher.net/images/ubuntuscreen_thumb.JPG" align="middle" height="338" vspace="10" width="450" alt="NP2090 running Ubuntu - Expo" /></a></p>
<p>For the installation of Ubuntu, I followed <a href="http://lddubeau.com/avaktavyam/linux-on-a-compal-ifl90/">this guide</a> on installing it on a Compal IFL90. The IFL90 and the Sager 2090 are identical laptops, just rebranded.</p>
<p>It appears that the guide has been updated, as of October 6th, to install Ubuntu 7.10 Gusty Gibbon, as opposed 7.04 Feisty Fawn, which is what I currently have. The installation process I went through left me with Feisty running Gutsy&#8217;s 2.6.22-11  kernel. I highly recommend following this guide if you want to get Ubuntu running on a Sager 2090.</p>
<p>In a nutshell what you have to do is install Ubuntu with an alternate desktop CD (the traditional LiveCD&#8217;s don&#8217;t work for some reason) and then fiddle with virtually ever driver to get everything to work properly. Admittedly a tad tiresome and laborious process, but it&#8217;s what you have to pay for open source software with such high-end hardware.</p>
<p>Instead of regale you with the arbitrary minutia of my software setup, here&#8217;s an overview of the apps I&#8217;m currently using:</p>
<ul>
<li>Firefox</li>
<li>Rhymthbox for music</li>
<li>VLC and Gnome&#8217;s stock Movie Player for videos</li>
<li>GAIM for instant messaging (I miss Trillian&#8230;)</li>
<li>XChat for IRC</li>
<li>Skype for VOIP</li>
<li>Deluge for torrents</li>
<li>Filezilla for FTP</li>
<li>Bluefish and Photoshop for web design work</li>
<li>Gedit for programming (compile with terminal)</li>
<li>OpenOffice for writing/schoolwork</li>
<li>Compiz Fusion for sweet eye candy</li>
<li>Avant Window Navigator for OSX-like dock</li>
</ul>
<p><a href="http://evanmeagher.net/images/ubuntudesk.JPG"><img src="http://evanmeagher.net/images/ubuntudesk_thumb.JPG" align="middle" height="338" vspace="10" width="450" alt="NP2090 running Ubuntu - front view" /></a></p>
<p>As a quick sidenote, I strongly recommend Avant Window Navigator (AWN) to anyone using Linux. This program rocks. Admittedly, it stole the dock idea from OSX, but hey&#8230; it has the <a href="http://njpatel.blogspot.com/2007/09/howd-you-like-me-now.html">stacks feature</a> before they do.</p>
<p>If you want more info on Linux apps, or anything else, feel free to leave a comment.</p>
<h3>Final Thoughts</h3>
<p>This is the first time that I&#8217;ve used Linux as my primary OS and the switch wasn&#8217;t really that hard. Once I got past of all the bugs and got stuff working properly, the only problem has been getting accustomed to using Linux applications.</p>
<p>My main concern at the moment is developing a good design workflow. With Photoshop, HTML-Kit, and SmartFTP in XP, I feel that I had one down. I tried learning GIMP, but it&#8217;s confused user interface and lack of tools/options left me with cold feet. I&#8217;m currently running Photoshop through Wine, which is still less than ideal. However, I&#8217;m hopeful that future versions of Wine and/or GIMP will fix this problem.</p>
<p>Overall, I&#8217;m happy with my setup. Having to restart and boot into Windows if I want to play a game doesn&#8217;t bother me. It&#8217;s been nice to have a distinct separation between my gaming and the rest of my information-based activities. My Linux desktop isn&#8217;t littered with shortcuts to all the various games I own and my Windows desktop looks very clean with a single line of launchers at the bottom. Simplicity is bliss.</p>
]]></content:encoded>
			<wfw:commentRss>http://evanmeagher.net/2007/10/dual-booting-windows-xp-and-ubuntu-on-a-sager-np2090/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
