<?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>not so silent (e) &#187; technology</title>
	<atom:link href="http://notso.silent-e.com/category/technology/feed/" rel="self" type="application/rss+xml" />
	<link>http://notso.silent-e.com</link>
	<description>Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind. - Dr. Seuss</description>
	<lastBuildDate>Wed, 25 Aug 2010 22:32:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to fix the Windows desktop context menu after installing Samsung MagicRotation</title>
		<link>http://notso.silent-e.com/2010/02/16/how-to-fix-the-windows-desktop-context-menu-after-installing-samsung-magicrotation/</link>
		<comments>http://notso.silent-e.com/2010/02/16/how-to-fix-the-windows-desktop-context-menu-after-installing-samsung-magicrotation/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 22:21:33 +0000</pubDate>
		<dc:creator>matte</dc:creator>
				<category><![CDATA[git]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[wtf?]]></category>

		<guid isPermaLink="false">http://notso.silent-e.com/?p=904</guid>
		<description><![CDATA[With the new computer setup I have at work, I needed to have one of my monitors rotated 90&#176; so it would fit until a better solution was attempted. The desktop wasn&#8217;t rotating though because I hadn&#8217;t installed Samsung&#8217;s MagicRotation software. So I did. After doing so, I noticed that the context menu on my [...]]]></description>
			<content:encoded><![CDATA[<p>With the new computer setup I have at work, I needed to have one of my monitors rotated 90&deg; so it would fit until a better solution was attempted.  The desktop wasn&#8217;t rotating though because I hadn&#8217;t installed Samsung&#8217;s MagicRotation software.  So I did.</p>
<p>After doing so, I noticed that the context menu on my desktop was way screwed up.  All the text had shifted over to the right and was unreadable.</p>
<p><span id="more-904"></span></p>
<p><img src="http://notso.silent-e.com/images/messed-up-desktop-context-menu.png" alt="messed up context menu" title="messed up context menu" class="clean right" /></p>
<p>See?  WTF?  The &#8220;MagicRotation&#8221; <strike>spam</strike> branding is pushing the text to the side.  Luckily <a href="http://groups.google.com/group/tortoisesvn/browse_thread/thread/b92ef51927bdabef/ac1932188db878a6?lnk=raot" target="_blank">the solution was already on the web</a>.  Thank you megacorp search engine starting with a &#8220;G&#8221;</p>
<p>Turns out if you are running TortoiseGit and/or TortoiseSVN then you need to turn off the icons by adding some registry keys.  These are safe additions but as always, backup your registry before attempting to mess with it.</p>
<p>Just add a DWORD entry at either &#8220;HKCU\Software\Tort​oiseSVN\ ShowContextMenuIcons&#8221; or &#8220;HKCU\Software\Tort​oiseGit\ ShowContextMenuIcons&#8221; depending on the programs you are using.  It should have a hex or decimal value, doesn&#8217;t matter which, of &#8220;0&#8243; (zero).</p>
<p>After that, just wait a few seconds and your context menu should be readable again, but without the icons for those programs.  A small, and IMHO welcome, compromise that I can live with</p>
<p><img src="http://notso.silent-e.com/images/desktop-context-menu-before-after.png" class="clean center" /></p>
]]></content:encoded>
			<wfw:commentRss>http://notso.silent-e.com/2010/02/16/how-to-fix-the-windows-desktop-context-menu-after-installing-samsung-magicrotation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazing sheep herding</title>
		<link>http://notso.silent-e.com/2009/03/29/amazing-sheep-herding/</link>
		<comments>http://notso.silent-e.com/2009/03/29/amazing-sheep-herding/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 18:18:49 +0000</pubDate>
		<dc:creator>matte</dc:creator>
				<category><![CDATA[cool]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://notso.silent-e.com/?p=700</guid>
		<description><![CDATA[This is just crazy. I wish I could find sheepdog trials on tv again.]]></description>
			<content:encoded><![CDATA[<p>This is just crazy.  I wish I could find sheepdog trials on tv again.</p>
<p><a href="http://www.youtube.com/watch?v=D2FX9rviEhw"><img src="http://img.youtube.com/vi/D2FX9rviEhw/default.jpg" width="130" height="97" border=0></a></p>
]]></content:encoded>
			<wfw:commentRss>http://notso.silent-e.com/2009/03/29/amazing-sheep-herding/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Upgrade your Flash Player</title>
		<link>http://notso.silent-e.com/2009/02/25/upgrade-your-flash-player/</link>
		<comments>http://notso.silent-e.com/2009/02/25/upgrade-your-flash-player/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 01:28:43 +0000</pubDate>
		<dc:creator>matte</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://notso.silent-e.com/?p=677</guid>
		<description><![CDATA[Due to a security hole, Adobe is recommending people upgrade their Flash Player. Go here to see what version you are running. If your player version doesn&#8217;t match the version listed on this page, then you need to upgrade your flash player.]]></description>
			<content:encoded><![CDATA[<p><img src="/images/flashplayer_100x100.jpg" alt="Flash" title="Flash" class="clean right" />Due to a security hole, Adobe is recommending people upgrade their Flash Player.  <a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507" target="_blank">Go here to see what version you are running</a>.  If your player version doesn&#8217;t match the version listed <a href="http://get.adobe.com/flashplayer/" target="_blank">on this page</a>, then you need to upgrade your flash player.</p>
]]></content:encoded>
			<wfw:commentRss>http://notso.silent-e.com/2009/02/25/upgrade-your-flash-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What you shouldn&#8217;t put on a credit card swiper</title>
		<link>http://notso.silent-e.com/2009/01/16/what-you-shouldnt-put-on-a-credit-card-swiper/</link>
		<comments>http://notso.silent-e.com/2009/01/16/what-you-shouldnt-put-on-a-credit-card-swiper/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 03:27:28 +0000</pubDate>
		<dc:creator>matte</dc:creator>
				<category><![CDATA[mobile]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[wtf?]]></category>

		<guid isPermaLink="false">http://notso.silent-e.com/2009/01/16/what-you-shouldnt-put-on-a-credit-card-swiper/</guid>
		<description><![CDATA[I uploaded this through]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/silent_e/3202218785/" title="flickr photo"><img src="http://farm4.static.flickr.com/3107/3202218785_621ef1fe7c.jpg" class="flickr-photo" alt="What you shouldn't put on a credit card swiper" title="What you shouldn't put on a credit card swiper" /></a></p>
<p class="flickr-yourcomment">
<p>I uploaded this through <a href="http://www.flickr.com/photos/silent_e/"><img alt="flickr" title="flickr" class="clean" src="http://www.flickr.com/images/flickr_logo_blog.gif" width="41" height="18" border="0" align="absmiddle" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://notso.silent-e.com/2009/01/16/what-you-shouldnt-put-on-a-credit-card-swiper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>She wasn&#8217;t THIS excited</title>
		<link>http://notso.silent-e.com/2009/01/04/she-wasnt-this-excited/</link>
		<comments>http://notso.silent-e.com/2009/01/04/she-wasnt-this-excited/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 01:03:21 +0000</pubDate>
		<dc:creator>matte</dc:creator>
				<category><![CDATA[family]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[wtf?]]></category>

		<guid isPermaLink="false">http://notso.silent-e.com/?p=638</guid>
		<description><![CDATA[&#8230; but my sister DID cry when she got her Wii for Christmas. This kid though&#8230; sheesh!]]></description>
			<content:encoded><![CDATA[<p>&#8230; but my sister DID cry when she got her Wii for Christmas.  This kid though&#8230; sheesh!</p>
<p><object width="486" height="412" data="http://services.brightcove.com/services/viewer/federated_f8/1137883380" type="application/x-shockwave-flash"><param name="name" value="flashObj" /><param name="bgcolor" value="#FFFFFF" /><param name="flashvars" value="videoId=6068631001&amp;playerId=1137883380&amp;viewerSecureGatewayURL=https://console.brightcove.com/services/amfgateway&amp;servicesURL=http://services.brightcove.com/services&amp;cdnURL=http://admin.brightcove.com&amp;domain=embed&amp;autoStart=false&amp;" /><param name="src" value="http://services.brightcove.com/services/viewer/federated_f8/1137883380" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://notso.silent-e.com/2009/01/04/she-wasnt-this-excited/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How I block people from visiting a website</title>
		<link>http://notso.silent-e.com/2008/11/24/how-i-block-people-from-visiting-a-website/</link>
		<comments>http://notso.silent-e.com/2008/11/24/how-i-block-people-from-visiting-a-website/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 22:31:37 +0000</pubDate>
		<dc:creator>matte</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://notso.silent-e.com/?p=622</guid>
		<description><![CDATA[Inspired by the article Block a Website for Everyone But You over at CSS Tricks, I thought I&#8217;d post my way of blocking people from accessing my websites while I work on them. Chris Coyier over at CSS Tricks uses the following code in his .htaccess file to block visitors. RewriteEngine On RewriteBase / RewriteCond [...]]]></description>
			<content:encoded><![CDATA[<p>Inspired by the article <a href="http://css-tricks.com/block-a-website-for-everyone-but-you/" target="_blank">Block a Website for Everyone But You</a> over at CSS Tricks, I thought I&#8217;d post my way of blocking people from accessing my websites while I work on them.</p>
<p>Chris Coyier over at CSS Tricks uses the following code in his .htaccess file to block visitors.</p>
<p><code>RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{REMOTE_HOST} !^71\.225\.113\.171<br />
RewriteCond %{REMOTE_HOST} !^71\.185\.239\.212<br />
RewriteCond %{REMOTE_HOST} !^69\.253\.223\.254<br />
RewriteCond %{REQUEST_URI} !/comingsoon\.html$<br />
RewriteRule .* /comingsoon.html [R=302,L]<br />
</code></p>
<p>What he&#8217;s doing there is checking for specific IP addresses that are allowed to see the website but everyone else is sent to the &#8220;comingsoon.html&#8221; webpage.  This is great for people who have specific IP addresses but if you&#8217;re behind a proxy like I am at work then everyone else with you behind that proxy can still see the site.</p>
<p>I find it much easier to redirect everyone but check for a custom cookie that I can set using the <a href="https://addons.mozilla.org/en-US/firefox/addon/60" target="_blank">Webdeveloper Firefox extension</a>.  That way I can check to make sure that the redirect to the maintenance page is actually working.  Here&#8217;s the relevant code that I use (taken from a RoR tutorial of old)</p>
<p><code>RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f<br />
RewriteCond %{SCRIPT_FILENAME} !maintenance.html<br />
RewriteCond %{HTTP_COOKIE} !^.*access_cookie=1.*$<br />
RewriteRule ^.*$ /maintenance.html [L]<br />
</code></p>
<p>where the text &#8220;access_cookie&#8221; (sans quotes) would be whatever cookie name you want to use.  I just create a &#8220;session cookie&#8221; set to a value of &#8220;1&#8243; (or whatever you want to make it) and check for it&#8217;s existence.</p>
<p>That gets around the problem of DHCP granted or spoofed IP addresses.  Sure a cookie is easy to add but if you make the name and/or value sufficiently difficult to guess, no one is getting in.</p>
<p>Now just add your cookie.</p>
<p><img src="http://notso.silent-e.com/images/add_cookie.png" class="clean" /></p>
<p>Note in the image that I have set it to be a &#8220;session cookie&#8221;.  This helps when you forget to delete the cookie.  Just close your tab (FF) or browser (IE), reopen it and the cookie will be gone.</p>
<p>Oh yeah.  The other thing that my .htaccess code does is, on the first line, check for the existence of the &#8220;maintenance.html&#8221; file.  I don&#8217;t want to have to add and remove this code everytime I want to take the site down.  It&#8217;s much easier to just have this code permanently in my .htaccess file and then upload the file that people will see when the site is down.  I then delete it when the site is ready to be reopened.  This is all performed using a custom Capistrano command that I run when I&#8217;m ready to deploy a new version.</p>
]]></content:encoded>
			<wfw:commentRss>http://notso.silent-e.com/2008/11/24/how-i-block-people-from-visiting-a-website/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Visit this site if you are feeling down or just need to laugh your ass off</title>
		<link>http://notso.silent-e.com/2008/10/23/visit-this-site-if-you-are-feeling-down-or-just-need-to-laugh-your-ass-off/</link>
		<comments>http://notso.silent-e.com/2008/10/23/visit-this-site-if-you-are-feeling-down-or-just-need-to-laugh-your-ass-off/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 16:47:35 +0000</pubDate>
		<dc:creator>matte</dc:creator>
				<category><![CDATA[funny]]></category>
		<category><![CDATA[pets]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://notso.silent-e.com/2008/10/23/visit-this-site-if-you-are-feeling-down-or-just-need-to-laugh-your-ass-off/</guid>
		<description><![CDATA[Blender Defender or how to keep cats off the counter]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.plasma2002.com/blenderdefender/" target="_blank">Blender Defender or how to keep cats off the counter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://notso.silent-e.com/2008/10/23/visit-this-site-if-you-are-feeling-down-or-just-need-to-laugh-your-ass-off/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>log_buddy and Windows</title>
		<link>http://notso.silent-e.com/2008/07/10/log_buddy-and-windows/</link>
		<comments>http://notso.silent-e.com/2008/07/10/log_buddy-and-windows/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 18:57:22 +0000</pubDate>
		<dc:creator>matte</dc:creator>
				<category><![CDATA[note to self]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://notso.silent-e.com/?p=533</guid>
		<description><![CDATA[I recently started playing around with the log_buddy gem for Rails and because my development machine is on windows, the &#8220;d&#8221; method wasn&#8217;t playing nice with some paths.  it didn&#8217;t like paths that included the drive letter. this is a sample of a line that would cause log_buddy to barf.  it just so happens to [...]]]></description>
			<content:encoded><![CDATA[<p>I recently started playing around with the log_buddy gem for Rails and because my development machine is on windows, the &#8220;d&#8221; method wasn&#8217;t playing nice with some paths.  it didn&#8217;t like paths that included the drive letter.</p>
<p>this is a sample of a line that would cause log_buddy to barf.  it just so happens to also be the line that causes the error.  <img src='http://notso.silent-e.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><code>c:/ruby/lib/ruby/gems/1.8/gems/log_buddy-0.0.5/lib/log_buddy.rb:98:in `read_line'</code></p>
<p>the original line looked like this&#8230;</p>
<p><code>file, line_number = frame.split(/:/, 2)</code></p>
<p>the fix is to replace that line with</p>
<p><code>file, line_number = frame.reverse.split(/:/, 3)[1..2].map(&amp;:reverse).reverse</code></p>
<p>yeah.  ugly, and maybe could be written better but it works for me.</p>
<p>now if only I could get log_buddy to output good inspections of objects I toss to it&#8230; like &#8220;current_user&#8221;.  I&#8217;m prolly using it wrong right now, but this isn&#8217;t helpful&#8230;</p>
<p><code>current_user = '#&lt;User:0x47143d8&gt;'</code></p>
<p>just saying.  <img src='http://notso.silent-e.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>UPDATE: I monkeypatched log_buddy to fix this functionality.  I created a &#8220;RAILS_ROOT/lib/log_buddy_extensions.rb&#8221; file with the following code.</p>
<pre><code>class LogBuddy

  private

  # Return the calling line
  def self.read_line(frame)
    file, line_number = frame.reverse.split(/:/, 3)[1..2].map(&#038;:reverse).reverse
    line_number = line_number.to_i
    lines = File.readlines(file)
    lines[line_number - 1]
  end

end</code></pre>
<p>and I figured out that the &#8220;current_user&#8221; line above shouldn&#8217;t be &#8230;</p>
<p><code>d { current_user }</code></p>
<p>it should be</p>
<p><code>d { current_user.inspect }</code></p>
<p>that outputs what I want &#8230;</p>
<p><code>current_user.inspect = '#&lt;User id: 1, login: "matte", email: "matte@localhost", crypted_password: "...", salt: "...", created_at: "2007-08-30 18:23:32", updated_at: "2008-07-08 18:57:45", remember_token: "...", remember_token_expires_at: "2008-07-22 18:57:45", name: "...", password_reset_code: nil, company_id: 2, active: true&gt;'</code></p>
]]></content:encoded>
			<wfw:commentRss>http://notso.silent-e.com/2008/07/10/log_buddy-and-windows/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>XSendFile note</title>
		<link>http://notso.silent-e.com/2008/05/13/xsendfile-note/</link>
		<comments>http://notso.silent-e.com/2008/05/13/xsendfile-note/#comments</comments>
		<pubDate>Tue, 13 May 2008 20:26:41 +0000</pubDate>
		<dc:creator>matte</dc:creator>
				<category><![CDATA[note to self]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://notso.silent-e.com/?p=520</guid>
		<description><![CDATA[Note to everyone using Apache and the XSendFile module. If you&#8217;ve included the module and are getting 0-byte files, like I was today, make sure you have the following lines in your VirtualHost config XSendFile on XSendFileAllowAbove on The website needs to know you want to use the module. Duh.]]></description>
			<content:encoded><![CDATA[<p><img class="clean right" title="I coulda had a V8" src="http://notso.silent-e.com/images/v8juice.jpg" alt="I coulda had a V8" />Note to everyone using Apache and the XSendFile module.  If you&#8217;ve included the module and are getting 0-byte files, like I was today, make sure you have the following lines in your VirtualHost config</p>
<p><code style="width: 50%">XSendFile on<br />
XSendFileAllowAbove on</code></p>
<p>The website needs to know you want to use the module.  Duh.  <img src='http://notso.silent-e.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://notso.silent-e.com/2008/05/13/xsendfile-note/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gas Prices on Google Maps</title>
		<link>http://notso.silent-e.com/2008/05/04/gas-prices-on-google-maps/</link>
		<comments>http://notso.silent-e.com/2008/05/04/gas-prices-on-google-maps/#comments</comments>
		<pubDate>Sun, 04 May 2008 17:14:19 +0000</pubDate>
		<dc:creator>matte</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[wtf?]]></category>

		<guid isPermaLink="false">http://notso.silent-e.com/2008/05/04/gas-prices-on-google-maps/</guid>
		<description><![CDATA[While researching our drive today I was looking around the new turn-by-turn street view added to Google directions. take a look at what the gas prices were the day these pics were taken. gah! I uploaded this through]]></description>
			<content:encoded><![CDATA[<p><a title="flickr photo" href="http://www.flickr.com/photos/silent_e/2464185979/"><img class="flickr-photo" title="Gas Prices on Google Maps" src="http://farm3.static.flickr.com/2140/2464185979_e133660ea5.jpg" alt="Gas Prices on Google Maps" /></a></p>
<p class="flickr-yourcomment">While researching our drive today I was looking around the new turn-by-turn street view added to Google directions. take a look at what the gas prices were the day these pics were taken. gah!</p>
<p>I uploaded this through <a href="http://www.flickr.com/photos/silent_e/"><img class="clean" title="flickr" src="http://www.flickr.com/images/flickr_logo_blog.gif" border="0" alt="flickr" width="41" height="18" align="absmiddle" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://notso.silent-e.com/2008/05/04/gas-prices-on-google-maps/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
