<?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>SkidVis.com &#187; Code</title>
	<atom:link href="http://www.skidvis.com/index.php/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.skidvis.com</link>
	<description>The yadda yadda of Skid Vis</description>
	<lastBuildDate>Mon, 30 Aug 2010 14:54:56 +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>Activate Windows 7 after using an Upgrade disk</title>
		<link>http://www.skidvis.com/index.php/2009/11/activate-windows-7-after-using-an-upgrade-disk/</link>
		<comments>http://www.skidvis.com/index.php/2009/11/activate-windows-7-after-using-an-upgrade-disk/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 23:34:00 +0000</pubDate>
		<dc:creator>Skid Vis</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.skidvis.com/?p=325</guid>
		<description><![CDATA[I like it! Windows 7 is great! I&#8217;ve been playing around with the beta at work for a while and I&#8217;m pretty impressed. So impressed that I actually BOUGHT the FAMILY PACK! That&#8217;s right, I bought 3 copies of Windows 7! That&#8217;s gotta tell you something! It installed flawlessly on my MacBook Pro, my Mac [...]]]></description>
			<content:encoded><![CDATA[<p><strong>I like it!</strong></p>
<p>Windows 7 is great! I&#8217;ve been playing around with the beta at work for a while and I&#8217;m pretty impressed. So impressed that I actually BOUGHT the FAMILY PACK! That&#8217;s right, I bought 3 copies of Windows 7! That&#8217;s gotta tell you something! It installed flawlessly on my MacBook Pro, my Mac Mini, and my trust custom PC. I didn&#8217;t have to hunt for a single driver.</p>
<p><strong>Uh.. there&#8217;s a problem here..</strong></p>
<p>Since I actually own several copies of Windows XP, I bought the Upgrade version of Windows 7. The box says:</p>
<blockquote><p>&#8220;<strong><em>If you are upgrading from Windows XP</em>,</strong> you will need to back up your files and settings, <strong><em>perform a clean install</em></strong> and then reinstall your existing files, settings, and programs.&#8221;</p></blockquote>
<p>Not a problem, it&#8217;s never a good idea to upgrade over your existing stuff anyway, It&#8217;s like building a new house on a rotten foundation, so I ALWAYS do a fresh install. And that&#8217;s just what I did, I erased my hard drive (after backing everything up!) and installed a fresh coat of Windows 7. However, when it came time for me to activate, I got a nasty message saying that I didn&#8217;t have the right license to do a fresh install.. and I COULD NOT ACTIVATE!</p>
<p>Lucky for me, I have a good friend named Google that told me how to bypass this little GLITCH! Here are the steps you need to take if you run into the same issue.</p>
<blockquote>
<ul>
<li>Once you have reached the desktop, click Start, type: <strong>CMD</strong></li>
<li>Right-click <strong>CMD</strong>, click ‘Run as administrator’</li>
<li>At the command prompt, type, <strong>regedit</strong></li>
<li>Go to <strong>HKLM/Software/Microsoft/Windows/CurrentVersion/Setup/OOBE/mediabootinstall</strong></li>
<li>Changed its value from <strong>1</strong> to <strong>0</strong></li>
<li>Go back to the Command Prompt, type the following: <strong>slmgr /rearm</strong></li>
<li>Restart the PC and use the activate windows to re-enter your product key</li>
</ul>
</blockquote>
<p>And that should do it! It&#8217;s a silly thing, but Microsoft can&#8217;t get everything right.</p>
<p>I&#8217;d like to thank <span><a rel="nofollow" href="http://social.answers.microsoft.com/Profile/en-US/?user=Andre%20Da%20Costa&amp;referrer=http%3a%2f%2fsocial.answers.microsoft.com%2fForums%2fen-US%2fw7install%2fthread%2f7307d36f-aa51-4489-8db7-c87d2f3d643f&amp;rh=Y752Jt9KxhbldBUBQ%2fyhKELW5Xq7V9TQ4Iu%2b2KJEsX0%3d&amp;sp=forums"><span>Andre Da Costa</span></a> for posting that tip on a forum somewhere.<br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.skidvis.com/index.php/2009/11/activate-windows-7-after-using-an-upgrade-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get SproutCore running on Ubuntu 8.04</title>
		<link>http://www.skidvis.com/index.php/2008/06/how-to-get-sproutcore-running-on-ubuntu-804/</link>
		<comments>http://www.skidvis.com/index.php/2008/06/how-to-get-sproutcore-running-on-ubuntu-804/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 20:36:12 +0000</pubDate>
		<dc:creator>Skid Vis</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[FAQs  Help  and Tutorials]]></category>
		<category><![CDATA[Hard disk drive]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[RubyGems]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ultra-Mobile PC]]></category>

		<guid isPermaLink="false">http://www.skidvis.com/?p=191</guid>
		<description><![CDATA[I had some issues getting it running.. so here&#8217;s what I done did to fix it. Open up a terminal, crack your knuckles, then: sudo apt-get install ruby If you don&#8217;t have Ruby installed, guess what.. you need it. sudo apt-get install rubygems You also need rubygems, since sproutcore is such a gem. sudo apt-get [...]]]></description>
			<content:encoded><![CDATA[<p>I had some issues getting it running.. so here&#8217;s what I done did to fix it.</p>
<p>Open up a terminal, crack your knuckles, then:</p>
<ol>
<li><strong><a class="zem_slink" title="Sudo" rel="homepage" href="http://www.sudo.ws/">sudo</a> <a class="zem_slink" title="Advanced Packaging Tool" rel="wikipedia" href="http://en.wikipedia.org/wiki/Advanced_Packaging_Tool">apt-get</a> <a class="zem_slink" title="Install (Unix)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Install_%28Unix%29">install</a> ruby </strong>
<ul>
<li>If you don&#8217;t have <a class="zem_slink" title="Ruby (programming language)" rel="homepage" href="http://www.ruby-lang.org/">Ruby</a> <a class="zem_slink" title="Installation (computer programs)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Installation_%28computer_programs%29">installed</a>, guess what.. you need it.</li>
</ul>
</li>
<li><strong>sudo apt-get install <a class="zem_slink" title="RubyGems" rel="homepage" href="http://docs.rubygems.org">rubygems</a></strong>
<ul>
<li>You also need rubygems, since sproutcore is such a gem.</li>
</ul>
</li>
<li><strong>sudo apt-get install ruby1.8-dev</strong>
<ul>
<li>You&#8217;ll need this in order for some things to compile during install.</li>
</ul>
</li>
<li><strong>sudo apt-get install build-essential </strong>
<ul>
<li>You&#8217;ll need this in order for some things to compile during install.</li>
</ul>
</li>
<li><strong>sudo gem install sproutcore </strong>
<ul>
<li>Hey look, we&#8217;re installing sproutcore finally!</li>
</ul>
</li>
<li><strong>sudo nano ~/.bashrc</strong>
<ul>
<li>For some reason, <a class="zem_slink" title="Ubuntu (Linux distribution)" rel="homepage" href="http://www.ubuntu.com/">Ubuntu</a> doesn&#8217;t know to look in the Ruby bin folder so we need add this line at the very bottom of the .bashrc file: <strong>export <a class="zem_slink" title="Port Authority Trans-Hudson" rel="wikipedia" href="http://en.wikipedia.org/wiki/Port_Authority_Trans-Hudson">PATH</a>=$PATH:/var/lib/gems/1.8/bin</strong></li>
</ul>
</li>
<li>Save the file (CTRL + X), and close the terminal.</li>
<li>Open a new terminal and type <strong>sproutcore poop</strong> and hit enter.. yay, it worked?</li>
</ol>
<p>*note: When presented with the option, I always chose the <strong>ruby</strong> install, <strong>not win32 or jruby</strong>.</p>
<p>Now to go <a href="http://www.SproutCore.com">www.SproutCore.com</a> and learn, my friend.. LEARN!</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/46b39860-f5b5-4be2-bd2f-f2ca4d2ca975/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_a.png?x-id=46b39860-f5b5-4be2-bd2f-f2ca4d2ca975" alt="Zemanta Pixie" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.skidvis.com/index.php/2008/06/how-to-get-sproutcore-running-on-ubuntu-804/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I&#8217;m a cunning Linguist!</title>
		<link>http://www.skidvis.com/index.php/2008/06/im-a-cunning-linguist/</link>
		<comments>http://www.skidvis.com/index.php/2008/06/im-a-cunning-linguist/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 15:06:41 +0000</pubDate>
		<dc:creator>Skid Vis</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Internet Information Services]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[NET Framework]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.skidvis.com/?p=190</guid>
		<description><![CDATA[Image via Wikipedia I&#8217;m on a mission from God During the last year, I&#8217;ve been on a quest.. a quest to learn the next best thing in programming. I&#8217;ve taken trips here and there to engage in week-long training courses, boot camps, and so on. For the last decade or so, I&#8217;ve been a .NET [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em; float: right; display: block;"><a href="http://commons.wikipedia.org/wiki/Image:CSS.svg"><img style="border: medium none; display: block;" src="http://upload.wikimedia.org/wikipedia/commons/thumb/8/86/CSS.svg/202px-CSS.svg.png" alt="A graphical depiction of a very simple css document" /></a></p>
<p class="zemanta-img-attribution">Image via <a href="http://commons.wikipedia.org/wiki/Image:CSS.svg" target="_blank">Wikipedia</a></p>
</div>
<p><strong>I&#8217;m on a mission from God</strong></p>
<p>During the last year, I&#8217;ve been on a quest.. a quest to learn the next best thing in programming. I&#8217;ve taken trips here and there to engage in week-long training courses, boot camps, and so on. For the last decade or so, I&#8217;ve been a <a class="zem_slink" title=".NET Framework" rel="homepage" href="http://www.microsoft.com/net">.NET</a> programmer, I&#8217;m not the best, by far, but I&#8217;m not the worst either. I know enough to do any task I&#8217;ve ever needed to, and what I don&#8217;t know I at least know how to look up.</p>
<p><span style="color: #000000;"><strong>Stick with what you know!</strong></span></p>
<p>.NET is a fairly simple technology to use, and I enjoy it, but I don&#8217;t want to be one of those developers that puts all his eggs into one basket, then ends up out on the street when a new technology comes around and becomes the next hot thing. I&#8217;ve tried quite a few technologies, so before I forget them all.. here&#8217;s what I&#8217;ve dabbled in:</p>
<ul>
<li>Flex:
<ul>
<li>+ Uses Flash for <a class="zem_slink" title="User interface" rel="wikipedia" href="http://en.wikipedia.org/wiki/User_interface">UI</a>, so it looks EXACTLY the same in every browser!</li>
<li>+ You pretty much DRAW the UI, so it&#8217;s easy and, dare I say it, FUN!</li>
<li>- No direct ability to talk to a database.. how limiting!</li>
<li>- Flex 2 didn&#8217;t talk with .NET very well, you needed a middle-man (WebORB) to do any real work and that was a real pain.</li>
</ul>
</li>
<li>Silverlight:
<ul>
<li>+ Works with .NET</li>
<li>- It&#8217;s <a class="zem_slink" title="Microsoft" rel="homepage" href="http://www.microsoft.com/worldwide/">Microsoft</a>&#8216;s version of Flash, not many people have it on their computers!</li>
<li>- Not nearly as fun to &#8220;Draw&#8221; your interface as Flex.. why couldn&#8217;t Adobe and Microsoft just work together?!</li>
</ul>
</li>
<li><a class="zem_slink" title="Ruby on Rails" rel="homepage" href="http://www.rubyonrails.org">Ruby on Rails</a>:
<ul>
<li>+ Easy to learn</li>
<li>+ Intuitive</li>
<li>+ Uses <a class="zem_slink" title="Model-view-controller" rel="wikipedia" href="http://en.wikipedia.org/wiki/Model-view-controller">MVC</a></li>
<li>- Doesn&#8217;t run on <a class="zem_slink" title="Internet Information Services" rel="homepage" href="http://www.microsoft.com/iis">IIS</a>.. easily.</li>
<li>- Requires supreme geek abilities to publish it on your own server.. I enjoy sunlight too much.</li>
</ul>
</li>
<li>PHP:
<ul>
<li>+ By far the most popular language on the web.. tons of supporting documents</li>
<li>+ Fairly easy to learn</li>
<li>+ Works with IIS!</li>
<li>- Uuuuugly! Anyone who codes in it has nightmares.</li>
</ul>
</li>
<li>Jaxer:
<ul>
<li>+ Javascript on the client AND server!</li>
<li>+ No need to know anything other than HTML, CSS, and Javascript!</li>
<li>- Doesn&#8217;t play well with IIS</li>
<li>- Performance and scalability haven&#8217;t been tested.</li>
<li>= I&#8217;m keeping an eye on this one.</li>
</ul>
</li>
<li>Django:
<ul>
<li>+ Easy as heck.. a <a class="zem_slink" title="Web application framework" rel="wikipedia" href="http://en.wikipedia.org/wiki/Web_application_framework">web framework</a> for Python</li>
<li>+ Actually had fun coding in it.. that&#8217;s rare.</li>
<li>+ Uses MVC</li>
<li>- Doesn&#8217;t work at all with IIS! Damn!</li>
</ul>
</li>
<li>SproutCore:
<ul>
<li>+ An <a class="zem_slink" title="Ajax (programming)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Ajax_%28programming%29">AJAX</a> framework, used by Apple</li>
<li>+ Creates Javascript code to do a lot of work for you on the client.</li>
<li>+ Uses MVC</li>
<li>+ Integrates well with server-side technologies</li>
<li>- <span style="text-decoration: line-through;">Mac required; I&#8217;d have to do the .NET stuff in Windows, and SproutCore on a Mac.. doesn&#8217;t sound fun! (They&#8217;re working on Windows compatibility though.) </span>Update 2008-06-18: Now works with Windows.</li>
</ul>
</li>
</ul>
<p><strong>What else you got?</strong></p>
<p>I think that&#8217;s it. I may have forgotten something though, I <em>have</em> tried a lot. I don&#8217;t regret any of it though, I&#8217;ve learned tons about these technologies and, more importantly, about myself as a developer. If nothing else I know I&#8217;m not one of those developers that looks down on anyone not using what I&#8217;m using. Each technology has strengths and weaknesses and it&#8217;s up to the developer to choose the right one for the task at hand.</p>
<p><strong>So what, you think you&#8217;re better than me, punk?!</strong></p>
<p>Yes.. I am.. get over it.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/a2504123-3eb5-484d-979c-415bef9b6a71/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_a.png?x-id=a2504123-3eb5-484d-979c-415bef9b6a71" alt="Zemanta Pixie" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.skidvis.com/index.php/2008/06/im-a-cunning-linguist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Displaying IP address with Javascript</title>
		<link>http://www.skidvis.com/index.php/2008/06/displaying-ip-address-with-javascript/</link>
		<comments>http://www.skidvis.com/index.php/2008/06/displaying-ip-address-with-javascript/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 14:22:48 +0000</pubDate>
		<dc:creator>Skid Vis</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[javascript IP address]]></category>

		<guid isPermaLink="false">http://www.skidvis.com/?p=187</guid>
		<description><![CDATA[Sometimes you need to check the users IP address and want to use Javascript to do so, bu Javascript has no way of getting that info. That&#8217;s why I&#8217;ve created a simple script that allows you to access the IP via JavaScript. Simply copy this to your HTML: &#60;script src=&#8221;http://skidvis.com/myip.aspx&#8221;&#62;&#60;/script&#62; That will return a simple [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you need to check the users IP address and want to use Javascript to do so, bu Javascript has no way of getting that info. That&#8217;s why I&#8217;ve created a simple script that allows you to access the IP via JavaScript.<br />
Simply copy this to your HTML:</p>
<p>&lt;script src=&#8221;http://skidvis.com/myip.aspx&#8221;&gt;&lt;/script&gt;</p>
<p>That will return a simple JavaScript variable named myIP which contains the users IP address.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.skidvis.com/index.php/2008/06/displaying-ip-address-with-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Digg.com API for ASP.NET (VB)</title>
		<link>http://www.skidvis.com/index.php/2007/05/diggcoms-api/</link>
		<comments>http://www.skidvis.com/index.php/2007/05/diggcoms-api/#comments</comments>
		<pubDate>Fri, 25 May 2007 21:00:07 +0000</pubDate>
		<dc:creator>Skid Vis</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.skidvis.com/?p=105</guid>
		<description><![CDATA[Below is the code needed to use Digg.com&#8217;s API which is in REST instead of .NET&#8217;s webservice standard, SOAP. Usage is simple: copy the function to your page Import System.Net call the function while passing the required endpoint and your valid diggKey ( a standard url like: http://www.skidvis.com ) it will return a DataSet with [...]]]></description>
			<content:encoded><![CDATA[<p>Below is the code needed to use Digg.com&#8217;s API which is in REST instead of .NET&#8217;s webservice standard, SOAP.</p>
<p>Usage is simple:</p>
<ul>
<li>copy the function to your page</li>
<li>Import System.Net</li>
<li>call the function while passing the required <a href="http://apidoc.digg.com/CompleteList">endpoint</a> and your valid <a href="http://apidoc.digg.com/ApplicationKeys">diggKey</a> ( a standard url like: http://www.skidvis.com )</li>
<li>it will return a DataSet with the required info!</li>
</ul>
<p>Thanks to Gaskell.org for providing the C# version of this!</p>
<p><code><br />
Shared Function diggRaw(ByVal myEndPoint As String, ByVal diggKey As String) As Data.DataSet<br />
&nbsp;Try<br />
&nbsp;&nbsp;Dim myURL As String = "http://services.digg.com/" &amp; myEndPoint &amp; "?appkey=" &amp; diggKey<br />
&nbsp;&nbsp;Dim myReq As HttpWebRequest = WebRequest.Create(myURL)<br />
&nbsp;&nbsp;myReq.UserAgent = ".Net"<br />
&nbsp;&nbsp;Dim myResp As HttpWebResponse = myReq.GetResponse()<br />
&nbsp;&nbsp;Dim myStream As New System.IO.StreamReader(myResp.GetResponseStream)<br />
&nbsp;&nbsp;Dim myDS As New Data.DataSet("Digg")<br />
&nbsp;&nbsp;myDS.ReadXml(myStream)<br />
&nbsp;&nbsp;Return (myDS)<br />
&nbsp;Catch ex As WebException<br />
&nbsp;&nbsp;'If there's an error, return a dataset named "Error"<br />
&nbsp;&nbsp;'You can just check the .DatasetName to see if it's an error.<br />
&nbsp;&nbsp;'If it IS an error, Table(0).Row(0).Item(0) will contain the message.<br />
&nbsp;&nbsp;Dim myError As New DataSet("Error")<br />
&nbsp;&nbsp;Dim myTable As New DataTable("Error")<br />
&nbsp;&nbsp;myTable.Columns.Add("Message")<br />
&nbsp;&nbsp;Dim myRow As DataRow = myTable.NewRow<br />
&nbsp;&nbsp;myRow("Message") = ex.Message<br />
&nbsp;&nbsp;Return (myError)<br />
&nbsp;End Try<br />
End Function<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.skidvis.com/index.php/2007/05/diggcoms-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->