Netbeans is slowly becoming my favorite IDE. (Sorry, Eclipse!)
Today I started using the Ruby on Rails support within Netbeans, and it's quite nice. I'm probably not doing anything terribly sophisticated, but I did manage to create and run migrations, create some controllers and views, and launch the app, all from within Netbeans. Eclipse probably has support for all this stuff, but due to unexplained Eclipse crashes (on Linux), I can't actually use it.
I'm using the JRuby plugin for Netbeans, which means my rails code is actually running in Java. Kinda nice - Java is a more ubiquitous runtime environment that Ruby, so I'm thinking this will be helpful when it comes to deployment time.
Friday, July 11, 2008
Monday, June 9, 2008
Eclipse weirdness, NetBeans to the rescue
Last week, I did a hardware upgrade on my home PC. Originally, I had an EliteGroup 848P-A motherboard with a Pentium 4 2.8GHz (Prescott) with 2 GB of DDR 400 RAM. The new configuration has a Gigabyte GA-P35-S3G motherboard with a Pentium Dual Core E2220 (2.4GHz) and 4 GB of DDR2 800 RAM. It was a pretty cheap upgrade, and performance on compute-intensive tasks seems to be about 2x faster. Kubuntu 8.04 recognized all of the new hardware; no reconfiguration was necessary.
Weirdly, there is one important application that no longer works following the upgrade: Eclipse. I get repeated segfaults in libjvm.so. As far as I can tell, it's not a hardware problem. All other applications I have tried have been 100% stable, my CPU temperature has not exceeded 41 C for either core, memtest86+ did not find any problems with the memory, etc.
So, I conclude that it's some sort of software problem. Could it be a weird interaction between SWT and gtk+? This is where native code really sucks.
In the meantime, I'm using Netbeans for Java development. It's gotten quite a bit better since the last time I used it. It's maybe not quite as polished as Eclipse, but the important features (code completion, cross-referencing, and refactoring) are there.
Weirdly, there is one important application that no longer works following the upgrade: Eclipse. I get repeated segfaults in libjvm.so. As far as I can tell, it's not a hardware problem. All other applications I have tried have been 100% stable, my CPU temperature has not exceeded 41 C for either core, memtest86+ did not find any problems with the memory, etc.
So, I conclude that it's some sort of software problem. Could it be a weird interaction between SWT and gtk+? This is where native code really sucks.
In the meantime, I'm using Netbeans for Java development. It's gotten quite a bit better since the last time I used it. It's maybe not quite as polished as Eclipse, but the important features (code completion, cross-referencing, and refactoring) are there.
Thursday, May 29, 2008
Summer!
Hooray, it's summer! (I define summer as the period of time between Spring and Fall semesters, not by the progress of the earth around the sun.)
I'm setting up my home machine to do some work on FindBugs over the summer, and since my Ubuntu 6.10 was getting a bit stale, I decided to upgrade. I happened to have a CD burned with Kubuntu 8.04, so I backed up my essential files and let the installer rip. So far, it seems nice. It took a bit of getting used to KDE rather than GNOME. Overall, KDE seems less polished than GNOME, but more configurable. I'm using Amarok to play my music files, and it appears to be significantly better than Rhythmbox. (See previous post to see my ranting about how much I dislike Rhythmbox.)
Out of curiosity, I installed the Ubuntu openjdk package, and tried running Eclipse on top of it. So far, it seems to work quite well! It's exciting to finally have a usable free Java implementation. Major kudos to Sun for open sourcing the JDK.
There is a weird bug on Ubuntu/Kubuntu 8.04 with Eclipse: here is the bug report. The workaround described in the bug report does seem to fix the problem.
I bought a new monitor, an Acer AL1916. Newegg was having a special for $159, with free shipping. Now (at long last) both of my monitors are the same size and resolution.
I finally started some work on FindBugs today. First project: implementing exclusive type qualifiers. (This is part of implementing support for JSR 305 type qualifiers in FindBugs.) Bill Pugh has a nice presentation about JSR 305 which explains all of the goodness.
I'm setting up my home machine to do some work on FindBugs over the summer, and since my Ubuntu 6.10 was getting a bit stale, I decided to upgrade. I happened to have a CD burned with Kubuntu 8.04, so I backed up my essential files and let the installer rip. So far, it seems nice. It took a bit of getting used to KDE rather than GNOME. Overall, KDE seems less polished than GNOME, but more configurable. I'm using Amarok to play my music files, and it appears to be significantly better than Rhythmbox. (See previous post to see my ranting about how much I dislike Rhythmbox.)
Out of curiosity, I installed the Ubuntu openjdk package, and tried running Eclipse on top of it. So far, it seems to work quite well! It's exciting to finally have a usable free Java implementation. Major kudos to Sun for open sourcing the JDK.
There is a weird bug on Ubuntu/Kubuntu 8.04 with Eclipse: here is the bug report. The workaround described in the bug report does seem to fix the problem.
I bought a new monitor, an Acer AL1916. Newegg was having a special for $159, with free shipping. Now (at long last) both of my monitors are the same size and resolution.
I finally started some work on FindBugs today. First project: implementing exclusive type qualifiers. (This is part of implementing support for JSR 305 type qualifiers in FindBugs.) Bill Pugh has a nice presentation about JSR 305 which explains all of the goodness.
Tuesday, May 6, 2008
Rhythmbox
I've been using Rhythmbox for a while to play my music files (which are, of course, in Ogg Vorbis format.)
I hate to say it, but I have become so frustrated with Rhythmbox that I'm now actively looking for a replacement. Here are my main gripes:
Gripe #1: When you toggle between the "small display" and the full size display, the window size chosen is always wrong. What I expect to happen is that whatever window size I configure in the two modes, Rhythmbox will remember my decision. For f***'s sake, would this be so hard to implement? Here's what actually happens: when switching from the small display to full display, the full display gets a hard-coded height of about a third of my display height. Here's a screenshot:
As you can see, the various lists (artist, album, tracks) are completely squashed. THIS SUCKS!!!! (As a bonus bug, you'll notice that in Ubuntu 7.10, gimp is no longer able to capture screen shots that include the window decorations.)
When switching from the full display back to the small display, sometimes the size is restored correctly, and sometimes the width of the full display is preserved (meaning that you get an extremely wide small display):
Nice work, rhythmbox!
Gripe #2: When an album finishes playing and you click "Play" again, it starts playing from the last track, not the first. Yeah, that's just what I wanted to do.
Gripe #3: If you click "Previous" too quickly, playing stops altogether, even if you haven't reached the first track yet.
One of the reasons I have been an enthusiastic user of free software over the past 15 years or so is that it generally places a high value on correctness and utility over bells and whistles. It concerns me greatly that the free software world is moving towards a Windows model where every application is skinnable, animated out the wazoo, has a feature list the size of a telephone book, and is impossible to use for more than 2 minutes without uncovering a serious bug.
I hate to say it, but I have become so frustrated with Rhythmbox that I'm now actively looking for a replacement. Here are my main gripes:
Gripe #1: When you toggle between the "small display" and the full size display, the window size chosen is always wrong. What I expect to happen is that whatever window size I configure in the two modes, Rhythmbox will remember my decision. For f***'s sake, would this be so hard to implement? Here's what actually happens: when switching from the small display to full display, the full display gets a hard-coded height of about a third of my display height. Here's a screenshot:
As you can see, the various lists (artist, album, tracks) are completely squashed. THIS SUCKS!!!! (As a bonus bug, you'll notice that in Ubuntu 7.10, gimp is no longer able to capture screen shots that include the window decorations.)When switching from the full display back to the small display, sometimes the size is restored correctly, and sometimes the width of the full display is preserved (meaning that you get an extremely wide small display):
Nice work, rhythmbox!Gripe #2: When an album finishes playing and you click "Play" again, it starts playing from the last track, not the first. Yeah, that's just what I wanted to do.
Gripe #3: If you click "Previous" too quickly, playing stops altogether, even if you haven't reached the first track yet.
One of the reasons I have been an enthusiastic user of free software over the past 15 years or so is that it generally places a high value on correctness and utility over bells and whistles. It concerns me greatly that the free software world is moving towards a Windows model where every application is skinnable, animated out the wazoo, has a feature list the size of a telephone book, and is impossible to use for more than 2 minutes without uncovering a serious bug.
Wednesday, April 2, 2008
Greatest Rock 'n Roll Song Ever?
I've had a theory for a while that the best Rock song ever written is "Memphis, Egypt" by the Mekons. Trying to describe it in words is pointless, so go listen to it if you haven't heard it. It's on the album The Mekons Rock 'n Roll. I've had the privilege of hearing them play it live, and all I can say is, holy ****.
There are a few songs that I think are almost as good as "Memphis, Egypt". "Club Mekon", also by the Mekons, comes close, and actually follows immediately after "Memphis, Egypt" on the same album! This has to be the greatest two-song sequence ever recorded.
"The Headmaster Ritual" by The Smiths (on Meat is Murder) is possibly a better song than "Memphis, Egypt", but loses some points for the mechanical production that saps much of the energy from the track. (Aside: the best Smiths album is Hatful of Hollow because it is (mostly) a collection of tracks from radio shows, and captures the manic energy of the band much better than any of their studio output. But you knew that.)
I recently discovered on Pandora a song called "I Stare Out..." by The Verlaines which I think could be as good as all of the previously mentioned songs; at the moment, I consider it a major discovery. (Had you ever heard of The Verlaines? I hadn't.)
There are a few songs that I think are almost as good as "Memphis, Egypt". "Club Mekon", also by the Mekons, comes close, and actually follows immediately after "Memphis, Egypt" on the same album! This has to be the greatest two-song sequence ever recorded.
"The Headmaster Ritual" by The Smiths (on Meat is Murder) is possibly a better song than "Memphis, Egypt", but loses some points for the mechanical production that saps much of the energy from the track. (Aside: the best Smiths album is Hatful of Hollow because it is (mostly) a collection of tracks from radio shows, and captures the manic energy of the band much better than any of their studio output. But you knew that.)
I recently discovered on Pandora a song called "I Stare Out..." by The Verlaines which I think could be as good as all of the previously mentioned songs; at the moment, I consider it a major discovery. (Had you ever heard of The Verlaines? I hadn't.)
Thursday, March 13, 2008
Today's riddle: why does CUP emit the generated parser as TWO classes?
OK, so when you use CUP to generate a parser, it emits two classes: a parser class, and an action class (which contains the code generated for the semantic actions associated with the productions of your grammar). These are totally separate classes.
Today's riddle is this:
The action code can refer to the parser via a field called parser, but that's only useful for calling public methods on the parser object. But that means that any internal parser state/operations that the semantic actions want to access must be exposed as public, violating encapsulation.
Blech.
Today's riddle is this:
Why is the code for the semantic actions generated in a separate class?Here are some possible answers:
- Your guess is as good as mine.
- Look in the user manual to find out --- oh wait, the user manual doesn't explain this.
- To ensure that you must violate encapsulation in order to allow semantic actions to refer to internal parser operations?
The action code can refer to the parser via a field called parser, but that's only useful for calling public methods on the parser object. But that means that any internal parser state/operations that the semantic actions want to access must be exposed as public, violating encapsulation.
Blech.
Wednesday, March 12, 2008
GUI Builders for Eclipse
The time has come to talk about GUIs in the Software Engineering course I'm teaching currently, which led me to revisit using a GUI builder in Eclipse. (I will not hand-code a Swing GUI. I just won't.)
Previously I've used the Eclipse Visual Editor plugin, which, while not perfect, generally gets the job done. To my dismay, the current release of the VE does not work with the current stable release of Eclipse, and there has not been an official release of the VE since June 2006. (So sadly neglected / and often ignored / a far second to Belgium / when going abroad / Finland, Finland, Finland :-) I hope this project gets reinvigorated at some point, but I wasn't going to sit on my hands waiting for that to happen.
A quick google search turned up Jigloo, an Eclipse-based GUI builder which, while not free software, is gratis for non-commercial use. From my 10 minutes or so of using it, it appears to be very nice, quite a bit more polished than VE. We'll see how it goes, but I'm cautiously optimistic it will do what I need it to do.
Previously I've used the Eclipse Visual Editor plugin, which, while not perfect, generally gets the job done. To my dismay, the current release of the VE does not work with the current stable release of Eclipse, and there has not been an official release of the VE since June 2006. (So sadly neglected / and often ignored / a far second to Belgium / when going abroad / Finland, Finland, Finland :-) I hope this project gets reinvigorated at some point, but I wasn't going to sit on my hands waiting for that to happen.
A quick google search turned up Jigloo, an Eclipse-based GUI builder which, while not free software, is gratis for non-commercial use. From my 10 minutes or so of using it, it appears to be very nice, quite a bit more polished than VE. We'll see how it goes, but I'm cautiously optimistic it will do what I need it to do.
Subscribe to:
Posts (Atom)