…are the shortcuts.

I’ve been using control-shift-t extensively since Darius first showed it to me a few months ago.  It will let you quickly find and jump to a java class across your current workspace.  (There is also an Open Type button by default in eclipse that you can use.)

I’ve always wanted a way to do the same except with our jsp, xml, and properties files.  I know most of the names of files and know where they are, I’m just lazy.  I want to be able to jump to them without having to expand the whole tree.

Well, Open Resource to the rescue!  Control-shift-r works just like the Open Type except with nonjava files.  Woot!

This is in the babble category tagged as

1 comment »

Leslie’s recent Google Open Source post highlighted a few students from some other GSoC 2008 projects.  One of whom was Filippo Bollini. She hightlighted one of his typical weekly updates for his MySQL mentor: http://www.filippobollini.it/soc/?p=4. The details he put into the post included his thought patterns for the week, what was accomplished, and what is planned for the coming week.  Filippo sets the bar pretty high, but I think my student, Upul, is up to the challenge.  I would hope all of the other OpenMRS GSoC 2008 students also strive for this kind of detail! :-)

This is in the openmrs category tagged as ,

1 comment »


…is that most of the other users of Eclipse are also software developers.  I’d bet that 75% of the users of Eclipse are capable of writing a plugin for it.  This is part of the reason there are tons of eclipse plugins, as I’ve talked about before.

Yesterday I was lamenting the fact that Eclipse doesn’t have a middle-click-closes-tab functionality as Firefox does.  It finally disturbed me enough to go and do a quick google search for it.  Lo and behold, out of those many other Eclipse-loving programmers out there, one of them felt as I did.

I now have the ability to close my tabs with a simple middle click thanks to Andriy Palamarchuk and the middle click closes tab plugin.

Plugin site: http://www.hlsoft.com/clickclosestab_eclipse
Plugin update url for eclipse: http://update.mousefeed.com/

This is in the babble category tagged as ,

Add a comment »

My favorite budgeting tool has just been taken out of beta and I feel like helping announce it.  PearBudget is the easiest budgeting software out there.  It gives you a simple online categorical budget.  There aren’t any overwhelming options and you can make as many or as few categories/tags as you wish.  My only gripe turned praise for it was that there wasn’t a way to automatically import my credit card transactions.  However, according to their FAQ, this is very intentional — the less automatic the budgeting is, the less automatic the spending becomes.

This is in the babble category tagged as ,

Add a comment »

Saptarshi Purkayastha, an OpenMRS GSoC student this year, wrote mini java script and submitted a patch for adding the OpenMRS license to all of our java files. This was long overdue and was much appreciated, thanks Saptarshi!

Submitting this to trunk was no trouble at all, all things went as normal. However, when merging from trunk to other branches, I kept running into problems. All files that received the new license were showing as conflicts, even though there were no other changes. I had to manually copy the license from the old file to merged file. NOT fun. I did this manually when I was merging to the report-api-refactoring branch because it was late and I didn’t want to look up the “right” way to fix it.

Well, I think I found the reason.  Java file handlers don’t do prepending very well.  The script that Saptarshi wrote creates a new file with the license code, and then appends the old file contents.  The java newLine() method used in the java script to append that old file contents apparently uses a different newline character than the default for unix/windows.

This minor little difference caused two problems: 1) merging produced conflicts and 2) when comparing versions or showing annotations it showed that I had changed all lines when in fact I had just added the license header.

The fix for problem 1 above was to merge from trunk with the ignore-eol-style flag set:

svn merge -x––ignore-eol-style -r3684:3685 http://svn.openmrs.org/openmrs/trunk /home/ben/workspace/openmrs-api-refactoring

Note: I merged from trunk up to version 3684 first using the Subclipse svn gui (3685 was the revision with the license patch).  I ran the above at the command line to get a nice clean successful merge.  I was then able to merge from 3685 to HEAD using subclipse again.

I can’t really tell if this fixed problem 2 as well because I can’t remember which files this was happening to before.  The few files I queried were only showing me as having changed the first few license lines, so it appears to have solved it.

This is in the openmrs category tagged as , ,

5 comments »

« Previous Entries Next Entries »