Nov 07
The messages “Folder org already exists in …” and “Too many open files” when using Netbeans are likely related. The underlying error might be that Linux runs out of file descriptors, which can happen rather quickly when you open many projects at once. Here’s the solution.
The file descriptors can be set at the system level and at the shell level:
Check how many your system allows:
cat /proc/sys/fs/file-max
This value can be set to a high number, probably to several 100k without major issues. For now you might try:
echo “65536″ >/proc/sys/fs/file-max
You could also add
fs.file-max = 65536
to
/etc/sysctl.conf
then run
sysctl -p
to reload sysctl.conf
For the shell type
ulimit -n
to get the number of file descriptors.
You can set for example
* soft nofile 8192
* hard nofile 8192
in
/etc/security/limits.conf
to increase the number.
After increasing these values I have not had any issues with Netbeans as described above for several months now. Hope it helps.
=-=-=-=-=
Powered by Bilbo Blogger
Jan 22
Powerful find and replace with regular expressions should be the hallmark of every IDE worth its mettle. MS Visual Studio does it so-so, but lo and behold, Netbeans (at least in version 6.1) is even worse.
So I wanted to put foo at the beginning of every line in a text, which calls for a regex like:
^.*
and replace like:
foo $0
However, Netbeans only ever replaces the first match in a text, over and over again. It also hangs up easily in the process.
As with many a Netbeans quirk, it’s Quanta Plus to the rescue again:

Works like a charm.
Nov 24
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”:

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.
Recent Comments