<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel>
	  <title>Ask MetaFilter questions tagged with ruby</title>
      <link>http://ask.metafilter.com/tags/ruby</link>
      <description>Questions tagged with 'ruby' at Ask MetaFilter.</description>
	  <pubDate>Thu, 10 Sep 2009 17:07:22 -0800</pubDate> <lastBuildDate>Thu, 10 Sep 2009 17:07:22 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>Best programming language for a web design class?</title>
	<link>http://ask.metafilter.com/132523/Best%2Dprogramming%2Dlanguage%2Dfor%2Da%2Dweb%2Ddesign%2Dclass</link>	
	<description>What programming language should I teach my kids?  (web dev) I&apos;ve got about 20 interesting and enthusiastic highschool kids in a web design class. I&apos;m having a blast teaching them, and so far we&apos;ve covered some of the basics(html, css, and trappings of JS).&lt;br&gt;
&lt;br&gt;
We&apos;re going to be on Javascript for a while, but at some point we&apos;re going to move on to a little database stuff and I want to be ready.&lt;br&gt;
&lt;br&gt;
My own personal background is in PHP, but I&apos;ve played with ruby and done a decent amount of work in python. I&apos;ve also read that lua is a good choice, and there are some interesting MVCs in that area(plus Lua&apos;s syntax is similar to JS which I like).&lt;br&gt;
&lt;br&gt;
Really though, I want to avoid running around in circles. So what programming language should I teach my kids? Lua, python, ruby, php, something else entirely?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.132523</guid>
	<pubDate>Thu, 10 Sep 2009 17:07:22 -0800</pubDate>
	<category>lua</category>
	<category>php</category>
	<category>programming</category>
	<category>python</category>
	<category>ruby</category>
	<category>teaching</category>
	<dc:creator>satori_movement</dc:creator>
	</item>
	<item>
	<title>Does anyone know the typeface/font used in the Ruby and Ruby on Rails logos?</title>
	<link>http://ask.metafilter.com/131009/Does%2Danyone%2Dknow%2Dthe%2Dtypefacefont%2Dused%2Din%2Dthe%2DRuby%2Dand%2DRuby%2Don%2DRails%2Dlogos</link>	
	<description>Does anyone know the typeface/font used in the Ruby and Ruby on Rails logos?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.131009</guid>
	<pubDate>Mon, 24 Aug 2009 12:35:26 -0800</pubDate>
	<category>font</category>
	<category>ruby</category>
	<category>rubyonrails</category>
	<category>typeface</category>
	<dc:creator>MediaJunkie</dc:creator>
	</item>
	<item>
	<title>How do I use data from data.gov?</title>
	<link>http://ask.metafilter.com/126881/How%2Ddo%2DI%2Duse%2Ddata%2Dfrom%2Ddatagov</link>	
	<description>I&apos;m a journalist with not much database programming experience. However I have been fascinated by the government and other agencies making their data available for developers to play with, and I think a newspaper could do wonders with this data. How do I get in on the fun? Transit agencies are making their times available the gov&apos;t just released records at &lt;a href=&quot;http://www.data.gov&quot;&gt;data.gov&lt;/a&gt;. &lt;br&gt;
&lt;br&gt;
What languages should I learn to manipulate these datasets to make some good applications and visualizations? Example I have in mind are  the Guardians &lt;a href=&quot;http://www.niemanlab.org/2009/06/four-crowdsourcing-lessons-from-the-guardians-spectacular-expenses-scandal-experiment/&quot;&gt;treatment of PM expenses&lt;/a&gt; and &lt;a href=&quot;http://everyblock.com&quot;&gt;EveryBlock&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
Should I learn Django, Ruby, Pyton? All? None?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.126881</guid>
	<pubDate>Wed, 08 Jul 2009 11:50:31 -0800</pubDate>
	<category>database</category>
	<category>datagov</category>
	<category>django</category>
	<category>journalism</category>
	<category>python</category>
	<category>ruby</category>
	<dc:creator>Blandanomics</dc:creator>
	</item>
	<item>
	<title>Which  forums do the best web programmers hang out at?</title>
	<link>http://ask.metafilter.com/125912/Which%2Dforums%2Ddo%2Dthe%2Dbest%2Dweb%2Dprogrammers%2Dhang%2Dout%2Dat</link>	
	<description>Which  forums do the best web programmers hang out at? Long story short:  I&apos;ve got a web site that already does over 1 million pageviews per month.  I&apos;ve got a great idea to take it to the next level, but I&apos;m looking for someone who can handle the coding and technical aspects in exchange for an equity stake. &lt;br&gt;
