tip category archive

7 December 2007

Updating the Linksys BEFSR41 Router Firmware from GNU/Linux

One of the challenges you run in to when moving to GNU/Linux is that simple little things may not be supported. For example, updating the firmware on your router. Linksys provides some rinky-dink program to install the firmware from Windows, but doesn’t tell you how or if you can do it from GNU/Linux. (At least there wasn’t anything I could find on their site about this.)

I’ve had a Linksys BEFSR41 4-port wired router since 2000, and in the early days I upgraded the firmware from Windows a few times, but now haven’t touched it in many years, getting by just fine with the 1.37 firmware from Jan ‘01. Recently I’ve been trying out OpenDNS, and from their site gathered that a newer firmware might allow me …

10 November 2007

NetBeans Gotcha: GUI custom component problem when package and class named the same

Let’s say you have a project with package Example, and in that package you have:

Example.java // troublemaker!
ExampleUI.java // “form” - extends JFrame
LabelExample.java // extends JLabel

One of the cool things about the Matisse GUI Editor in NetBeans is that you can add LabelExample.java as a custom component to the widget palette and then drop an instance of it on your ExampleUI.java form in design mode. NetBeans will generate the source code for you.

However, there is a little hitch. When NetBeans creates the variable declaration, it will use the fully qualified path of your class, in this case Example.LabelExample, and then the IDE (which is chanelling the compiler), will complain with:

That is, here is your generated code block:

// Variables declaration - …

28 June 2007

How do you disable the CTRL+T ‘move to trash’ shortcut in GNOME/Nautilus?

10 July 2007, Answered! Thanks to und0 for explaining in the comments. See below…

I just discovered an inconvenient default behavior of the Nautilus file browser. (At least, it appears to be a default in Ubuntu 7.04/Feisty Fawn.) I thought I was in my Firefox window and pressed <CTRL> T to open a new tab, but the focus was in Nautilus and I deleted a file instead. I wasn’t quite sure what I did at first since my attention was on the Firefox window. I immediately checked for an “undo” command in the edit menu, but there doesn’t seem to be one for Nautilus. (Also quite unfortunate.)

Still not sure what had happened, and like a dummy, I pressed CTRL+T again and this time could clearly see a file …