<?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>Adrusi</title>
	<atom:link href="http://adrusi.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://adrusi.com</link>
	<description>Teen by day, geek by night</description>
	<lastBuildDate>Sat, 04 Sep 2010 03:16: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>Using HTML5 Microdata</title>
		<link>http://adrusi.com/2010/09/using-html5-microdata/</link>
		<comments>http://adrusi.com/2010/09/using-html5-microdata/#comments</comments>
		<pubDate>Sat, 04 Sep 2010 03:16:32 +0000</pubDate>
		<dc:creator>adrusi</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://adrusi.com/?p=228</guid>
		<description><![CDATA[I believe it was about a year ago when the idea of microdata, became popular. Microdata is the concept of putting text for humans in the content of tags and machine readable content in attributes (there are applications outside of &#8230; <a href="http://adrusi.com/2010/09/using-html5-microdata/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<section class="exerpt">
<p>I believe it was about a year ago when the idea of microdata, became popular. Microdata is the concept of putting text for humans in the content of tags and machine readable content in attributes (there are applications outside of HTML, but those aren&#8217;t relevant right now). At that time the approach was called micro formats, and it looked something like this:</p>
<pre><code>
&lt;div class="vcard">
   &lt;div class="fn">Joe Doe&lt;/div>
   &lt;div class="org">The Example Company&lt;/div>
   &lt;div class="tel">604-555-1234&lt;/div>
   &lt;a class="url" href="http://example.com/">http://example.com/&lt;/a>
</div>

</code></pre>
<p>With the HTML5 spec (at least WHATWG&#8217;s spec I haven&#8217;t checked W3C&#8217;s) comes native microdata. Now the above would look like:</p>
<pre><code>
&lt;div itemscope itemtype="http://example.org/vcard/">
   &#038;ltdiv itemprop="fn">Joe Doe&#038;lt/div>
   &#038;ltdiv itemprop="org">The Example Company&#038;lt/div>
   &#038;ltdiv itemprop="tel">604-555-1234&#038;lt/div>
   &#038;lta itemprop="url" href="http://example.com/">http://example.com/&#038;lt/a>
&#038;lt/div>
</code></pre>
<p>The div with the itemscope attribute contains exactly one item of the type that is manifested by the optional itemtype attribute. The itemtype attribute points to a url that describes the type of item. The best way to think about it is in the object/class association, or if you&#8217;re not familiar with object oriented programming, house/blueprint. There is no standard syntax for defining an itemtype, so each individual microdata reader would have their own, although since creating a parser would be complicated, most would probably use google&#8217;s (google was on of the first adopters of microformats, that&#8217;s how you get things like ratings of restaurants in search results, so there is good reason to believe that google will develop a standard syntax for creating itemtypes)</section>
]]></content:encoded>
			<wfw:commentRss>http://adrusi.com/2010/09/using-html5-microdata/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Get Spotify in the US</title>
		<link>http://adrusi.com/2010/08/how-to-get-spotify-in-the-us/</link>
		<comments>http://adrusi.com/2010/08/how-to-get-spotify-in-the-us/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 20:58:33 +0000</pubDate>
		<dc:creator>adrusi</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[spotify]]></category>

		<guid isPermaLink="false">http://adrusi.com/?p=224</guid>
		<description><![CDATA[The desktop music streaming service, Spotify has created a big hype, but many people have given up on it because it is only available in a few countries. A while ago, people discovered a UK based proxy (UK being one &#8230; <a href="http://adrusi.com/2010/08/how-to-get-spotify-in-the-us/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<section>
<p>The desktop music streaming service, Spotify has created a big hype, but many people have given up on it because it is only available in a few countries. A while ago, people discovered a UK based proxy (UK being one of the allowed countries), which was blocked by the Spotify people within a few days (thanks to techcrunch for publishing that on such a huge blog). I found out about that too late, so I did a quick google search and within a minute I was on the signup page for Spotify.</p>
</section>
<p><span id="more-224"></span></p>
<section>
<h3>How to Get it</h3>
<p>The first step is to go to the spotify website, and click &#8220;try spotify&#8221;. This will bring you to the page where they apologize for spotify being unavailable in your country, it also shows a list of countries it is available in. Do a google search for <i>&lt;country Spotify is available in></i> proxies. Then all you have to do is find a proxy in one of he countries and go to the spotify website, from there you go to the &#8220;try now&#8221; page and instead of an apology, it gives you a sign up form!</p>
</section>
]]></content:encoded>
			<wfw:commentRss>http://adrusi.com/2010/08/how-to-get-spotify-in-the-us/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I&#8217;m on css-tricks.com!</title>
		<link>http://adrusi.com/2010/08/im-on-css-tricks-com/</link>
		<comments>http://adrusi.com/2010/08/im-on-css-tricks-com/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 21:40:02 +0000</pubDate>
		<dc:creator>adrusi</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://adrusi.com/?p=217</guid>
		<description><![CDATA[I&#8217;ve just been given a chance that many web designers and developers never get. I got to co author an article with Chris Coyier on his website, css-tricks.com (one of the biggest web design and front end development sites out &#8230; <a href="http://adrusi.com/2010/08/im-on-css-tricks-com/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<section>
<p>I&#8217;ve just been given a chance that many web designers and developers never get. I got to co author an article with Chris Coyier on his website, css-tricks.com (one of the biggest web design and front end development sites out there, among nettuts, a list apart and six revisions) about the css3 lightbox &#8220;hack&#8221; I came up with. Better yet, some people commented with a tip to use tabindex instead of contenteditable, which is A: a bit more semantic, and B: a way to prevent editing of content within the lightbox. I must say it&#8217;s pretty amazing the first time you get your name put out like that.</p>
</section>
]]></content:encoded>
			<wfw:commentRss>http://adrusi.com/2010/08/im-on-css-tricks-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Card Game: Siege</title>
		<link>http://adrusi.com/2010/07/card-game-siege/</link>
		<comments>http://adrusi.com/2010/07/card-game-siege/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 04:00:09 +0000</pubDate>
		<dc:creator>adrusi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://adrusi.com/?p=214</guid>
		<description><![CDATA[Siege is a card game I invented while I was bored. It uses a single deck of cards (no jokers), but that deck is split in two ― one half black cards, the other red. At the start of the &#8230; <a href="http://adrusi.com/2010/07/card-game-siege/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<section>
<p>Siege is a card game I invented while I was bored. It uses a single deck of cards (no jokers), but that deck is split in two ― one half black cards, the other red. At the start of the game, players line up 5 cards in front of their deck. It&#8217;s hard to explain so here is a visual:</p>
<p><span id="more-214"></span></p>
<pre>
              DEK* |   |
              Qh** |   |
              9d***|   |
              6d   |   |
              5h   |   |
              3d   |   |
   |   | 5c****
   |   |10s******
   |   | 2s
   |   | Kc
   |   | 8c
   |   |DEK

     *DEK will represent the deck from now on
    **h represents hearts
   ***d represents diamonds
  ****c represents clubs
 *****s represents spades
******it doesn't exist yet, but DIS will represent the discard pile
<small>the order of the above is irrelevant, the cards are randomly picked</small>
</pre>
<p>Notice that red&#8217;s cards are offset from black&#8217;s cards.</p>
</section>
<section>
<h3>Objective and Basic Play</h3>
<p>The objective of siege is to &#8220;kill&#8221; all of your opponent&#8217;s cards. There are a few ways to go about this: the first way is to get one of your cards to the spot in front of the opponent&#8217;s deck (Q♡ in the above example), The second is to kill all of your opponent&#8217;s cards in battle (more on battle soon), and the third is to have your opponent sign a &#8220;treaty&#8221; (treaties are like resignations or draw offering in chess, except that you can ask your opponent to resign). Since battle is the most important part of the game, we&#8217;ll start with that.</p>
<p>Before we actually get to battle, we need to know what we can do. Each turn, a player draws a card, and then chooses to either play or discard it. If it is discarded, it gets placed at the bottom of the deck and the player can choose a different type of move. If the player chooses to play the card, (s)he can either place next to one of his/her existing cards, or place it one space in front of his/her  front-most card. The example below shows two turns, first black draws a 3♣ and places it next to his 10♠, and then red draws a 7♡ and places it in front of her 3♢.</p>
<pre>
Turn 1:
              DEK|   |
              Qh |   |
              9d |   |
              6d |   |
              5h |   |
              3d |   |
   |   | 5c
   | 3c|10s
   |   | 2s
   |   | Kc
   |   | 8c
   |   |DEK

Turn 2:
              DEK|   |
              Qh |   |
              9d |   |
              6d |   |
              5h |   |
              3d |   |
   |   | 5c | 7h |   |
   | 3c|10s
   |   | 2s
   |   | Kc
   |   | 8c
   |   |DEK
</pre>
<p>So what now? The 5♣ gets &#8220;killed&#8221; by the 7♡ because black&#8217;s total value of the cards in that row is greater than red. For now that means that 7 beats 5. But let&#8217;s imagine that black put his 3♣ next to his 5♣ and then red drew 9♡.</p>
<pre>
Turn 1:
              DEK|   |
              Qh |   |
              9d |   |
              6d |   |
              5h |   |
              3d |   |
   | 3c| 5c
   |   |10s
   |   | 2s
   |   | Kc
   |   | 8c
   |   |DEK

Turn 2:
              DEK|   |
              Qh |   |
              9d |   |
              6d |   |
              5h |   |
              3d |   |
   | <s>3c</s>| 5c | 9h |   |
   |   |10s
   |   | 2s
   |   | Kc
   |   | 8c
   |   |DEK
</pre>
<p>Red still ends up winning, but black played smarter this time, he defended his weak front lines from attackers. How? The total value of his front line is now 8, and before it was 5. It&#8217;s the total value of a row that counts in battles. so if red&#8217;s card was an eight or lower, black&#8217;s front line would have been sufficiently defended.</p>
</section>
<section>
<h3>More Complex Rules</h3>
<p>So since red won a battle, what happens? If you guessed that the 3♣ and the 5♣ get &#8220;killed&#8221;, then you&#8217;re wrong. What actually happens is that the weakest card in the row that lost gets &#8220;killed&#8221; in this example, the 3♣ <i>only</i>.</p>
<p>Now suppose black draws another card and it turns out to be a 5♠. It&#8217;s not a great card on its own, but he can use it to win a battle. If he puts the 5♠ where the 3♣ was, then that row&#8217;s total is 10; which is more than red&#8217;s, 9.</p>
<pre>
Turn 3:
              DEK|   |
              Qh |   |
              9d |   |
              6d |   |
              5h |   |
              3d |   |
   | 5s| 5c | <s>9h</s> |   |
   |   |10s
   |   | 2s
   |   | Kc
   |   | 8c
   |DIS|DEK
</pre>
<p>Now red lost her 9♡ and she draws a 2♢. She puts the 2♢ next to the 3♢ to defend it. It turns out to be sufficient, because on the next turn, black draws a 3♠, which isn&#8217;t enough to beat the 5 total value of red&#8217;s row. This is where discarding a draw comes into play. Black puts the 3♠ at the bottom of his deck so he can move a card. he moves his 5♣ one space forward to &#8220;attack&#8221; red.</p>
<pre>
Turn 4:
              DEK|DIS|
              Qh |   |
              9d |   |
              6d |   |
              5h |   |
              3d | 2d|
   |   | 5s
   |   |10s
   |   | 2s
   |   | Kc
   |   | 8c
   |DIS|DEK

turn 5:
              DEK|DIS|
              Qh |   |
              9d |   |
              6d |   |
              5h |   |
   |   | 5c | 3d | 2d|
   |   | 5s
   |   |10s
   |   | 2s
   |   | Kc
   |   | 8c
   |DIS|DEK
</pre>
<p>Before we continue, here is a list of rules about moving:</p>
<ul>
<li>you can move <i>once</i> per turn</li>
<li>you can move as many cards as you want from a single row per turn</li>
<li>you can only move cards from a single row in a turn</li>
<li><strong>bonus rule that applies to moving:</strong> you can only have three cards in a row</li>
</ul>
<p>Since the values of the rows for both players is the same, no card gets &#8220;killed&#8221;, in fact nothing happens. But now it&#8217;s red&#8217;s turn and she draws a 8♡ and places it next to the 3♢ and 2♢. This wins a battle and &#8220;kills&#8221; the 5♣.</p>
<pre>
turn 6:
              DEK|DIS|
              Qh |   |
              9d |   |
              6d |   |
              5h |   |
   |   | <s>5c</s> | 3d |2d |5h
   |   | 5s
   |   |10s
   |   | 2s
   |   | Kc
   |   | 8c
   |DIS|DEK
</pre>
</section>
<section>
<h3>Treaties</h3>
<p>Imagine a position such as the following (not a continuation of the previous examples):</p>
<pre>
              DEK|DIS|
              Qh |   |
              Ad |   |
              Qd |   |
              Ad |Ah |Kd
 Kc| Ac| As
   |   | 5s
   |   | 3s
   |   | 2s
   |   | 4c
   |   | 5c
   |DIS|DEK
</pre>
<p>A-A-K is the most powerful row possible, since each player has only 2 aces. So if both players have that in their front lines, then there is no way for either side to win. So red might offer a treaty that says she wins because she has higher value cards and black would decline because he has more &#8220;territory&#8221;. Eventually they might decide to go with something like a draw, all one of the aces in both players&#8217; rows be &#8220;killed&#8221;, or even something informal, like both of them kicking the first bum the see on the street.</p>
</section>
<section>
<h3>Analogies to Actual Warfare</h3>
<ul>
<li>the deck: training camp / capitol</li>
<li>Different ranked cards: weapons</li>
<li>rows: camps</li>
</ul>
</section>
]]></content:encoded>
			<wfw:commentRss>http://adrusi.com/2010/07/card-game-siege/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3 forms library v2.0</title>
		<link>http://adrusi.com/2010/07/css3-forms-library-v2-0/</link>
		<comments>http://adrusi.com/2010/07/css3-forms-library-v2-0/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 04:18:35 +0000</pubDate>
		<dc:creator>adrusi</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://adrusi.com/?p=209</guid>
		<description><![CDATA[My original forms library didn&#8217;t support anything but textboxes/textareas and buttons and it had ugly &#8220;messages&#8221; (messages being errors/warnings/info markers). It also had only a single theme. All that changes in version 2.0. Themes Version 1 had only a single &#8230; <a href="http://adrusi.com/2010/07/css3-forms-library-v2-0/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<section>
<p>My original forms library didn&#8217;t support anything but textboxes/textareas and buttons and it had ugly &#8220;messages&#8221; (messages being errors/warnings/info markers). It also had only a single theme. All that changes in version 2.0.<br />
</section>
<p><span id="more-209"></span></p>
<section>
<h3>Themes</h3>
<p>Version 1 had only a single gray theme, which looked nice, but wouldn&#8217;t work everywhere. Now there are 3 more color themes: blue, green, and red. All of the colors (minus error/warning/info messages) fit the color scheme.</p>
<p><small><em><strong>What to expect in v2.5:</strong> A &#8220;transparent&#8221; theme with semi-transparent fields</em></small><br />
</section>
<section>
<h3>Radio/Checkbox Support</h3>
<p>When I first designed version 1, I thought it would be impossible to style radios and checkboxes without javascript. This time around I knew more tricks and was able to cover the radios and checkboxes with the :before pseudo-element, but that didn&#8217;t work in mozilla so I made a javascript fallback.</p>
<p><small><em><strong>What to expect in v2.5:</strong> MUCH better &lt;select> support</em></small><br />
</section>
<section>
<h3>Errors/Warnings/Info Messages</h3>
<p>In version 1, the &#8220;messages&#8221; that were intended for validation were ugly and nearly impossible to place properly next to their corresponding fields, an afterthought. Although they were an afterthought again this time, they are 500 times better. Just giving the field&#8217;s container a class for what kind of message it has and add a &lt;span> with that same class next to the field and a simple message appears next to the field and the field changes color (slightly).</p>
</section>
<section>
<h3>And There&#8217;s More!</h3>
<p>I also made some other minor aesthetic changes, such as how hovered and focused fields are displayed and even adding a subtle -webkit-keyframes animation to focused fields to have them glow.</p>
<p>You can find the source on <a href="http://github.com/adrusi/css3-forms-library">github</a> and find a <a href="http://adrusi/css3-forms/">demo</a>.</p>
</section>
]]></content:encoded>
			<wfw:commentRss>http://adrusi.com/2010/07/css3-forms-library-v2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>100% CSS3 Lightbox</title>
		<link>http://adrusi.com/2010/07/100-css3-lightbox/</link>
		<comments>http://adrusi.com/2010/07/100-css3-lightbox/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 23:39:46 +0000</pubDate>
		<dc:creator>adrusi</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[experimental]]></category>
		<category><![CDATA[lightbox]]></category>

		<guid isPermaLink="false">http://adrusi.com/?p=192</guid>
		<description><![CDATA[It&#8217;s still a work in progress, but I&#8217;ve found a way to register a click even on any element with css3 and html5. It makes use of the contenteditable html5 attribute and :focus css pseudo-class. It&#8217;s current bugs include difficulty &#8230; <a href="http://adrusi.com/2010/07/100-css3-lightbox/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<section>
<p>It&#8217;s still a work in progress, but I&#8217;ve found a way to register a click even on any element with css3 and html5. It makes use of the contenteditable html5 attribute and :focus css pseudo-class. It&#8217;s current bugs include difficulty closing the lightbox and one time a webkit browser crashed, but I think that was caused by something else.</p>
</section>
<p><span id="more-192"></span></p>
<section>
<h3>Demo</h3>
<div id="csslightbox" contenteditable="true">
<img src="http://fc06.deviantart.net/fs70/f/2010/188/7/8/zuko_shaded_by_adrusi.png" alt="sample image" height="100" /><br />
Zuko
</div>
<p>On the right is an example, but be careful, it did crash espresso once, don&#8217;t use it if you have unsaved work open in the browser!</p>
</section>
<section>
<strong>Update:</strong> You can see a <a href="http://adrusi.com/css3-lightbox">better example</a> and find it <a href="http://github.com/adrusi/100--CSS3-Lightbox">on github</a>.<br />
</section>
]]></content:encoded>
			<wfw:commentRss>http://adrusi.com/2010/07/100-css3-lightbox/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adding an Easy Way to Customize a WordPress Colorscheme With Custom Post Meta</title>
		<link>http://adrusi.com/2010/07/adding-an-easy-way-to-customize-a-wordpress-colorscheme-with-custom-post-meta/</link>
		<comments>http://adrusi.com/2010/07/adding-an-easy-way-to-customize-a-wordpress-colorscheme-with-custom-post-meta/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 00:51:56 +0000</pubDate>
		<dc:creator>adrusi</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://adrusi.com/?p=178</guid>
		<description><![CDATA[In my recent post, On Post-specific Styling, I used a plugin called Art Direction to achieve a post-specific colorscheme, but now I made some changes to my theme so that I can just enter a color into a custom field. &#8230; <a href="http://adrusi.com/2010/07/adding-an-easy-way-to-customize-a-wordpress-colorscheme-with-custom-post-meta/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In my recent post, <a href="http://adrusi.com/2010/07/on-post-specific-styling/">On Post-specific Styling</a>, I used a plugin called Art Direction to achieve a post-specific colorscheme, but now I made some changes to my theme so that I can just enter a color into a custom field. I still have the plugin so that I can make more complex changes, but it is much faster and easier to enter colors. This post uses my method.</p>
]]></content:encoded>
			<wfw:commentRss>http://adrusi.com/2010/07/adding-an-easy-way-to-customize-a-wordpress-colorscheme-with-custom-post-meta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On Post-specific Styling</title>
		<link>http://adrusi.com/2010/07/on-post-specific-styling/</link>
		<comments>http://adrusi.com/2010/07/on-post-specific-styling/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 20:01:57 +0000</pubDate>
		<dc:creator>adrusi</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[magazine]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://adrusi.com/?p=100</guid>
		<description><![CDATA[One of the main differences between web and print design is that, in print design, articles can easily be styled and formatted to compliment the content, whereas in web design, ever since CSS became popular, all articles have the same &#8230; <a href="http://adrusi.com/2010/07/on-post-specific-styling/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of the main differences between web and print design is that, in print design, articles can easily be styled and formatted to compliment the content, whereas in web design, ever since CSS became popular, all articles have the same colorscheme and layout per-blog. Just think about the difference between reading a blog post and reading an article from National Geographic. In a magazine, an article about Mars would have a light on dark colorscheme with stars in the background (or something with a similar idea), but on a blog it would have the same colors, layout and background as every other post on that blog.<br />
<span id="more-100"></span><br />
<img class="full-width-image" src="http://farm5.static.flickr.com/4119/4818380297_f8738284b0_b.jpg" alt="comparison of the same article in print and on the web" /></p>
<h3>Why is it this way?</h3>
<p><img style="float: right; display: block; margin: 5px;" src="http://www.timlaman.com/content/photos/02Aug-PM.jpg" alt="magazine article example" width="250" /></p>
<p>It wasn&#8217;t always like this, before the mainstream adoption of CSS, web designers would work more like print designer, styling each page to work with the content. But when CSS became popular, designers would use on global stylesheet. What designers seem to have forgotten is that a design is 95% about content. Sure, nice header styling and animated sidebar widgets add to the appeal of the page, but by far the most important thing is to style the content beautifully. A great example of how a page can look beautiful without anything but well styled content is <a title="lifeisnotreadonly.net" href="http://www.lifesnotreadonly.net/">Life is Not Read-Only</a>. <img style="float: left; display: block; margin: 5px;" src="http://farm5.static.flickr.com/4115/4819122934_d531c46ab5_b.jpg" alt="blog article example" width="250" /> The style of that site is too simple to work for anything but a single page, but it looks a lot nicer than <a title="codewalkers.com" href="http://www.codewalkers.com/c/a/Miscellaneous/Dynamic-CSS-with-PHP/">Codewalkers</a>, and that has all the elements of a full website. You may be screaming that that&#8217;s because of the ugly colors and look of things other than the content, but the content is just as ugly. Arial font at an irregular size and and an unbroken span of text.</p>
<p>It seems like web designers need a reminder of what CSS actually means: <em>Cascading</em> Stylesheet<em>s</em>. The inventors of CSS intended for multiple stylesheets to be used, one global, and one for the topic or article.</p>
<h3>Yeah, I agree, it would be nice if weblog posts were as &#8220;pretty&#8221; as magazine posts, but what can I do</h3>
<div>
<h4>Developers</h4>
<ul>
<li>Make a wordpress or other CMS plugin</li>
<li>If you&#8217;re a web designer, encourage your clients to use a variety of designs</li>
<li>If you blog, change your theme to have custom color support using wordpress post-meta or an equivilent</li>
</ul>
</div>
<div>
<h4>Bloggers</h4>
<ul>
<li>Vary your colorscheme and layout to enhance the content</li>
<li>Make your posts interesting! I changed the colorscheme of this post and added interesting external text features such as this table/list thing</li>
</ul>
</div>
<div>
<h4>Everyone Else</h4>
<ul>
<li>Comment on well designed posts complimenting the author/designer, it&#8217;s hard work!</li>
<li>Promote the post using stumbleupon, digg, etc.</li>
</ul>
</div>
<h3>Here&#8217;s a visual presentation of the above</h3>
<p><object id="prezi_js80phe04orv" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100%" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="name" value="prezi_js80phe04orv" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="prezi_id=js80phe04orv&amp;lock_to_path=0&amp;color=ffffff&amp;autoplay=no" /><param name="src" value="http://prezi.com/bin/preziloader.swf" /><embed id="prezi_js80phe04orv" type="application/x-shockwave-flash" width="100%" height="400" src="http://prezi.com/bin/preziloader.swf" flashvars="prezi_id=js80phe04orv&amp;lock_to_path=0&amp;color=ffffff&amp;autoplay=no" bgcolor="#ffffff" allowscriptaccess="always" allowfullscreen="true" name="prezi_js80phe04orv"></embed></object></p>
<p>The interactive object is also good for breaking up the content.</p>
]]></content:encoded>
			<wfw:commentRss>http://adrusi.com/2010/07/on-post-specific-styling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Geektool HUD Scripts</title>
		<link>http://adrusi.com/2010/07/geektool-hud-scripts/</link>
		<comments>http://adrusi.com/2010/07/geektool-hud-scripts/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 00:14:34 +0000</pubDate>
		<dc:creator>adrusi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://adrusi.com/?p=98</guid>
		<description><![CDATA[this is for my Geektool HUD theme on DeviantART: I finally figured out the problem! I had accidentally deleted the image updater for the weather and the date! • gradient background is a buch of images from: here just placed next &#8230; <a href="http://adrusi.com/2010/07/geektool-hud-scripts/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>this is for my Geektool HUD theme on DeviantART:<br />
<span id="more-98"></span></p>
<p>I finally figured out the problem! I had accidentally deleted the image updater for the weather and the date!<br />
• gradient background is a buch of images from: <a href="http://www.deviantart.com/users/outgoing?http://images.ientrymail.com/photoshoppoint/www/tutorials/11/02.jpg">here</a> just placed next to each other at 70% opacity</p>
<p>• the weather text is: <code>curl --silent "http://xml.weather.yahoo.com/forecastrss?p=21044&amp;u=f" | grep -E '(Current Conditions:|F&lt;BR)' | sed -e 's/Current Conditions://' -e 's/&lt;br \/&gt;//' -e 's/&lt;b&gt;//' -e 's/&lt;\/b&gt;//' -e 's/&lt;BR \/&gt;//' -e 's/&lt;description&gt;//' -e 's/&lt;\/description&gt;//'</code> &#8211; I used Lucida Grande size 18pt with a silver color at a 600 second refresh</p>
<p>• the weather icon is 2 geeklets. The first one is a shel and uses this command: <code>curl --silent -o /tmp/weather.html http://weather.yahoo.com/united-states/oregon/portland-23424682/; curl --silent -o /tmp/weather.png $(grep "div\ class=\"forecast-icon\"\ style=\"background:url" /tmp/weather.html| awk -F"'" '{ printf $2 }');for NUM in $(grep -n "&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;.*\n" /tmp/weather.html|cut -d":" -f1); do TARGET=$((NUM+1)) ; sed -n "$NUM"p /tmp/weather.html|sed 's|&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;||g'|sed 's|&amp;lt;/strong&amp;gt;||g'| sed 's/^[\t]*//'; sed -n "$TARGET"p /tmp/weather.html ; done</code><br />
make that geeklet invisible by setting the text color to transparent and set it to refresh every 10 minutes (600 second)</p>
<p>• the second weather icon geeklet is an image pointing to file://localhost/tmp/weather.png set it also to refresh every 10 minutes note: the icon won&#8217;t work without the other script as the script is what grabs the image from online</p>
<p>• the day of the month is a shell: <code>date +"%d"</code> size Lucida Grande size 144pt silver refresh every 10 minutes</p>
<p>• the abbreviated month script is: <code>date +"%b"</code> Lucida Grande size 40pt silver refresh every 10 minutes</p>
<p>• the day of the week is: <code>date +"%A"</code> Lucida Grande size 40pt silver refresh every 10 minutes</p>
<p>• the time script is: <code>date +"%I:%M %p"</code> Lucida Grande size 40pt silver refresh every 60 seconds</p>
<p>• the calendar is: <code>cal | sed "s/^/ /;s/$/ /;s/ $(date +%e) / $(date +%e | sed 's/./#/g') /"</code> you have to install a new font called monospace typewriter and set it to size 13pt silver</p>
<p>• finally the music info uses bowtie with the geektool theme with the window level set to embedded in desktop</p>
]]></content:encoded>
			<wfw:commentRss>http://adrusi.com/2010/07/geektool-hud-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Assumption Song</title>
		<link>http://adrusi.com/2010/07/the-assumption-song/</link>
		<comments>http://adrusi.com/2010/07/the-assumption-song/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 17:14:03 +0000</pubDate>
		<dc:creator>adrusi</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://adrusi.com/?p=96</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/TywmpMQYojs&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/TywmpMQYojs&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://adrusi.com/2010/07/the-assumption-song/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->