&lt;br&gt;
I&apos;m wanting to bring aboard a great programmer who doesn&apos;t necessarily need the work but will be motivated by the equity.  &lt;br&gt;
&lt;br&gt;
Which forums would you recommend I post on to find this person? &lt;br&gt;
&lt;br&gt;
Also, if there&apos;s anyone interested here, let me know.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.125912</guid>
	<pubDate>Fri, 26 Jun 2009 16:15:45 -0800</pubDate>
	<category>ajax</category>
	<category>coding</category>
	<category>development</category>
	<category>mysql</category>
	<category>on</category>
	<category>php</category>
	<category>programming</category>
	<category>rails</category>
	<category>ruby</category>
	<category>scripting</category>
	<category>sites</category>
	<category>software</category>
	<category>web</category>
	<dc:creator>jackson5</dc:creator>
	</item>
	<item>
	<title>What programming language should I use for a Digg-like web site?</title>
	<link>http://ask.metafilter.com/124856/What%2Dprogramming%2Dlanguage%2Dshould%2DI%2Duse%2Dfor%2Da%2DDigglike%2Dweb%2Dsite</link>	
	<description>What programming language should I use for a Digg-like web site? I&apos;m no web developer, but I already have a high traffic picture gallery which I want to turn into a digg-like picture voting site. &lt;br&gt;
&lt;br&gt;
I&apos;m going to hire a developer and would like your recommendations on which programming language I should target for the site?&lt;br&gt;
&lt;br&gt;
My site currently does about 2 million pageviews per month already, so I expect the traffic to go up.  The programming language should easily handle a lot of traffic on 1 dedicated server.  &lt;br&gt;
&lt;br&gt;
I keep hearing a lot about Ruby on Rails.  I&apos;m familiar with PHP/MySQL, but not sure if that is the best programming language for this project.&lt;br&gt;
&lt;br&gt;
I also keep hearing a lot about cloud hosting.  This sounds like a good option as well.  &lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Basically, to sum up my question:  I want to post a &quot;programmer wanted&quot; ad for this project.  What should I be looking for from a developer?&lt;/strong&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.124856</guid>
	<pubDate>Mon, 15 Jun 2009 11:37:41 -0800</pubDate>
	<category>computers</category>
	<category>development</category>
	<category>hosting</category>
	<category>mysql</category>
	<category>php</category>
	<category>programming</category>
	<category>ruby</category>
	<category>web</category>
	<dc:creator>jackson5</dc:creator>
	</item>
	<item>
	<title>Running into Ruby Restriction</title>
	<link>http://ask.metafilter.com/116197/Running%2Dinto%2DRuby%2DRestriction</link>	
	<description>In Ruby, how can you get around the ~65,500 character limit when grabbing a web page? I&apos;m new to Ruby, but have started to use it to scrape information from websites.  I have been using either the Hpricot package or net:http.  Unfortunately, when I&apos;ve tried using these to scrape larger web pages, the streams cut off after 65,500 characters.  I haven&apos;t found any information online about this.  Is there a way to get around this limit? Can you separate the stream over two arrays or strings? Or will I have to manage the stream myself with new code?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.116197</guid>
	<pubDate>Mon, 09 Mar 2009 04:06:27 -0800</pubDate>
	<category>html</category>
	<category>limit</category>
	<category>ruby</category>
	<category>scraping</category>
	<dc:creator>FuManchu</dc:creator>
	</item>
	<item>
	<title>Sound editing libraries?</title>
	<link>http://ask.metafilter.com/115161/Sound%2Dediting%2Dlibraries</link>	
	<description>I have many wav files that I need to modify in the same way. Specifically, I want to fade in from zero dB for the first 5 ms and fade out to zero db for the last 5 ms.

What do I use? I&apos;d prefer a scriptable solution that I can just point at the files. I&apos;m a capable programmer, but I&apos;m not sure what free tools or libraries are available for this. Most ideal would be a python or ruby library, but I&apos;m open. I&apos;m using OSX fwiw.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.115161</guid>
	<pubDate>Wed, 25 Feb 2009 13:41:59 -0800</pubDate>
	<category>python</category>
	<category>ruby</category>
	<category>soundediting</category>
	<dc:creator>pealco</dc:creator>
	</item>
	<item>
	<title>Is Why&apos;s Hackety Hack still alive?</title>
	<link>http://ask.metafilter.com/113723/Is%2DWhys%2DHackety%2DHack%2Dstill%2Dalive</link>	
	<description>Anybody know why I&apos;d be having problems with Hackety Hack (the ruby tutorial)?  Downloading works fine, but the forums and the shared programs are gone. My 12 yr old son was cranking through it, and really enjoying it, until we got to the portions that required downloading some shared code from the hacketyhack.net site.  One of the tutorial lessons (the youtube one) uses a program called youtube.rb, but it seems that the program is no longer up there.  Further, when I went to the hackety hack forums at talkety.hacketyhack.net, I was greeted with nothing (as in a completely blank site).  Links to old forum posts now get the dreaded 404.  Me and my son will be very disappointed if its gone as in gone-gone, but I can&apos;t find anything in wikipedia or google searches about it going away.&lt;br&gt;
Also, if it is gone, is there anything close to it as a replacement?&lt;br&gt;
&lt;br&gt;
PS.  MeFi&apos;s RSS feed doesn&apos;t work with the tutorial anymore either.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.113723</guid>
	<pubDate>Sun, 08 Feb 2009 17:33:47 -0800</pubDate>
	<category>hacketyhack</category>
	<category>resolved</category>
	<category>ruby</category>
	<category>tutorial</category>
	<category>why</category>
	<dc:creator>forforf</dc:creator>
	</item>
	<item>
	<title>Learning Ruby on Rails 2.0?</title>
	<link>http://ask.metafilter.com/113316/Learning%2DRuby%2Don%2DRails%2D20</link>	
	<description>Foreword: No ruby background aside from basic tutorials. 

