<?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>KODA &#187; Rants</title>
	<atom:link href="http://www.chromakode.com/blog/category/rants/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chromakode.com/blog</link>
	<description>Art, Linux, Fun</description>
	<lastBuildDate>Sun, 20 Jul 2008 18:49:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using a Logitech LX7 mouse in Ubuntu Edgy: &#8220;IHATEKLUDGERS&#8221;</title>
		<link>http://www.chromakode.com/blog/2007/09/19/logitech-lx7-in-ubuntu-edgy-ihatekludgers/</link>
		<comments>http://www.chromakode.com/blog/2007/09/19/logitech-lx7-in-ubuntu-edgy-ihatekludgers/#comments</comments>
		<pubDate>Wed, 19 Sep 2007 09:13:27 +0000</pubDate>
		<dc:creator>chromakode</dc:creator>
				<category><![CDATA[Diary]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://www.chromakode.com/blog/2007/09/19/logitech-lx7-in-ubuntu-edgy-ihatekludgers/</guid>
		<description><![CDATA[Bought a shiny new mouse today: the wireless optical Logitech LX7. Everything worked great out of box, until at around 11:30pm I decided to google around to see how to configure the tilt-wheel and back and forward buttons to work in Linux.
Big mistake.
It&#8217;s now 1:35am, and I finally have my solution. The trick is to [...]]]></description>
			<content:encoded><![CDATA[<p>Bought a shiny new mouse today: the wireless optical <a href="http://www.logitech.com/index.cfm/mice_pointers/mice/devices/152&amp;cl=us,en">Logitech LX7</a>. Everything worked great out of box, until at around 11:30pm I decided to google around to see how to configure the tilt-wheel and back and forward buttons to work in Linux.</p>
<p>Big mistake.</p>
<p>It&#8217;s now 1:35am, and I finally have my solution. The trick is to use the <strong>evdev</strong> X.org input driver, as for some reason the <strong>mouse</strong> driver can&#8217;t handle all of my buttons. I followed sections 1 and 2 of <a href="http://ubuntuforums.org/showthread.php?t=219894">this howto</a> for the general idea of setting up evdev.</p>
<p>The problem is, none of the howtos I dug up really worked. Things sort of worked, but there seemed to be confusion about the number of buttons (xmodmap reported 9, while xev dumped events from up to #12). Also, the tilt wheel mapping seemed to be reversed. At this point, I began to suspect something was going awry, so I started looking over <code>/var/log/Xorg.0.log</code>. Here&#8217;s what I found:</p>
<p>For some reason, X seemed to be adding a new &lt;default mouse&gt; InputDevice with the message &#8220;No default mouse found, adding one.&#8221; This mouse used the standard <strong>mouse</strong> input 	driver, and somehow was jumping in front of my configured mouse settings as the default mouse. Oddly, running <code>xinput list</code> showed that my properly configured <strong>evdev</strong> device was loaded perfectly (with 20 buttons!), but apparently wasn&#8217;t being used as the primary mouse.</p>
<p>I persisted twiddling with X config settings and checking the logs, but for some reason, this default mouse would always be created. At this point I started googling this strange &#8220;no default mouse found&#8221; message. The only apropos result, and my solution, was in <a href="http://zaitcev.livejournal.com/108617.html">this blog post</a>. It seems that someone decided to write a failsafe hack in 7.2 where if no InputDevice using the <strong>mouse</strong> driver exists in xorg.conf, <em>the server adds one</em>.</p>
<p>As <a href="http://zaitcev.livejournal.com/">Zaitcev</a> writes, as apparent from the code, this hack has one exception, in which if some InputDevice invokes the driver <strong>void</strong>, it assumes that the user (as the code states) &#8220;probably wants to run footless&#8221;, and no default mouse is instantiated. Thus, the solution:</p>
<blockquote>
<pre>Section "InputDevice"
Identifier    "Configured Mouse"
	Driver        "evdev"
	Option        "CorePointer"
	Option        "Device"        "/dev/input/event2"
EndSection

Section "InputDevice"
	Identifier  "IHATEKLUDGERS"
	Driver      "void"
EndSection

[...]

Section "ServerLayout"
	[...]
	InputDevice    "Configured Mouse"
	InputDevice    "IHATEKLUDGERS"
EndSection</pre>
</blockquote>
<p>Unbelievable.</p>
<p>Apparently, this will be fixed in 7.3.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chromakode.com/blog/2007/09/19/logitech-lx7-in-ubuntu-edgy-ihatekludgers/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Bicycle tire voodoo</title>
		<link>http://www.chromakode.com/blog/2006/08/20/bicycle-tire-voodoo/</link>
		<comments>http://www.chromakode.com/blog/2006/08/20/bicycle-tire-voodoo/#comments</comments>
		<pubDate>Mon, 21 Aug 2006 05:02:15 +0000</pubDate>
		<dc:creator>chromakode</dc:creator>
				<category><![CDATA[Diary]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://www.chromakode.com/blog/2006/08/20/bicycle-tire-voodoo/</guid>
		<description><![CDATA[After neglecting my bike for a few seasons, I decided to take a look at it over the last few days. Bad idea. Apparently from my neglect, I&#8217;ve got some terrible bicycle voodoo on my back. It was an exciting weekend.
Late friday afternoon I was checking on the rear tire. I&#8217;d pumped it up a [...]]]></description>
			<content:encoded><![CDATA[<p>After neglecting my bike for a few seasons, I decided to take a look at it over the last few days. Bad idea. Apparently from my neglect, I&#8217;ve got some terrible bicycle voodoo on my back. It was an exciting weekend.</p>
<p>Late friday afternoon I was checking on the rear tire. I&#8217;d pumped it up a few weeks ago, only to find the next day that it was flat. So I pumped it up to 55 psi &#8212; the normal pressure I keep it at &#8212; and waited. I figured there was a leak somewhere, and thought I could feel a small amount of air coming out around the valve. So I leaned close to the valve and listened. Stupid idea. After a second of listening and with no warning, the tire blew. <strong>PAFF!</strong> Right in my face. Thankfully all it did was leave my ears ringing for about a half hour, and things were fine&#8230; <img src="http://www.chromakode.com/blog/wp-includes/images/yahoo/yahoo1.gif" class="wp-smiley" /></p>
<p>However, the tire wasn&#8217;t. The inner tube had a nice patch of tears where it exploded. My father and I checked the tread for anything sharp that could have punctured the tube&#8230; nothing. So we figured that after three years of owning the bike and storing it, the tube had a defect and had worn out. </p>
<p>The next day, we went to GI Joe&#8217;s and and bought a new tube. The only ones they had with the right valve were these <a href="http://slime.com/product.php?product=ST-f1">&#8220;SLiME&#8221; leak resistant inner tubes</a> with a liquid sealant agent inside. After the experience I had with the last tube, it didn&#8217;t seem like a bad idea. So we brought the new tube and put it on, fit it back into the frame, and pumped it up to 50 psi. </p>
<p>Everything looked good, so I took it up a hill to see how it felt. I stopped at the top and checked the wheel. The frame was a bit out of alignment, and rubbing against the brake pads, so I started riding back home to give it a quick adjust. I was watching the speedometer hit 17mph as I rolled down, letting go of the brakes and seeing what it felt like to be going fast again. <strong>PAMMFF.</strong> <img src="http://www.chromakode.com/blog/wp-includes/images/yahoo/shocked.gif" class="wp-smiley" /> Yes, the tire blew again right there at 17 mph on the road. Luckily stopping the bike was really mild, and I had really good control. However, this time, I stopped to find the entire of back of my bike splattered with <span style="color: rgb(0, 153, 0);">green goo</span>, dripping green onto the road. <img src="http://www.chromakode.com/blog/wp-includes/images/yahoo/crazy.gif" class="wp-smiley" /></p>
<p>It was beautiful. I truly wonder what someone would have thought, observing this explosion. It kind of adds to the humor that I believe the first thing I said was &#8220;not again.&#8221; Detached from it all, it was really quite funny, carrying my bike, with it&#8217;s trashed back wheel, dripping this ridiculous green liquid all over the place. <img src="http://www.chromakode.com/blog/wp-includes/images/yahoo/yahoo4.gif" class="wp-smiley" /></p>
<p>I got to spend that afternoon wiping plastic goop out of the frame, the gears, the chain, and everything else. Before cleaning we compared the old tire with this new one, and found that they both popped in the same place. However, another check of the frame and tread found no obvious sharp spots &#8212; though the inner belt between the spokes and the tube looked a little compressed and thin. Needless to say if there was a pointy spot before, there now are many more, as the wheel frame was what dissipated most of the force of my 17 mph up down the hill.</p>
<p>I think this is one of those cases where it&#8217;s a better idea to wait until I can have someone look at the wheel in a shop. At this point, the frame pretty is damaged and might need replacement anyway. Long story short, it doesn&#8217;t look like I&#8217;ll be riding so much this summer&#8230; <img src="http://www.chromakode.com/blog/wp-includes/images/yahoo/halfsmile.gif" class="wp-smiley" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chromakode.com/blog/2006/08/20/bicycle-tire-voodoo/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>deviantART Nag Screen</title>
		<link>http://www.chromakode.com/blog/2006/06/29/deviantart-nag-screen/</link>
		<comments>http://www.chromakode.com/blog/2006/06/29/deviantart-nag-screen/#comments</comments>
		<pubDate>Fri, 30 Jun 2006 06:07:58 +0000</pubDate>
		<dc:creator>chromakode</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://www.chromakode.com/blog/2006/06/29/deviantart-nag-screen/</guid>
		<description><![CDATA[
Yesterday I was treated to this lovely deviantART subscription nag screen, which would not retreat from the site until I clicked the little &#8220;no thanks&#8221; button at the bottom. How very lame. My feeling is, if I wanted to continue using their service I would care enough to notice and renew it. As it stands, [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="DeviantART Nag Screen" id="image77" src="http://www.chromakode.com/blog/wp-content/uploads/devartnagsm.png" /></p>
<p>Yesterday I was treated to this lovely <a href="http://www.deviantart.com">deviantART</a> subscription nag screen, which would not retreat from the site until I clicked the little &#8220;no thanks&#8221; button at the bottom. How very lame. My feeling is, if I wanted to continue using their service I would care enough to notice and renew it. As it stands, their bargain price of 8 cents a day is about twice what I pay for hosting here at <a href="http://www.nearlyfreespeech.net">NFS</a>. I&#8217;ve been on the fence for a while about leaving the website all together, and this is pretty much the end. If I were Fella, I&#8217;d be crying at how dissapointing his site has become.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chromakode.com/blog/2006/06/29/deviantart-nag-screen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Why I consider CSS to be a horrible design language.</title>
		<link>http://www.chromakode.com/blog/2006/05/10/why-css-is-a-horrible-design-language/</link>
		<comments>http://www.chromakode.com/blog/2006/05/10/why-css-is-a-horrible-design-language/#comments</comments>
		<pubDate>Thu, 11 May 2006 05:53:53 +0000</pubDate>
		<dc:creator>chromakode</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://www.chromakode.com/blog/2006/05/10/why-css-is-a-horrible-design-language/</guid>
		<description><![CDATA[Writing CSS (CSS2) never ceases to amaze me. Whether it&#8217;s tweaking this blog, trying to re-theme a php app, or simply experimenting in the Web Developer Extension, I am always struck by how difficult and confusing it is to try to implement very simple design patterns. 
Be it centering objects, making layouts use the maximum [...]]]></description>
			<content:encoded><![CDATA[<p>Writing CSS (CSS2) never ceases to amaze me. Whether it&#8217;s tweaking this blog, trying to re-theme a php app, or simply experimenting in the <a href="http://chrispederick.com/work/webdeveloper/">Web Developer Extension</a>, I am always struck by how difficult and confusing it is to try to implement very simple design patterns. </p>
<p>Be it centering objects, making layouts use the maximum amount of space, or simply trying to use floats properly, I am always amazed by how seemingly obvious code does not work the way I should think it does. It seems rather silly to me that such a language would be designed such that web designers must resort to <a href="http://www.alistapart.com/articles/holygrail">specialized recipes</a> to deal with seemingly simple and common page layout designs. While powerful, CSS seems to become more and more a search for hacks and snippets to make many designs possible. Browser support is also an elusive and secretive gem; unless explicitly stated, what works in one browser will probably at some point fail mysteriously in another.<img src="http://www.chromakode.com/blog/wp-includes/images/yahoo/yahoo2.gif" class="wp-smiley" /></p>
<p>Tonight, my appreciation for the language fell to a new low. In the mid-day, thinking about my page layout, I decided that I wanted thumbnails posted from my <a href="http://www.chromakode.com/art/">gallery</a> to be aligned to the right of the post, so that post text can wrap around them on the left. I figured this would be a relatively simple fix; I just needed to float the image class to the right and see what happened.</p>
<p>Well, not so fast. I had failed to remember that images when floated will (without a <code><a href="http://www.w3schools.com/css/pr_class_clear.asp">clear property</a></code> set on a following element) essentially make the following layout flow through and under the image, leaving the image on top of the footer and the title of the following post. After a little searching and reading, I realized this mistake and added the appropriate <code>clear: right;</code> to the <code>.post-footer</code> class. The footer should now make appropriate space for the image in the post. Simple, right?</p>
<p>Again, not so fast. After putting in this little tweak, I found the first post on my page (without any image) being followed by a long swath of whitespace, assumedly caused somehow by my <code>float: right</code>&#8216;d sidebar. Why was the browser making a whole bunch of space for something that wasn&#8217;t there? I may never know. Well, debugging this would prove to be a nightmare, so I soon got tired and decided I needed to do some research. I googled CSS float clearing techniques, searching for some trick to make space for the image without involving other floats. Well, I ended up finding this <a href="http://www.quirksmode.org/css/clearing.html">quirksmode.org article</a> describing a trick for making float space work <i>without</i> needing the <code>clear </code>property.</p>
<p>Well, how about that? Reading it worked on most browsers, I quickly tried this new <code>overflow: hidden</code> trick on my <code>.post-content</code> div, and looked to see if it would work. Well, at first attempt, it didn&#8217;t. But it was close. This time, space was being made between posts for the image to fit in. However, the footer was still flowing through, underneath the image. This was relatively easy to fix, after I added back the <code>clear: right;</code> line to the footer div, this worked too. The blank space following the top post (which is why I seached for this trick in the first place) disappeared. At this point I really didn&#8217;t care why, and was glad that it did.</p>
<p>Then I noticed some mysterious padding being added under the titles of posts. This was directly associated with the existence of the <code>overflow: hidden</code> statement. About a line of space was being added under the titles for reasons unknown to me. I tried hard setting any margins and padding I could think of to 0 (most were already), yet still, this mysterious and unexpected space was being made. After fiddling with it for a while, disappointed that the trick might not work, I tried moving <code>overflow: hidden</code> to the parent div, <code>.post</code>. This worked like a charm. Everything was working as it should have been: space was being made for right-aligned images, text was flowing around them, and there was no longer any weird quirkiness being wreaked upon my page layout. Finally! <img src="http://www.chromakode.com/blog/wp-includes/images/yahoo/yahoo4.gif" class="wp-smiley" /></p>
<p>This experience I had tonight illustrates my primary frustration with CSS: it makes no sense for achieving simple design tasks. Certain assumptions about the purpose and performance of properties never seem to work out entirely as planned. My attempts at putting an image on the right required an understanding of the <code>float</code> layout system, the subtleties of <code>clear</code> usage, and even an arcane trick barely documented and not well-known &#8211; at least not very accessible to me. </p>
<p>Further, this impacts the sanity of CSS as a programming language: as a designer and a programmer, I expect that properties and directives will just work, in a way not so far off from the way they are documented to. In my experience with CSS, and in this example, the subtlety and lack of documentation in getting things to work as intended required so much more fiddling, guesswork, and raw googling than I ever expected to do. Also, pages become so big and complex that when dealing with many layout bugs, there is usually not an obivous quick fix.And I am simply using CSS like a programming language. I don&#8217;t even want to imagine the ways one would try to create a GUI for representing these difficulties in a WYSIWYG environment.</p>
<p>When attempting to represent a graphical layout using programming directives, I understand that it is very hard to craft a language that is both simple to use and powerful in it&#8217;s creative offerings. CSS really achieved a lot in terms of power in crafting web designs, and especially in controlling the typography used. However, the current state of utilizing CSS in web design is both an exercise in frustration and confusion, as the subtlety of the effects of CSS directives make it (at best) difficult to debug, and the arcaneness of the techniques used takes the considerable learning curve of CSS and shoots it through the roof. <img src="http://www.chromakode.com/blog/wp-includes/images/yahoo/yahoo2.gif" class="wp-smiley" /></p>
<p>After dealing with CSS a reasonable amount, I can only wonder at the hoops professional web designers must leap through in negotiating between the limitations of their environment and the needs/desires of their customers. As an open source and Linux enthusiast, I make minimum effort to accomodate <a href="http://www.microsoft.com/windows/ie/ie6/default.mspx">poorly compliant browsers</a>. I&#8217;d rather not think about the far more trouble one has to go to to ensure such compatibility. Heck, it would take so much time to really get fluid with the medium that suddenly, the role of the professional web designer makes so much more sense to me! <img src="http://www.chromakode.com/blog/wp-includes/images/yahoo/wink.gif" class="wp-smiley" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chromakode.com/blog/2006/05/10/why-css-is-a-horrible-design-language/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

