Tyler Clemons

Ruby

Weka, Ruby, Association Mining

by on May.15, 2010, under Data Mining, Ruby, Weka

Weka is a collection of machine learning tools used for data mining.  Weka is written in Java however it is possible to use Weka’s libraries inside Ruby.  To do this, we must install the Java, Rjb, and of course obtain the Weka source code.  In this example, I look at Associating Mining.

(continue reading…)

6 Comments :, , , , more...

Weka, Ruby, Decision Trees

by on May.15, 2010, under Data Mining, Ruby, Weka

Weka is a collection of machine learning tools used for data mining.  Weka is written in Java however it is possible to use Weka’s libraries inside Ruby.  To do this, we must install the Java, Rjb, and of course obtain the Weka source code.  In this example, I look at Decision Trees.

(continue reading…)

3 Comments :, , , , more...

Weka and Ruby

by on May.06, 2010, under Computer Science, Data Mining, rjb, Ruby, Weka

Weka is a collection of machine learning tools used for data mining.  Weka is written in Java however it is possible to use Weka’s libraries inside Ruby.  To do this, we must install the Java, Rjb, and of course obtain the Weka source code.  One could use JRuby, but I wanted to try this method to eliminate the dependency with JRuby.

(continue reading…)

3 Comments :, , , , more...

Finding with Ruby Rails

by on Jun.28, 2008, under Programming, Ruby, Ruby on Rails

I’m sure anyone that has spent enough time with Rails has found this little annoyance.  The basic find() is pretty simple.

result = Table.find(params[:id])

A select query is performed on Table that seeks the row whose primary key matches the value returned by params[:id] Pretty cool, until it fails 🙁

(continue reading…)

Leave a Comment :, more...

OS Independent Excel Reports

by on Jun.28, 2008, under Programming, Ruby, Ruby on Rails, win32

I ran into this problem awhile ago. I was tasked with making Excel reports using Ruby on Rails. Since I was running on Windows, I just used Win32ole. It worked quite well until I remembered that Win32 is not platform independent.  Basically, if the system is hosted on a non-Windows machine the Excel Report will fail.  Great.  But, Ruby isn’t out for the count yet.  I found a pretty cool spreadsheet generator at RubyForge.  After installing spreadsheet, it is pretty simple to use. You can either install it by downloading it from the web, click HERE, or use ruby gems by typing this on the command line: “gem install spreadsheet-excel”

(continue reading…)

Leave a Comment :, , , , , more...

Ruby Speaks

by on Jun.27, 2008, under Programming, Ruby, sapi5, win32

Learned a new trick the other day. I was searching around and I found out how to make Ruby talk. So far this only works for Windows machines because the win32 files are only available in Windows… as far as my knowledge. Copy and paste the following code into any editor. It prompts the user for a file and reads it.

(continue reading…)

Leave a Comment :, , more...

FTP fun with Ruby

by on Jun.15, 2008, under FTP, Programming, Ruby

WordPress is pretty cool, save the editor. One of the coolest features is being able to switch the look and feel of my website without doing much extra work.

To do this, I just search Google for WordPress themes and about a dozen websites pop up with hundreds of themes. Cool. I download a couple of them, all free, and look for the easiest way to deploy them. However, the only way to do that, is to upload all of the files onto my web server via FTP.

No problem, FTP has multiple file commands… that don’t exactly work with directories 🙁 The simple solution is to find an FTP client for MacOS X and resort to a drag and drop method. Of course there exist some programs out there for free like Cyberduck, or Filezilla (but I use OS 10.4 so FileZilla is out), but since it’s the summer time, I decided to make my own. To be honest, I didn’t actually look for an FTP program before making my own lol! I fired up Ruby for a little fun.

(continue reading…)

5 Comments :, , , , , , more...

Looking for something?

Use the form below to search the site: