Tyler Clemons

Programming

diff two commands

by on Jan.17, 2011, under Programming, scripting

Ran across this problem with a friend today. How does one diff the output of two commands without first dumping the output of the two commands to files? I found a solution that seems to work:


diff <(command1) <(command 2)

Suppose we wanted to diff the contents of two directories:


diff <(ls directory1) <(ls directory2)
Leave a Comment :, , more...

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...

Creating Adium Scripts (thats what she said)

by on Oct.10, 2009, under Adium, AppleScript

I was talking to Ben and saw another opening for the classic and overused “That’s what she said” joke.  As I was typing it in, I realized I should just make it easier on myself and write a simple script to do it for me.  So I did.

(continue reading…)

1 Comment :, , , more...

Learning Python , C++ , and Data Structures

by on Jan.31, 2009, under Books, C/C++, General, Python

Back in undergrad, the majority of our classes taught us sound software engineering principles using Python, C++, and sometimes Java.  The first two were used quite extensively.  The resource I used was invaluable to my success in mastering data structures, learning OOP, and granting me proper exposure to Python and C++.  Data Structures and Algorithms Using Python and C++ is a great resource and I wanted to share it here.  I believe it is great for beginners of both Python and C++ and those entering a data structures course.  Click HERE to order a copy.

1 Comment :, , , , , more...

Exciting Changes to Ruby on Rails

by on Jan.22, 2009, under MERB, Ruby on Rails, WebTechs

http://www.infoworld.com/article/09/01/12/02NF-ruby-on-rails-merb_1.html

Rails will add some new features and enhancements by merging with MERB.  Should be interesting.

Leave a Comment :, , more...

Creating Adium Scripts (iTunes)

by on Aug.30, 2008, under Adium, AppleScript, iTunes, Programming

I use Adium and iTunes frequently. One of the cool things about the OS X environment is the integration between applications. For instance, Adium contacts can be linked to Address Book accounts. One of my personal favorites is the integration of Adium and iTunes. Adium can display details of what is currently playing on iTunes such as the name of the song and the artist. The trick is customizing these messages so that they can be presented as suitable away or status messages.
(continue reading…)

2 Comments :, , more...

Creating Adium Scripts (Emoticons)

by on Aug.30, 2008, under Adium, Programming

So much fun open source applications are.  Adium allows tons of customization.  The best part is that it does not take an extensive knowledge of Objective-C, Adium’s primary language, to customize some if it’s features.  One customizable feature is the emoticon set.  Emoticons, Emotion Icons, are the combination of characters that resemble faces.  In some web browsers and most chat programs, such as Firefox and Adium, emoticons are automatically translated into pictures.  But there are so many emoticons that some clients do not include every combination.  Good thing we can create our own.

(continue reading…)

6 Comments :, more...

Creating Adium Scripts (Random Text)

by on Aug.29, 2008, under Adium, AppleScript, Programming

Adium is a free mesenger client for the Mac OS X.  It allows users to connect to multiple chat services, such as AIM and ICQ, at once.  It is open source, which means users are allowed to tinker with it as they see fit.  With this extensibility, it becomes possible to type something like “/random” and generate a random message.  I decided to take a quick look at what goes on under the hood and decided to give a go at creating some easy scripts.

(continue reading…)

3 Comments :, more...

Looking for something?

Use the form below to search the site: