<?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>Blog.adambard.com &#187; Uncategorized</title>
	<atom:link href="http://blog.adambard.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.adambard.com</link>
	<description>Adam Bard on Things</description>
	<lastBuildDate>Sat, 10 Sep 2011 02:11:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>I am now dependant on Linux</title>
		<link>http://blog.adambard.com/2009/09/25/i-am-now-dependant-on-linux/</link>
		<comments>http://blog.adambard.com/2009/09/25/i-am-now-dependant-on-linux/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 21:46:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.adambard.com/?p=166</guid>
		<description><![CDATA[It&#8217;s true.  Whenever I have to use Windows, there are a lot of things I miss.  Here are a few of them:
Multiple Desktops
I know there are various ways to have multiple desktops on Windows too, but dad-gummit, they just don&#8217;t work as well as X&#8217;s built-in multi-desktop goodness.  I never have just [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s true.  Whenever I have to use Windows, there are a lot of things I miss.  Here are a few of them:</p>
<h4>Multiple Desktops</h4>
<p>I know there are various ways to have multiple desktops on Windows too, but dad-gummit, they just don&#8217;t work as well as X&#8217;s built-in multi-desktop goodness.  I never have just one program open; there&#8217;s always a browser for looking things up on desktop 1, my IDE of the moment on desktop 2, maybe GIMP on desktop 3, and a few terminal windows for convenience on desktop 4.  There&#8217;s always a place.  Switching is a quick ctrl-alt-arrow away, and that&#8217;s a good thing.</p>
<h4>Linux Feels Faster</h4>
<p>I don&#8217;t care about benchmarks (which usually go to Linux anyhow), I care about my own user experience.  And in this case, Linux consistantly feels a whole lot faster than any Windows installation I&#8217;ve ever used.</p>
<p>I don&#8217;t know the technical reasons.  Maybe it has something to do with Linux&#8217;s process-based architecture, but running multiple programs on Linux doesn&#8217;t seem to impact performance nearly as dramatically on Windows.  Furthermore, when programs are thinking in Windows, the entire system is impacted; when some piece of processing takes a long time on Linux, it&#8217;s ok, because the rest of my UI is functioning at 100%.</p>
<p>That&#8217;s what I mean when I say it feels faster.  If some program is taking too long to load, that&#8217;s alright, because I can browse the interweb while it&#8217;s loading and not even notice.  Whenever I start up a program on XP or Vista it seems like the entire system locks up while I&#8217;m waiting for it to load.</p>
<h4>The Terminal</h4>
<p>The idea of ever using Windows Explorer again is nauseating.  Who would want to do that when I have such an incredibly fast, efficient, and powerful tool at my disposal for file manipulations. Wildcard expressions to copy, move, rename, and otherwise manipulate files? Regular expressions even?  I am so there.</p>
<p>Sure, Windows has DOS, but it offers no where near the flexibility &#8211; not to mention the UI.</p>
<p>Just today I converted a 40-page 300dpi pdf file into 40 resized web-ready .jpg images using a single command:<br />
<code><br />
mogrify -density 300 -format jpg -resample 1024 *.pdf<br />
</code></p>
<p>I don&#8217;t even know how I would do that in Windows.  Command-line image manipulation is pretty sweet.</p>
<p>How about grep?  <a href="http://eriwen.com/tools/grep-is-a-beautiful-tool/">Grep is frigging fantastic</a>. Compared with Windows search?  Please.</p>
<h4>The Community</h4>
<p>You guys are swell, honestly.  I have rarely had a problem that couldn&#8217;t be solved on the first page of Google&#8217;s search results.  One of the nice things about open-source is that when it&#8217;s popular, it&#8217;s really popular, and people are eager to help.</p>
<p>Linux is great, and if you consider yourself a computer person you owe it to yourself to give it a try.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adambard.com/2009/09/25/i-am-now-dependant-on-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Javascript Tip: Use the rel Attribute</title>
		<link>http://blog.adambard.com/2008/06/01/javascript-tip-use-the-rel-attribute/</link>
		<comments>http://blog.adambard.com/2008/06/01/javascript-tip-use-the-rel-attribute/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 03:21:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.adambard.com/2008/06/01/javascript-tip-use-the-rel-attribute/</guid>
		<description><![CDATA[Hello Googler
It is and always has been the popular thing to publish, um, very opinionated articles in blogs. I&#8217;m going to leave this up, but since this is the most-found page on this now-defunct blog (Although I still post from time to time at http://posterous.adambard.com/), I should say this: What follows is very bad advice.
If you ever [...]]]></description>
			<content:encoded><![CDATA[<h2>Hello Googler</h2>
<p>It is and always has been the popular thing to publish, um, very opinionated articles in blogs. I&#8217;m going to leave this up, but since this is the most-found page on this now-defunct blog (Although I still post from time to time at http://posterous.adambard.com/), I should say this: What follows is <strong>very bad advice</strong>.</p>
<p>If you ever need a hook to grab a link, just use a css class for god&#8217;s sake; jQuery et. al. make this ridiculously easy, and it was never that hard to begin with. Rel has a real meaning, if a generally-unused one, and there&#8217;s no sense using it when you really mean to use a class.</p>
<p>Carry on then. The rest of this post is the original in its entirity.</p>
<p>In HTML, &lt;a&gt; and &lt;link&gt; elements have a unique attribute, &#8220;rel.&#8221;  Rel has practically no use in plain HTML these days, but with some creativity it can be an excellent hook for javascript events.  This will provide you an unobtrusive way to change the behavior of these elements, without requiring &#8220;javascript:&#8221; links or onclick calls be written directly into the html.</p>
<h4>Implementation:</h4>
<pre>var getElemsByRel = function(rel){
    aElements = document.getElementsByTagName("a");
    relElems = [];
    for (i = 0; i &lt; aElements.length; i++) {
        if (aElements[i].hasAttribute("rel") &amp;&amp; aElements[i].rel == rel) {
            relElems.append(aElements[i]);
        }
    }
	return relElems;
}</pre>
<h4>Case Study</h4>
<p><a href="http://www.lokeshdhakar.com/projects/lightbox2/">Lightbox.js</a> uses this to great effect: Any links with rel=&#8221;lightbox&#8221; activate the script, causing the image display to pop up with the target of the link as the image to display.</p>
<p>To accomplish this is very simple; for each element with the target rel attribute, one adds an onclick attribute that calls the function of one&#8217;s choosing, and &#8211; importantly &#8211; returns false, so that the link is not followed. As an added bonus, this technique fails extremely gracefully; if the javascript isn&#8217;t executed, the link is followed and the image is simply displayed in the browser.</p>
<p>Using rel in this case solves the problems of storing some relevant information in the link, forgoing the insertion of javascript into the markup, and providing some sort of semantic information in the markup as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adambard.com/2008/06/01/javascript-tip-use-the-rel-attribute/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

