<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>TraviBlog</title><link>http://travis.servebeer.com/blog.net/</link><description>I remember when I used to change this tagline on a weekly basis</description><managingEditor>travis</managingEditor><dc:language>en-US</dc:language><generator>.Text Version 0.95.2004.102</generator><item><dc:creator>travis</dc:creator><title>JavaScript is just as easy as Ruby (even without jQuery!)</title><link>http://travis.servebeer.com/blog.net/archive/2008/05/22/javascript_is_just_as_pretty_as_ruby.aspx</link><pubDate>Thu, 22 May 2008 00:02:00 GMT</pubDate><guid>http://travis.servebeer.com/blog.net/archive/2008/05/22/javascript_is_just_as_pretty_as_ruby.aspx</guid><wfw:comment>http://travis.servebeer.com/blog.net/comments/15114.aspx</wfw:comment><comments>http://travis.servebeer.com/blog.net/archive/2008/05/22/javascript_is_just_as_pretty_as_ruby.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://travis.servebeer.com/blog.net/comments/commentRss/15114.aspx</wfw:commentRss><trackback:ping>http://travis.servebeer.com/blog.net/services/trackbacks/15114.aspx</trackback:ping><description>&lt;p&gt;Ernie sent &lt;a href="http://project.ioni.st/post/2169#snippet_2169"&gt;this ruby snippet&lt;/a&gt; and marveled at its brilliant simplicity:&lt;/p&gt;
&lt;pre&gt;
class Date  
  def at_some_point  
    (at_midnight..tomorrow.at_midnight).to_a.rand  
  end 
end 

Date.today.at_some_point # =&amp;gt; Tue May 21 10:23:00 -0500 2008 
Date.today.at_some_point # =&amp;gt; Tue May 21 02:10:00 -0500 2008 
Date.today.at_some_point # =&amp;gt; Tue May 21 18:28:00 -0500 2008 
Date.today.at_some_point # =&amp;gt; Tue May 21 07:25:00 -0500 2008
&lt;/pre&gt;

&lt;p&gt;I recalled using &lt;code&gt;Date.prototype&lt;/code&gt; in JavaScript in the past to add some &lt;a href="http://www.refactormycode.com/codes/38-go-back-to-yesterday#refactor_164"&gt;helpful date functions&lt;/a&gt;, so I thought I'd see if I could write a similar function just as elegantly:&lt;/p&gt;

&lt;pre&gt;
Date.prototype.atSomePoint = function() {
    return new Date(rand(this.atMidnight().valueOf(), this.tomorrow().atMidnight().valueOf()));
};

new Date().atSomePoint();   \\ Wed May 21 2008 06:33:28 GMT-0400 (Eastern Daylight Time)
new Date().atSomePoint();   \\ Wed May 21 2008 12:57:13 GMT-0400 (Eastern Daylight Time)
new Date().atSomePoint();   \\ Wed May 21 2008 08:37:44 GMT-0400 (Eastern Daylight Time)
&lt;/pre&gt;

&lt;p&gt;Unfortunately &lt;code&gt;.atMidnight()&lt;/code&gt; and &lt;code&gt;.tomorrow()&lt;/code&gt; don't exist in JavaScript's Date object by default (that I know of), so I had to write those helpers as well as a random number helper, &lt;code&gt;rand()&lt;/code&gt;:&lt;/p&gt;

&lt;pre&gt;
Date.prototype.atMidnight = function() {
    this.setHours(0);
    this.setMinutes(0);
    this.setSeconds(0);
    return this;
};

Date.prototype.tomorrow = function() {
    this.setDate(this.getDate() + 1);
    return this;
};

function rand(lowerBound, upperBound) {
    return Math.floor((upperBound - (lowerBound - 1)) * Math.random()) + lowerBound;
}
&lt;/pre&gt;

&lt;p&gt;While I probably would never find a use for &lt;code&gt;.atSomePoint()&lt;/code&gt;, it certainly was easy enough to write.&lt;/p&gt;&lt;img src ="http://travis.servebeer.com/blog.net/aggbug/15114.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml"><p>Ernie sent <a href="http://project.ioni.st/post/2169#snippet_2169">this ruby snippet</a> and marveled at its brilliant simplicity:</p>
<pre>
class Date  
  def at_some_point  
    (at_midnight..tomorrow.at_midnight).to_a.rand  
  end 
end 

Date.today.at_some_point # =&gt; Tue May 21 10:23:00 -0500 2008 
Date.today.at_some_point # =&gt; Tue May 21 02:10:00 -0500 2008 
Date.today.at_some_point # =&gt; Tue May 21 18:28:00 -0500 2008 
Date.today.at_some_point # =&gt; Tue May 21 07:25:00 -0500 2008
</pre>

<p>I recalled using <code>Date.prototype</code> in JavaScript in the past to add some <a href="http://www.refactormycode.com/codes/38-go-back-to-yesterday#refactor_164">helpful date functions</a>, so I thought I'd see if I could write a similar function just as elegantly:</p>

<pre>
Date.prototype.atSomePoint = function() {
    return new Date(rand(this.atMidnight().valueOf(), this.tomorrow().atMidnight().valueOf()));
};

new Date().atSomePoint();   \\ Wed May 21 2008 06:33:28 GMT-0400 (Eastern Daylight Time)
new Date().atSomePoint();   \\ Wed May 21 2008 12:57:13 GMT-0400 (Eastern Daylight Time)
new Date().atSomePoint();   \\ Wed May 21 2008 08:37:44 GMT-0400 (Eastern Daylight Time)
</pre>

<p>Unfortunately <code>.atMidnight()</code> and <code>.tomorrow()</code> don't exist in JavaScript's Date object by default (that I know of), so I had to write those helpers as well as a random number helper, <code>rand()</code>:</p>

<pre>
Date.prototype.atMidnight = function() {
    this.setHours(0);
    this.setMinutes(0);
    this.setSeconds(0);
    return this;
};

Date.prototype.tomorrow = function() {
    this.setDate(this.getDate() + 1);
    return this;
};

function rand(lowerBound, upperBound) {
    return Math.floor((upperBound - (lowerBound - 1)) * Math.random()) + lowerBound;
}
</pre>

<p>While I probably would never find a use for <code>.atSomePoint()</code>, it certainly was easy enough to write.</p><img src ="http://travis.servebeer.com/blog.net/aggbug/15114.aspx" width = "1" height = "1" /></body></item><item><dc:creator>travis</dc:creator><title>Top 3 Vista Features that FAIL</title><link>http://travis.servebeer.com/blog.net/archive/2008/05/19/top_three_vista_features_that_FAIL.aspx</link><pubDate>Mon, 19 May 2008 19:03:00 GMT</pubDate><guid>http://travis.servebeer.com/blog.net/archive/2008/05/19/top_three_vista_features_that_FAIL.aspx</guid><wfw:comment>http://travis.servebeer.com/blog.net/comments/15111.aspx</wfw:comment><comments>http://travis.servebeer.com/blog.net/archive/2008/05/19/top_three_vista_features_that_FAIL.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://travis.servebeer.com/blog.net/comments/commentRss/15111.aspx</wfw:commentRss><trackback:ping>http://travis.servebeer.com/blog.net/services/trackbacks/15111.aspx</trackback:ping><description>&lt;a href="http://www.flickr.com/photos/diesel_travis/2500374738/" title="over 40 seconds to extract a 2.33MB zip file by T-Rav, on Flickr"&gt;&lt;img src="http://farm4.static.flickr.com/3058/2500374738_72060cee20.jpg" width="500" height="299" alt="over 40 seconds to extract a 2.33MB zip file" style="float:right;" /&gt;&lt;/a&gt;
&lt;p&gt;I installed Vista Ultimate x64 recently and there are three things that I've disabled (so far).&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;a href="http://en.wikipedia.org/wiki/User_Account_Control"&gt;UAC&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;This one was disabled before I even &lt;a href="http://www.vlite.net/"&gt;slipstreamed the DVD&lt;/a&gt;. I didn't even have to use it to know that not only would it annoy the hell out of me, but I don't really need it since I've never had any problems in XP/2000.&lt;/dd&gt;

&lt;dt&gt;120dpi&lt;/dt&gt;
&lt;dd&gt;The larger, crisper fonts were nice when they worked. Most software outside of the OS itself didn't support it though. Even MS's own software (like &lt;a href="http://www.worldwidetelescope.org/"&gt;WorldWide Telescope&lt;/a&gt;) is inconsistent. I guess that's why this isn't enabled by default.&lt;/dd&gt;

&lt;dt&gt;Window Translucency&lt;/dt&gt;
&lt;dd&gt;This just seems useless IMO. It's cool that it's possible to do, but I don't think it's the best use of my GPU time.&lt;/dd&gt;
&lt;/dl&gt;

&lt;p&gt;Anyone else have any pet peeves or stuff they've turned off in their default Vista install?&lt;/p&gt;
&lt;p&gt;&lt;em&gt;(The screenshot shows the raw speed at which Vista is capable of unzipping files on my hard drive.)&lt;/em&gt;&lt;/p&gt;&lt;img src ="http://travis.servebeer.com/blog.net/aggbug/15111.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml"><a href="http://www.flickr.com/photos/diesel_travis/2500374738/" title="over 40 seconds to extract a 2.33MB zip file by T-Rav, on Flickr"><img src="http://farm4.static.flickr.com/3058/2500374738_72060cee20.jpg" width="500" height="299" alt="over 40 seconds to extract a 2.33MB zip file" style="float:right;" /></a>
<p>I installed Vista Ultimate x64 recently and there are three things that I've disabled (so far).</p>
<dl>
<dt><a href="http://en.wikipedia.org/wiki/User_Account_Control">UAC</a></dt>
<dd>This one was disabled before I even <a href="http://www.vlite.net/">slipstreamed the DVD</a>. I didn't even have to use it to know that not only would it annoy the hell out of me, but I don't really need it since I've never had any problems in XP/2000.</dd>

