<?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>Server Goon &#187; Technology</title>
	<atom:link href="http://blog.servergoon.com/category/eh-does-this-really-need-explaining/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.servergoon.com</link>
	<description>a cubicle without a view</description>
	<lastBuildDate>Fri, 04 Feb 2011 15:10:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>CSS Genius at work.</title>
		<link>http://blog.servergoon.com/2010/11/24/css-genius-at-work/</link>
		<comments>http://blog.servergoon.com/2010/11/24/css-genius-at-work/#comments</comments>
		<pubDate>Wed, 24 Nov 2010 15:34:54 +0000</pubDate>
		<dc:creator>server.goon</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://blog.servergoon.com/?p=303</guid>
		<description><![CDATA[And no, it&#8217;s not me.  Someone sent me a link to Matthew James Taylor&#8217;s &#8220;Equal Height Columns with Cross Browser CSS&#8221; post.  It&#8217;s a really smooth way to get equal height columns with different backgrounds working smoothly. Since reading this &#8230; <a href="http://blog.servergoon.com/2010/11/24/css-genius-at-work/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>And no, it&#8217;s not me.  Someone sent me a link to Matthew James Taylor&#8217;s &#8220;<a href="http://matthewjamestaylor.com/blog/equal-height-columns-cross-browser-css-no-hacks" target="_blank">Equal Height Columns with Cross Browser CSS</a>&#8221; post.  It&#8217;s a really smooth way to get equal height columns with different backgrounds working smoothly.</p>
<p>Since reading this first post, I&#8217;ve spent several hours reading through what he has on <a href="http://matthewjamestaylor.com/" target="_blank">his site</a>; some if it&#8217;s quite ingenious and I must say I&#8217;m quite jealous that I haven&#8217;t come up with some of the ideas myself.  And the best part of it all, it&#8217;s all there for download and use&#8230; not that an intelligent person could scrape the CSS and HTML to replicate what he&#8217;s doing anyhow, but it&#8217;s nice to know he&#8217;s willing to share.  So I encourage to go off and learn, be inspired.  I know I&#8217;m inspired and looking at doing a redesign based off of what I&#8217;ve read so far.  My hat&#8217;s off to you <a href="http://matthewjamestaylor.com/" target="_blank">Matthew James Taylor</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.servergoon.com/2010/11/24/css-genius-at-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ah, the power of JavaScript</title>
		<link>http://blog.servergoon.com/2010/10/26/ah-the-power-of-javascript/</link>
		<comments>http://blog.servergoon.com/2010/10/26/ah-the-power-of-javascript/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 20:55:25 +0000</pubDate>
		<dc:creator>server.goon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[misc]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://blog.servergoon.com/?p=297</guid>
		<description><![CDATA[I was asked about creating a javascript that would place an image on a page based on the day of the week. Easy enough right? Well, it took some tinkering, but here it is (http://www.servergoon.com/samples/dow/). For this demonstration I created &#8230; <a href="http://blog.servergoon.com/2010/10/26/ah-the-power-of-javascript/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was asked about creating a javascript that would place an image on a  page based on the day of the week.  Easy enough right?  Well, it took  some tinkering, but <a href="http://www.servergoon.com/samples/dow/" target="_blank">here it is (http://www.servergoon.com/samples/dow/)</a>.  For this demonstration I created eight  images, each with the number 0 &#8211; 7. However, since the javascript <a href="http://www.w3schools.com/js/js_obj_date.asp">Date Object</a> returns 0 &#8211; 6, you will never see the 7.</p>
<p>The code for this is  relatively simple, as you can see if you look at the source for <a href="http://www.servergoon.com/samples/dow/" target="_blank">this  file</a>.  In the head I&#8217;ve preloaded the image, which, from what I can tell  is necessary.  Second I&#8217;ve got all of the files I want and named them  the same, with the exception of the digit indicating the Day of the  Week.  Hence the DOW (stands for Day Of Week) for the name followed by a  digit followed by .jpg.  This is so I don&#8217;t have to write out 8 (or 31  if you were ambitious enough to do this for each Day Of the Month)  individual lines (actually it would be more like 16 lines).  It also  makes the code to replace the image much easier and shorter to write as  well.</p>
<p>The JavaScript in the head of the document looks like:</p>
<pre id="line1">&lt;SCRIPT language="JavaScript"&gt;
&lt;!--
if (document.images)
{
	document.pics = new Array();
	for (j=0; j&lt;8; j++) {
		document.pics[j] = new Image;
		var imageName = "DOW" + j + ".jpg";
		document.pics[j].src = imageName;
	}
}

//--&gt;
&lt;/SCRIPT&gt;</pre>
<p>The code for the image is below, notice the ID tag, this is VERY important.  Notice that there is no source file, so no image is loaded by default</p>
<pre id="line29">&lt;img id="DayOfWeek" src="" height="50px" width="50px" border="1"/&gt;
&lt;img id="DayOfWeek2" src="" height="50px" width="50px" border="1"/&gt;</pre>
<p>And finally, the code to replace the images in the HTML code.</p>
<pre id="line33">&lt;script type="text/javascript"&gt;
   var myDate = new Date();
   var DOW = myDate.getDay();
   document.getElementById('DayOfWeek').src = document.pics[DOW].src;
   document.getElementById('DayOfWeek2').src = document.pics[DOW+1].src;
&lt;/script&gt;</pre>
<p>One more thing to note is that the JavaScript that changes the image  needs to come AFTER the image in HTML code.  If not, it doesn&#8217;t know  about the image and can&#8217;t replace it.  The other option would be to put  the code in the head of the HTML file and trigger it with a function  call.</p>
<p>I hope you found this useful, I know I can think of uses for this.  As always your mileage may vary.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.servergoon.com/2010/10/26/ah-the-power-of-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rollover dynamic text with CSS</title>
		<link>http://blog.servergoon.com/2010/09/10/cssrollover/</link>
		<comments>http://blog.servergoon.com/2010/09/10/cssrollover/#comments</comments>
		<pubDate>Fri, 10 Sep 2010 20:34:13 +0000</pubDate>
		<dc:creator>server.goon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[misc]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[rollover text]]></category>

		<guid isPermaLink="false">http://blog.servergoon.com/?p=285</guid>
		<description><![CDATA[Ok, technically it&#8217;s not dynamic because you have to enter the text in the html so it&#8217;s not &#8220;created on the fly&#8221;.  This is still a cool feature if you wanted a list of terms and have the definition pop &#8230; <a href="http://blog.servergoon.com/2010/09/10/cssrollover/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ok, technically it&#8217;s not dynamic because you have to enter the text in the html so it&#8217;s not &#8220;created on the fly&#8221;.  This is still a cool feature if you wanted a list of terms and have the definition pop up on the page as the visitor rolls over the definition.  And the best part of this it&#8217;s pure CSS, no javascript.  Once again, this is dynamic so it scales to the size of the page and it has been tested and works on IE, Chrome, Safari, and Firefox on a Win7 box.  Your mileage may vary.</p>
<p>Without further ado, here&#8217;s the HTML and CSS as well as a <a href="http://www.servergoon.com/samples/rollover.html" target="_blank">link to a working example.</a><br />
<span id="more-285"></span></p>
<p>The HTML:</p>
<pre>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Rollover sample&lt;/title&gt;
&lt;link href="rollover.css" rel="stylesheet" type="text/css" /&gt;
&lt;/head&gt;

&lt;body &gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt; item1 &lt;div style="display:none"&gt; this is the text associated with item1&lt;/div&gt;&lt;/li&gt;
&lt;li&gt; item2 &lt;div style="display:none"&gt; this is the text associated with item2&lt;/div&gt;&lt;/li&gt;
&lt;li&gt; item3 &lt;div style="display:none"&gt; this is the text associated with item3&lt;/div&gt;&lt;/li&gt;
&lt;li&gt; item4 &lt;div style="display:none"&gt; this is the text associated with item4&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>And the CSS:</p>
<pre>@charset "utf-8";
/* CSS Document */
div.containter {
 position:relative;
 width:50%;
 overflow:hidden;
}

/*this is just to mark out where the rollover text will show up*/
div.textbox{
 background-color:#0f0;
 width:50%;
 position:absolute;
 right:0px;
 top: 0px;
 padding-bottom: 999em;
 margin-bottom: -999em;
 border-left: solid 1px #000;
}

li:hover div {
 display:block !important;
 position: absolute;
 left:50%;
 top: 0px;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.servergoon.com/2010/09/10/cssrollover/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pure CSS two column page</title>
		<link>http://blog.servergoon.com/2010/09/08/pure-css-two-column-page/</link>
		<comments>http://blog.servergoon.com/2010/09/08/pure-css-two-column-page/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 19:33:45 +0000</pubDate>
		<dc:creator>server.goon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[misc]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[two column page]]></category>

		<guid isPermaLink="false">http://blog.servergoon.com/?p=280</guid>
		<description><![CDATA[I&#8217;ve been working on a web page that I want a left hand menu column on with the content being on the right.  Pretty easy right?  Well, yeah, unless you want a background color in the left hand column and &#8230; <a href="http://blog.servergoon.com/2010/09/08/pure-css-two-column-page/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on a web page that I want a left hand menu column on with the content being on the right.  Pretty easy right?  Well, yeah, unless you want a background color in the left hand column and you want it to extend all the way down to the footer, especially if the right hand column is longer than the left.  Well I did some web searching and what I came up with was the suggestion of putting an image as a background to create a virtual image&#8230; which is great if you want a fixed width column.  So after doing some looking I found a way to do it with CSS.  Now I by no means claim to be the originator, but I didn&#8217;t find this solution by searching google.</p>
<p>The results of the code below can be seen <a href="http://www.servergoon.com/samples/2column.html" target="_blank">here (http://www.servergoon.com/samples/2column.html)</a> , and yes, I purposefully used Red Green and Blue just so the concept would stand out a bit more.  The CSS attached to the html page is minimal to achieve what I wanted, please feel free to take it and use it as you may.  I&#8217;ve tested this on Chrome, Safari, Opera, Firefox and IE on a Win7 machine.  As always, your mileage may vary.</p>
<p>The code for the web page is :</p>
<pre>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;link href="<a href="view-source:http://www.servergoon.com/samples/style.css">style.css</a>" rel="stylesheet" type="text/css" /&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div class="header"&gt; header &lt;/div&gt;
&lt;div class="content"&gt;
  &lt;div class="contentLeft"&gt;
&lt;ul&gt;&lt;li&gt;item1&lt;/li&gt;&lt;li&gt;item2&lt;/li&gt;&lt;li&gt;item3&lt;/li&gt;&lt;/ul&gt;
 &lt;/div&gt;
  &lt;div&gt;
  &lt;p&gt;Est purus in enim amet. In placerat integer in, platea porttitor, pulvinar elit aliquam nunc est, dapibus a aliquam odio amet. Elementum, urna magna sit? Placerat, sociis tristique ac hac! Pid aliquam aenean ac augue? In turpis aliquet amet, nunc massa etiam sit pid dapibus, lundium lectus augue. Sed a arcu et? Enim tortor sagittis? Augue? Sit scelerisque, duis eu, facilisis phasellus nisi elit porttitor, nascetur duis et augue purus tincidunt etiam. Dictumst sit in pulvinar phasellus, turpis, montes est, a ultrices nec tortor, rhoncus quis magnis? Nunc enim ut turpis pulvinar, duis dis non, elementum, augue dictumst in magna dis odio non et enim? Etiam! In purus parturient ridiculus. Nisi integer? Dis pulvinar proin turpis sed a a urna.&lt;/p&gt;

&lt;p&gt;Porttitor dapibus purus? Aenean etiam? Turpis urna porta hac? Nunc amet, scelerisque? Vel in, ac? Habitasse pulvinar, natoque diam, ultricies nec scelerisque aliquam, pulvinar turpis, non! Tincidunt. Platea elit, mauris ac porta adipiscing! Nisi dignissim, proin auctor risus nec dapibus porttitor velit cras! Ridiculus? Odio integer lorem diam porttitor odio platea et tortor elementum! A, aliquam cras tincidunt in? Tincidunt duis, ut dapibus lectus et scelerisque, parturient urna, a massa ac, nunc cras turpis, aliquam, mus porttitor? Magna parturient phasellus in ac, est natoque tortor non. Adipiscing! Turpis ultricies, placerat turpis cum turpis adipiscing turpis. Elit turpis in integer? Pulvinar, est, odio aliquam tincidunt! Adipiscing dignissim, dignissim? Magnis auctor, a porta, lorem in mattis! Scelerisque phasellus rhoncus! Lundium tempor.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt; footer &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The css for the page is :</p>
<pre>@charset "utf-8";
/* CSS Document */

.header {
	background-color:#00F;
	width:100%;
}
.content {
	width:100%;
	background-color:#FFF;
	clear:both;
	overflow:hidden;
}

.contentLeft{
	width:25%;
	margin-bottom:-999px;
	padding-bottom:999px;
	border-right:solid #000 1px;
	float:left;
	background-color:#0F0;

}
.contentRight{
	width:74%;
	float:right;
}
.footer{
	background-color:#F00;
	width:100%;
}</pre>
<p>I hope you find this useful.  It seem the key is the margin-bottom and padding-bottom in conjunction with the overflow:hidden of the containing folder.</p>
<p>&#8211;Server Goon</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.servergoon.com/2010/09/08/pure-css-two-column-page/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Press 1 for 1337, press 2 for English</title>
		<link>http://blog.servergoon.com/2010/05/03/press-1-for-1337-press-2-for-english/</link>
		<comments>http://blog.servergoon.com/2010/05/03/press-1-for-1337-press-2-for-english/#comments</comments>
		<pubDate>Mon, 03 May 2010 19:08:56 +0000</pubDate>
		<dc:creator>server.goon</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://blog.servergoon.com/?p=273</guid>
		<description><![CDATA[Spelling doesn't matter, as long as the other person gets what you're talking about. <a href="http://blog.servergoon.com/2010/05/03/press-1-for-1337-press-2-for-english/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Kids these days.  Spelling doesn&#8217;t matter, as long as the other person gets what you&#8217;re talking about.  If you don&#8217;t believe me, just ask my 17 year old son, he&#8217;ll tell you all about it.</p>
<p>Admittedly, I don&#8217;t think kids should be graded harshly for grammatical or spelling errors on math papers, computer program comments (I actually had a teacher that took off points for not having complete sentences in the comments for a program), physics, art, etc.  Now all bets are off when it comes to English class, because that&#8217;s what it is all about.</p>
<p>However, if you publish a game, write a paper about your physics experiments or create anything that is made for general population I would suggest making sure your grammar is correct in the final product.  Trust me, it&#8217;s tough for me and I&#8217;m just waiting for someone to point out a mistake on this post.</p>
<p>Prime examples of when it is important to use correct grammar:</p>
<ol>
<li>When you are trying to make a point or trying to sound intelligent.  See<br />
<a href="http://www.facebook.com/group.php?gid=274685879861" target="_blank">http://www.facebook.com/group.php?gid=274685879861</a> <a href="http://www.facebook.com/group.php?gid=260098416437&amp;ref=search&amp;sid=12310810.537430636..1" target="_blank">http://www.facebook.com/group.php?gid=260098416437 </a><br />
and the list goes on I&#8217;m sure.  In fact I had great fun pointing that error out to my son when he joined the group &#8220;Parents call it talking back, we call it telling them there wrong&#8221;.</li>
<li>When you are trying to sell something.  This is what originally prompted this post and I want to make it clear I have *nothing* against these guys or their site (notice I used the correct version there).  I was reading about <a href="http://bluecollarbobbers.com/web/" target="_blank">Blue Collar Bobbers</a> when I ran across this quote. &#8220;and ride into the sunset with <strong>there</strong> comrades&#8221;.  Now for some reason, this just glares at me.  Maybe it because I&#8217;ve struggled with it myself so I&#8217;m hypersensitive to the use of &#8220;there, they&#8217;re and their&#8221;.  Does that mean I won&#8217;t buy from them? No, but it does give a certain impression of the type of people running the store.  I&#8217;m also going to make the assumption that, based off of the design, they didn&#8217;t do the work themselves.  Chances are someone just wasn&#8217;t fully awake and didn&#8217;t catch the typo, let&#8217;s hope so because I&#8217;d hate to be paying someone for a finished product that wasn&#8217;t correct.</li>
</ol>
<p>So, having said all that, I would suggest a remedial course.  If you don&#8217;t want to do that, how about spending a little time to get it straight in your head in whatever manner works best for you.  There&#8217;s even web sites out there to help.  I <a href="http://www.google.com/search?q=there+their+they're" target="_blank">googled</a> &#8220;there their they&#8217;re&#8221; and the top hit was a <a href="http://www.wikihow.com/Use-There,-Their-and-They%27re" target="_blank">wikihow</a> page, how convenient!</p>
<p>Up next is a rant about &#8220;you&#8217;re, your and yore&#8221;&#8230; no, not really, but I&#8217;m sure there are plenty of examples of that as well.</p>
<p>&#8211;servergoon</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.servergoon.com/2010/05/03/press-1-for-1337-press-2-for-english/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