Here&apos;s the deal. I&apos;ve tired the Agile Web Dev (2nd edition) book for rails, very out of date. I need to learn something. I want to learn ruby on Rails. I&apos;ve gone through the Rails guide on creating a rails blog (&lt;a href=&quot;http://guides.rubyonrails.org/getting_started_with_rails.html&quot;&gt;http://guides.rubyonrails.org/getting_started_with_rails.html&lt;/a&gt;).

So,  rather then buy it now (3rd edition of book as beta) or just wait, I want to get on the fast track to learn rails 2.2 (soon to be release 2.3) . 
Basically I&apos;m looking for a online resource super cheap or free that provides quality information relating to rails and ruby. 

Help and suggestions welcome</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.113316</guid>
	<pubDate>Tue, 03 Feb 2009 23:02:51 -0800</pubDate>
	<category>computers</category>
	<category>engineering</category>
	<category>internet</category>
	<category>programming</category>
	<category>rails</category>
	<category>ruby</category>
	<category>software</category>
	<dc:creator>BoldStepDesign</dc:creator>
	</item>
	<item>
	<title>Convert Autohotkey script while learning Ruby</title>
	<link>http://ask.metafilter.com/108479/Convert%2DAutohotkey%2Dscript%2Dwhile%2Dlearning%2DRuby</link>	
	<description>I&apos;m trying to learn Ruby.  I know more than a little bit about VB Script, and have written some scripts to automate some windows tasks, mostly by editing existing scripts, things like pinging workstations, WMI connections looking for files and such.  I&apos;ve read http://pine.fm/LearnToProgram and worked through the tutorials and think I understand them.  Now what.... I&apos;m pretty good at throwing together Autohotkey scripts. I&apos;d like to convert one of my everyday scripts to Ruby as an exercise.  Are there any web communities that exist that might be able to answer questions I have along the process? Anyone have any resources to point me to for just learning? A site that provides some problems to be solved begining with easy stuff and moving on in complexity?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.108479</guid>
	<pubDate>Fri, 05 Dec 2008 09:07:40 -0800</pubDate>
	<category>autohotkey</category>
	<category>programming</category>
	<category>ruby</category>
	<category>tutorial</category>
	<dc:creator>TuxHeDoh</dc:creator>
	</item>
	<item>
	<title>Open-source library to decode barcodes?</title>
	<link>http://ask.metafilter.com/108324/Opensource%2Dlibrary%2Dto%2Ddecode%2Dbarcodes</link>	
	<description>Is there a free library that will decode/read a barcode from an image? I am looking for a library that, when given an image of a barcode (not from a barcode scanner) as an argument, will return the barcode number.  I would prefer if it was in Python or Ruby, but other languages are ok too.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.108324</guid>
	<pubDate>Wed, 03 Dec 2008 11:24:17 -0800</pubDate>
	<category>barcode</category>
	<category>programming</category>
	<category>python</category>
	<category>ruby</category>
	<dc:creator>Maia</dc:creator>
	</item>
	<item>
	<title>Rails on Ubuntu</title>
	<link>http://ask.metafilter.com/105710/Rails%2Don%2DUbuntu</link>	
	<description>Rails on Ubuntu. 

I&apos;ve followed this tutorial: http://wiki.rubyonrails.org/rails/pages/RailsOnUbuntu 
Now how to do I access ror from my browser? Where do I put files for dev? Help please!! </description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.105710</guid>
	<pubDate>Fri, 31 Oct 2008 18:02:12 -0800</pubDate>
	<category>programming</category>
	<category>rails</category>
	<category>ror</category>
	<category>ruby</category>
	<category>ubuntu</category>
	<dc:creator>BoldStepDesign</dc:creator>
	</item>
	<item>
	<title>How to fix rubygems?</title>
	<link>http://ask.metafilter.com/99811/How%2Dto%2Dfix%2Drubygems</link>	
	<description>I upgraded ruby on OS 10.5.4 from 1.8.6 to 1.8.7 and rubygems stopped working. How do I get rubygems to see where I&apos;ve installed ruby? I chose not to overwrite the ruby that came with OSX and instead installed 1.8.7 in /usr/local/. I did &lt;code&gt;gem environment&lt;/code&gt; and rubygems is still set up to use ruby 1.8.6:&lt;pre&gt;&lt;br&gt;
  - RUBY VERSION: 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]&lt;br&gt;
  - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8&lt;br&gt;
  - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby&lt;br&gt;
  - EXECUTABLE DIRECTORY: /usr/bin&lt;/pre&gt;&lt;br&gt;
