UTF-8 Encoding in Netbeans Editor on Linux

Linux, Netbeans No Comments »

The Netbeans 6.1 editor seems to have problems displaying UTF-8 encoded files (Linux Mint Daryna, Ubuntu Feisty), so a source file with Thai (and probably Chinese, Japanese etc.) will look like this if project encoding is set to UTF-8:

Netbeans_utf-8

Changing font, project properties etc. won’t help, so before messing around to much and risking possible data corruption, here’s a workaround: Use Quanta Plus for editing, a fantastic editor I find myself using more and more and which hasn’t let me down. Here’s the section in Quanta Plus:

Quanta_plus_utf-8

Both editors will pick up each other’s edits, so it’s a cinch to use them simultaneously to edit the same files.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

“Could not connect to the server” with Rails 2.2 and Netbeans

Netbeans, Ruby on Rails No Comments »

If you get the “Could not connect to the server” error running you project from Netbeans while script/server works fine, first make sure you have the correct Rails version set for your project, it should show “Installed version: 2.2.2”:

Rubygems_update2

If you still get:

Rails requires RubyGems >= 1.3.1 (you have 1.2.0). Please `gem update –system` and try again.

But the suggested

gem update —system

often fails to update your gem to the new version so try

sudo gem install rubygems-update

and then run:

sudo gem install rubygems-update

and check with

gem -v

where it should show 1.3.1 at the time of writing.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Change the Netbeans Windows Layout

Netbeans, Programming No Comments »

In Netbeans there currently (Version 6.1) is no built-in option to save a windows layout, you can only do a “Reset Windows”  (in the Window menu) to get back to the factory layout.
I’ve been looking for a solution to get a *cough* Visual Studio *cough* like layout (all navigation on the right of the code window) and found a great plugin called Perspective (click this link twice as for some reason on the first click it will give you the plugin home page) that lets you save a layout and switch easily between layouts (er, perpectives). You can’t download it using the Netbeans plugin installer as it’s not signed, so you’ll have to download and install from disk: 

Netbeans_window_layout_perspective_plugin

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in