<?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>ShinyLight Development</title>
	<atom:link href="http://www.shinylight.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shinylight.com</link>
	<description>Web Development and Other Goodness in the World of a Software Engineer.</description>
	<lastBuildDate>Wed, 24 Feb 2010 04:57:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Forcing Firefox to Show Image After Disabling Showing Images</title>
		<link>http://www.shinylight.com/2010/02/20/forcing-firefox-to-show-image-after-disabling-showing-images/</link>
		<comments>http://www.shinylight.com/2010/02/20/forcing-firefox-to-show-image-after-disabling-showing-images/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 06:18:53 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.shinylight.com/?p=881</guid>
		<description><![CDATA[I guess I didn&#8217;t know that if you disable Firefox to show images, images still show if you use a Data URI string, base-64 encoded. For example, let&#8217;s take a look at the following HTML:

&#60;html&#62;
&#60;head&#62;
&#60;title&#62;Test&#60;/title&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;img src=&#34;data:image/gif;base64,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&#34; /&#62;
&#60;img src=&#34;TrayItems.gif&#34; /&#62;
&#60;img src=&#34;http://www.shinylight.com/wp-content/themes/Wiking/images/button_rss.png&#34; /&#62;
&#60;/body&#62;
&#60;/html&#62;

Which outputs: 

You can see for yourself here, which is the HTML page. 
Now, let&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I guess I didn&#8217;t know that if you disable Firefox to show images, images still show if you use a Data URI string, base-64 encoded. For example, let&#8217;s take a look at the following HTML:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span>&gt;</span>Test<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;data:image/gif;base64,R0lGODlhuwAsAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgMHAv8DcwKrK7wAAAAAA/wRAfQJHjQRR</span>
<span style="color: #009900;">owqRBgD/AAI2bRNnvw5j0BAQEBJWnBZoJhSGDhwdHBk6XhdLfiFUHhpcmB9xLxqmDidDXyVkHSMl</span>
<span style="color: #009900;">JidtqSty0it6JCyVFiyiFzEyMi6wGDk5OUFQazdowDttmjCAPzeXHkJCQUdITENyzUCIN0x9qEuE</span>
<span style="color: #009900;">tkiN3keTUk6Zwk2rNEq1J1BRUlVcUlJbblV1s1ehYFxcXV6HqFiAs2KRsljBLl1bWWVlZGefzl6a</span>
<span style="color: #009900;">4mtrinGX3WiycXC/D2jNNm9vbnaQyXaixYBhN3l8eXp6mYOOlXeq5oW9PX+41XjAgH7aEH3iSoQA</span>
<span style="color: #009900;">AIFxWISEAIaw54S8N4bMjI+EXYmIho+TqYulvIen2IytvZSx2pG764jsEZNoK5KQjZSYm5SUnJWU</span>
<span style="color: #009900;">1pDLPpvmOpbamppPM5mTfZqZkpycmZ2c15qylaHOY6abVqGfvKS7zaHkpKwIDa8OE66uqqqq566y</span>
<span style="color: #009900;">xq3Hg63G2a3ur7g1ObRKGbVWHLZ+MbR9UbS2uLTL37TafrkRFbopKbpmI726tLq9vbq5zcLB8L7R</span>
<span style="color: #009900;">m7r6vcIPGsUYIsk3IsY8QshKMcVNUcdqasZ7SsKAMryQXMiUPMa9zsrMzMDN1sulR86qpcy4pc7D</span>
<span style="color: #009900;">Ss3HwNDMxdIVJNdEJtZYPdhrStl0edSnfNHAttTQVtXVatPQyNbX2uMWC9saK9w0E+FMWNpZY91s</span>
<span style="color: #009900;">st1+LNx7VtyzcdqzydzXWeUBAeAnOOtiNudkxuhryOxzC+iBieaMzOmOHN+MWuamque0tuTl5fAP</span>
<span style="color: #009900;">CewuwOlFFe5IyeRWBPNY0Ox90PClheyqHvDGg+nQtO/v7/cAAPhSGPdSGP9sGviPavCVN+yjY/qz</span>
<span style="color: #009900;">IfWxWPK9bfXAofPELfLLSPTUMvPR0/neQfrcZPrmdPnqyfjsVvf3APv29v5iGv+vG/zphPvmpvv2</span>
<span style="color: #009900;">ev3znfv2tv742/7876KjpICAf/8AAAD/AP//AAAA//8A/wD///3+/SH5BAAAAAAALAAAAAC7ACwA</span>
<span style="color: #009900;">hwAAAIAAAACAAICAAAAAgIAAgACAgMHAv8DcwKrK7wAAAAAA/wRAfQJHjQRRowqRBgD/AAI2bRNn</span>
<span style="color: #009900;">vw5j0BAQEBJWnBZoJhSGDhwdHBk6XhdLfiFUHhpcmB9xLxqmDidDXyVkHSMlJidtqSty0it6JCyV</span>
<span style="color: #009900;">FiyiFzEyMi6wGDk5OUFQazdowDttmjCAPzeXHkJCQUdITENyzUCIN0x9qEuEtkiN3keTUk6Zwk2r</span>
<span style="color: #009900;">NEq1J1BRUlVcUlJbblV1s1ehYFxcXV6HqFiAs2KRsljBLl1bWWVlZGefzl6a4mtrinGX3WiycXC/</span>
<span style="color: #009900;">D2jNNm9vbnaQyXaixYBhN3l8eXp6mYOOlXeq5oW9PX+41XjAgH7aEH3iSoQAAIFxWISEAIaw54S8</span>
<span style="color: #009900;">N4bMjI+EXYmIho+TqYulvIen2IytvZSx2pG764jsEZNoK5KQjZSYm5SUnJWU1pDLPpvmOpbamppP</span>
<span style="color: #009900;">M5mTfZqZkpycmZ2c15qylaHOY6abVqGfvKS7zaHkpKwIDa8OE66uqqqq566yxq3Hg63G2a3ur7g1</span>
<span style="color: #009900;">ObRKGbVWHLZ+MbR9UbS2uLTL37TafrkRFbopKbpmI726tLq9vbq5zcLB8L7Rm7r6vcIPGsUYIsk3</span>
<span style="color: #009900;">IsY8QshKMcVNUcdqasZ7SsKAMryQXMiUPMa9zsrMzMDN1sulR86qpcy4pc7DSs3HwNDMxdIVJNdE</span>
<span style="color: #009900;">JtZYPdhrStl0edSnfNHAttTQVtXVatPQyNbX2uMWC9saK9w0E+FMWNpZY91sst1+LNx7Vtyzcdqz</span>
<span style="color: #009900;">ydzXWeUBAeAnOOtiNudkxuhryOxzC+iBieaMzOmOHN+MWuamque0tuTl5fAPCewuwOlFFe5IyeRW</span>
<span style="color: #009900;">BPNY0Ox90PClheyqHvDGg+nQtO/v7/cAAPhSGPdSGP9sGviPavCVN+yjY/qzIfWxWPK9bfXAofPE</span>
<span style="color: #009900;">LfLLSPTUMvPR0/neQfrcZPrmdPnqyfjsVvf3APv29v5iGv+vG/zphPvmpvv2ev3znfv2tv742/78</span>
<span style="color: #009900;">76KjpICAf/8AAAD/AP//AAAA//8A/wD///3+/Qj+APEJHEiwoMGDCBMqXMiwocOHECNKhCirosWL</span>
<span style="color: #009900;">GDNq3Mixo8ePIEOKHEmypMmTKFOqXMmypcuXMGPKnEmzps2bOHPq3Mmzp81TYV6cCBHiBIwwp1Bp</span>
<span style="color: #009900;">RIUqlFOlIQFIBYDv46l79x5B3WjDz6mKfg5sVUlpkNk9e+Co/cL2ipK3PlP6SRGiCB2B94qESOEH</span>
<span style="color: #009900;">Y6hZy5ZdGzwLUl+PVAdS7YgvxQsdO/CJ3Viiqx0ZD2xo1XgKV63PtVKJtkSatKavssoOQrv2y5XX</span>
<span style="color: #009900;">b+HGNekHgw5IoURNmSIqFCQdIQ5XnDV48LJ2/67JOtAx8cXFGMUggZECho4fRZqEeaTRTg4XMkz+</span>
<span style="color: #009900;">oPBwYbtGXMWQI//Hvv2/dq00VVyN9l/rK/9i+/Axu+SpEzo4JYoRQQRhhBF6hKLDCajJQlxxgzl1</span>
<span style="color: #009900;">zTJjYbSYVFVBZ9E9YoSSgg5NgIhPGHY1aJEPTAwxRA4ooHDBDsJdVMt6wLhnzi2p4HJNO5ZUhNYe</span>
<span style="color: #009900;">7Fng2mvsKbEff/2NhA8Gj+QmiAQVVCCBBAk+EkJVw0FonHGhcERVYl9iaZEU7Vj3TyhNFLGGGk1E</span>
<span style="color: #009900;">wR1GNmTBRIo5XLBBEfdUKEst/wDwD59S/dMKLuZY0so/jPioVpCvuVXkkSVJpdFUFU0lqUWWVgoA</span>
<span style="color: #009900;">pptulEIRApIhwQxjCKJIb7IUkcJFWmrZ5Ub+YcoS60VSRJICPqHQEaIf96QZY0U4ZCGnCxvAUAR3</span>
<span style="color: #009900;">XmHEJ3s1uvdPMpYkg6iicDDqlhLs7WeDDSR1mpG33lb6HKayghsuRiHM4ZQiRkhAgxBkCILqHCGw</span>
<span style="color: #009900;">qggZZjxY3KuT4nOhv2JWhIQUL2gXhRQB+tEEEb/KIsMQwoKgw5sD32Pisu1Zeg0mjSjzTx8VwcEW</span>
<span style="color: #009900;">o7Fluy23Ip0rq7gst9zypjCvrLJFGGS3hhgsNMAAAw1MQccaaWJgUShJdDGLIl2QASG/3wIsq9MX</span>
<span style="color: #009900;">3aOCDjAM/EMiByQSBsMahUFCDjhwpwISeUiBjx9bpeLs2q308XHIIq/d3sktjJQpy+COq7f+zHzP</span>
<span style="color: #009900;">XBEGdPgBiB4iOAAEEE/oAYlhcwhdUQxdJLDMLAkkYQaXXjo9q0WnqKFDETDAsEYoftDxQhF+1CGL</span>
<span style="color: #009900;">JBnZQUIUOujAgxhSAGJeRWq7FygmhGpCyD98VMTWF3KzR7fd5O6dt4WUruy837KEQEduijggwhil</span>
<span style="color: #009900;">9hbKKfRWBMgIVJyhiCBndBFDYMswbaHmUF90ABFR+OFUWGEcdUAds6iO0SxhpLCG7B3yQxQsVhFL</span>
<span style="color: #009900;">rMdZ5sBEHzBhjnaATBZDCpIFtGW8FlgQeS5zngZVdq5OeZAjn3KKIBqgM549wSmnUFVFnDCBGlBh</span>
<span style="color: #009900;">FqLoQg1GAJj0Ze5fGrqIGsJwDz/Qr2D+B8hDGyShP4voIBGQgMEPpnAAwyxMDajRRDGK5574VAQ2</span>
<span style="color: #009900;">QTLStip4wZQl74N4m5SFxrgRfISgSXqgAQ1YwIIgJCgUj8AAllg4giPAkAozrKGJ1ofDgHEuCmFo</span>
<span style="color: #009900;">wsJOdwBJtEEWf8iIIHNFB0gkIgowIMLZUHMKTViiEpVgBCOixR5M8KEPp7mio/4xwZOxx4It6EC3</span>
<span style="color: #009900;">LrVBVs6sg2TkDIAEJAqsOKVLC0INICYwghqIQhBHqMH5JrfH57AvhxZBxSPUUAQiFEEyefgDIAyJ</span>
<span style="color: #009900;">EVT4QQf4uEcoPAc/OjyimBchhSU24UBSYKRkpPSBKf9hwQ6oMkkjqY0ODuCU3TgliRj+iFEMeikK</span>
<span style="color: #009900;">PcyQDIGZBTgrJSZkVvMAPvTDI+ogTSJypgn4+N8OouDNgWKkFI0gRB9Kcc63+MACJ9uWBdrpTniS</span>
<span style="color: #009900;">xA9DsUsUKFoEDJzgVwdYwQjG8IQVBIGes5hFWDJHUJLMgpob8QM+sqOGb47kFITgwys6qq2QotKd</span>
<span style="color: #009900;">FrCASUkClBeEAAMYCMELkLKUMfQgCD18xAFOQVbEYIgkf/hDJDqiTIVatCOn2ERGjKROuqEylVGV</span>
<span style="color: #009900;">6lT3yte++vWvgA3sSAbwkZw+ZSal4OhHPPGJUZjisbCIhWQl64tYpMRSmM2sYD8ygH1A7x41NGwo</span>
<span style="color: #009900;">EOoSXsSjHvWoBnM4gghqjKMc6Ej+BzzmQY/a0mMe8liHZU8CgAD49rcAEIBwhwu9zcqiswPoU1BB</span>
<span style="color: #009900;">mwg/JOK5iaBDVFi5Px6gg7bxgMchOtKJ16ZDHai1hz3aUw/c+gIlvf2tb4M7XOEWV7DI/UdnZ+bD</span>
<span style="color: #009900;">ZdAlFEiExBpAAoAD+HdmTzjEOuBBj+x+Iwoc6e454jENdagiGxDOhjvEQQ95nNcivTCGNKRhjF7I</span>
<span style="color: #009900;">IhBVCHEgmJfZEhtXI/OV7z72MQCV+XAWEJ0F1g6wBj1Z6AD+OsDMbpCGc+iiGuk4xzt4kOBxwGMX</span>
<span style="color: #009900;">l1DHNCTsjm1sIxj1kAcsMByNKld5GF5Ygpa17IXnqHe97XXvTd5bks4eoE8rBkD+mjECXawtxylr</span>
<span style="color: #009900;">WK2XcFwulYlABONIBzN+MQ4oNMwihyBHNWyRjV3UIxjuSPQ23DGNeUxZFr2wspXxsOVK3wFTXw4A</span>
<span style="color: #009900;">e9tLZljdLXmgZomZ/3GAfSxgASsudbiQiOMw3DIUa3jTnKWS5nOtgQEVUMEcwpEG6criFcU8BDwy</span>
<span style="color: #009900;">AWFbWEMczkh0k92hjkdL4xnPEEYvepGLLd9hEnfYMqdKrFmTdDqDKRl1qU2N6lKr2iKQOMAJsJqC</span>
<span style="color: #009900;">v8A6EWZdcZpbjJF7ZCACDOCACGggh9OqIxxyloUndkFoCK+iHrtwRoSzwQ11VGQY0PawLEqBBSy4</span>
<span style="color: #009900;">wSJuqDimv7xp4vJ2jDGrswf+L7U8kAzgzONWc4v3cW6L0HgvL7BOTtfwZ03JW94AoHdGBJiBfF93</span>
<span style="color: #009900;">HvOAxzEu4opGLNwW4kBteMX7j4oII+IVobjFMa7xSmW642L2dqZIvkGQh9ojyU05i1ms5nOFAnZF</span>
<span style="color: #009900;">odrMay6rm+Nc5xthwBZ8AY94zAMd7/C1LBBB8Aivgh6scIbCIcwNazy8Gc2IxrRzUXEsLGISi2j8</span>
<span style="color: #009900;">trn96W7FMuTPax7mTS525JI9I6SDaAjuAYO1e8ntns15cTUABl3Q4hfoOMc3ZmARR4TjEsWuRjWS</span>
<span style="color: #009900;">rexsqGMUFekF4offDDw0/viXtjrHIcD85n/7W5fv+vI2z9k0jx25M4PELKL+gJsDFGFyNB+omt8+</span>
<span style="color: #009900;">gBavngXjQAc85IEOR5jB14boBjJs4QxWxOPBvZ8GOj5hEWMQH/FvgAYCKIBvsBXppV4A0HzO93HK</span>
<span style="color: #009900;">I32g9nwVMV/X93kaARizUASegz4050OyhinzVn4gWFz3oAEsAAa6BwVCoAhzUBGGQAzgkAmMUA3I</span>
<span style="color: #009900;">oHDKFgzx8A2dcBG98HTR5mGL8AZAuAgkRnnNEynRJ3Ka4koksXKeB3c7RwfHgT6BsQb34E2TknMg</span>
<span style="color: #009900;">WH7UtRE8wAAicANGYAVPAANQUQjEcAzegAzVwAi20IbOgHTjQA05yFv5UId2mIAKCAEQCBN7GIHd</span>
<span style="color: #009900;">1hEHEAZrEBgTMkA2pilgIfh8dKACGZABH3AsFhEH0EAM3RAOulcN8ZCJ/3YMx4AI6GWHd5iHejgb</span>
<span style="color: #009900;">fagSqHAAj2BUH1GELBEHhVAIhmAIjjCLtDiLnoheRFh5J7aLvNiLvviLwBiMwjiMxFiMHBEQADs=&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;TrayItems.gif&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.shinylight.com/wp-content/themes/Wiking/images/button_rss.png&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></pre></div></div>

<p>Which outputs: </p>
<p><img src="http://www.shinylight.com/wp-content/uploads/2010/02/jsimage/images-show.png" /></p>
<p>You can see for yourself here, <a href="http://www.shinylight.com/wp-content/uploads/2010/02/jsimage/data-uri.html">which is the HTML page</a>. </p>
<p>Now, let&#8217;s disable showing of images in Firefox &#8211; Uncheck &#8220;Load images automatically&#8221;:</p>
<p><img src="http://www.shinylight.com/wp-content/uploads/2010/02/jsimage/firefox-options.png" /></p>
<p><a href="http://www.shinylight.com/wp-content/uploads/2010/02/jsimage/data-uri.html">Refresh the page</a> and see that you get: </p>
<p><img src="http://www.shinylight.com/wp-content/uploads/2010/02/jsimage/images-NO-show.png" /></p>
<p>Strange that they haven&#8217;t blocked this as well. This happens in Firefox 3.6 for Windows. I tested it in Safari 4.0.4 on Windows and it none of them showed when images are disabled. </p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em></em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http://www.shinylight.com/2010/02/20/forcing-firefox-to-show-image-after-disabling-showing-images/&amp;submitHeadline=Forcing+Firefox+to+Show+Image+After+Disabling+Showing+Images&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.shinylight.com/2010/02/20/forcing-firefox-to-show-image-after-disabling-showing-images/&amp;title=Forcing+Firefox+to+Show+Image+After+Disabling+Showing+Images" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.shinylight.com/2010/02/20/forcing-firefox-to-show-image-after-disabling-showing-images/&amp;title=Forcing+Firefox+to+Show+Image+After+Disabling+Showing+Images" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://www.shinylight.com/2010/02/20/forcing-firefox-to-show-image-after-disabling-showing-images/" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.shinylight.com/2010/02/20/forcing-firefox-to-show-image-after-disabling-showing-images/&amp;title=Forcing+Firefox+to+Show+Image+After+Disabling+Showing+Images" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http://www.shinylight.com/2010/02/20/forcing-firefox-to-show-image-after-disabling-showing-images/&amp;bm_description=Forcing+Firefox+to+Show+Image+After+Disabling+Showing+Images" rel="nofollow" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http://www.shinylight.com/2010/02/20/forcing-firefox-to-show-image-after-disabling-showing-images/&amp;T=Forcing+Firefox+to+Show+Image+After+Disabling+Showing+Images" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.shinylight.com/2010/02/20/forcing-firefox-to-show-image-after-disabling-showing-images/&amp;title=Forcing+Firefox+to+Show+Image+After+Disabling+Showing+Images" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.shinylight.com/2010/02/20/forcing-firefox-to-show-image-after-disabling-showing-images/&amp;title=Forcing+Firefox+to+Show+Image+After+Disabling+Showing+Images" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.shinylight.com/2010/02/20/forcing-firefox-to-show-image-after-disabling-showing-images/" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http://www.shinylight.com/2010/02/20/forcing-firefox-to-show-image-after-disabling-showing-images/" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Forcing+Firefox+to+Show+Image+After+Disabling+Showing+Images+@+http://www.shinylight.com/2010/02/20/forcing-firefox-to-show-image-after-disabling-showing-images/" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://www.shinylight.com/2010/02/20/forcing-firefox-to-show-image-after-disabling-showing-images/&amp;t=Forcing+Firefox+to+Show+Image+After+Disabling+Showing+Images" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.shinylight.com/2010/02/20/forcing-firefox-to-show-image-after-disabling-showing-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert Relative URLs to Absolute</title>
		<link>http://www.shinylight.com/2010/02/19/convert-relative-urls-to-absolute/</link>
		<comments>http://www.shinylight.com/2010/02/19/convert-relative-urls-to-absolute/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 04:29:02 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://www.shinylight.com/?p=874</guid>
		<description><![CDATA[I put this ColdFusion UDF together the other day to turn relative URLs to Absolute. Code is pretty straightforward.

&#60;cffunction name=&#34;URLRelativeToAbsolute&#34; returntype=&#34;string&#34;
  hint=&#34;Converts relative URLs in an element and converts to absolute. It includes the http:// protocol prefix.&#34;&#62;  
&#160;
  &#60;cfargument name=&#34;content&#34; type=&#34;string&#34; required=&#34;true&#34; hint=&#34;HTML content that will be scanned and replaced.&#34; /&#62;
&#160;
  [...]]]></description>
			<content:encoded><![CDATA[<p>I put this ColdFusion UDF together the other day to turn relative URLs to Absolute. Code is pretty straightforward.</p>

<div class="wp_syntax"><div class="code"><pre class="cfm" style="font-family:monospace;"><span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;URLRelativeToAbsolute&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span></span>
<span style="color: #333333;">  <span style="color: #0000FF;">hint</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;Converts relative URLs in an element and converts to absolute. It includes the http:// protocol prefix.&quot;</span><span style="color: #0000FF;">&gt;</span></span>  
&nbsp;
  <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;content&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;true&quot;</span> <span style="color: #0000FF;">hint</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;HTML content that will be scanned and replaced.&quot;</span> <span style="color: #0000FF;">/&gt;</span></span>
&nbsp;
  <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;domain&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;true&quot;</span> <span style="color: #0000FF;">hint</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;Add domain name to relative links.&quot;</span> <span style="color: #0000FF;">/&gt;</span></span>
&nbsp;
  <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> <span style="color: #000000; font-weight: bold;">var</span> local <span style="color: #0000FF;">=</span> <span style="color: #0000FF;">StructNew</span><span style="color: #0000FF;">&#40;</span><span style="color: #0000FF;">&#41;</span> <span style="color: #0000FF;">/&gt;</span></span> 
&nbsp;
  <span style="color: #808080; font-style: italic;">&lt;!--- The following regexp handles the following elements: link, a, img, script, form, frame. ---&gt;</span>
  <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> local.contentFixed <span style="color: #0000FF;">=</span> <span style="color: #0000FF;">REReplaceNoCase</span><span style="color: #0000FF;">&#40;</span> Arguments.<span style="color: #0000FF;">content</span>, <span style="color: #009900;">&quot;(href|src|action)=&quot;</span><span style="color: #009900;">&quot;/?((<span style="color: #000099; font-weight: bold;">\.</span>/)|(<span style="color: #000099; font-weight: bold;">\.</span><span style="color: #000099; font-weight: bold;">\.</span>/)+|)(?=[^http])&quot;</span>, <span style="color: #009900;">&quot;<span style="color: #000099; font-weight: bold;">\1</span>=&quot;</span><span style="color: #009900;">&quot;http://&quot;</span> <span style="color: #0000FF;">&amp;</span> domain <span style="color: #0000FF;">&amp;</span> <span style="color: #009900;">&quot;/&quot;</span>, <span style="color: #009900;">&quot;all&quot;</span> <span style="color: #0000FF;">&#41;</span> <span style="color: #0000FF;">/&gt;</span></span>  
&nbsp;
  <span style="color: #808080; font-style: italic;">&lt;!--- The following regexp handles the url() attribute of the background CSS property. ---&gt;</span>
  <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> local.contentFixed <span style="color: #0000FF;">=</span> <span style="color: #0000FF;">REReplaceNoCase</span><span style="color: #0000FF;">&#40;</span> local.contentFixed, <span style="color: #009900;">&quot;url<span style="color: #000099; font-weight: bold;">\(</span>(<span style="color: #000099; font-weight: bold;">\s</span>)?(')?/?((<span style="color: #000099; font-weight: bold;">\.</span>/)|(<span style="color: #000099; font-weight: bold;">\.</span><span style="color: #000099; font-weight: bold;">\.</span>/)+|)(?=[^http])&quot;</span>, <span style="color: #009900;">&quot;url(<span style="color: #000099; font-weight: bold;">\2</span>http://&quot;</span> <span style="color: #0000FF;">&amp;</span> domain <span style="color: #0000FF;">&amp;</span> <span style="color: #009900;">&quot;/&quot;</span>, <span style="color: #009900;">&quot;all&quot;</span> <span style="color: #0000FF;">&#41;</span> <span style="color: #0000FF;">/&gt;</span></span>  
&nbsp;
  <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfreturn</span> local.contentFixed <span style="color: #0000FF;">/&gt;</span></span>    
&nbsp;
<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span></pre></div></div>

<p>Usage:</p>

<div class="wp_syntax"><div class="code"><pre class="cfm" style="font-family:monospace;"><span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfsavecontent</span> variable<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;htmlContent&quot;</span><span style="color: #0000FF;">&gt;</span></span>
<span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #000000; font-weight: bold;">textarea</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;data&quot;</span> <span style="color: #0000FF;">rows</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;20&quot;</span> <span style="color: #0000FF;">cols</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;60&quot;</span><span style="color: #0000FF;">&gt;</span></span>
  <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #000000; font-weight: bold;">style</span><span style="color: #0000FF;">&gt;</span></span>
    body { 
      background-image:url('stars.png');
      background-image:url('../stars.png');
      background-image:url('/stars.png');
      background-image:url('/../../../stars.png');
    }
  <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #000000; font-weight: bold;">style</span><span style="color: #0000FF;">&gt;</span></span>
  <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #000000; font-weight: bold;">a</span> <span style="color: #0000FF;">href</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;../../../images/shiny.jpg&quot;</span><span style="color: #0000FF;">&gt;</span></span>Shiny<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #000000; font-weight: bold;">a</span><span style="color: #0000FF;">&gt;</span></span>
  <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #000000; font-weight: bold;">a</span> <span style="color: #0000FF;">href</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;http://www.google.com&quot;</span><span style="color: #0000FF;">&gt;</span></span>This should not be touched<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #000000; font-weight: bold;">a</span><span style="color: #0000FF;">&gt;</span></span>
  <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #000000; font-weight: bold;">img</span> <span style="color: #0000FF;">border</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;0&quot;</span> <span style="color: #0000FF;">src</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;/images/cool.png&quot;</span> <span style="color: #0000FF;">/&gt;</span></span> 
  <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #000000; font-weight: bold;">link</span> <span style="color: #0000FF;">rel</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;index&quot;</span> <span style="color: #0000FF;">href</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;../../index.asp&quot;</span><span style="color: #0000FF;">&gt;</span></span>
  <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #000000; font-weight: bold;">form</span> <span style="color: #0000FF;">method</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;POST&quot;</span> <span style="color: #0000FF;">action</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;cgi/processing.cgi&quot;</span><span style="color: #0000FF;">&gt;</span></span><span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #000000; font-weight: bold;">form</span><span style="color: #0000FF;">&gt;</span></span>  
<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #000000; font-weight: bold;">textarea</span><span style="color: #0000FF;">&gt;</span></span>
<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfsavecontent</span><span style="color: #0000FF;">&gt;</span></span>
&nbsp;
<span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfoutput</span><span style="color: #0000FF;">&gt;</span></span>
&nbsp;
  <span style="color: #0000FF;">#htmlContent#</span>
  #URLRelativeToAbsolute( htmlContent, &quot;www.shinylight.com&quot; )#
&nbsp;
<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfoutput</span><span style="color: #0000FF;">&gt;</span></span></pre></div></div>

<p>Result:</p>
<p><img src="http://www.shinylight.com/wp-content/uploads/2010/02/before-after1.png" /></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em></em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http://www.shinylight.com/2010/02/19/convert-relative-urls-to-absolute/&amp;submitHeadline=Convert+Relative+URLs+to+Absolute&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.shinylight.com/2010/02/19/convert-relative-urls-to-absolute/&amp;title=Convert+Relative+URLs+to+Absolute" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.shinylight.com/2010/02/19/convert-relative-urls-to-absolute/&amp;title=Convert+Relative+URLs+to+Absolute" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://www.shinylight.com/2010/02/19/convert-relative-urls-to-absolute/" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.shinylight.com/2010/02/19/convert-relative-urls-to-absolute/&amp;title=Convert+Relative+URLs+to+Absolute" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http://www.shinylight.com/2010/02/19/convert-relative-urls-to-absolute/&amp;bm_description=Convert+Relative+URLs+to+Absolute" rel="nofollow" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http://www.shinylight.com/2010/02/19/convert-relative-urls-to-absolute/&amp;T=Convert+Relative+URLs+to+Absolute" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.shinylight.com/2010/02/19/convert-relative-urls-to-absolute/&amp;title=Convert+Relative+URLs+to+Absolute" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.shinylight.com/2010/02/19/convert-relative-urls-to-absolute/&amp;title=Convert+Relative+URLs+to+Absolute" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.shinylight.com/2010/02/19/convert-relative-urls-to-absolute/" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http://www.shinylight.com/2010/02/19/convert-relative-urls-to-absolute/" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Convert+Relative+URLs+to+Absolute+@+http://www.shinylight.com/2010/02/19/convert-relative-urls-to-absolute/" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://www.shinylight.com/2010/02/19/convert-relative-urls-to-absolute/&amp;t=Convert+Relative+URLs+to+Absolute" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.shinylight.com/2010/02/19/convert-relative-urls-to-absolute/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Temporary Stored Procedure</title>
		<link>http://www.shinylight.com/2010/02/19/temporary-stored-procedure/</link>
		<comments>http://www.shinylight.com/2010/02/19/temporary-stored-procedure/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 02:45:17 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.shinylight.com/?p=869</guid>
		<description><![CDATA[They can be handy sometimes if you want to modularize your code for the life-time of a routine. To create a temp stored procedure, all you do is use the # sign before the name of the sproc. Same concept as a temp table. Only the owner can execute it and its life is that [...]]]></description>
			<content:encoded><![CDATA[<p>They can be handy sometimes if you want to modularize your code for the life-time of a routine. To create a temp stored procedure, all you do is use the # sign before the name of the sproc. Same concept as a temp table. Only the owner can execute it and its life is that of the session. Here&#8217;s an example that uses the Northwind db.</p>

<div class="wp_syntax"><div class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">CREATE</span> <span style="color: #0000FF;">PROCEDURE</span> #GetCustomers 
<span style="color: #808080;">&#40;</span>
  @companyName <span style="color: #0000FF;">VARCHAR</span><span style="color: #808080;">&#40;</span><span style="color: #000;">50</span><span style="color: #808080;">&#41;</span>
<span style="color: #808080;">&#41;</span>
<span style="color: #0000FF;">AS</span>
<span style="color: #0000FF;">BEGIN</span>
  <span style="color: #0000FF;">SELECT</span> <span style="color: #808080;">*</span> <span style="color: #0000FF;">FROM</span> Customers
  <span style="color: #0000FF;">WHERE</span>  CompanyName <span style="color: #808080;">LIKE</span> <span style="color: #FF0000;">'%'</span> <span style="color: #808080;">+</span> @companyName <span style="color: #808080;">+</span> <span style="color: #FF0000;">'%'</span>
<span style="color: #0000FF;">END</span></pre></div></div>

<p>To use it:</p>

<div class="wp_syntax"><div class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">EXEC</span> #GetCustomers <span style="color: #FF0000;">'The'</span></pre></div></div>

<p>You can find the temp sproc in the tempdb:<br />
<img src="http://www.shinylight.com/wp-content/uploads/2010/02/tempdb.png" /></p>
<p>If you want more information on the temp sproc, you can query the system view under the tempdb:</p>

<div class="wp_syntax"><div class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">SELECT</span> <span style="color: #808080;">*</span> <span style="color: #0000FF;">FROM</span> tempdb.<span style="color: #202020;">sys</span>.<span style="color: #202020;">objects</span>
<span style="color: #0000FF;">WHERE</span> <span style="color: #808080;">&#91;</span><span style="color: #FF00FF;">OBJECT_ID</span><span style="color: #808080;">&#93;</span> <span style="color: #808080;">=</span> <span style="color: #FF00FF;">OBJECT_ID</span><span style="color: #808080;">&#40;</span><span style="color: #FF0000;">'tempdb.dbo.#GetCustomers'</span><span style="color: #808080;">&#41;</span></pre></div></div>

<p>Your next question maybe if you can create temp user defined functions? The answer is a big juicy delicious, &#8220;NO!&#8221; (at least as of SQL Server 2008 Enterprise).</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em></em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http://www.shinylight.com/2010/02/19/temporary-stored-procedure/&amp;submitHeadline=Temporary+Stored+Procedure&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.shinylight.com/2010/02/19/temporary-stored-procedure/&amp;title=Temporary+Stored+Procedure" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.shinylight.com/2010/02/19/temporary-stored-procedure/&amp;title=Temporary+Stored+Procedure" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://www.shinylight.com/2010/02/19/temporary-stored-procedure/" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.shinylight.com/2010/02/19/temporary-stored-procedure/&amp;title=Temporary+Stored+Procedure" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http://www.shinylight.com/2010/02/19/temporary-stored-procedure/&amp;bm_description=Temporary+Stored+Procedure" rel="nofollow" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http://www.shinylight.com/2010/02/19/temporary-stored-procedure/&amp;T=Temporary+Stored+Procedure" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.shinylight.com/2010/02/19/temporary-stored-procedure/&amp;title=Temporary+Stored+Procedure" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.shinylight.com/2010/02/19/temporary-stored-procedure/&amp;title=Temporary+Stored+Procedure" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.shinylight.com/2010/02/19/temporary-stored-procedure/" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http://www.shinylight.com/2010/02/19/temporary-stored-procedure/" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Temporary+Stored+Procedure+@+http://www.shinylight.com/2010/02/19/temporary-stored-procedure/" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://www.shinylight.com/2010/02/19/temporary-stored-procedure/&amp;t=Temporary+Stored+Procedure" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.shinylight.com/2010/02/19/temporary-stored-procedure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Search As You Type</title>
		<link>http://www.shinylight.com/2010/02/14/search-as-you-type/</link>
		<comments>http://www.shinylight.com/2010/02/14/search-as-you-type/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 21:55:42 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.shinylight.com/?p=852</guid>
		<description><![CDATA[Just upgraded recently from WindowsXP to Windows7. One feature I used a lot forever (since Win95 I think), was the search as you type (this is what I call it anyways). It&#8217;s when you have an Explorer window open (let&#8217;s say in this case c:\ ) and you type &#8220;W&#8221; &#8211; it moves the cursor [...]]]></description>
			<content:encoded><![CDATA[<p>Just upgraded recently from WindowsXP to Windows7. One feature I used a lot forever (since Win95 I think), was the search as you type (this is what I call it anyways). It&#8217;s when you have an Explorer window open (let&#8217;s say in this case c:\ ) and you type &#8220;W&#8221; &#8211; it moves the cursor to directory that starts with the letter &#8220;W.&#8221; You can type &#8220;Win&#8221; quickly and it will go to the first directory that starts with those keywords in case you have directories that start with &#8220;Win.&#8221;</p>
<p>So after I configured the UI settings on Win7 to the way I saw fit, I realized that this feature was gone. It would automatically start searching for text in all files recursively &#8211; very annoying. I asked how to turn this feature off in many forums and do what I wanted to do and no one knew. </p>
<p>I finally figured it out. It was a setting that I turned on accidentally. (D&#8217;oh!)</p>
<p>Explorer Window -> Organize -> Folder Options -> View Tab -> When typing<br />
into list view -> Select the typed item in the view</p>
<p>That wasn&#8217;t checked. I suppose I did it instinctively without thinking. In WindowsXP, the area is used to trigger Advanced File Sharing, and I guess I didn&#8217;t realize this in Windows7. Also, I don&#8217;t think in XP this is an option you can control because it just works.</p>
<p>Windows7 Options</p>
<p><img src="http://www.shinylight.com/wp-content/uploads/2010/02/1.png" /></p>
<p>WindowsXP Options</p>
<p><img src="http://www.shinylight.com/wp-content/uploads/2010/02/foptions.png"  /></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em></em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http://www.shinylight.com/2010/02/14/search-as-you-type/&amp;submitHeadline=Search+As+You+Type&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.shinylight.com/2010/02/14/search-as-you-type/&amp;title=Search+As+You+Type" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.shinylight.com/2010/02/14/search-as-you-type/&amp;title=Search+As+You+Type" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://www.shinylight.com/2010/02/14/search-as-you-type/" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.shinylight.com/2010/02/14/search-as-you-type/&amp;title=Search+As+You+Type" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http://www.shinylight.com/2010/02/14/search-as-you-type/&amp;bm_description=Search+As+You+Type" rel="nofollow" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http://www.shinylight.com/2010/02/14/search-as-you-type/&amp;T=Search+As+You+Type" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.shinylight.com/2010/02/14/search-as-you-type/&amp;title=Search+As+You+Type" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.shinylight.com/2010/02/14/search-as-you-type/&amp;title=Search+As+You+Type" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.shinylight.com/2010/02/14/search-as-you-type/" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http://www.shinylight.com/2010/02/14/search-as-you-type/" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Search+As+You+Type+@+http://www.shinylight.com/2010/02/14/search-as-you-type/" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://www.shinylight.com/2010/02/14/search-as-you-type/&amp;t=Search+As+You+Type" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.shinylight.com/2010/02/14/search-as-you-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reasons I&#8217;m Not a Fan of Google Chrome OS</title>
		<link>http://www.shinylight.com/2010/02/14/reasons-im-not-a-fan-of-google-chrome-os/</link>
		<comments>http://www.shinylight.com/2010/02/14/reasons-im-not-a-fan-of-google-chrome-os/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 21:34:44 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.shinylight.com/?p=849</guid>
		<description><![CDATA[I&#8217;m assuming you&#8217;ve seen what Chrome OS can do. Just Google &#8220;Chrome OS,&#8221; because it&#8217;s everywhere.
I would give Chrome OS an 8.0 / 10.0 for computer beginners, like the grandmas of the world. It&#8217;s gets a 2.0 / 10.0 for techies. Why? Three reasons. 

Needs too many resources for what it delivers.
Cannot run executables, not [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m assuming you&#8217;ve seen what Chrome OS can do. Just Google &#8220;Chrome OS,&#8221; because it&#8217;s everywhere.</p>
<p>I would give Chrome OS an 8.0 / 10.0 for computer beginners, like the grandmas of the world. It&#8217;s gets a 2.0 / 10.0 for techies. Why? Three reasons. </p>
<ul>
<li>Needs too many resources for what it delivers.</li>
<li>Cannot run executables, not even virtually/sandboxed.</li>
<li>Needs the cloud for storage.</li>
</ul>
<p>Kind of annoying that I can&#8217;t just run it on any old laptop / netbook. System requirements are too demanding for what it promises and it seems it&#8217;s needed just to have that 2-4 second boot-up time, which honestly it doesn&#8217;t mean much to me. There&#8217;s never a time where I&#8217;m in such a hurry that I need my computer that fast, because I&#8217;m either doing something else, or I just use my phone. </p>
<p>I some people really care about boot-up time? I&#8217;d rather wait 10 more seconds and have the ability to run .EXE files and have it run on old PC&#8217;s. For a minimalist device, I have my table PC or iPhone already that can do all that stuff, and I don&#8217;t have to worry about malware on the iPhone. I don&#8217;t think techies have to worry to much about malware since they&#8217;re careful about getting them in the first place and have good Anti-viruses. </p>
<p>Lastly, an Internet connection is not ubiquitous yet. I&#8217;m on the subway a lot where there&#8217;s no WIFI and sometimes I travel to places without an Internet connection. I want to be able to at least read my latest documents without connecting to the cloud. </p>
<p>The OS is still in the works, so I suppose maybe they&#8217;ll address some of these features in the future. </p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em></em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http://www.shinylight.com/2010/02/14/reasons-im-not-a-fan-of-google-chrome-os/&amp;submitHeadline=Reasons+I%26%238217%3Bm+Not+a+Fan+of+Google+Chrome+OS&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.shinylight.com/2010/02/14/reasons-im-not-a-fan-of-google-chrome-os/&amp;title=Reasons+I%26%238217%3Bm+Not+a+Fan+of+Google+Chrome+OS" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.shinylight.com/2010/02/14/reasons-im-not-a-fan-of-google-chrome-os/&amp;title=Reasons+I%26%238217%3Bm+Not+a+Fan+of+Google+Chrome+OS" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://www.shinylight.com/2010/02/14/reasons-im-not-a-fan-of-google-chrome-os/" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.shinylight.com/2010/02/14/reasons-im-not-a-fan-of-google-chrome-os/&amp;title=Reasons+I%26%238217%3Bm+Not+a+Fan+of+Google+Chrome+OS" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http://www.shinylight.com/2010/02/14/reasons-im-not-a-fan-of-google-chrome-os/&amp;bm_description=Reasons+I%26%238217%3Bm+Not+a+Fan+of+Google+Chrome+OS" rel="nofollow" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http://www.shinylight.com/2010/02/14/reasons-im-not-a-fan-of-google-chrome-os/&amp;T=Reasons+I%26%238217%3Bm+Not+a+Fan+of+Google+Chrome+OS" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.shinylight.com/2010/02/14/reasons-im-not-a-fan-of-google-chrome-os/&amp;title=Reasons+I%26%238217%3Bm+Not+a+Fan+of+Google+Chrome+OS" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.shinylight.com/2010/02/14/reasons-im-not-a-fan-of-google-chrome-os/&amp;title=Reasons+I%26%238217%3Bm+Not+a+Fan+of+Google+Chrome+OS" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.shinylight.com/2010/02/14/reasons-im-not-a-fan-of-google-chrome-os/" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http://www.shinylight.com/2010/02/14/reasons-im-not-a-fan-of-google-chrome-os/" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Reasons+I%26%238217%3Bm+Not+a+Fan+of+Google+Chrome+OS+@+http://www.shinylight.com/2010/02/14/reasons-im-not-a-fan-of-google-chrome-os/" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://www.shinylight.com/2010/02/14/reasons-im-not-a-fan-of-google-chrome-os/&amp;t=Reasons+I%26%238217%3Bm+Not+a+Fan+of+Google+Chrome+OS" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.shinylight.com/2010/02/14/reasons-im-not-a-fan-of-google-chrome-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CTRL+TAB in Eclipse</title>
		<link>http://www.shinylight.com/2010/02/13/ctrltab-in-eclipse/</link>
		<comments>http://www.shinylight.com/2010/02/13/ctrltab-in-eclipse/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 05:09:49 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Eclipse]]></category>

		<guid isPermaLink="false">http://www.shinylight.com/?p=844</guid>
		<description><![CDATA[By default, CTRL+Tab (forward switching of windows) and CTRL+SHIFT+TAB (previous switching of windows) aren&#8217;t set in Eclipse to switch between editors windows. There are other Eclipse, non-standard defaults like CTRL+F6 for forward switching. To set these shortcuts, do the following: 

Run Eclipse 
Window -> Preferences 
General -> Keys 
Search for: Next Editor 
Put the cursor [...]]]></description>
			<content:encoded><![CDATA[<p>By default, CTRL+Tab (forward switching of windows) and CTRL+SHIFT+TAB (previous switching of windows) aren&#8217;t set in Eclipse to switch between editors windows. There are other Eclipse, non-standard defaults like CTRL+F6 for forward switching. To set these shortcuts, do the following: </p>
<ol>
<li>Run Eclipse </li>
<li>Window -> Preferences </li>
<li>General -> Keys </li>
<li>Search for: Next Editor </li>
<li>Put the cursor in the &#8220;Binding&#8221; textbox and delete that hotkey. Then, press and hold CTRL+TAB </li>
<li>Hit Apply. </li>
<li>Search for: Previous Editor </li>
<li>Put the cursor in the &#8220;Binding&#8221; textbox and delete that hotkey. Then, press and hold CTRL+SHIFT+TAB </li>
<li>Hit Apply and OK.</li>
</ol>
<p>Apply similar steps for Ctrl+Shift+Tab. </p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em></em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http://www.shinylight.com/2010/02/13/ctrltab-in-eclipse/&amp;submitHeadline=CTRL%2BTAB+in+Eclipse&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.shinylight.com/2010/02/13/ctrltab-in-eclipse/&amp;title=CTRL%2BTAB+in+Eclipse" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.shinylight.com/2010/02/13/ctrltab-in-eclipse/&amp;title=CTRL%2BTAB+in+Eclipse" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://www.shinylight.com/2010/02/13/ctrltab-in-eclipse/" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.shinylight.com/2010/02/13/ctrltab-in-eclipse/&amp;title=CTRL%2BTAB+in+Eclipse" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http://www.shinylight.com/2010/02/13/ctrltab-in-eclipse/&amp;bm_description=CTRL%2BTAB+in+Eclipse" rel="nofollow" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http://www.shinylight.com/2010/02/13/ctrltab-in-eclipse/&amp;T=CTRL%2BTAB+in+Eclipse" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.shinylight.com/2010/02/13/ctrltab-in-eclipse/&amp;title=CTRL%2BTAB+in+Eclipse" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.shinylight.com/2010/02/13/ctrltab-in-eclipse/&amp;title=CTRL%2BTAB+in+Eclipse" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.shinylight.com/2010/02/13/ctrltab-in-eclipse/" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http://www.shinylight.com/2010/02/13/ctrltab-in-eclipse/" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+CTRL%2BTAB+in+Eclipse+@+http://www.shinylight.com/2010/02/13/ctrltab-in-eclipse/" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://www.shinylight.com/2010/02/13/ctrltab-in-eclipse/&amp;t=CTRL%2BTAB+in+Eclipse" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.shinylight.com/2010/02/13/ctrltab-in-eclipse/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Console2 Alternative to CMD</title>
		<link>http://www.shinylight.com/2010/02/13/console2-alternative-to-cmd/</link>
		<comments>http://www.shinylight.com/2010/02/13/console2-alternative-to-cmd/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 05:00:30 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[AutoHotKey]]></category>
		<category><![CDATA[Automation / Scripting]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.shinylight.com/?p=826</guid>
		<description><![CDATA[You know what, I tried PowerShell and I guess I never got used to it. I&#8217;ve been using DOS for the longest time that I prefer its simplicity when navigating through files. As far as scripting with it &#8211; forget it &#8211; it&#8217;s very cryptic and limiting, not to mention awkward.   That&#8217;s why [...]]]></description>
			<content:encoded><![CDATA[<p>You know what, I tried PowerShell and I guess I never got used to it. I&#8217;ve been using DOS for the longest time that I prefer its simplicity when navigating through files. As far as scripting with it &#8211; forget it &#8211; it&#8217;s very cryptic and limiting, not to mention awkward.   That&#8217;s why for scripting now I&#8217;m using Python. Nonetheless though, I sometimes need a playing field to run the scripts for, or running console utilities. That&#8217;s where Console2 comes in.</p>
<p>Console2 is a great tool that provides tabbing (you can tab through multiple consoles) and several ways to customize the UI. Here&#8217;s an example: </p>
<p><img src="http://www.shinylight.com/wp-content/uploads/2010/02/console2.jpg" /></p>
<p><br /><br />
I prefer this configuration:</p>
<p><img src="http://www.shinylight.com/wp-content/uploads/2010/02/console2-1.gif" /></p>
<p><br /></p>
<h3>How I Have It Setup</h3>
<p><br /><br />
Download Console2:</p>
<ul>
<li><a href="http://sourceforge.net/projects/console/">32-bit Version</a></li>
<li><a href="http://www.rblasch.org/projects/console/">64-bit Version</a></li>
</ul>
<p>I have the Console2 open up when I hit CTR+\ via <a href="http://www.autohotkey.com/">AutoHotkey</a>. Here&#8217;s the snippet for this to happen in AutoHotkey. I have this run when Window starts (it must stay in memory).</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #339933;">^</span>\<span style="color: #339933;">::</span><span style="color: #006600;">Run</span> C<span style="color: #339933;">:</span><span style="color: #0000ff;">\dan</span><span style="color: #339933;">-</span><span style="color: #000066;">local</span><span style="color: #0000ff;">\dos</span><span style="color: #339933;">-</span>win<span style="color: #0000ff;">\Console</span><span style="color: #339933;">.</span>exe</pre></div></div>

<p>Change the CMD prompt by creating a PROMPT system variable:<br /><br />
<img src="http://www.shinylight.com/wp-content/uploads/2010/02/prompt.png" /><br />
<br /><br />
<a href="http://www.shinylight.com/wp-content/uploads/2010/02/console.xml">Download the Console2 Config File</a></p>
<h3>Other Tips</h3>
<p><br /><strong>Autocomplete</strong><br />
  Good tip about command console = CTRL+I<br />
  can select files in the current directory, kinda like autofill-in<br />
  you can also put in parts of the file and it autoputs it for you</p>
<p><strong>Rename tab</strong><br />
  CTRL+R</p>
<p><strong>New Tab with default transparency  </strong><br />
  CTRL+F1</p>
<p><strong>New Tab with lighter transparency</strong><br />
  CTRL+F2</p>
<p><strong>Switch to NEXT adjacent tab</strong><br />
  CTRL+TAB</p>
<p><strong>Switch to Previous adjacent tab</strong><br />
  CTRL+SHIFT+TAB</p>
<p><strong>CTRL+[NUMBER]</strong><br />
  Goes to the tab instance. To make it easier, it&#8217;s best if you rename your tabs,</p>
<p>    [INSTANCE NAME].[NAME OF TAB]  </p>
<p>  So for example, </p>
<p>    1.Batch File<br />
    2.wget list<br />
    3.ftp the files</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em></em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http://www.shinylight.com/2010/02/13/console2-alternative-to-cmd/&amp;submitHeadline=Console2+Alternative+to+CMD&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.shinylight.com/2010/02/13/console2-alternative-to-cmd/&amp;title=Console2+Alternative+to+CMD" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.shinylight.com/2010/02/13/console2-alternative-to-cmd/&amp;title=Console2+Alternative+to+CMD" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://www.shinylight.com/2010/02/13/console2-alternative-to-cmd/" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.shinylight.com/2010/02/13/console2-alternative-to-cmd/&amp;title=Console2+Alternative+to+CMD" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http://www.shinylight.com/2010/02/13/console2-alternative-to-cmd/&amp;bm_description=Console2+Alternative+to+CMD" rel="nofollow" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http://www.shinylight.com/2010/02/13/console2-alternative-to-cmd/&amp;T=Console2+Alternative+to+CMD" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.shinylight.com/2010/02/13/console2-alternative-to-cmd/&amp;title=Console2+Alternative+to+CMD" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.shinylight.com/2010/02/13/console2-alternative-to-cmd/&amp;title=Console2+Alternative+to+CMD" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.shinylight.com/2010/02/13/console2-alternative-to-cmd/" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http://www.shinylight.com/2010/02/13/console2-alternative-to-cmd/" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Console2+Alternative+to+CMD+@+http://www.shinylight.com/2010/02/13/console2-alternative-to-cmd/" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://www.shinylight.com/2010/02/13/console2-alternative-to-cmd/&amp;t=Console2+Alternative+to+CMD" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.shinylight.com/2010/02/13/console2-alternative-to-cmd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Base Tag Not Supported In Hotmail</title>
		<link>http://www.shinylight.com/2010/02/11/base-tag-not-supported-in-hotmail/</link>
		<comments>http://www.shinylight.com/2010/02/11/base-tag-not-supported-in-hotmail/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 00:32:46 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Systems]]></category>

		<guid isPermaLink="false">http://www.shinylight.com/?p=819</guid>
		<description><![CDATA[It&#8217;s interesting how the &#60;base&#62; works in various clients. I thought all major web clients would support it, but apparently it is not the case. 
Let&#8217;s look at how some email clients process this tag:
Yahoo.com! Web Mail
Base tags are modified by their mail server and relative URLs are changed to absolute. So it works.
Gmail Web [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s interesting how the <a href="http://w3schools.com/tags/tag_base.asp">&lt;base&gt;</a> works in various clients. I thought all major web clients would support it, but apparently it is not the case. </p>
<p>Let&#8217;s look at how some email clients process this tag:</p>
<h3>Yahoo.com! Web Mail</h3>
<p>Base tags are modified by their mail server and relative URLs are changed to absolute. So it works.</p>
<h3>Gmail Web Mail</h3>
<p>Base tags are modified by their mail server and relative URLs are changed to absolute. So it works.</p>
<h3>Gmail Account via Thunderbird</h3>
<p>Base tags are shown and its functionality is intact. URLs remain relative. So it works.</p>
<h3>iMS Account via Outlook 2007</h3>
<p>Base tags are shown and its functionality is intact. URLs remain relative. So it works. <a href="http://www.coolfusion.com/products/ims/">More info on iMS. </a></p>
<h3>ShinyLight Account via iPhone </h3>
<p>Can&#8217;t see the HTML, but all URLs worked.</p>
<h3>Hotmail</h3>
<p>Unfortunately, this is the ugly duckling. Hotmail servers remove the base tag and leave your relative links as relative. Big FAIL.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em></em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http://www.shinylight.com/2010/02/11/base-tag-not-supported-in-hotmail/&amp;submitHeadline=Base+Tag+Not+Supported+In+Hotmail&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.shinylight.com/2010/02/11/base-tag-not-supported-in-hotmail/&amp;title=Base+Tag+Not+Supported+In+Hotmail" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.shinylight.com/2010/02/11/base-tag-not-supported-in-hotmail/&amp;title=Base+Tag+Not+Supported+In+Hotmail" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://www.shinylight.com/2010/02/11/base-tag-not-supported-in-hotmail/" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.shinylight.com/2010/02/11/base-tag-not-supported-in-hotmail/&amp;title=Base+Tag+Not+Supported+In+Hotmail" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http://www.shinylight.com/2010/02/11/base-tag-not-supported-in-hotmail/&amp;bm_description=Base+Tag+Not+Supported+In+Hotmail" rel="nofollow" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http://www.shinylight.com/2010/02/11/base-tag-not-supported-in-hotmail/&amp;T=Base+Tag+Not+Supported+In+Hotmail" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.shinylight.com/2010/02/11/base-tag-not-supported-in-hotmail/&amp;title=Base+Tag+Not+Supported+In+Hotmail" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.shinylight.com/2010/02/11/base-tag-not-supported-in-hotmail/&amp;title=Base+Tag+Not+Supported+In+Hotmail" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.shinylight.com/2010/02/11/base-tag-not-supported-in-hotmail/" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http://www.shinylight.com/2010/02/11/base-tag-not-supported-in-hotmail/" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Base+Tag+Not+Supported+In+Hotmail+@+http://www.shinylight.com/2010/02/11/base-tag-not-supported-in-hotmail/" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://www.shinylight.com/2010/02/11/base-tag-not-supported-in-hotmail/&amp;t=Base+Tag+Not+Supported+In+Hotmail" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.shinylight.com/2010/02/11/base-tag-not-supported-in-hotmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Latest File</title>
		<link>http://www.shinylight.com/2010/02/04/get-latest-file/</link>
		<comments>http://www.shinylight.com/2010/02/04/get-latest-file/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 03:37:31 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Automation / Scripting]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.shinylight.com/?p=794</guid>
		<description><![CDATA[In my last post, I made a quick script that checks for the date. It was very limiting, since it used the dir command. This one uses several date/time Python modules and is more capable.

import os, os.path, stat, time
from datetime import date, timedelta, datetime
&#160;
# Reference
# http://docs.python.org/library/datetime.html
# http://docs.python.org/library/time.html
&#160;
def getFileDate&#40; filenamePath &#41;:    
&#160;
  [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://www.shinylight.com/2010/01/30/compress-and-move-log-files/">my last post</a>, I made a quick script that checks for the date. It was very limiting, since it used the dir command. This one uses several date/time Python modules and is more capable.</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">os</span>, <span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>, <span style="color: #dc143c;">stat</span>, <span style="color: #dc143c;">time</span>
<span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">datetime</span> <span style="color: #ff7700;font-weight:bold;">import</span> date, timedelta, <span style="color: #dc143c;">datetime</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Reference</span>
<span style="color: #808080; font-style: italic;"># http://docs.python.org/library/datetime.html</span>
<span style="color: #808080; font-style: italic;"># http://docs.python.org/library/time.html</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> getFileDate<span style="color: black;">&#40;</span> filenamePath <span style="color: black;">&#41;</span>:    
&nbsp;
  used = <span style="color: #dc143c;">os</span>.<span style="color: #dc143c;">stat</span><span style="color: black;">&#40;</span> filenamePath <span style="color: black;">&#41;</span>.<span style="color: black;">st_mtime</span>      
  year, day, month, hour, minute, second = <span style="color: #dc143c;">time</span>.<span style="color: black;">localtime</span><span style="color: black;">&#40;</span>used<span style="color: black;">&#41;</span><span style="color: black;">&#91;</span>:<span style="color: #ff4500;">6</span><span style="color: black;">&#93;</span>
  objDateTime = <span style="color: #dc143c;">datetime</span><span style="color: black;">&#40;</span>year, day, month, hour, minute, second<span style="color: black;">&#41;</span>
&nbsp;
  <span style="color: #ff7700;font-weight:bold;">return</span> objDateTime
&nbsp;
  <span style="color: #808080; font-style: italic;"># Ways to reference this DateTime Object</span>
  <span style="color: #808080; font-style: italic;"># objDateTime.strftime(&quot;%Y-%m-%d %I:%M %p&quot;)</span>
  <span style="color: #808080; font-style: italic;"># objDateTime.year</span>
  <span style="color: #808080; font-style: italic;"># objDateTime.month</span>
&nbsp;
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> isDaysOldFromNow<span style="color: black;">&#40;</span> filenamepath, days <span style="color: black;">&#41;</span>:
&nbsp;
  <span style="color: #808080; font-style: italic;"># Checks how old a file is. Is it older than &quot;days&quot; [variable] days?</span>
  inTimeRange = <span style="color: #008000;">False</span>  
  timeDeltaDiff = <span style="color: black;">&#40;</span> <span style="color: #dc143c;">datetime</span>.<span style="color: black;">now</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>-getFileDate<span style="color: black;">&#40;</span> filenamepath <span style="color: black;">&#41;</span> <span style="color: black;">&#41;</span>.<span style="color: black;">days</span>
&nbsp;
  <span style="color: #808080; font-style: italic;"># Check if the file's date is days old or less:</span>
  <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: black;">&#40;</span> timeDeltaDiff <span style="color: #66cc66;">&gt;</span>= days <span style="color: black;">&#41;</span>:
    inTimeRange = <span style="color: #008000;">True</span>  
&nbsp;
  <span style="color: #ff7700;font-weight:bold;">return</span> inTimeRange
&nbsp;
fname = <span style="color: #483d8b;">&quot;C:/temp/decision2.pdf&quot;</span>  
&nbsp;
<span style="color: #808080; font-style: italic;"># Set this variable to check if the file is this days old</span>
howOld = <span style="color: #ff4500;">3</span>
&nbsp;
&nbsp;
<span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: black;">&#40;</span> isDaysOldFromNow<span style="color: black;">&#40;</span> fname, howOld <span style="color: black;">&#41;</span> <span style="color: black;">&#41;</span>:
  <span style="color: #ff7700;font-weight:bold;">print</span> fname, <span style="color: #483d8b;">&quot;is more than&quot;</span>, howOld, <span style="color: #483d8b;">&quot;days old&quot;</span>
<span style="color: #ff7700;font-weight:bold;">else</span>:
  <span style="color: #ff7700;font-weight:bold;">print</span> fname, <span style="color: #483d8b;">&quot;is NOT more than&quot;</span>, howOld, <span style="color: #483d8b;">&quot;days old&quot;</span></pre></div></div>

<p>Output:<br />
<img src="http://www.shinylight.com/wp-content/uploads/2010/02/walk1.gif" alt="" title="walk1" width="546" height="387" class="alignnone size-full wp-image-795" /></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em></em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http://www.shinylight.com/2010/02/04/get-latest-file/&amp;submitHeadline=Get+Latest+File&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.shinylight.com/2010/02/04/get-latest-file/&amp;title=Get+Latest+File" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.shinylight.com/2010/02/04/get-latest-file/&amp;title=Get+Latest+File" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://www.shinylight.com/2010/02/04/get-latest-file/" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.shinylight.com/2010/02/04/get-latest-file/&amp;title=Get+Latest+File" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http://www.shinylight.com/2010/02/04/get-latest-file/&amp;bm_description=Get+Latest+File" rel="nofollow" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http://www.shinylight.com/2010/02/04/get-latest-file/&amp;T=Get+Latest+File" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.shinylight.com/2010/02/04/get-latest-file/&amp;title=Get+Latest+File" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.shinylight.com/2010/02/04/get-latest-file/&amp;title=Get+Latest+File" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.shinylight.com/2010/02/04/get-latest-file/" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http://www.shinylight.com/2010/02/04/get-latest-file/" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Get+Latest+File+@+http://www.shinylight.com/2010/02/04/get-latest-file/" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://www.shinylight.com/2010/02/04/get-latest-file/&amp;t=Get+Latest+File" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.shinylight.com/2010/02/04/get-latest-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compress and Move Log Files</title>
		<link>http://www.shinylight.com/2010/01/30/compress-and-move-log-files/</link>
		<comments>http://www.shinylight.com/2010/01/30/compress-and-move-log-files/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 23:51:10 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Automation / Scripting]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.shinylight.com/?p=788</guid>
		<description><![CDATA[Sometimes log files bog a system down. For one of our servers, I made this little Python script that compresses (via WinRAR) the log files in a directory, and then moves them to a backup location. The only little catch is that I wanted to leave the latest log files for in that directory. Log [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes log files bog a system down. For one of our servers, I made this little Python script that compresses (via WinRAR) the log files in a directory, and then moves them to a backup location. The only little catch is that I wanted to leave the latest log files for in that directory. Log files are created daily, so the the latest log files have a datestamp of today. Here&#8217;s how I did it.</p>
<p>First Create the Python Script:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">os</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">datetime</span>
&nbsp;
dateStamp  = <span style="color: #dc143c;">datetime</span>.<span style="color: #dc143c;">datetime</span>.<span style="color: black;">now</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>.<span style="color: black;">strftime</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;%Y-%m-%d&quot;</span><span style="color: black;">&#41;</span> 
imsLogPath = <span style="color: #483d8b;">'d:<span style="color: #000099; font-weight: bold;">\\</span>LogFiles<span style="color: #000099; font-weight: bold;">\\</span>'</span>                     
<span style="color: #808080; font-style: italic;"># Don't use a mapped drive but use UNC for network drives. Task Schedule seems to choke when it calls Python.</span>
newRARPath = <span style="color: #483d8b;">'&quot;<span style="color: #000099; font-weight: bold;">\\</span><span style="color: #000099; font-weight: bold;">\\</span>192.168.1.2<span style="color: #000099; font-weight: bold;">\\</span>Root<span style="color: #000099; font-weight: bold;">\\</span>backups<span style="color: #000099; font-weight: bold;">\\</span>'</span> + dateStamp + <span style="color: #483d8b;">'.rar&quot;'</span>
rarPath    = <span style="color: #483d8b;">'&quot;C:<span style="color: #000099; font-weight: bold;">\\</span>Program Files<span style="color: #000099; font-weight: bold;">\\</span>WinRAR<span style="color: #000099; font-weight: bold;">\\</span>rar.exe&quot; a -m5 '</span> + newRARPath 
&nbsp;
<span style="color: #808080; font-style: italic;"># Get Latest Files</span>
smtpLatest   = <span style="color: #dc143c;">os</span>.<span style="color: black;">popen</span><span style="color: black;">&#40;</span>r<span style="color: #483d8b;">&quot;dir /od /a-d /b &quot;</span> + imsLogPath + <span style="color: #483d8b;">&quot;SMTP*.log&quot;</span><span style="color: black;">&#41;</span>.<span style="color: black;">read</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>.<span style="color: black;">splitlines</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#91;</span>-<span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span>
postLatest   = <span style="color: #dc143c;">os</span>.<span style="color: black;">popen</span><span style="color: black;">&#40;</span>r<span style="color: #483d8b;">&quot;dir /od /a-d /b &quot;</span> + imsLogPath + <span style="color: #483d8b;">&quot;POST*.log&quot;</span><span style="color: black;">&#41;</span>.<span style="color: black;">read</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>.<span style="color: black;">splitlines</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#91;</span>-<span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span>
ischedLatest = <span style="color: #dc143c;">os</span>.<span style="color: black;">popen</span><span style="color: black;">&#40;</span>r<span style="color: #483d8b;">&quot;dir /od /a-d /b &quot;</span> + imsLogPath + <span style="color: #483d8b;">&quot;iSched*.log&quot;</span><span style="color: black;">&#41;</span>.<span style="color: black;">read</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>.<span style="color: black;">splitlines</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#91;</span>-<span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span>
relayLatest  = <span style="color: #dc143c;">os</span>.<span style="color: black;">popen</span><span style="color: black;">&#40;</span>r<span style="color: #483d8b;">&quot;dir /od /a-d /b &quot;</span> + imsLogPath + <span style="color: #483d8b;">&quot;Relay*.log&quot;</span><span style="color: black;">&#41;</span>.<span style="color: black;">read</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>.<span style="color: black;">splitlines</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#91;</span>-<span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span>
qengLatest   = <span style="color: #dc143c;">os</span>.<span style="color: black;">popen</span><span style="color: black;">&#40;</span>r<span style="color: #483d8b;">&quot;dir /od /a-d /b &quot;</span> + imsLogPath + <span style="color: #483d8b;">&quot;Qeng*.log&quot;</span><span style="color: black;">&#41;</span>.<span style="color: black;">read</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>.<span style="color: black;">splitlines</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#91;</span>-<span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Get List of All Files</span>
allFiles     = <span style="color: #dc143c;">os</span>.<span style="color: black;">popen</span><span style="color: black;">&#40;</span>r<span style="color: #483d8b;">&quot;dir /od /a-d /b &quot;</span> + imsLogPath + <span style="color: #483d8b;">&quot;*.log&quot;</span><span style="color: black;">&#41;</span>.<span style="color: black;">read</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>.<span style="color: black;">splitlines</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Remove Latest Files from All Files List</span>
allFiles.<span style="color: black;">remove</span><span style="color: black;">&#40;</span> smtpLatest <span style="color: black;">&#41;</span>
allFiles.<span style="color: black;">remove</span><span style="color: black;">&#40;</span> postLatest <span style="color: black;">&#41;</span>
allFiles.<span style="color: black;">remove</span><span style="color: black;">&#40;</span> ischedLatest <span style="color: black;">&#41;</span>
allFiles.<span style="color: black;">remove</span><span style="color: black;">&#40;</span> relayLatest <span style="color: black;">&#41;</span>
allFiles.<span style="color: black;">remove</span><span style="color: black;">&#40;</span> qengLatest <span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># allFiles Array Has the list of files</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Flatten Array allFiles to be used as a parameter in system command</span>
flatLogPathList = <span style="color: #483d8b;">&quot;&quot;</span>
<span style="color: #ff7700;font-weight:bold;">for</span> filenameWithPath <span style="color: #ff7700;font-weight:bold;">in</span> allFiles:
  flatLogPathList = flatLogPathList + imsLogPath + filenameWithPath + <span style="color: #483d8b;">&quot; &quot;</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;"># Execute WinRar</span>
path = rarPath + <span style="color: #483d8b;">&quot; &quot;</span> + flatLogPathList.<span style="color: black;">rstrip</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
<span style="color: #dc143c;">os</span>.<span style="color: black;">system</span><span style="color: black;">&#40;</span> <span style="color: #483d8b;">'&quot;'</span> + path + <span style="color: #483d8b;">'&quot;'</span> <span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Delete all log files</span>
<span style="color: #dc143c;">os</span>.<span style="color: black;">system</span><span style="color: black;">&#40;</span> <span style="color: #483d8b;">'&quot;del '</span> + flatLogPathList.<span style="color: black;">rstrip</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span> + <span style="color: #483d8b;">'&quot;'</span> <span style="color: black;">&#41;</span></pre></div></div>

<p>Then I set up the Scheduled Task:</p>
<p><img src="http://www.shinylight.com/wp-content/uploads/2010/01/ims-1.gif" alt="" title="ims-1" width="405" height="448" class="alignnone size-full wp-image-789" /></p>
<p>With these Settings:</p>
<p><img src="http://www.shinylight.com/wp-content/uploads/2010/01/ims-2.gif" alt="" title="ims-2" width="403" height="448" class="alignnone size-full wp-image-790" /></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em></em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http://www.shinylight.com/2010/01/30/compress-and-move-log-files/&amp;submitHeadline=Compress+and+Move+Log+Files&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.shinylight.com/2010/01/30/compress-and-move-log-files/&amp;title=Compress+and+Move+Log+Files" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.shinylight.com/2010/01/30/compress-and-move-log-files/&amp;title=Compress+and+Move+Log+Files" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://www.shinylight.com/2010/01/30/compress-and-move-log-files/" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.shinylight.com/2010/01/30/compress-and-move-log-files/&amp;title=Compress+and+Move+Log+Files" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http://www.shinylight.com/2010/01/30/compress-and-move-log-files/&amp;bm_description=Compress+and+Move+Log+Files" rel="nofollow" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http://www.shinylight.com/2010/01/30/compress-and-move-log-files/&amp;T=Compress+and+Move+Log+Files" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.shinylight.com/2010/01/30/compress-and-move-log-files/&amp;title=Compress+and+Move+Log+Files" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.shinylight.com/2010/01/30/compress-and-move-log-files/&amp;title=Compress+and+Move+Log+Files" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.shinylight.com/2010/01/30/compress-and-move-log-files/" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http://www.shinylight.com/2010/01/30/compress-and-move-log-files/" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Compress+and+Move+Log+Files+@+http://www.shinylight.com/2010/01/30/compress-and-move-log-files/" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://www.shinylight.com/2010/01/30/compress-and-move-log-files/&amp;t=Compress+and+Move+Log+Files" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.shinylight.com/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.shinylight.com/2010/01/30/compress-and-move-log-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