&lt;br&gt;
The rubygems directories seem to be scattered about and I can&apos;t find a file or a command to change the configuration. Most annoyingly, the rubygems docs are down right now so I can&apos;t even access those.&lt;br&gt;
&lt;br&gt;
So, how do I make rubygems work with my installation of ruby.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.99811</guid>
	<pubDate>Thu, 21 Aug 2008 18:22:07 -0800</pubDate>
	<category>osx</category>
	<category>ruby</category>
	<category>rubygems</category>
	<dc:creator>Inigo Jones</dc:creator>
	</item>
	<item>
	<title>Ruby + Graph Visualization</title>
	<link>http://ask.metafilter.com/98270/Ruby%2DGraph%2DVisualization</link>	
	<description>Graph Visualization Filter:  I need to generate a list of coordinates for the nodes in a large directed, weighted graph from Ruby, given a list of nodes, edges and weights. I have a list of nodes, edges, and edge weights that describe a graph.  I need to generate a list of coordinates for each node, as determined by some graph layout algorithm.  I&apos;m looking for something like GraphR or ruby-graphviz but that generate just the intermediate data (coordinates of the nodes) rather than an image. Also, graphviz doesn&apos;t handle weighted edges.  I know about JUNG, and I know it is possible to make Java and Ruby play nicely together, but doing so exceeds my current level of programming knowledge.  One option I&apos;ve considered is to write the input data to a file from Ruby, run a command-line application to process the data with JUNG from the Ruby app, and then read the JUNG output from a file back into Ruby to generate the output. This involves a lot of disk I/O, though, and I worry that it would not scale well beyond a trivial demo.&lt;br&gt;
&lt;br&gt;
Any suggestions for other packages or approaches? I&apos;m a grad student, so commercial tools are probably out.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.98270</guid>
	<pubDate>Mon, 04 Aug 2008 09:21:13 -0800</pubDate>
	<category>graphvisualization</category>
	<category>ruby</category>
	<dc:creator>Alterscape</dc:creator>
	</item>
	<item>
	<title>Help updating Ruby (on Rails)</title>
	<link>http://ask.metafilter.com/94838/Help%2Dupdating%2DRuby%2Don%2DRails</link>	
	<description>How do I update Ruby/get RoR working? (OS X 10.4). Ok, I am generally tech savvy, so this is getting frustrating. &lt;br&gt;
&lt;br&gt;
I have Mr. Macky here that had ruby 1.8.2 on him when I got home from work. Thinking I&apos;d get a little web appy with some RoR, so I downloaded RubyGems as instructed &lt;a href=&quot;http://www.tutorialspoint.com/ruby-on-rails/rails-installation.htm&quot;&gt;here&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
When I run sudo ruby setup.rb, I get the following error: Expected Ruby version &amp;gt; 1.8.3, was 1.8.2.&lt;br&gt;
Ok, I think, so I go out to download 1.8.6, and follow the instructions as on the above page. Except that these directions install to the ruby-1.8.6 directory on my desktop.&lt;br&gt;
&lt;br&gt;
I google, I go through the instructions to update via fink. No dice. ruby -v still gets me 1.8.2; fink complains that ruby is up to date and refuses to update. After more googling and command-lining I somehow revert to version 1.8.1. Which is where I stand at this moment. &lt;br&gt;
&lt;br&gt;
Help! I feel like uber-fail. This should have been a 10 minute task at most. If anyone is up for a step by step help session, my email is in my profile--we can exchange IMs or something. &lt;br&gt;
&lt;br&gt;
Thanks in advance, guys.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.94838</guid>
	<pubDate>Mon, 23 Jun 2008 19:31:55 -0800</pubDate>
	<category>fail</category>
	<category>osx</category>
	<category>ruby</category>
	<category>rubyonrails</category>
	<dc:creator>theRussian</dc:creator>
	</item>
	<item>
	<title>Email forward/reply character handling?</title>
	<link>http://ask.metafilter.com/93802/Email%2Dforwardreply%2Dcharacter%2Dhandling</link>	
	<description>Is there a resource that lists all the different email programs&apos; handling of forward/reply formatting?  I want to write a program that receives emails, but I know some email apps add &quot;&amp;gt;&quot; characters and newlines that I&apos;ll have to strip out- I don&apos;t want to miss too many edge cases. This will be a Rails app so I was hoping there&apos;d be a plugin for email handling, but I haven&apos;t come across one that has this particular feature.  A list would be great, or a script in Ruby or another language that I can modify.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.93802</guid>
	<pubDate>Wed, 11 Jun 2008 12:02:17 -0800</pubDate>
	<category>email</category>
	<category>rails</category>
	<category>ruby</category>
	<dc:creator>squishy</dc:creator>
	</item>
	<item>
	<title>Help me pick a web dev language to learn.</title>
	<link>http://ask.metafilter.com/92718/Help%2Dme%2Dpick%2Da%2Dweb%2Ddev%2Dlanguage%2Dto%2Dlearn</link>	
	<description>I am trying to decide which web language + framework to focus on for learning this summer. I am stuck between PHP, Python (with Django maybe) or Ruby (on Rails). Basically, I am asking for people&apos;s input on all languages. They all have their ups and downs and I&apos;m pretty sure I&apos;ll have to learn all of them at some point but I have start somewhere. Here is my initial perspective on all. Correct me, add relevant info and make suggestions.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;PHP&lt;/strong&gt;&lt;br&gt;