<dt>120dpi</dt>
<dd>The larger, crisper fonts were nice when they worked. Most software outside of the OS itself didn't support it though. Even MS's own software (like <a href="http://www.worldwidetelescope.org/">WorldWide Telescope</a>) is inconsistent. I guess that's why this isn't enabled by default.</dd>

<dt>Window Translucency</dt>
<dd>This just seems useless IMO. It's cool that it's possible to do, but I don't think it's the best use of my GPU time.</dd>
</dl>

<p>Anyone else have any pet peeves or stuff they've turned off in their default Vista install?</p>
<p><em>(The screenshot shows the raw speed at which Vista is capable of unzipping files on my hard drive.)</em></p><img src ="http://travis.servebeer.com/blog.net/aggbug/15111.aspx" width = "1" height = "1" /></body></item><item><dc:creator>travis</dc:creator><title>PRK</title><link>http://travis.servebeer.com/blog.net/archive/2008/03/30/prk_eye_surgery_follow_up.aspx</link><pubDate>Sun, 30 Mar 2008 00:51:00 GMT</pubDate><guid>http://travis.servebeer.com/blog.net/archive/2008/03/30/prk_eye_surgery_follow_up.aspx</guid><wfw:comment>http://travis.servebeer.com/blog.net/comments/15096.aspx</wfw:comment><comments>http://travis.servebeer.com/blog.net/archive/2008/03/30/prk_eye_surgery_follow_up.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://travis.servebeer.com/blog.net/comments/commentRss/15096.aspx</wfw:commentRss><trackback:ping>http://travis.servebeer.com/blog.net/services/trackbacks/15096.aspx</trackback:ping><description>&lt;p&gt;&lt;img src="http://i26.tinypic.com/2pzk93b.gif" alt="Travis gets eyes lasered" style="float:right;" /&gt; I had &lt;a href="http://www.stronghealth.com/services/strongvision/procedures/lasek.cfm"&gt;PRK&lt;/a&gt; surgery on 3/18/2008 and I thought I'd post how it went for others who're thinking about getting it. PRK is the exact same price as LASIK, uses the exact same excimer laser, but has a significantly longer heal time and is more painful. People who have poor near-sightedness, large pupils, and/or thin corneas are generally not the best candidates for LASIK, and that is where PRK comes in.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;Short version&lt;/strong&gt;: if you're as fed up with glasses/contacts as I was, you're patient and you're not a candidate for LASIK, get it. And the long version...
&lt;/p&gt;
&lt;h2&gt;The Procedure &lt;em&gt;(from my point of view)&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;I scheduled my appointment for 8am and I was up until about 3am the night before because I was so nervous. It worked out in my favor though since I was able to sleep so easily the rest of the day. We arrived at &lt;a href="http://www.stronghealth.com/services/strongvision/"&gt;StrongVision&lt;/a&gt; at about 8:10am. They gave me some numbing drops for my eyes and I could feel tremendous anxiety, my extremities felt cold and clammy and I could feel the blood draining from my face. I fainted during one of the tests at my first pre-op visit, and I really didn't want that to happen during the procedure. Then they gave me a Valium to relax, and I felt much better in about 5 minutes. They took me into the laser room and gave a brief explanation of what was going to happen. Then they cleaned my eyelash area with an iodine solution, no big deal. The numbing drops work really well, it almost feels like you're blinking over empty eye sockets.&lt;/p&gt;
&lt;p&gt;My instructions were to basically to stare at a red blinking light. With the Valium, numbing drops, and everything being blurry anyways, it was really easy to do this. They popped the little eye propper-opener into my eye in about 1 second, it is actually more comfortable than it sounds. Then they slide my head under the big machine.&lt;/p&gt;
&lt;p&gt;From here on everything was blurry, but here's what happened from my point of view. There's a green light and another red light, ah there's the blinking red one. A ring-shaped object is placed on my eye, I feel a slight pressure as if I was resting my finger on my closed eyelid. Then a second ring is plopped on there with about the same pressure, this one is filled up with liquid, and held in place for 30 seconds. I see a white blur then the liquid is rinsed off. The stuff they rinse your eye with is ice cold, and that is the most uncomfortable part of the whole procedure. Some goop-like substance is then wiped off my eye. Another rinsing with the cold water. The light is turned off momentarily then my eye is given one more wipe before the cool part. The light is turned down again, then *BZZZ*crack*crack*crack* the laser fires up. There is a faint smell of a curling iron, but not as bad as I had expected since other people told me that was the worst part. With every *buzz* of the laser, the shape of the blinking red dot changes shape. After the laser finishes something blocks my vision for a second or two, then something white is placed on my eye, making it difficult to watch the blinking red dot. Then a translucent white disc is placed on my eye for a bit. Another swab then more squirts of that icy water, damn it's cold. A "bandage" contact is placed over my eye and a few drops placed in it. The eye-propper-opener is gently removed from my eye and I blink. My eye is closed then given a good wipe down.&lt;/p&gt;
&lt;p&gt;At this point I can sit up and they switch the eye patch to cover my right eye and prepare my left one. They ask me to read the clock on the wall, I only see a blurry white disc. The laser runs through a few tests in the mean time, then they repeat the same procedure on my left eye. When it is finished I can easily read the clock on the wall. It is miraculous. I think I could only say "wow."&lt;/p&gt;
&lt;h2&gt;What Really Went On&lt;/h2&gt;
&lt;p&gt;They gave me a DVD of the procedure which I've uploaded to both &lt;a href="http://www.vimeo.com/829249"&gt;Vimeo (higher quality)&lt;/a&gt; and &lt;a href="http://www.youtube.com/watch?v=O2rDrbSWQjY"&gt;Youtube&lt;/a&gt;. Watching the procedure is somewhat difficult if you're squeamish. I am still amazed at how little I felt. It's funny watching it because it looks like the most soothing part is the water squirted on my eye, and to me it was the most uncomfortable.&lt;/p&gt;
&lt;p&gt;So here's the play-by-play of what really went on. The first metal ring scores a circle on my eye. The second ring is placed onto the score and filled with an alcohol solution that dissolves the epithelium layer of the eye. After its drained and rinsed, the epithelium is wiped off. The laser works in the UV spectrum and breaks down the carbon bonds in the cornea's cells, reshaping it. The white blur they rest on my eye is what they called the popsicle, some sort of frozen artificial tears. The white disc is Mitomycin-C, it changes the cell's mitochondria so that your eye doesn't heal too quickly, making your eye blurry. The bandage contact just reduces the chance for infection and makes it much less painful to blink. It gets removed 5 days later.&lt;/p&gt;
&lt;p&gt;Each eye takes less than 8 minutes, and the entire procedure is less than 20 minutes. We were on the road heading home in less than an hour.&lt;/p&gt;
&lt;h2&gt;Healing&lt;/h2&gt;
&lt;p&gt;This is really the most frustrating part. The pain is very tolerable with &lt;a href="http://www.flickr.com/photos/diesel_travis/2346812126/in/set-72157604170744219/"&gt;medication&lt;/a&gt;, but having blurry vision is frustrating. Especially if you're like me and usually spend about 16 hours a day staring at a glowing screen. You're not supposed to read for extended periods of time either, so plan on being bored, listening to music, and sleeping a lot. The pain meds will definitely help you sleep.&lt;/p&gt;
&lt;p&gt;The worst day pain-wise for me was the third day. Every time I opened my eye, the light felt like a hair stuck under a contact. I just kept my eyes closed as much as possible and slept most of the day. The day after was basically pain free, but was the blurriest. At day 6 I had the bandage contact removed and my vision was still a bit blurry. I couldn't even read the top line. At this point I was thinking: WTF have I done. But each day since my vision has improved noticeably.&lt;/p&gt;
&lt;p&gt;
While some people can see 20/20 after the first 5 days with PRK, it wasn't that way for me. This is really where LASIK is so much better, since you see clear right off the bat. As of 3/31, my vision was already 20/25. It will continue to get better hopefully to at least 20/20 over time (many people's vision is corrected better). The more that you blink, the more your cornea smooths out all of the imperfections from the healing process.
&lt;/p&gt;
&lt;p&gt;I'm now 2 weeks out, and the only real problems I have is a nagging head ache, the occasional blurriness when I blink, slightly dry eyes, and relatively poor night vision. The Dr. said today that all of those will get better with time so I'm not too worried. and I have another appointment 3 weeks out, and I'll be sure to post any major updates if I have any.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 4/22/08:&lt;/strong&gt; Eyes were 20/20 today. I have nearly zero discomfort, aside from my seasonal allergies. I rarely use the drops any more, I wish I hadn't bought so many. Night vision is clear enough to drive and will improve over time.&lt;/p&gt;&lt;img src ="http://travis.servebeer.com/blog.net/aggbug/15096.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml"><p><img src="http://i26.tinypic.com/2pzk93b.gif" alt="Travis gets eyes lasered" style="float:right;" /> I had <a href="http://www.stronghealth.com/services/strongvision/procedures/lasek.cfm">PRK</a> surgery on 3/18/2008 and I thought I'd post how it went for others who're thinking about getting it. PRK is the exact same price as LASIK, uses the exact same excimer laser, but has a significantly longer heal time and is more painful. People who have poor near-sightedness, large pupils, and/or thin corneas are generally not the best candidates for LASIK, and that is where PRK comes in.</p> 
<p><strong>Short version</strong>: if you're as fed up with glasses/contacts as I was, you're patient and you're not a candidate for LASIK, get it. And the long version...
</p>
<h2>The Procedure <em>(from my point of view)</em></h2>
<p>I scheduled my appointment for 8am and I was up until about 3am the night before because I was so nervous. It worked out in my favor though since I was able to sleep so easily the rest of the day. We arrived at <a href="http://www.stronghealth.com/services/strongvision/">StrongVision</a> at about 8:10am. They gave me some numbing drops for my eyes and I could feel tremendous anxiety, my extremities felt cold and clammy and I could feel the blood draining from my face. I fainted during one of the tests at my first pre-op visit, and I really didn't want that to happen during the procedure. Then they gave me a Valium to relax, and I felt much better in about 5 minutes. They took me into the laser room and gave a brief explanation of what was going to happen. Then they cleaned my eyelash area with an iodine solution, no big deal. The numbing drops work really well, it almost feels like you're blinking over empty eye sockets.</p>
<p>My instructions were to basically to stare at a red blinking light. With the Valium, numbing drops, and everything being blurry anyways, it was really easy to do this. They popped the little eye propper-opener into my eye in about 1 second, it is actually more comfortable than it sounds. Then they slide my head under the big machine.</p>
<p>From here on everything was blurry, but here's what happened from my point of view. There's a green light and another red light, ah there's the blinking red one. A ring-shaped object is placed on my eye, I feel a slight pressure as if I was resting my finger on my closed eyelid. Then a second ring is plopped on there with about the same pressure, this one is filled up with liquid, and held in place for 30 seconds. I see a white blur then the liquid is rinsed off. The stuff they rinse your eye with is ice cold, and that is the most uncomfortable part of the whole procedure. Some goop-like substance is then wiped off my eye. Another rinsing with the cold water. The light is turned off momentarily then my eye is given one more wipe before the cool part. The light is turned down again, then *BZZZ*crack*crack*crack* the laser fires up. There is a faint smell of a curling iron, but not as bad as I had expected since other people told me that was the worst part. With every *buzz* of the laser, the shape of the blinking red dot changes shape. After the laser finishes something blocks my vision for a second or two, then something white is placed on my eye, making it difficult to watch the blinking red dot. Then a translucent white disc is placed on my eye for a bit. Another swab then more squirts of that icy water, damn it's cold. A "bandage" contact is placed over my eye and a few drops placed in it. The eye-propper-opener is gently removed from my eye and I blink. My eye is closed then given a good wipe down.</p>
<p>At this point I can sit up and they switch the eye patch to cover my right eye and prepare my left one. They ask me to read the clock on the wall, I only see a blurry white disc. The laser runs through a few tests in the mean time, then they repeat the same procedure on my left eye. When it is finished I can easily read the clock on the wall. It is miraculous. I think I could only say "wow."</p>
<h2>What Really Went On</h2>
<p>They gave me a DVD of the procedure which I've uploaded to both <a href="http://www.vimeo.com/829249">Vimeo (higher quality)</a> and <a href="http://www.youtube.com/watch?v=O2rDrbSWQjY">Youtube</a>. Watching the procedure is somewhat difficult if you're squeamish. I am still amazed at how little I felt. It's funny watching it because it looks like the most soothing part is the water squirted on my eye, and to me it was the most uncomfortable.</p>
<p>So here's the play-by-play of what really went on. The first metal ring scores a circle on my eye. The second ring is placed onto the score and filled with an alcohol solution that dissolves the epithelium layer of the eye. After its drained and rinsed, the epithelium is wiped off. The laser works in the UV spectrum and breaks down the carbon bonds in the cornea's cells, reshaping it. The white blur they rest on my eye is what they called the popsicle, some sort of frozen artificial tears. The white disc is Mitomycin-C, it changes the cell's mitochondria so that your eye doesn't heal too quickly, making your eye blurry. The bandage contact just reduces the chance for infection and makes it much less painful to blink. It gets removed 5 days later.</p>
<p>Each eye takes less than 8 minutes, and the entire procedure is less than 20 minutes. We were on the road heading home in less than an hour.</p>
<h2>Healing</h2>
<p>This is really the most frustrating part. The pain is very tolerable with <a href="http://www.flickr.com/photos/diesel_travis/2346812126/in/set-72157604170744219/">medication</a>, but having blurry vision is frustrating. Especially if you're like me and usually spend about 16 hours a day staring at a glowing screen. You're not supposed to read for extended periods of time either, so plan on being bored, listening to music, and sleeping a lot. The pain meds will definitely help you sleep.</p>
<p>The worst day pain-wise for me was the third day. Every time I opened my eye, the light felt like a hair stuck under a contact. I just kept my eyes closed as much as possible and slept most of the day. The day after was basically pain free, but was the blurriest. At day 6 I had the bandage contact removed and my vision was still a bit blurry. I couldn't even read the top line. At this point I was thinking: WTF have I done. But each day since my vision has improved noticeably.</p>
<p>
While some people can see 20/20 after the first 5 days with PRK, it wasn't that way for me. This is really where LASIK is so much better, since you see clear right off the bat. As of 3/31, my vision was already 20/25. It will continue to get better hopefully to at least 20/20 over time (many people's vision is corrected better). The more that you blink, the more your cornea smooths out all of the imperfections from the healing process.
</p>
<p>I'm now 2 weeks out, and the only real problems I have is a nagging head ache, the occasional blurriness when I blink, slightly dry eyes, and relatively poor night vision. The Dr. said today that all of those will get better with time so I'm not too worried. and I have another appointment 3 weeks out, and I'll be sure to post any major updates if I have any.</p>
<p><strong>Update 4/22/08:</strong> Eyes were 20/20 today. I have nearly zero discomfort, aside from my seasonal allergies. I rarely use the drops any more, I wish I hadn't bought so many. Night vision is clear enough to drive and will improve over time.</p><img src ="http://travis.servebeer.com/blog.net/aggbug/15096.aspx" width = "1" height = "1" /></body></item><item><dc:creator>travis</dc:creator><title>HOPE/CHANGE</title><link>http://travis.servebeer.com/blog.net/archive/2008/03/14/barack_obama_hope_change.aspx</link><pubDate>Fri, 14 Mar 2008 09:57:00 GMT</pubDate><guid>http://travis.servebeer.com/blog.net/archive/2008/03/14/barack_obama_hope_change.aspx</guid><wfw:comment>http://travis.servebeer.com/blog.net/comments/14943.aspx</wfw:comment><comments>http://travis.servebeer.com/blog.net/archive/2008/03/14/barack_obama_hope_change.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://travis.servebeer.com/blog.net/comments/commentRss/14943.aspx</wfw:commentRss><trackback:ping>http://travis.servebeer.com/blog.net/services/trackbacks/14943.aspx</trackback:ping><description>&lt;p&gt;&lt;a href="http://tinypic.com/view.php?pic=2m4pr1l&amp;amp;s=3"&gt;&lt;img src="http://i28.tinypic.com/2m4pr1l.jpg" alt="HOPE" /&gt;&lt;/a&gt;&lt;a href="http://tinypic.com/view.php?pic=28kr5l5&amp;amp;s=3"&gt;&lt;img src="http://i32.tinypic.com/28kr5l5.jpg" alt="CHANGE" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;These print out nicely on an 11x17 sheet ;-) &lt;em&gt;or&lt;/em&gt; you can try to &lt;a href="http://store.barackobama.com/Artist_For_Obamas_s/1018.htm" title="Artists for Obama"&gt;buy one directly from the site&lt;/a&gt;.&lt;/p&gt;&lt;img src ="http://travis.servebeer.com/blog.net/aggbug/14943.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml"><p><a href="http://tinypic.com/view.php?pic=2m4pr1l&amp;s=3"><img src="http://i28.tinypic.com/2m4pr1l.jpg" alt="HOPE" /></a><a href="http://tinypic.com/view.php?pic=28kr5l5&amp;s=3"><img src="http://i32.tinypic.com/28kr5l5.jpg" alt="CHANGE" /></a></p>
<p>These print out nicely on an 11x17 sheet ;-) <em>or</em> you can try to <a href="http://store.barackobama.com/Artist_For_Obamas_s/1018.htm" title="Artists for Obama">buy one directly from the site</a>.</p><img src ="http://travis.servebeer.com/blog.net/aggbug/14943.aspx" width = "1" height = "1" /></body></item><item><dc:creator>travis</dc:creator><title>Converting an AVCHD M2TS Video File Into Something Usable (for free!)</title><link>http://travis.servebeer.com/blog.net/archive/2008/03/06/convert_transcode_avchd_codec_mtwots_video_file_canon_HGten_mpfour_avi_free_for_vimeo.aspx</link><pubDate>Thu, 06 Mar 2008 00:42:00 GMT</pubDate><guid>http://travis.servebeer.com/blog.net/archive/2008/03/06/convert_transcode_avchd_codec_mtwots_video_file_canon_HGten_mpfour_avi_free_for_vimeo.aspx</guid><wfw:comment>http://travis.servebeer.com/blog.net/comments/14939.aspx</wfw:comment><comments>http://travis.servebeer.com/blog.net/archive/2008/03/06/convert_transcode_avchd_codec_mtwots_video_file_canon_HGten_mpfour_avi_free_for_vimeo.aspx#Feedback</comments><slash:comments>8</slash:comments><wfw:commentRss>http://travis.servebeer.com/blog.net/comments/commentRss/14939.aspx</wfw:commentRss><trackback:ping>http://travis.servebeer.com/blog.net/services/trackbacks/14939.aspx</trackback:ping><description>&lt;p&gt;The Corel software that came with my new &lt;a href="http://www.flickr.com/photos/diesel_travis/2262254654/"&gt;Canon HG10&lt;/a&gt; made burning a video DVD or an AVCHD DVD a snap. Unfortunately, it came with nothing that would transcode the video files into more commonly supported formats like MP4 (or AVI) so that they can be easily edited and/or uploaded to sites like &lt;a href="http://www.vimeo.com/hd"&gt;Vimeo&lt;/a&gt; (or Youtube or whatever). I tried a bunch of different apps (FFmpeg, Mencoder, Avidemux, MediaCoder all FAIL) but this process worked the best for me.&lt;/p&gt;
&lt;h2&gt;Downloads&lt;/h2&gt;
&lt;p&gt;Three basic things needed to download:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="http://www.codecguide.com/download_mega.htm"&gt;K-Lite Mega Pack&lt;/a&gt; - when installing, make sure that as many of the following plugins are checked as possible (it seems like they're often renamed or removed): AC3, AAC, M2TS, AVCHD, x.264, h264, MP4, M4A, Mpeg4, Haali. You may not need all of the Codecs in this install, but better safe than sorry&lt;/li&gt;
&lt;li&gt;&lt;a href="http://sourceforge.net/project/showfiles.php?group_id=57023&amp;amp;package_id=72557&amp;amp;release_id=366702"&gt;AviSynth&lt;/a&gt; - download and install normally&lt;/li&gt;
&lt;li&gt;&lt;a href="http://sourceforge.net/project/showfiles.php?group_id=156112&amp;amp;package_id=174059&amp;amp;release_id=559463"&gt;MeGui&lt;/a&gt; - after downloading and installing: &lt;ul&gt;
  &lt;li&gt;go directly to Options - Update, after updating, go there again to be sure you got them all&lt;/li&gt;
  &lt;li&gt;I imported all profiles that it gave me the option to, but if you want to make it easy on yourself, you can import the settings that I use: &lt;a href="http://travis.servebeer.com/megui-travis.zip"&gt;megui-travis.zip (3 KB)&lt;/a&gt;, just go File - Import Profiles, and select the zip file with my settings&lt;/li&gt;
  &lt;li&gt;make sure in Options - Settings - Program Paths, that everything is correct, for me most apps were set to a subfolder of the MeGui install, but the AviSynth path had to be set to its own folder&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Config&lt;/h2&gt;
&lt;p&gt;After opening my M2TS video file in MeGui, here's the settings that worked for me:&lt;/p&gt;
&lt;fieldset&gt;
&lt;legend&gt;travis1.avs  - AviSynth Script&lt;/legend&gt;
&lt;pre&gt;DirectShowSource("T:\video\20080211\one.M2TS",fps=29.9700898503294,audio=false)
AssumeTFF().FieldDeinterlace()
LanczosResize(1280,720) # Lanczos (Sharp)&lt;/pre&gt;
&lt;/fieldset&gt;
&lt;p&gt;These might just be specific to the &lt;strong&gt;HG10&lt;/strong&gt;, but its native video needed to be deinterlaced using the &lt;strong&gt;FieldDeinterlace&lt;/strong&gt; and it was set to &lt;strong&gt;top field first&lt;/strong&gt;, whatever that means, you can find those settings out by hitting the &lt;strong&gt;Analyze&lt;/strong&gt; button if you don't have a HG10 (or if you just don't trust me). The frame rate was set to 30/1001(29.97)fps for NTSC, and here I am resizing it from 1440x1080 to &lt;strong&gt;1280x720&lt;/strong&gt; for a Vimeo 16:9 HD upload. You'll probably want to set it to the native resolution if you plan on doing a bunch of crazy editing. Be sure to hit the &lt;strong&gt;Save&lt;/strong&gt; button and rename it to something else.&lt;/p&gt;
&lt;p&gt;Then the other video settings:&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;AviSynth Script (above, or whatever you saved your own settings as)&lt;/dt&gt;
&lt;dd&gt;T:\video\travis1.avs&lt;/dd&gt;
&lt;dt&gt;Video Output&lt;/dt&gt;
&lt;dd&gt;T:\video\20080211\one-v.mp4&lt;/dd&gt;
&lt;dt&gt;Video Profile&lt;/dt&gt;
&lt;dd&gt;travis1&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;The &lt;strong&gt;travis1&lt;/strong&gt; video profile sets the Codec to &lt;strong&gt;x264&lt;/strong&gt;, format to &lt;strong&gt;MP4&lt;/strong&gt;, and bitrate to &lt;strong&gt;5000&lt;/strong&gt;, everything else I left at its defaults. If you make any changes, I'd recommend saving them to new profiles since it makes it so much easier to tweak the settings.&lt;/p&gt;
&lt;p&gt;Here's the audio settings:&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;Audio Input (this is the same file as I selected in the File ? Open command above)&lt;/dt&gt;
&lt;dd&gt;T:\video\20080211\one.M2TS&lt;/dd&gt;
&lt;dt&gt;Audio Output&lt;/dt&gt;
&lt;dd&gt;T:\video\20080211\one-a.mp4&lt;/dd&gt;
&lt;dt&gt;Audio Profile&lt;/dt&gt;
&lt;dd&gt;travis2&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;The Codec that worked for me is &lt;strong&gt;FAAC&lt;/strong&gt; and extension is &lt;strong&gt;MP4-AAC&lt;/strong&gt; with a &lt;strong&gt;128&lt;/strong&gt; bitrate.&lt;/p&gt;
&lt;h2&gt;Go!&lt;/h2&gt;
&lt;p&gt;Now just hit the &lt;strong&gt;AutoEncode&lt;/strong&gt; button. The only things I change on this screen is the filename, the Average bitrate (&lt;strong&gt;5000&lt;/strong&gt; again), and then I just hit &lt;strong&gt;Queue&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Switch over to the Queue tab in MeGui's main window. Click on the &lt;strong&gt;New worker&lt;/strong&gt; button in the lower right. (isn't this hard core? *wink*) Then highlight everything in the queue and send it to the worker you've created. This can be useful if you have a sweet multi-core machine and want to encode a bunch of different files at the same time. When you're ready to go, switch over to the worker window and hit &lt;strong&gt;Start&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Once your new &lt;strong&gt;MP4&lt;/strong&gt; (or AVI or whatever you're exporting to) file is rendered then you can go nuts and edit it with whatever you want or just upload it.&lt;/p&gt;&lt;img src ="http://travis.servebeer.com/blog.net/aggbug/14939.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml"><p>The Corel software that came with my new <a href="http://www.flickr.com/photos/diesel_travis/2262254654/">Canon HG10</a> made burning a video DVD or an AVCHD DVD a snap. Unfortunately, it came with nothing that would transcode the video files into more commonly supported formats like MP4 (or AVI) so that they can be easily edited and/or uploaded to sites like <a href="http://www.vimeo.com/hd">Vimeo</a> (or Youtube or whatever). I tried a bunch of different apps (FFmpeg, Mencoder, Avidemux, MediaCoder all FAIL) but this process worked the best for me.</p>
<h2>Downloads</h2>
<p>Three basic things needed to download:</p>
<ol>
<li><a href="http://www.codecguide.com/download_mega.htm">K-Lite Mega Pack</a> - when installing, make sure that as many of the following plugins are checked as possible (it seems like they're often renamed or removed): AC3, AAC, M2TS, AVCHD, x.264, h264, MP4, M4A, Mpeg4, Haali. You may not need all of the Codecs in this install, but better safe than sorry</li>
<li><a href="http://sourceforge.net/project/showfiles.php?group_id=57023&amp;package_id=72557&amp;release_id=366702">AviSynth</a> - download and install normally</li>
<li><a href="http://sourceforge.net/project/showfiles.php?group_id=156112&amp;package_id=174059&amp;release_id=559463">MeGui</a> - after downloading and installing: <ul>
  <li>go directly to Options - Update, after updating, go there again to be sure you got them all</li>
  <li>I imported all profiles that it gave me the option to, but if you want to make it easy on yourself, you can import the settings that I use: <a href="http://travis.servebeer.com/megui-travis.zip">megui-travis.zip (3 KB)</a>, just go File - Import Profiles, and select the zip file with my settings</li>
  <li>make sure in Options - Settings - Program Paths, that everything is correct, for me most apps were set to a subfolder of the MeGui install, but the AviSynth path had to be set to its own folder</li>
</ul></li>
</ol>
<h2>Config</h2>
<p>After opening my M2TS video file in MeGui, here's the settings that worked for me:</p>
<fieldset>
<legend>travis1.avs  - AviSynth Script</legend>
<pre>DirectShowSource("T:\video\20080211\one.M2TS",fps=29.9700898503294,audio=false)
AssumeTFF().FieldDeinterlace()
LanczosResize(1280,720) # Lanczos (Sharp)</pre>
</fieldset>
<p>These might just be specific to the <strong>HG10</strong>, but its native video needed to be deinterlaced using the <strong>FieldDeinterlace</strong> and it was set to <strong>top field first</strong>, whatever that means, you can find those settings out by hitting the <strong>Analyze</strong> button if you don't have a HG10 (or if you just don't trust me). The frame rate was set to 30/1001(29.97)fps for NTSC, and here I am resizing it from 1440x1080 to <strong>1280x720</strong> for a Vimeo 16:9 HD upload. You'll probably want to set it to the native resolution if you plan on doing a bunch of crazy editing. Be sure to hit the <strong>Save</strong> button and rename it to something else.</p>
<p>Then the other video settings:</p>
<dl>
<dt>AviSynth Script (above, or whatever you saved your own settings as)</dt>
<dd>T:\video\travis1.avs</dd>
<dt>Video Output</dt>
<dd>T:\video\20080211\one-v.mp4</dd>
<dt>Video Profile</dt>
<dd>travis1</dd>
</dl>
<p>The <strong>travis1</strong> video profile sets the Codec to <strong>x264</strong>, format to <strong>MP4</strong>, and bitrate to <strong>5000</strong>, everything else I left at its defaults. If you make any changes, I'd recommend saving them to new profiles since it makes it so much easier to tweak the settings.</p>
<p>Here's the audio settings:</p>
<dl>
<dt>Audio Input (this is the same file as I selected in the File ? Open command above)</dt>
<dd>T:\video\20080211\one.M2TS</dd>
<dt>Audio Output</dt>
<dd>T:\video\20080211\one-a.mp4</dd>
<dt>Audio Profile</dt>
<dd>travis2</dd>
</dl>
<p>The Codec that worked for me is <strong>FAAC</strong> and extension is <strong>MP4-AAC</strong> with a <strong>128</strong> bitrate.</p>
<h2>Go!</h2>
<p>Now just hit the <strong>AutoEncode</strong> button. The only things I change on this screen is the filename, the Average bitrate (<strong>5000</strong> again), and then I just hit <strong>Queue</strong>.</p>
<p>Switch over to the Queue tab in MeGui's main window. Click on the <strong>New worker</strong> button in the lower right. (isn't this hard core? *wink*) Then highlight everything in the queue and send it to the worker you've created. This can be useful if you have a sweet multi-core machine and want to encode a bunch of different files at the same time. When you're ready to go, switch over to the worker window and hit <strong>Start</strong>.</p>
<p>Once your new <strong>MP4</strong> (or AVI or whatever you're exporting to) file is rendered then you can go nuts and edit it with whatever you want or just upload it.</p><img src ="http://travis.servebeer.com/blog.net/aggbug/14939.aspx" width = "1" height = "1" /></body></item><item><dc:creator>travis</dc:creator><title>Can't get enough Travis?</title><link>http://travis.servebeer.com/blog.net/archive/2008/02/05/travis_shared_items_on_google_reader.aspx</link><pubDate>Tue, 05 Feb 2008 20:39:00 GMT</pubDate><guid>http://travis.servebeer.com/blog.net/archive/2008/02/05/travis_shared_items_on_google_reader.aspx</guid><wfw:comment>http://travis.servebeer.com/blog.net/comments/14893.aspx</wfw:comment><comments>http://travis.servebeer.com/blog.net/archive/2008/02/05/travis_shared_items_on_google_reader.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://travis.servebeer.com/blog.net/comments/commentRss/14893.aspx</wfw:commentRss><trackback:ping>http://travis.servebeer.com/blog.net/services/trackbacks/14893.aspx</trackback:ping><description>&lt;p&gt;
...you can always check out &lt;a href="http://www.google.com/reader/shared/02056987982871824493" title="yay Google!"&gt;Travis' shared items on Google Reader&lt;/a&gt; (&lt;a href="http://www.google.com/reader/public/atom/user/02056987982871824493/state/com.google/broadcast" title="of course!"&gt;XML&lt;/a&gt;). Also, &lt;a href="http://twitter.com/travis" title="travis on twitter"&gt;twitter&lt;/a&gt;.
&lt;/p&gt;&lt;img src ="http://travis.servebeer.com/blog.net/aggbug/14893.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml"><p>
...you can always check out <a href="http://www.google.com/reader/shared/02056987982871824493" title="yay Google!">Travis' shared items on Google Reader</a> (<a href="http://www.google.com/reader/public/atom/user/02056987982871824493/state/com.google/broadcast" title="of course!">XML</a>). Also, <a href="http://twitter.com/travis" title="travis on twitter">twitter</a>.
</p><img src ="http://travis.servebeer.com/blog.net/aggbug/14893.aspx" width = "1" height = "1" /></body></item><item><dc:creator>travis</dc:creator><title>E-lec-tri-city!</title><link>http://travis.servebeer.com/blog.net/archive/2008/01/10/electricity_AC_electricity_DC_electricity_si_si.aspx</link><pubDate>Thu, 10 Jan 2008 22:05:00 GMT</pubDate><guid>http://travis.servebeer.com/blog.net/archive/2008/01/10/electricity_AC_electricity_DC_electricity_si_si.aspx</guid><wfw:comment>http://travis.servebeer.com/blog.net/comments/14866.aspx</wfw:comment><comments>http://travis.servebeer.com/blog.net/archive/2008/01/10/electricity_AC_electricity_DC_electricity_si_si.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://travis.servebeer.com/blog.net/comments/commentRss/14866.aspx</wfw:commentRss><trackback:ping>http://travis.servebeer.com/blog.net/services/trackbacks/14866.aspx</trackback:ping><description>&lt;blockquote&gt;
&lt;p&gt;&lt;q&gt;&lt;a href="http://www.newsday.com/news/local/wire/newyork/ny-bc-ny--severeweather-ny0110jan10,0,2738871.story"&gt;E-lec-tri-city!&lt;/a&gt;&lt;br /&gt;
AC!&lt;br /&gt;
E-lec-tri-city!&lt;br /&gt;
DC!&lt;br /&gt;
A wonderful kind of energy, &lt;br /&gt;
that's E-lec-tri-city!&lt;br /&gt;
Si si!&lt;/q&gt;
&lt;/p&gt;
&lt;p&gt;&lt;cite&gt;&lt;a href="http://www.acme.com/jef/singing_science/"&gt;Tom Glazer &amp;amp; Dottie Evans - Energy &amp;amp; Motion Songs - 03 - E-lec-tri-city&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;
&lt;/blockquote&gt;&lt;img src ="http://travis.servebeer.com/blog.net/aggbug/14866.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml"><blockquote>
<p><q><a href="http://www.newsday.com/news/local/wire/newyork/ny-bc-ny--severeweather-ny0110jan10,0,2738871.story">E-lec-tri-city!</a><br />
AC!<br />
E-lec-tri-city!<br />
DC!<br />
A wonderful kind of energy, <br />
that's E-lec-tri-city!<br />
Si si!</q>
</p>
<p><cite><a href="http://www.acme.com/jef/singing_science/">Tom Glazer &amp; Dottie Evans - Energy &amp; Motion Songs - 03 - E-lec-tri-city</a></cite></p>
</blockquote><img src ="http://travis.servebeer.com/blog.net/aggbug/14866.aspx" width = "1" height = "1" /></body></item><item><dc:creator>travis</dc:creator><title>Current Beard Alert Level: Chuck Norris</title><link>http://travis.servebeer.com/blog.net/archive/2007/11/14/current_beard_alert_level_chuck_norris.aspx</link><pubDate>Wed, 14 Nov 2007 21:53:00 GMT</pubDate><guid>http://travis.servebeer.com/blog.net/archive/2007/11/14/current_beard_alert_level_chuck_norris.aspx</guid><wfw:comment>http://travis.servebeer.com/blog.net/comments/14445.aspx</wfw:comment><comments>http://travis.servebeer.com/blog.net/archive/2007/11/14/current_beard_alert_level_chuck_norris.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://travis.servebeer.com/blog.net/comments/commentRss/14445.aspx</wfw:commentRss><trackback:ping>http://travis.servebeer.com/blog.net/services/trackbacks/14445.aspx</trackback:ping><description>&lt;p&gt;&lt;img src="http://farm3.static.flickr.com/2284/2020621097_3ee55befc2_o_d.png" alt="Current Beard Alert Level: Chuck Norris" /&gt;&lt;/p&gt;
&lt;p&gt;Historically, it's never been higher than Chuck Norris, but you never know.&lt;/p&gt;&lt;img src ="http://travis.servebeer.com/blog.net/aggbug/14445.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml"><p><img src="http://farm3.static.flickr.com/2284/2020621097_3ee55befc2_o_d.png" alt="Current Beard Alert Level: Chuck Norris" /></p>
<p>Historically, it's never been higher than Chuck Norris, but you never know.</p><img src ="http://travis.servebeer.com/blog.net/aggbug/14445.aspx" width = "1" height = "1" /></body></item><item><dc:creator>travis</dc:creator><title>Beer is Better than Water</title><link>http://travis.servebeer.com/blog.net/archive/2007/11/04/beer_is_better_than_water.aspx</link><pubDate>Sun, 04 Nov 2007 12:35:00 GMT</pubDate><guid>http://travis.servebeer.com/blog.net/archive/2007/11/04/beer_is_better_than_water.aspx</guid><wfw:comment>http://travis.servebeer.com/blog.net/comments/14441.aspx</wfw:comment><comments>http://travis.servebeer.com/blog.net/archive/2007/11/04/beer_is_better_than_water.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://travis.servebeer.com/blog.net/comments/commentRss/14441.aspx</wfw:commentRss><trackback:ping>http://travis.servebeer.com/blog.net/services/trackbacks/14441.aspx</trackback:ping><description>&lt;p&gt;
At least after exercise it is, according to some crazy Spaniards, as reported by &lt;a href="http://www.foxnews.com/story/0,2933,307518,00.html"&gt;Fox News&lt;/a&gt;. Even though it has a bit of shaky credibility, and a spelling error in the first sentence of the first paragraph, it's enough evidence to convince me.
&lt;/p&gt;&lt;img src ="http://travis.servebeer.com/blog.net/aggbug/14441.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml"><p>
At least after exercise it is, according to some crazy Spaniards, as reported by <a href="http://www.foxnews.com/story/0,2933,307518,00.html">Fox News</a>. Even though it has a bit of shaky credibility, and a spelling error in the first sentence of the first paragraph, it's enough evidence to convince me.
</p><img src ="http://travis.servebeer.com/blog.net/aggbug/14441.aspx" width = "1" height = "1" /></body></item><item><dc:creator>travis</dc:creator><title>I'll bet there were four of them...</title><link>http://travis.servebeer.com/blog.net/archive/2007/10/25/four_monkeys_assault_and_kill_deputy_mayor_of_new_delhi_while_smoking_cigarettes.aspx</link><pubDate>Thu, 25 Oct 2007 12:50:00 GMT</pubDate><guid>http://travis.servebeer.com/blog.net/archive/2007/10/25/four_monkeys_assault_and_kill_deputy_mayor_of_new_delhi_while_smoking_cigarettes.aspx</guid><wfw:comment>http://travis.servebeer.com/blog.net/comments/14438.aspx</wfw:comment><comments>http://travis.servebeer.com/blog.net/archive/2007/10/25/four_monkeys_assault_and_kill_deputy_mayor_of_new_delhi_while_smoking_cigarettes.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://travis.servebeer.com/blog.net/comments/commentRss/14438.aspx</wfw:commentRss><trackback:ping>http://travis.servebeer.com/blog.net/services/trackbacks/14438.aspx</trackback:ping><description>&lt;p&gt;
...and they were probably smoking: &lt;a href="http://freakonomics.blogs.nytimes.com/2007/10/24/monkeys-are-machiavellian-too/"&gt;Wild monkeys assaulted the deputy mayor of New Delhi&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;(note: I've had a long running theory that if four monkeys were to smoke cigarettes they could overtake the planet)&lt;/p&gt;&lt;img src ="http://travis.servebeer.com/blog.net/aggbug/14438.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml"><p>
...and they were probably smoking: <a href="http://freakonomics.blogs.nytimes.com/2007/10/24/monkeys-are-machiavellian-too/">Wild monkeys assaulted the deputy mayor of New Delhi</a>.
</p>
<p>(note: I've had a long running theory that if four monkeys were to smoke cigarettes they could overtake the planet)</p><img src ="http://travis.servebeer.com/blog.net/aggbug/14438.aspx" width = "1" height = "1" /></body></item><item><dc:creator>travis</dc:creator><title>OCD</title><link>http://travis.servebeer.com/blog.net/archive/2007/10/10/ocd.aspx</link><pubDate>Wed, 10 Oct 2007 11:59:00 GMT</pubDate><guid>http://travis.servebeer.com/blog.net/archive/2007/10/10/ocd.aspx</guid><wfw:comment>http://travis.servebeer.com/blog.net/comments/14408.aspx</wfw:comment><comments>http://travis.servebeer.com/blog.net/archive/2007/10/10/ocd.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://travis.servebeer.com/blog.net/comments/commentRss/14408.aspx</wfw:commentRss><trackback:ping>http://travis.servebeer.com/blog.net/services/trackbacks/14408.aspx</trackback:ping><description>&lt;p&gt;&lt;a href="http://www.toothpastefordinner.com/"&gt;&lt;img alt="toothpaste for dinner" src="http://www.toothpastefordinner.com/060104/clean-your-glasses.gif" width="458" height="257" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.toothpastefordinner.com/"&gt;toothpastefordinner.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The comic kinda struck a nerve because aside from the fact that I clean my glasses every morning and if they are ever smudged, I've always liked things that were symmetrical. I think that's part of the reason that I like Allman-style block formatting my code more than standard &lt;a href="http://en.wikipedia.org/wiki/Indent_style"&gt;K&amp;amp;R style&lt;/a&gt;. It just looks balanced for some reason.&lt;/p&gt;
&lt;p&gt;One thing that my family always teases me about is the set of rules that I have when I go out to eat at some place new or some place that I don't go to often. In a party of 6 or less I don't like to order the same thing as anyone else. In larger parties as long as I don't order the same thing as the people next to me or across from me, it's OK. I usually pick out what I'd like to order and 2 back-ups. If I order first and someone else orders the same thing, I won't change my order, I'll just be disappointed.&lt;/p&gt;
&lt;img src ="http://travis.servebeer.com/blog.net/aggbug/14408.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml"><p><a href="http://www.toothpastefordinner.com/"><img alt="toothpaste for dinner" src="http://www.toothpastefordinner.com/060104/clean-your-glasses.gif" width="458" height="257" /></a><br /><a href="http://www.toothpastefordinner.com/">toothpastefordinner.com</a></p>
<p>The comic kinda struck a nerve because aside from the fact that I clean my glasses every morning and if they are ever smudged, I've always liked things that were symmetrical. I think that's part of the reason that I like Allman-style block formatting my code more than standard <a href="http://en.wikipedia.org/wiki/Indent_style">K&amp;R style</a>. It just looks balanced for some reason.</p>
<p>One thing that my family always teases me about is the set of rules that I have when I go out to eat at some place new or some place that I don't go to often. In a party of 6 or less I don't like to order the same thing as anyone else. In larger parties as long as I don't order the same thing as the people next to me or across from me, it's OK. I usually pick out what I'd like to order and 2 back-ups. If I order first and someone else orders the same thing, I won't change my order, I'll just be disappointed.</p>
<img src ="http://travis.servebeer.com/blog.net/aggbug/14408.aspx" width = "1" height = "1" /></body></item><item><dc:creator>travis</dc:creator><title>Michael Jackson, Dead</title><link>http://travis.servebeer.com/blog.net/archive/2007/09/01/michael_jackson_is_dead.aspx</link><pubDate>Sat, 01 Sep 2007 12:48:00 GMT</pubDate><guid>http://travis.servebeer.com/blog.net/archive/2007/09/01/michael_jackson_is_dead.aspx</guid><wfw:comment>http://travis.servebeer.com/blog.net/comments/13937.aspx</wfw:comment><comments>http://travis.servebeer.com/blog.net/archive/2007/09/01/michael_jackson_is_dead.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://travis.servebeer.com/blog.net/comments/commentRss/13937.aspx</wfw:commentRss><trackback:ping>http://travis.servebeer.com/blog.net/services/trackbacks/13937.aspx</trackback:ping><description>&lt;p&gt;A great &lt;a href="http://en.wikipedia.org/wiki/Michael_Jackson_%28writer%29"&gt;beer hero&lt;/a&gt; has &lt;a href="http://www.beerinfo.com/index.php/pages/michaeljackson.html"&gt;fallen&lt;/a&gt;. Here is a quote from wikipedia that I think sums him up perfectly:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;q&gt;Life (See also: Beer style)&lt;/q&gt; - &lt;cite&gt;&lt;a href="http://en.wikipedia.org/wiki/Michael_Jackson_%28writer%29#Life"&gt;Michael Jackson - Life&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;
&lt;/blockquote&gt;&lt;img src ="http://travis.servebeer.com/blog.net/aggbug/13937.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml"><p>A great <a href="http://en.wikipedia.org/wiki/Michael_Jackson_%28writer%29">beer hero</a> has <a href="http://www.beerinfo.com/index.php/pages/michaeljackson.html">fallen</a>. Here is a quote from wikipedia that I think sums him up perfectly:</p>
<blockquote>
<p><q>Life (See also: Beer style)</q> - <cite><a href="http://en.wikipedia.org/wiki/Michael_Jackson_%28writer%29#Life">Michael Jackson - Life</a></cite></p>
</blockquote><img src ="http://travis.servebeer.com/blog.net/aggbug/13937.aspx" width = "1" height = "1" /></body></item><item><dc:creator>travis</dc:creator><title>Killface 2008</title><link>http://travis.servebeer.com/blog.net/archive/2007/08/28/killface_for_president.aspx</link><pubDate>Tue, 28 Aug 2007 00:42:00 GMT</pubDate><guid>http://travis.servebeer.com/blog.net/archive/2007/08/28/killface_for_president.aspx</guid><wfw:comment>http://travis.servebeer.com/blog.net/comments/13871.aspx</wfw:comment><comments>http://travis.servebeer.com/blog.net/archive/2007/08/28/killface_for_president.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://travis.servebeer.com/blog.net/comments/commentRss/13871.aspx</wfw:commentRss><trackback:ping>http://travis.servebeer.com/blog.net/services/trackbacks/13871.aspx</trackback:ping><description>&lt;blockquote&gt;
&lt;img src="http://i.adultswim.com/adultswim/downloads/tools/shows/frisky/wp/8_800.jpg" width="400" height="300" style="float:right;" alt="killface direct mail campaign" /&gt;
&lt;dl&gt;
&lt;dt&gt;Taqu'il&lt;/dt&gt;
  &lt;dd&gt;He's a one-hit-wonder, global warming&lt;/dd&gt;
&lt;dt&gt;Killface&lt;/dt&gt;
  &lt;dd&gt;-cured it!&lt;/dd&gt;
&lt;dt&gt;Taqu'il&lt;/dt&gt;
  &lt;dd&gt;His foreign policy is unrealistic&lt;/dd&gt;
&lt;dt&gt;Killface&lt;/dt&gt;
  &lt;dd&gt;global warming&lt;/dd&gt;
&lt;dt&gt;Taqu'il&lt;/dt&gt;
  &lt;dd&gt;His domestic policy is nonexistent&lt;/dd&gt;
&lt;dt&gt;Killface&lt;/dt&gt;
  &lt;dd&gt;global warming&lt;/dd&gt;
&lt;dt&gt;Taqu'il&lt;/dt&gt;
  &lt;dd&gt;healthcare&lt;/dd&gt;
&lt;dt&gt;Killface&lt;/dt&gt;
  &lt;dd&gt;global warming&lt;/dd&gt;
&lt;dt&gt;Taqu'il&lt;/dt&gt;
  &lt;dd&gt;welfare reform&lt;/dd&gt;
&lt;dt&gt;Killface&lt;/dt&gt;
  &lt;dd&gt;global warming&lt;/dd&gt;
&lt;dt&gt;Taqu'il&lt;/dt&gt;
  &lt;dd&gt;man do you even know what these terms mean?&lt;/dd&gt;
&lt;dt&gt;Killface&lt;/dt&gt;
  &lt;dd&gt;I... know that I cured global warming, so...&lt;/dd&gt;
&lt;dt&gt;Taqu'il&lt;/dt&gt;
  &lt;dd&gt;he's a one-trick-pony&lt;/dd&gt;
&lt;dt&gt;Killface&lt;/dt&gt;
  &lt;dd&gt;well, it's a big pony&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;- &lt;cite&gt;&lt;a href="http://www.adultswim.com/shows/frisky/"&gt;Frisky Dingo&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;
&lt;/blockquote&gt;&lt;img src ="http://travis.servebeer.com/blog.net/aggbug/13871.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml"><blockquote>
<img src="http://i.adultswim.com/adultswim/downloads/tools/shows/frisky/wp/8_800.jpg" width="400" height="300" style="float:right;" alt="killface direct mail campaign" />
<dl>
<dt>Taqu'il</dt>
  <dd>He's a one-hit-wonder, global warming</dd>
<dt>Killface</dt>
  <dd>-cured it!</dd>
<dt>Taqu'il</dt>
  <dd>His foreign policy is unrealistic</dd>
<dt>Killface</dt>
  <dd>global warming</dd>
<dt>Taqu'il</dt>
  <dd>His domestic policy is nonexistent</dd>
<dt>Killface</dt>
  <dd>global warming</dd>
<dt>Taqu'il</dt>
  <dd>healthcare</dd>
<dt>Killface</dt>
  <dd>global warming</dd>
<dt>Taqu'il</dt>
  <dd>welfare reform</dd>
<dt>Killface</dt>
  <dd>global warming</dd>
<dt>Taqu'il</dt>
  <dd>man do you even know what these terms mean?</dd>
<dt>Killface</dt>
  <dd>I... know that I cured global warming, so...</dd>
<dt>Taqu'il</dt>
  <dd>he's a one-trick-pony</dd>
<dt>Killface</dt>
  <dd>well, it's a big pony</dd>
</dl>
<p>- <cite><a href="http://www.adultswim.com/shows/frisky/">Frisky Dingo</a></cite></p>
</blockquote><img src ="http://travis.servebeer.com/blog.net/aggbug/13871.aspx" width = "1" height = "1" /></body></item><item><dc:creator>travis</dc:creator><title>Smells Like Bigfoot's Remote Control</title><link>http://travis.servebeer.com/blog.net/archive/2007/08/14/sausage_finger_remote.aspx</link><pubDate>Tue, 14 Aug 2007 03:45:00 GMT</pubDate><guid>http://travis.servebeer.com/blog.net/archive/2007/08/14/sausage_finger_remote.aspx</guid><wfw:comment>http://travis.servebeer.com/blog.net/comments/13647.aspx</wfw:comment><comments>http://travis.servebeer.com/blog.net/archive/2007/08/14/sausage_finger_remote.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://travis.servebeer.com/blog.net/comments/commentRss/13647.aspx</wfw:commentRss><trackback:ping>http://travis.servebeer.com/blog.net/services/trackbacks/13647.aspx</trackback:ping><description>&lt;p&gt;&lt;a href="http://www.thingsyouneverknew.com/website/store/product_detail.asp?Item_no=21076"&gt;&lt;img src="http://www.thingsyouneverknew.com/website/product_db/images/p19337_1.jpg" alt="Giant Universal Remote" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
How funny would it be to use this on a 13" TV? (from &lt;a href="http://gizmodo.com/gadgets/channel-98347567%2C-damn%21/giant-universal-remote-for-the-sausage+fingered-288676.php"&gt;Gizmodo&lt;/a&gt;)
&lt;/p&gt;&lt;img src ="http://travis.servebeer.com/blog.net/aggbug/13647.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml"><p><a href="http://www.thingsyouneverknew.com/website/store/product_detail.asp?Item_no=21076"><img src="http://www.thingsyouneverknew.com/website/product_db/images/p19337_1.jpg" alt="Giant Universal Remote" /></a></p>
<p>
How funny would it be to use this on a 13" TV? (from <a href="http://gizmodo.com/gadgets/channel-98347567%2C-damn%21/giant-universal-remote-for-the-sausage+fingered-288676.php">Gizmodo</a>)
</p><img src ="http://travis.servebeer.com/blog.net/aggbug/13647.aspx" width = "1" height = "1" /></body></item><item><dc:creator>travis</dc:creator><title>jQuery Saved The Day 12 Times On A Project At Work</title><link>http://travis.servebeer.com/blog.net/archive/2007/07/20/jquery_saves_the_day_twelve_times.aspx</link><pubDate>Fri, 20 Jul 2007 15:50:00 GMT</pubDate><guid>http://travis.servebeer.com/blog.net/archive/2007/07/20/jquery_saves_the_day_twelve_times.aspx</guid><wfw:comment>http://travis.servebeer.com/blog.net/comments/13464.aspx</wfw:comment><comments>http://travis.servebeer.com/blog.net/archive/2007/07/20/jquery_saves_the_day_twelve_times.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://travis.servebeer.com/blog.net/comments/commentRss/13464.aspx</wfw:commentRss><trackback:ping>http://travis.servebeer.com/blog.net/services/trackbacks/13464.aspx</trackback:ping><description>&lt;p&gt;We've recently delivered a brand guidelines web site for CompanyX. I was documenting some of the useful JavaScript snippets that were used on our company's wiki today, when I realized just how many times &lt;a href="http://jquery.com/"&gt;jQuery&lt;/a&gt; "saved the day" on this project. Here they are in no particular order:&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;#1 In CSS, &lt;code&gt;:hover&lt;/code&gt; doesn't work in IE6 on a &lt;code&gt;dt&lt;/code&gt;, so we just added a custom function:&lt;/dt&gt;
&lt;dd&gt;&lt;pre&gt;$("#relatedfaqs dt").hover(function()
  {
    $(this).css("text-decoration", "underline");
  },
  function ()
  {
    $(this).css("text-decoration", "none");
  }
);&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;#2 The site's primary nav's drop-down menus had z-index issues, so I just moved it to be last in the HTML:&lt;/dt&gt;
&lt;dd&gt;&lt;pre&gt;$("#primary-nav").appendTo("#footer");&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;#3 Certain tool links needed to open in new appropriately sized windows globally across the site, regardless of where the links appeared:&lt;/dt&gt;
&lt;dd&gt;&lt;pre&gt;$("a[@href$='chooselogo/default.aspx']").click(function()
  {
    window.open(this.href, null, 'width=840,height=540,resizable=yes,scrollbars=yes,status=yes');
    return false;
  }
);
$("a[@href$='createad/default.aspx']").click(function()
  {
    window.open(this.href, null, 'width=840,height=655,resizable=yes,scrollbars=yes,status=yes');
    return false;
  }
);&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;#4 The site was going live in 10 minutes and we just realized that the "Email This Page" functionality has never been programmed:&lt;/dt&gt;
&lt;dd&gt;&lt;pre&gt;$("a[@title='Email Page']").attr("href","mailto:?subject=" + escape("Join the Brand network") + "&amp;amp;body=" + escape(document.title + ":\n\nhttp://www.companyx.com" + window.location.pathname + window.location.search));&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;#5 The enter key needed to submit on all search fields, regardless of where the .Net search form was nested:&lt;/dt&gt;
&lt;dd&gt;&lt;pre&gt; $("input[@id$=txtSearch]").keydown(function(e)
  {
    if (e.keyCode == 10 || e.keyCode == 13)
    {
      $("input[@id$=butSearch]").click();
      return false;
    }
  }
);&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;#6 IE had difficulties printing multi-column layout pages without cropping them, we needed to break before the columns and &lt;code&gt;page-break-before&lt;/code&gt; CSS wasn't working correctly:&lt;/dt&gt;
&lt;dd&gt;&lt;pre&gt;$("#middle #content div.column").prev("p").css("page-break-after", "always");&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;#7 We needed easy way for global "close window" buttons:&lt;/dt&gt;
&lt;dd&gt;&lt;pre&gt; $("a.close, input.close, button.close").click(function()
  {
    window.close();
    return false;
  }
);&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;#8 I needed to fix a &lt;/dt&gt;&lt;del&gt;bug&lt;/del&gt;FEATURE in .Net repeaters that contain radio buttons:
&lt;dd&gt;&lt;pre&gt; $("fieldset.repeater input:radio").click(function()
  {
    $(this).parents("fieldset.repeater").find("input:radio[@checked]").attr("checked", "").end();
    this.checked = "checked";
  }
);&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;#9 Safari 2.x (2.xx is actually build 4xx) had issues with a DHTML photo gallery on home page:&lt;/dt&gt;
&lt;dd&gt;&lt;pre&gt;if ($.browser.safari &amp;amp;&amp;amp; (navigator.appVersion.indexOf("Safari/4") &amp;gt;= 0))
{
  $("#scroll-bar").css("margin-top", "-335px");
}&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;#10 Captions in the DHTML photo gallery were supposed to be the same width as the images, even though each image had a different width:&lt;/dt&gt;
&lt;dd&gt;&lt;pre&gt;$("img.galleryImage").load(function()
  {
    $("p.galleryCaption").css("width", this.offsetWidth + "px");
  }
);&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;#11 We needed to set class for certain black and white images in one of the tools&lt;/dt&gt;
&lt;dd&gt;&lt;pre&gt;if ($("#review-container img:eq(0)").attr("src").match(/\/bw\//))
{
  $("#review-container").append("&amp;lt;div class='bw'&amp;gt;&amp;lt;/div&amp;gt;");
  $("#review-container img").css("margin-left", "1px");
}&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;#12 We were also contracted out to fix some bugs on their intranet. A certain page had serious JS issues in non-IE browsers.&lt;/dt&gt;
&lt;dd&gt;Using jQuery the 518 original lines of code were reduced to 370, the file size was reduced by 4KB and the new code worked across all browsers.&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;
#4 was my favorite since it literally saved my day, plus it just goes to show how little that stupid feature is used. All in all the &lt;code&gt;$()&lt;/code&gt; function was used &lt;strong&gt;216&lt;/strong&gt; times in the CompanyX brand guidelines project. I think that the &lt;a href="http://www.visualjquery.com/"&gt;Visual jQuery&lt;/a&gt; guide and the &lt;a href="http://jquery.com/docs/Base/Expression/CSS/"&gt;CSS/XPath Selector reference&lt;/a&gt; were the most useful to me during this project. Thanks jQuery!
&lt;/p&gt;&lt;img src ="http://travis.servebeer.com/blog.net/aggbug/13464.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml"><p>We've recently delivered a brand guidelines web site for CompanyX. I was documenting some of the useful JavaScript snippets that were used on our company's wiki today, when I realized just how many times <a href="http://jquery.com/">jQuery</a> "saved the day" on this project. Here they are in no particular order:</p>
<dl>
<dt>#1 In CSS, <code>:hover</code> doesn't work in IE6 on a <code>dt</code>, so we just added a custom function:</dt>
<dd><pre>$("#relatedfaqs dt").hover(function()
  {
    $(this).css("text-decoration", "underline");
  },
  function ()
  {
    $(this).css("text-decoration", "none");
  }
);</pre></dd>
<dt>#2 The site's primary nav's drop-down menus had z-index issues, so I just moved it to be last in the HTML:</dt>
<dd><pre>$("#primary-nav").appendTo("#footer");</pre></dd>
<dt>#3 Certain tool links needed to open in new appropriately sized windows globally across the site, regardless of where the links appeared:</dt>
<dd><pre>$("a[@href$='chooselogo/default.aspx']").click(function()
  {
    window.open(this.href, null, 'width=840,height=540,resizable=yes,scrollbars=yes,status=yes');
    return false;
  }
);
$("a[@href$='createad/default.aspx']").click(function()
  {
    window.open(this.href, null, 'width=840,height=655,resizable=yes,scrollbars=yes,status=yes');
    return false;
  }
);</pre></dd>
<dt>#4 The site was going live in 10 minutes and we just realized that the "Email This Page" functionality has never been programmed:</dt>
<dd><pre>$("a[@title='Email Page']").attr("href","mailto:?subject=" + escape("Join the Brand network") + "&amp;body=" + escape(document.title + ":\n\nhttp://www.companyx.com" + window.location.pathname + window.location.search));</pre></dd>
<dt>#5 The enter key needed to submit on all search fields, regardless of where the .Net search form was nested:</dt>
<dd><pre> $("input[@id$=txtSearch]").keydown(function(e)
  {
    if (e.keyCode == 10 || e.keyCode == 13)
    {
      $("input[@id$=butSearch]").click();
      return false;
    }
  }
);</pre></dd>
<dt>#6 IE had difficulties printing multi-column layout pages without cropping them, we needed to break before the columns and <code>page-break-before</code> CSS wasn't working correctly:</dt>
<dd><pre>$("#middle #content div.column").prev("p").css("page-break-after", "always");</pre></dd>
<dt>#7 We needed easy way for global "close window" buttons:</dt>
<dd><pre> $("a.close, input.close, button.close").click(function()
  {
    window.close();
    return false;
  }
);</pre></dd>
<dt>#8 I needed to fix a </dt><del>bug</del>FEATURE in .Net repeaters that contain radio buttons:
<dd><pre> $("fieldset.repeater input:radio").click(function()
  {
    $(this).parents("fieldset.repeater").find("input:radio[@checked]").attr("checked", "").end();
    this.checked = "checked";
  }
);</pre></dd>
<dt>#9 Safari 2.x (2.xx is actually build 4xx) had issues with a DHTML photo gallery on home page:</dt>
<dd><pre>if ($.browser.safari &amp;&amp; (navigator.appVersion.indexOf("Safari/4") &gt;= 0))
{
  $("#scroll-bar").css("margin-top", "-335px");
}</pre></dd>
<dt>#10 Captions in the DHTML photo gallery were supposed to be the same width as the images, even though each image had a different width:</dt>
<dd><pre>$("img.galleryImage").load(function()
  {
    $("p.galleryCaption").css("width", this.offsetWidth + "px");
  }
);</pre></dd>
<dt>#11 We needed to set class for certain black and white images in one of the tools</dt>
<dd><pre>if ($("#review-container img:eq(0)").attr("src").match(/\/bw\//))
{
  $("#review-container").append("&lt;div class='bw'&gt;&lt;/div&gt;");
  $("#review-container img").css("margin-left", "1px");
}</pre></dd>
<dt>#12 We were also contracted out to fix some bugs on their intranet. A certain page had serious JS issues in non-IE browsers.</dt>
<dd>Using jQuery the 518 original lines of code were reduced to 370, the file size was reduced by 4KB and the new code worked across all browsers.</dd>
</dl>
<p>
#4 was my favorite since it literally saved my day, plus it just goes to show how little that stupid feature is used. All in all the <code>$()</code> function was used <strong>216</strong> times in the CompanyX brand guidelines project. I think that the <a href="http://www.visualjquery.com/">Visual jQuery</a> guide and the <a href="http://jquery.com/docs/Base/Expression/CSS/">CSS/XPath Selector reference</a> were the most useful to me during this project. Thanks jQuery!
</p><img src ="http://travis.servebeer.com/blog.net/aggbug/13464.aspx" width = "1" height = "1" /></body></item><item><dc:creator>travis</dc:creator><title>Vote</title><link>http://travis.servebeer.com/blog.net/archive/2007/07/20/vote_for_president.aspx</link><pubDate>Fri, 20 Jul 2007 00:01:00 GMT</pubDate><guid>http://travis.servebeer.com/blog.net/archive/2007/07/20/vote_for_president.aspx</guid><wfw:comment>http://travis.servebeer.com/blog.net/comments/13458.aspx</wfw:comment><comments>http://travis.servebeer.com/blog.net/archive/2007/07/20/vote_for_president.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://travis.servebeer.com/blog.net/comments/commentRss/13458.aspx</wfw:commentRss><trackback:ping>http://travis.servebeer.com/blog.net/services/trackbacks/13458.aspx</trackback:ping><description>&lt;p&gt;In the right sidebar of my blog I've placed a little &lt;a href="http://elections.newsvine.com"&gt;NewsVine&lt;/a&gt; app that'll track presidential votes across various sites. You can vote once a month. As of right now Obama's winning.&lt;/p&gt;&lt;img src ="http://travis.servebeer.com/blog.net/aggbug/13458.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml"><p>In the right sidebar of my blog I've placed a little <a href="http://elections.newsvine.com">NewsVine</a> app that'll track presidential votes across various sites. You can vote once a month. As of right now Obama's winning.</p><img src ="http://travis.servebeer.com/blog.net/aggbug/13458.aspx" width = "1" height = "1" /></body></item></channel></rss>