Saturday, May 15, 2010

Using rachota on multiple computers

Earlier this week, I decided to start tracking my work hours to get a better sense of where my time goes. After playing around with a bunch of options, I settled on Rachota, an open-source time-tracking program written in java. So far so good.

The next problem was to figure out a way to use the program on any of several computers. In a given week, I put in substantial hours on my laptop, home desktop, campus computer labs, and the complex systems cluster. These machines run a smorgaspord of linux and windows, and I only have administrative rights to install software on some of them.

Here are the options I looked at:
1. dropbox: Two friends recommended this storage synchronization program to me. Problem: I would have to install it on every computer I use. This might have been workable, but I didn't want to go through the hassle of going through the department and university IT groups.

2. Deploy online: Rachota is java, right? So I should be able to embed it in a web page and run remotely. Sadly, I'm not much of an applet programmer, so I couldn't make this work.

3. sneakernet: Install Rachota on a USB drive and take it from place to place. This probably would work, and then end suddenly one day with me losing my USB keychain (and all my time tracking logs) in an Internet cafe.

4. ssh with X window: linux has the nifty capability to shell into a remote machine and run a program there, but display it on your working computer. Unfortunately, windows doesn't support it. It's also chews up bandwidth and is frustratingly slow over wireless. However, when I'm running linux with a broadband, ssh is a nice option.

5. Download-upload: A slightly clunk, but robust solution is to zip rachota and all its logs together, and put the archive in a hidden, downloadable folder. Whenever I start a session, I can download the archive, unzip it, and run the software. When finished, I run a python script (also included in the folder) that zips everything and uploads it to the original location. This approach is a little like the svn approach to version control, but doesn't require any prior installation, other than a zip application and python.

It looks like I'm going to be able to go with a mix of 4 and 5. Thanks for all the suggestions on this little bit of lifehacking!

Thursday, May 13, 2010

An update on time tracking...

An interesting read on the data-driven life. Hat tip to Carl for the link.

http://www.nytimes.com/2010/05/02/magazine/02self-measurement-t.html?pagewanted=all

I definitely fall into the geeky category of people who achieve greater self awareness through quantification. I've saved every gas station receipt, with a notation for mileage, for the last 5 years. And Erin has tracked every credit card purchase we've made since the first year we were married.

Wednesday, May 12, 2010

Software for time management

I find that it's very hard to budget my time as a grad student. Partly, this is the nature of research -- every project should be non-routine (and therefore a little bit unpredictable) in some respect. Partly it's the lack of direct supervision, formal structure, or near-term deadlines.

But even taking that all into account, I put in a lot of hours and often have a very poor sense of where my time is actually going. It's hard to know if I'm getting my priorities right, and how long to budget for repetitive tasks.

So I've decided that it's time to get empirical about time management. I spent a couple hours today looking for time management software.

I went in looking for four things:
1. Free
2. Easy to use
3. Platform independent -- I need to be able to switch between computers running linux and windows
4. Automatic task tracking. I wanted a utility that would track which applications I use and which web pages I visit, and use them to deduce what I'm working on. Timesheet does this.

Here's what I found so far. (I can't tell you exactly how long I spent on this, but it was a couple of hours at least.)

http://slimtimer.com/users/home
Thinking I would like the flexibility of a hosted app, I registered with this site. After playing with the interface for 20 minutes, I was not impressed. The whole thing was very clunky and counterintuitive. Rejected.

http://en.wikipedia.org/wiki/Comparison_of_time_tracking_software
A good list, but focused more on business software. Maybe a little TMI, actually.

Rachota 2.2
This is the solution I'm going with for now. It's free, easy to use, and built as lightweight java application -- and therefore platform independent.

Rachota doesn't work automatically -- you have to tell it every time you switch tasks -- but I've decided that that's probably healthy for me. Making a mental note when I switch from one thing to the next will probably help me prioritize better.

Unsolved problem: Rachota stores your files in a handful of .dtd and .xml files. I can email them to myself when I switch machines, but that's a pain. Is there a slicker way I can manage the problem of multiple computers?

Monday, April 26, 2010

Downloading wikipedia

So I'm headed to Italy for vacation. Internet access is not assured, but I would like to have access to wikipedia articles on things like "Michelangelo's David" and "The Roman Empire." What to do?

It turns out that wikipedia makes all of its text not just available, but easy to download. Getting a browser for that text is a little harder, but there are some nice out-of-the-box wiki browsing apps for Windows.

Here are the parts you'd need to download and browse the full text (no pictures, unfortunately) of English wikipedia.

1. Download the compressed 5.7G wikipedia archive here: http://download.wikimedia.org/enwiki/latest/enwiki-latest-pages-articles.xml.bz2

2. Get the wikiTaxi application here: http://www.wikitaxi.org/delphi/doku.php/products/wikitaxi/index

I haven't actually tried this since wikiTaxi is a windows app and I'm running linux, but I've seen several favorable reviews.

Alternatively, you could try Pocket Wikipedia, a much smaller text-and-pictures version that contains many of the most popular wikipedia pages.: http://www.free-soft.ro/pocket-wikipedia/pocket-wikipedia.html.

More info on downloading from wikipedia is available here: http://en.wikipedia.org/wiki/Wikipedia_database. This page is useful, but pretty technical.

Monday, April 19, 2010

Active learning

I've been cranking out a term paper on active learning in my natural language processing class. It's worth a mention here as well. Here's an excerpt.

Active learning is an approach to machine learning and artificial intelligence in which the computer guides selection of training examples. Instead of being a passive recipient of information provided by a programmer, the computer sends queries for the kinds of information that will be most useful and informative for the task at hand. In other words, asking questions for better information is part of the computer algorithm!


"Active learning" is also a hot topic in education research. Many of the ideas carry surprisingly well (What types of questions are the most effective? How should demands on the teacher and learner's time be balanced? What sorts of learning curves arise in practice?). Of course, in education research, the learners are young human students, not computers.

Here are two good reviews on active learning in machine learning (aka AI), and NLP:

(The figure above is from Settles' survey.)