+I actually have a passing knowledge of PHP. Not enough maybe to create something big but I have added small features, worked on cleaning other people&apos;s code&lt;br&gt;
+It&apos;s very common.&lt;br&gt;
-It somewhat seems unprofessional, probably because I feel like everyone and their mom has done something with it.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Ruby&lt;/strong&gt;&lt;br&gt;
+It&apos;s the new cool.&lt;br&gt;
-It&apos;s the new cool.&lt;br&gt;
+It seems very elegant and easy to learn, especially for developing something for the web with Rails.&lt;br&gt;
+For some reason, the RoR community seems very friendly and I approve of their ideas a lot.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Python&lt;/strong&gt;&lt;br&gt;
+It&apos;s a lot more serious than Ruby, I feel like. It might be more useful for other things too as a standalone language&lt;br&gt;
+Similar outlook on stuff with RoR community.&lt;br&gt;
-Maybe not as big community for learning as it is with PHP and RoR. Not sure about this but others definitely have a lot of stuff.&lt;br&gt;
&lt;br&gt;
Anyway, thanks a lot for reading along. &lt;br&gt;
&lt;br&gt;
Also, if you would care to make a suggestion, I&apos;d appreciate some books or websites to start things off with.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.92718</guid>
	<pubDate>Thu, 29 May 2008 14:31:15 -0800</pubDate>
	<category>django</category>
	<category>language</category>
	<category>php</category>
	<category>python</category>
	<category>ror</category>
	<category>ruby</category>
	<category>rubyonrails</category>
	<category>webdevelopment</category>
	<dc:creator>the_dude</dc:creator>
	</item>
	<item>
	<title>What&apos;s a really good book on Ruby.</title>
	<link>http://ask.metafilter.com/92015/Whats%2Da%2Dreally%2Dgood%2Dbook%2Don%2DRuby</link>	
	<description>If my favourite reference on C++ is &lt;em&gt;The C++ Programming Language&lt;/em&gt; by Stroustrup, what would be my favourite book on Ruby.  (And my favourite book on Python.) I realize both langauges differ from C++ in that they will likely change over the next few years, but is there anything out there yet that you would call &lt;em&gt;the&lt;/em&gt; Ruby book?&lt;br&gt;
&lt;br&gt;
Go MetaFilter! Go!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.92015</guid>
	<pubDate>Wed, 21 May 2008 06:07:49 -0800</pubDate>
	<category>books</category>
	<category>programming</category>
	<category>python</category>
	<category>ruby</category>
	<dc:creator>chunking express</dc:creator>
	</item>
	<item>
	<title>Help me, I&apos;m a late adopter.</title>
	<link>http://ask.metafilter.com/91364/Help%2Dme%2DIm%2Da%2Dlate%2Dadopter</link>	
	<description>How do I learn new programming languages and start using modern web apps without getting frustrated and angry? So I&apos;m in my mid-twenties and work in IT. I&apos;ve been watching the last couple of years of exploding creativity on the net - literally millions of blogs, new programming languages, new ideas like twitter, citizen journalism, etcetera.&lt;br&gt;
