<?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>The Original Jelani Harris &#187; Uncategorized</title>
	<atom:link href="http://jelaniharris.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://jelaniharris.com</link>
	<description>The original website of Jelani Harris the original of course</description>
	<lastBuildDate>Sat, 24 Sep 2011 18:58:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installing Ruby on Rails 3 in Windows</title>
		<link>http://jelaniharris.com/2011/installing-ruby-on-rails-3-in-windows/</link>
		<comments>http://jelaniharris.com/2011/installing-ruby-on-rails-3-in-windows/#comments</comments>
		<pubDate>Sun, 29 May 2011 22:10:33 +0000</pubDate>
		<dc:creator>Jelani Harris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jelaniharris.com/?p=189</guid>
		<description><![CDATA[So last week I got a little tired of having to reboot my computer to dual-boot in a linux environment so that I could work on Rails stuff. Then I decided to try using Rails in Windows. Here's a step by step guide on how to install rails in Windows. Install Ruby 1.9 To install [...]]]></description>
			<content:encoded><![CDATA[<p>So last week I got a little tired of having to reboot my computer to dual-boot in a linux environment so that I could work on Rails stuff. Then I decided to try using Rails in Windows. Here's a step by step guide on how to install rails in Windows.</p>
<p><strong>Install Ruby 1.9</strong></p>
<p>To install ruby on our windows machine we will be using RubyInstaller. RubyInstaller is the easiest way to install ruby in windows. It includes the Ruby execution environment and documentation.</p>
<p>First download and install The <a href="http://rubyinstaller.org/download.html">RubyInstaller</a>.  Installing it to <em>C:\Ruby192</em> is perfectly fine. I would <strong>not</strong> recommend installing Ruby to a place that has spaces in it, like the Program Files folder.</p>
<p>From here you can also download the DevKit as well. It allows you to have RubyGems build C-based gems. If you decide to get the DevKit, just install it to the <em>C:\Ruby192\devkit</em> folder for now.</p>
<p>So as you're installing the RubyInstaller, Be sure to select, "Add Ruby Executables to your Path"</p>
<p><a href="http://jelaniharris.com/blog/wp-content/uploads/2011/05/installing_ruby_windows.jpg"><img class="aligncenter size-full wp-image-192" title="installing_ruby_windows" src="http://jelaniharris.com/blog/wp-content/uploads/2011/05/installing_ruby_windows.jpg" alt="" width="513" height="396" /></a></p>
<p><a href="http://jelaniharris.com/blog/wp-content/uploads/2011/05/installing_ruby_windows.jpg"></a>Now let's verify that Ruby has been correctly installed. Get to your command prompt (Via Start -&gt; Run -&gt; type in <em>cmd</em>). Then type in:</p>
<blockquote><p>ruby -v</p></blockquote>
<p>Then it should reply with something similar to:</p>
<blockquote><p>ruby 1.9.2p180 (2011-02-18) [i386-mingw32]</p></blockquote>
<p>Now with your command prompt still open, let's check to see that RubyGems was installed as well:</p>
<blockquote><p>gem -v</p></blockquote>
<p><a href="http://jelaniharris.com/blog/wp-content/uploads/2011/05/installing_ruby_windows_2.jpg"><img class="aligncenter size-full wp-image-193" title="installing_ruby_windows_2" src="http://jelaniharris.com/blog/wp-content/uploads/2011/05/installing_ruby_windows_2.jpg" alt="" width="677" height="340" /></a></p>
<p>Hey that wasn't so difficult was it? I told you that RubyInstaller was easy <img src='http://jelaniharris.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Install SqlLite3</strong></p>
<p>So when running rails we would like to have a database to start off with without having to set up a local database connection. And of course, Windows does not support SqlLite right out of the box. Thus we will have to get it ourselves.</p>
<p>Go to the <a title="SqlLite Download Page" href="http://sqlite.org/download.html">SQLite download page</a> and find the precompiled binaries for windows section and download the <a title="Sqlite for windows" href="http://www.sqlite.org/sqlite-dll-win32-x86-3070603.zip">sqlite-dll-win32-x86-3070603.zip</a></p>
<p>After unzipping that file, you should end up with the files sqlite3.dll and sqlite3.def. Copy both of those files into the <em>C:\Ruby192\bin</em> directory.</p>
<p>Also, while you're still at the SqlLite download page you should pick up the shell file (<a title="SQLite shell file" href="http://www.sqlite.org/sqlite-shell-win32-x86-3070603.zip">sqlite-shell-win32-x86-3070603.zip</a>) as well. The command line shell is useful for looking around in your sqlite3 databases. Copy the executable in the zip also to the <em>C:\Ruby192\bin</em> directory. You can verify that this is installed by typing:</p>
<blockquote><p>sqllite3 -version</p></blockquote>
<p>Now we should install the ruby bindings to SQLite3</p>
<blockquote><p>gem install sqlite3</p></blockquote>
<p>&nbsp;</p>
<p><strong>Install Rails 3</strong></p>
<p>Rails is distributed by RubyGems. When you install Ruby, the RubyGems system is also installed. This makes it really easy to install Rails.</p>
<p>Install Rails by typing:</p>
<blockquote><p>gem install rails</p></blockquote>
<p>This should take a few minutes because it is installing several of the Rails dependencies (ActiveRecord, ActionPack, ActiveSupport, etc).</p>
<p>When that is done installing, verify that the correct version of Rails was installed by typing</p>
<blockquote><p>rails -v</p></blockquote>
<p>And it should respond with 3.0.7 or higher</p>
<p>&nbsp;</p>
<p><strong>Creating a Rails application</strong></p>
<p>Go into your development directory and type in:</p>
<blockquote><p>rails new project_name</p></blockquote>
<p>Replace the project_name with the name of your new application. You should see it create a bunch of new directories and files</p>
<p>Now we need to install the gems we are going to use with this project. You can install the gems using:</p>
<blockquote><p>bundle install</p></blockquote>
<p>Once those gems are installed, we need to create the sqlite3 database in your project directory by typing in:</p>
<blockquote><p>rake db:migrate</p></blockquote>
<p>Once that is done, start your rails server by using the commands</p>
<blockquote><p>rails server</p></blockquote>
<p><a href="http://jelaniharris.com/blog/wp-content/uploads/2011/05/installing_ruby_windows_3.jpg"><img class="aligncenter size-full wp-image-200" title="installing_ruby_windows_3" src="http://jelaniharris.com/blog/wp-content/uploads/2011/05/installing_ruby_windows_3.jpg" alt="" width="677" height="160" /></a></p>
<p>And then navigate to <a href="http://localhost:3000/">http://localhost:3000/</a> to view your application. It should look something similar to this:</p>
<p><a href="http://jelaniharris.com/blog/wp-content/uploads/2011/05/installing_ruby_windows_4.jpg"><img class="aligncenter size-large wp-image-202" title="installing_ruby_windows_4" src="http://jelaniharris.com/blog/wp-content/uploads/2011/05/installing_ruby_windows_4-1024x572.jpg" alt="" width="550" height="307" /></a></p>
<p>&nbsp;</p>
<p>Now get out there and start working on your web projects!</p>
]]></content:encoded>
			<wfw:commentRss>http://jelaniharris.com/2011/installing-ruby-on-rails-3-in-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>No more updates to Google Notebook</title>
		<link>http://jelaniharris.com/2009/no-more-updates-to-google-notebook/</link>
		<comments>http://jelaniharris.com/2009/no-more-updates-to-google-notebook/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 19:17:37 +0000</pubDate>
		<dc:creator>Jelani Harris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jelaniharris.com/?p=34</guid>
		<description><![CDATA[One of the only Google app (apart from Gmail) that I use the most Google Notebook will have no more updates. Before I signed up to Google I used to keep all of the websites that I thought were useful in my bookmarks and that became really messy really quickly. Also with the useful firefox [...]]]></description>
			<content:encoded><![CDATA[<p>One of the only Google app (apart from Gmail) that I use the most <a title="Google Notebook stops updates" href="http://www.informationweek.com/news/internet/google/showArticle.jhtml?articleID=212900775">Google Notebook will have no more updates</a>. Before I signed up to Google I used to keep all of the websites that I thought were useful in my bookmarks and that became really messy really quickly. Also with the useful firefox extension I can now just right click and add to notebook if I ever run across a website that I want to return to later.</p>
<p>Google notebook isn't perfect. I just wish they would continue making it a better product. But now that I think about it, Google is an company that makes most of it's revenue selling advertisements online (that I hardly see due to <a title="Adblock - the only way to use the internet" href="https://addons.mozilla.org/en-US/firefox/addon/1865">AdBlock</a>) and I don't see how they could've made their Notebook app a profitable endeavor. I know that I wouldn't pay for a "pro" version, and that their ads  would be <a href="https://addons.mozilla.org/firefox/addon/748">GreaseMonkey</a>'d out or plain ignored - all I want is a list of bookmarks not solicitations!</p>
<p>Now I'm going to search online for other alternatives to replace and to transfer all of my bookmarks to. I'm looking at delicious right now - I just don't like sharing my bookmarks with the world too much. But maybe I'll let it go once I get my lifestream properly set up on here.</p>
]]></content:encoded>
			<wfw:commentRss>http://jelaniharris.com/2009/no-more-updates-to-google-notebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using overflow:auto for a tbody tag in IE 6.0</title>
		<link>http://jelaniharris.com/2008/using-overflowauto-for-a-tbody-tag-in-ie-60/</link>
		<comments>http://jelaniharris.com/2008/using-overflowauto-for-a-tbody-tag-in-ie-60/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 16:44:53 +0000</pubDate>
		<dc:creator>Jelani Harris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://jelaniharris.com/?p=24</guid>
		<description><![CDATA[Guess what? It's not possible! in Opera 7.20, IE 5.5 or IE 6.0. Instead what happens is that it's treated like a regular table without the scrollbars. Also, the styling specified for the tbody is applied to every tr row. How lame. Another reason why we all should just stop supporting IE 6.0.]]></description>
			<content:encoded><![CDATA[<p>Guess what? <strong>It's not possible!</strong> in Opera 7.20, IE 5.5 or IE 6.0. Instead what happens is that it's treated like a regular table without the scrollbars. Also, the styling specified for the tbody is applied to every tr row. How lame.</p>
<p>Another reason why we all should just stop supporting IE 6.0.</p>
]]></content:encoded>
			<wfw:commentRss>http://jelaniharris.com/2008/using-overflowauto-for-a-tbody-tag-in-ie-60/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Anchors from a Url in Javascript</title>
		<link>http://jelaniharris.com/2008/remove-anchors-from-a-url-in-javascript/</link>
		<comments>http://jelaniharris.com/2008/remove-anchors-from-a-url-in-javascript/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 06:25:31 +0000</pubDate>
		<dc:creator>Jelani Harris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jelaniharris.com/?p=22</guid>
		<description><![CDATA[Here is something useful that I discovered in my programming for the Apparatus Complex. I needed to strip out the anchor portion of a link and leave the rest of the url intact. For example I wanted: http://www.jelaniharris.com/blog/I-love-apple-pies#comments To look like: http://www.jelaniharris.com/blog/I-love-apple-pies Here's the ideal way to do this with Javascript: //Grab our current Url [...]]]></description>
			<content:encoded><![CDATA[<p>Here is something useful that I discovered in my programming for the <a title="Apparatus Complex" href="http://apparatuscomplex.com">Apparatus Complex</a>. I needed to strip out the anchor portion of a link and leave the rest of the url intact. For example I wanted:</p>
<p>http://www.jelaniharris.com/blog/I-love-apple-pies#comments</p>
<p>To look like:</p>
<p>http://www.jelaniharris.com/blog/I-love-apple-pies</p>
<p>Here's the ideal way to do this with Javascript:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">	<span style="color: #006600; font-style: italic;">//Grab our current Url</span>
	<span style="color: #003366; font-weight: bold;">var</span> url <span style="color: #339933;">=</span> window.<span style="color: #660066;">location</span>.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #006600; font-style: italic;">//Remove anchor from url using the split</span>
	url <span style="color: #339933;">=</span> url.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span>“#”<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></pre></div></div>

<p>It doesn't get any easier than that. What this code does is grab the URL from the current window, and then splits the string where a '#' is. Whether or not if the '#' exists in the string, it'll truncates the string up to the '#' or return the whole url.</p>
<p>Thanks to Jonathan Rochkind in the comments for this simpler version.</p>
]]></content:encoded>
			<wfw:commentRss>http://jelaniharris.com/2008/remove-anchors-from-a-url-in-javascript/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Old domain, new language</title>
		<link>http://jelaniharris.com/2008/old-domain/</link>
		<comments>http://jelaniharris.com/2008/old-domain/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 21:45:45 +0000</pubDate>
		<dc:creator>Jelani Harris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[site5]]></category>

		<guid isPermaLink="false">http://jelaniharris.com/?p=21</guid>
		<description><![CDATA[So I've been the proud owner of a new website that I was surprised to get: http://crimsonize.com. I've actually had it for awhile and nothing is there except an outdated version of WordPress, and a blank hello world page. I'm surprised that it hasn't been spammed (or hacked) to hell now. But now I need [...]]]></description>
			<content:encoded><![CDATA[<p>So I've been the proud owner of a new website that I was surprised to get: <a href="http://crimsonize.com">http://crimsonize.com</a>. I've actually had it for awhile and nothing is there except an outdated version of <a title="WordPress" href="http://www.wordpress.org">WordPress</a>, and a blank hello world page. I'm surprised that it hasn't been spammed (or hacked) to hell now. But now I need to do something with it.</p>
<p>I was considering making it a personal art portfolio, but now I'm leaning towards making it an art community where people share and critique each other's artwork. The only thing I'm concerned with is that I don't want people stealing art from <a title="DeviantArt" href="http://www.deviantart.com">deviantArt</a> and claiming them as their own and having people complain to me about it. It's just one of those things I sorta don't want to deal with, and that I know I'm going to deal with when <a title="Apparatus Complex" href="http://apparatuscomplex.com">Apparatus Complex</a> gets  popular in the future - when it's complete.</p>
<p>Of course before I actually go through with this community website I have to look at all of the "competition" and see what they do right and what they do wrong and then capitalize on those issues. That's business and research I suppose. Having facts and history and repeating it doesn't guarantee that a site will be popular.</p>
<p>Also, I do plan on creating this website in a new language. I've heard a lot of good things about <a href="http://www.rubyonrails.org/">Ruby on Rails</a> (and <a href="http://www.zedshaw.com/rants/rails_is_a_ghetto.html">not-so good things</a>). I also just found out that my webhost, <a href="http://www.site5.com">Site5</a>, completely supports rails so there's no reason now why I shouldn't be learning this popular and new language.</p>
<p>The best way that I learn a new language is to have a project - or a goal - in mind so that I can visualize what my goal is and what I take the steps I need to do to get there. I'm not really one of those programmers that can just do all of the examples in a book and claim that I know the language. I have to get really deep into the planning of the project, and notice the parallels between the new language I'm learning and the old languages I already know. Like just skimming through some sample code, I notice that the way Ruby is structured it looks like Python with Java sprinkles. Or maybe, more like Java Flakes cereal with Ruby marshmallows.</p>
<p>(That actually sounds kinda delicious. I'm in the mood for Lucky Charms now.)</p>
<p>They say that once you learn/master one programming language, all of the other languages you want to learn get easier. I think that's 100% true.</p>
]]></content:encoded>
			<wfw:commentRss>http://jelaniharris.com/2008/old-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

