Vibrant Ink TextMate theme for Eclipse

Spent some time tinkering with Eclipse’s preferences today as I was really missing the Vibrant Ink theme for TextMate and Eclipse is looking pretty now…


The only thing that I still couldn’t figure out was how to change the color of the folding/breakpoint bar next to the gutter. And I’m really starting to like the Monaco font that seems to be the default programmer’s font on Macs (I found a Windows version of Monaco but haven’t tried it).

I guess TextMate envy still exists even when you are on a Mac with a registered version of TextMate heh.

Here’s my Eclipse preferences (I just did a File -> Export -> Preferences). It seems Eclipse only allows a full export/import so you may want to be careful to backup your existing preferences before importing mine.

Copy ‘n’ Paste and the incorrigible programmer

We just never learn, do we?

String fromLocationCode;
Location fromLocation = request.getFromLocation();

String toLocationCode;
Location toLocation = request.getFromLocation();

// Do stuff to toLocation

First, my (extremely talented) colleague makes a similar copy and paste blooper, and one day later I repeat the same mistake. But, but… Select boring code, Ctrl-C, Ctrl-V, it’s sooo easy…

New Features and Enhancements in J2SE 5.0. I miss Java. I’m having a rough time getting used to wxPython (mostly because of its lack of documentation). (1)

JMF applet without JMF installed?

A long shot, but do any of you Java programmers think an applet that uses JMF can be deployed and run on a client that doesn’t have JMF installed?

I think the chances would be higher if instead of an applet, a Java Web Start application was used instead. Bundling the JMF libraries could work, but there hasn’t been any report of success as far as I can find. (It is possible with a full-blown Java application though.)

Any leads at all would be good. In the meantime I will be trying this out myself.

Help needed with .NET and Java

Update: Dave has an excellent solution to the ButtonListBar .NET control problem.

Firstly, the .NET question: does anybody know how to get this Button ListBar Control to work?

I was trying to get the.NET Button ListBar control into my VB project’s toolbox - I followed these instructions:

To use the control, add either the ButtonListBar.vb or ButtonListBar.cs file to your project. You should find the control automatically appears in the Toolbox; if not you’ll need to force the toolbox to display the
control: typically I find that double clicking on the control source file to open its designer causes this to occur.”

Unfortunately, it doesn’t appear automatically when I added ButtonListBar.vb (via “Add existing item”). So I double-clicked the source file… But it threw out this error

The class ButtonListBar can be designed, but is not the first class in the file. Visual Studio requires that designers use the first class in the file…

Which I don’t understand of course. Neither did it cause the ListBar control to appear in the Toolbox. I have emailed the author about this, but if anyone knows what I’m doing wrong, please let me know ASAP.

This of course leads to the question: What is the correct way to add a user control which comes in source form?

Now, for the Java question: is there an existing library/package that would allow me to calculate the median and, say, the 95th percentile of a population quickly? I searched to no avail, of course, before I ask this.

I can do this myself the hard way, but I’m really pressed for time. I’d like to reuse an existing solution if there is any.

Thanks for any leads!