&lt;br&gt;
But lately I&apos;ve realised that despite being able to see the potential benefits and really actually exciting possibilities of all this new stuff, I grumpily dismiss it and stick to how I&apos;ve been doing things for the past couple of years. I use email, Java and PHP, and HTML 4.0.1 Transitional. I occasionally write some stuff in my site&apos;s news section, but I doubt my completely random ramblings make anyone come back. I&apos;d like to think that I might have some interesting things to say on some topics, but I can&apos;t find the time to write about it, and it feels odd to intersperse &quot;here&apos;s some photos I took&quot; with &quot;here&apos;s a detailed analysis of this political situation&quot;. I don&apos;t use &lt;a href=&quot;http://www.ruby-lang.org&quot;&gt;Ruby&lt;/a&gt;&lt;a href=&quot;http://www.twitter.com&quot;&gt;Twitter&lt;/a&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Xml&quot;&gt;XML&lt;/a&gt;&lt;a href=&quot;http://www.python.org&quot;&gt;Python&lt;/a&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Lisp_%28programming_language%29&quot;&gt;LISP&lt;/a&gt;&lt;a href=&quot;http://www.blacktree.com/&quot;&gt;Quicksilver&lt;/a&gt;&lt;a href=&quot;http://www.43folders.com/topics/gtd&quot;&gt;GTD&lt;/a&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Podcast&quot;&gt;Podcasts&lt;/a&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Rss&quot;&gt;RSS&lt;/a&gt;&lt;a href=&quot;http://lifehacker.com/&quot;&gt;Lifehacks&lt;/a&gt;. I don&apos;t contribute to wikis, or talk on forums (with the pretty much sole exception of MeFi).&lt;br&gt;
&lt;br&gt;
At the same time I&apos;m getting very frustrated with the limits of the tools I do know how to use - Java&apos;s verbosity and lack of support for first-class functions is a pain, and I don&apos;t like the fact that I&apos;m always the last to hear about everything interesting that happens on the net. I have no coherent systems for making notes or keeping track of appointments or tasks, despite the plethora of Mac programs available for doing just that.&lt;br&gt;
&lt;br&gt;
Why is this a problem? Well, I&apos;m not even thirty yet, but I can already feel myself falling behind the times. I don&apos;t want to end up as the kind of programmer / person in general who toils away on some legacy project in a little corner, insisting &quot;we&apos;ve always done it this way&quot; until one day I get fired for being completely superfluous. I want to want to learn new things. I want to be more organised.&lt;br&gt;
&lt;br&gt;
So is there a question in all of this? Yes! &lt;em&gt;I want you to tell me how to break out of my rut. Tell me how I can learn about, and start to use, new stuff&lt;/em&gt;, despite the two big obstacles I&apos;m about to describe.&lt;br&gt;
&lt;br&gt;
Obstacle number one: Why do I dislike new things? To a large part, to be honest, because the people who do use these things and try to promote them really grate on my nerves. Take programming languages: many advocates of new languages (Ruby, I&apos;m looking at you) start off their pitch by pointing out how useless language X (also known as &quot;Java&quot;) is, and how using their language allows you to become a massively more enlightened individual. Along the way, there is a strong implication that anyone who still uses language X in 2008 is a hopeless dinosaur. Way to insult your audience.&lt;br&gt;
&lt;br&gt;
Number two: I find learning new things really unpleasant. Faced with needing to code a small website, another programmer would say &quot;Cool, a chance to try out this new Python framework, and this AJAX front-end library - no one&apos;s ever tried using them together before, but I have a really clever plan involving metaclasses&quot;. I say &quot;Well, I don&apos;t really want to take too much time on it, so let&apos;s code it up in imperative-style PHP 4. It&apos;s clunky, it&apos;s incredibly verbose, the code is hideous, and errors are hard to track down, but I know how it works and can liberally reuse code from previous projects.&quot; Of course, this is a caricature, but the point remains that that other programmer will end up being more productive and motivated than me, perhaps not on this project, but on the next, where I&apos;m still using PHP 4, but the other guy would be using said Python framework (but not the AJAX library, because it turned out to be too buggy).&lt;br&gt;
&lt;br&gt;
So why don&apos;t I go off and do like the other programmer? Because the framework and the library will have terrible, hard-to-find inconsistent documentatio, bugs that cause the default configuration to fail silently, and creators who have the attitude described in obstacle #1. And here&apos;s the crux of the matter: where the other programmer would think &quot;Cool, a challenge! Let&apos;s try to get this working.&quot; I fly into an impotent rage, cursing the code, its creator, and myself. I will yell at the computer when yet another promising documentation link 404s on me, I will make strangling motions at the screen when it turns out that I installed some package whose name has no vowels on the wrong path, and I will mentally tally every single problem I&apos;ve had getting the whole thing working. Both the other programmer and I will take about five hours to get the framework up and running, but while that&apos;s five hours of joyful problem-solving time for the other guy/gal, it&apos;s five hours of fuming at the computer for me, and I&apos;ll have a headache at the end. And somewhere along the way I will probably give up and code the thing in PHP 4 or Java, feeling guilty for being a dinosaur.&lt;br&gt;
&lt;br&gt;
Much the same happens when the Thing in question isn&apos;t a programming language but a website or some organizer/productivity program.&lt;br&gt;
&lt;br&gt;
So to the end of not having to look at new things anymore, I now come up with automatic put-downs for every new thing that crosses my path: Ruby&apos;s syntax is horrible, Twitter is shallow, XML is verbose, Python is white-space-sensitive, LISP is unreadable, Quicksilver is unstable and obtuse, GTD is for obsessive-compulsives, podcasts are narcissistic, RSS is inefficent and ill-defined and life hacks are impractical. Contributing to wikis is pointless, and all forums are full of 13 year olds.&lt;br&gt;
&lt;br&gt;
Still, I want to learn and use new things, because I find them fascinating and recognise their potential. &lt;em&gt;So what techniques, states of mind, resources would you suggest that I could use to approach learning new languages, starting to use new websites, new modes of communication, etcetera, without just coming away pissed off and exhausted?&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
(And if you&apos;ve read all of this, congratulations. You get a voucher for small prize, redeemable anywhere on the moon only.)</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.91364</guid>
	<pubDate>Wed, 14 May 2008 03:26:43 -0800</pubDate>
	<category>gtd</category>
	<category>learning</category>
	<category>lifehack</category>
	<category>lifehacks</category>
	<category>lisp</category>
	<category>programming</category>
	<category>python</category>
	<category>quicksilver</category>
	<category>ruby</category>
	<category>web_2_point_0</category>
	<dc:creator>Zarkonnen</dc:creator>
	</item>
	<item>
	<title>Fuzzy text completion algorithm?</title>
	<link>http://ask.metafilter.com/91068/Fuzzy%2Dtext%2Dcompletion%2Dalgorithm</link>	
	<description>I&apos;m looking for a fuzzy text-matching algorithm for an autocomplete widget. I have a data set of ~4000 short strings (&amp;lt; 60 chars) that needs to be attached to an AJAXy autocomplete widget. I&apos;m looking for a text completion algorithm that supports some amount of slop, to catch basic typos.&lt;br&gt;
&lt;br&gt;
The environment is Prototype/LowPro on top of Ruby, backed by a MySQL database. I can pre-compute and store metaphones/soundex/&amp;amp;c. either in the database or in memory, as this list will remain mostly static throughout application lifetime.&lt;br&gt;
&lt;br&gt;
The bad news is this feature is not mission-critical, so anything like compiling a user-defined SQL function (e.g. Levenshtein) is out of scope. The good news is this feature isn&apos;t mission-critical, so I am only solving for the quickest route to a reasonable set of suggestions for a given input string -- this doesn&apos;t need to be bulletproof.&lt;br&gt;
&lt;br&gt;
What would you do, given these constraints?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.91068</guid>
	<pubDate>Sat, 10 May 2008 09:44:26 -0800</pubDate>
	<category>algorithm</category>
	<category>autocomplete</category>
	<category>javascript</category>
	<category>matching</category>
	<category>ruby</category>
	<category>sql</category>
	<category>text</category>
	<dc:creator>sonofslim</dc:creator>
	</item>
	<item>
	<title>Doing JOINs the Rails way</title>
	<link>http://ask.metafilter.com/89184/Doing%2DJOINs%2Dthe%2DRails%2Dway</link>	
	<description>How can I do a Rails &lt;code&gt;find&lt;/code&gt; JOIN without SQL, using the two tables&apos; existing &lt;code&gt;has_and_belongs_to_many&lt;/code&gt; relationships? I have two classes &lt;code&gt;Sample&lt;/code&gt; and &lt;code&gt;User&lt;/code&gt;, which have:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;has_and_belongs_to_many :users, :uniq =&amp;gt; true&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
&lt;code&gt;has_and_belongs_to_many :samples, :uniq =&amp;gt; true&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
relationships in their respective model files. This sets up the many-to-many relationship between the two classes.&lt;br&gt;
&lt;br&gt;
Let&apos;s say I want to associate a Sample instance with a User instance:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;Sample.find_by_id(params[:sample][:id]).users &amp;lt;&amp;lt; User.find_by_id(params[:user_id])&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
So far so good.&lt;br&gt;
&lt;br&gt;
But I&apos;d like to avoid duplicates of a combination of &lt;code&gt;sample_id&lt;/code&gt; and &lt;code&gt;user_id&lt;/code&gt;.&lt;br&gt;
&lt;br&gt;
Therefore, I&apos;d like to search on &lt;code&gt;samples_users&lt;/code&gt; to find a previously-entered record which matches those two &lt;code&gt;id&lt;/code&gt; numbers.&lt;br&gt;
&lt;br&gt;
I could do this with a SQL JOIN but I&apos;d like to learn the Rails way, so that I don&apos;t have to write custom SQL that will likely break during development.&lt;br&gt;
&lt;br&gt;
How to I use the &lt;code&gt;find&lt;/code&gt; method on &lt;code&gt;Sample&lt;/code&gt; to get any matches with a specified &lt;code&gt;sample_id&lt;/code&gt; and &lt;code&gt;user_id&lt;/code&gt;?&lt;/code&gt;&lt;/&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.89184</guid>
	<pubDate>Fri, 18 Apr 2008 13:37:40 -0800</pubDate>
	<category>activerecord</category>
	<category>join</category>
	<category>rails</category>
	<category>ruby</category>
	<category>sql</category>
	<dc:creator>Blazecock Pileon</dc:creator>
	</item>
	<item>
	<title>Off the rails...</title>
	<link>http://ask.metafilter.com/88370/Off%2Dthe%2Drails</link>	
	<description>Any good Rails 2.0 books for beginners? The books I have access to are for Rails 1.2. I&apos;m running into brick wall after brick wall getting the opening chapter examples in these books to work with Rails 2.0.2, missing plug-ins, missing template files, scaffolding doesn&apos;t work, etc.&lt;br&gt;
&lt;br&gt;
Instead of installing the Rails 1.2 gem, I&apos;d like to bite the bullet and learn Rails 2.0. Unfortunately, the &lt;i&gt;Rails Way&lt;/i&gt; book apparently is for established Rails coders, of which I am not one. &lt;br&gt;
&lt;br&gt;
I&apos;d call myself reasonably familiar with Java, PHP, etc. and don&apos;t need to learn programming, I just need to get up to speed quickly on how Rails does its magic without poring through oblique Google search results on how to cobble a 2.0 app together from a 1.2 app.&lt;br&gt;
&lt;br&gt;
Are there other Rails 2.0 books or online documentation out now, which have working code examples of a small web application, from start to finish?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.88370</guid>
	<pubDate>Wed, 09 Apr 2008 17:09:14 -0800</pubDate>
	<category>beginner</category>
	<category>book</category>
	<category>code</category>
	<category>coding</category>
	<category>rails</category>
	<category>ruby</category>
	<dc:creator>Blazecock Pileon</dc:creator>
	</item>
	<item>
	<title>Help getting Ruby and Java to interact?</title>
	<link>http://ask.metafilter.com/86983/Help%2Dgetting%2DRuby%2Dand%2DJava%2Dto%2Dinteract</link>	
	<description>I&apos;m trying to compile and run a Java class from Ruby, but I&apos;m having some problems. I&apos;m not very experienced with Ruby- please help me figure out what I&apos;m doing wrong. Basically what I&apos;m trying to do is:&lt;br&gt;
&lt;br&gt;
1. Inside a Ruby method, compile Foo.java (`javac Foo.java`)&lt;br&gt;
2. Run Foo.class with arguments and save the &apos;console&apos; output as a string. (result = `java Foo filename.txt`)&lt;br&gt;
&lt;br&gt;
The command to compile Foo.java works, as Foo.class appears in the folder. However, part 2 doesn&apos;t seem to work as nothing prints when I try to print result (puts result). I&apos;m probably doing something simple wrong but I&apos;m not sure what it is as I&apos;m basically picking Ruby up as I go without any actual grounding.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.86983</guid>
	<pubDate>Mon, 24 Mar 2008 22:26:47 -0800</pubDate>
	<category>java</category>
	<category>programming</category>
	<category>ruby</category>
	<dc:creator>version control</dc:creator>
	</item>
	<item>
	<title>Help me become a better programming instructor.</title>
	<link>http://ask.metafilter.com/85845/Help%2Dme%2Dbecome%2Da%2Dbetter%2Dprogramming%2Dinstructor</link>	
	<description>&lt;strong&gt;TeachFilter:&lt;/strong&gt; Help me become a better programming instructor. I teach the following technologies at a college level:&lt;br&gt;
&lt;br&gt;
- XML (basics, DTDs, schemas, XSLT, DOM)&lt;br&gt;
- Mobile Programming (J2ME, Mobile Web)&lt;br&gt;
- Ruby and Ruby on Rails&lt;br&gt;
- Server Side Computing with PHP &amp;amp; MySQL&lt;br&gt;
&lt;br&gt;
I am looking for two types of book recommendations for each of these subjects:&lt;br&gt;
&lt;br&gt;
- Textbooks that students will enjoy (and will find useful enough to keep after graduation).&lt;br&gt;
- Advanced or &quot;best practice&quot; books to enhance my knowledge of these subjects (making me a better resource for my students).&lt;br&gt;
&lt;br&gt;
Your help is much appreciated.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.85845</guid>
	<pubDate>Tue, 11 Mar 2008 11:05:03 -0800</pubDate>
	<category>books</category>
	<category>college</category>
	<category>mobile</category>
	<category>php</category>
	<category>programming</category>
	<category>rails</category>
	<category>ruby</category>
	<category>teaching</category>
	<category>textbooks</category>
	<category>xml</category>
	<dc:creator>stungeye</dc:creator>
	</item>
	<item>
	<title>Coding alone in a fog</title>
	<link>http://ask.metafilter.com/85061/Coding%2Dalone%2Din%2Da%2Dfog</link>	
	<description>In my quest to learn Ruby, I&apos;m struggling to find everyday usable code examples that i can relate to. Might you suggest some ? Thanks to the helpful advice to my &lt;a href=&quot;http://ask.metafilter.com/82294/Compiler-instruction-Whats-your-function&quot;&gt;previous&lt;/a&gt; question, I went out and bought &quot;&lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/0735611319/metafilter-20/ref=nosim/&quot;&gt;Code&lt;/a&gt;&quot; and &quot;&lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/0735611319/metafilter-20/ref=nosim/&quot;&gt;Ruby by Example&lt;/a&gt;&quot; and am diving (or attempting to) headlong into learning Ruby. &lt;br&gt;
&lt;br&gt;
Thats all well and good, but I&apos;m hitting a comprehension wall. All of the examples I&apos;m finding are not anything I can relate to. (meaning = I dont see how they apply to me or my everyday life, so as soon as I start trying to learn them, my eyes (and brain) gloss over and my knowledge absorption rate goes down to nil.)&lt;br&gt;
&lt;br&gt;
I understand that &quot;hello world&quot;, &quot;rename all files in this folder&quot;,  and things like &quot;99 bottles of beer&quot; are meant to teach me basic concepts and structure of the syntax, but because these programs don&apos;t produce any tangible result in my everyday life, I find it immensely difficult to care about learning them. ( I realize this makes me sound like a typical snotty highschool student, but hear me out) &lt;br&gt;
&lt;br&gt;
So, my question(s):&lt;br&gt;
1.) if you are a Ruby (or other language) programmer. Can you cite specific examples of code (large and small) that you&apos;ve written that you use EVERY DAY ? (bonus pts for source code I can actually download and tear apart) &lt;br&gt;
&lt;br&gt;
2.) Could you point me to online resources/repositories of code examples that are actually things I might actually use?&lt;br&gt;
&lt;br&gt;
I realize the common advice is: &quot;Just find some problem your interested in solving and code it!!!&quot; (meaning = the MeFi crowd in general cant know what &quot;everyday useful&quot; means to ME), but I&apos;m hoping someone has run into this same problem and found something that worked for them to relate coding to their everyday life.  If it makes a difference, my everday job is working IT in a datacenter. Monitoring servers and connections, and responding to outages/alerts regarding said equipment. But that doesnt mean I want my Ruby code to simply be scripts aimed at IT Sysadmin work. I&apos;d love to be able to (eventually) write fully fledged programs or web-apps that  the public at large might find useful. &lt;br&gt;
&lt;br&gt;
I think the frustration I&apos;m feeling is not being able to find the &quot;bridge&quot; (middle ground) between &quot;Hello World&quot; and &quot;Look!, a functional program/web-app&quot;. What I&apos;m hoping for is someone can point me to medium sized Ruby programs or online apps and say &quot;This was created entirely in Ruby, its an easy to use program that produces this tangible result.&quot;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.85061</guid>
	<pubDate>Sat, 01 Mar 2008 21:46:00 -0800</pubDate>
	<category>coding</category>
	<category>programming</category>
	<category>ruby</category>
	<dc:creator>jmnugent</dc:creator>
	</item>
	
	</channel>
</rss>

