Back to BlogJet as My Blog Editor on Linux

Blogging Software, Linux No Comments »

Having tried Bilbo/Blogilo for a while now, I found it to be a fine editor but a bit too intrusive in altering the HTML code I created in code view when I switched back to Bilbo’s WYSIWYG view.

So I tried good old BlogJet again and found there’s a (free) upgrade to the new version 2.5 (currently 2.5.0.15), among other goodies making it Unicode compatible and letting you create categories from within the editor (only for WordPress blogs), still a rare feature outside of Live Writer.

To install it, proceed just like with the prior versions, as outlined here. You have to open the downloaded installer (BlogJetSetup.2.x.x.x.exe) from the file menu in IEs4Linux and proceed. Simply clicking the downloaded installer will give you an installation without necessary HTML components and it won’t display any content.

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

Convert CHM to PDF on Linux (Ubuntu)

Computing, Linux 1 Comment »

The Google search led me down the wrong path, so here is the gist of it:

Install chm2pdf, which is in the repositories starting with Ubuntu 8.04

sudo apt-get install chm2pdf

Get help with

chm2pdf –help

Convert with for example (all three “dashes” are double dashes half eaten by WordPress):

chm2pdf –continuous –no-links –quiet input_file.chm

The input file name should not contain any special characters or spaces, otherwise you might get all kinds of “File not found” errors, regarding for example urlslist.txt and other files. So rename your input file accordingly.

This process is far easier than working extract_chmLib and htmldoc.

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

Folder org already exists/Too many open files with Netbeans

Linux, Netbeans No Comments »

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

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

Testing Bilbo/Blogilo Blog Editor for Linux

Blogging Software, Linux No Comments »

Always looking for a better blog editor for Linux, I just installed Bilbo (recently rename Blogilo for copyright issues). I had some trouble following the process here and getting the Ubuntu packages installed on Linux Mint 6, which you might run into on Ubuntu Intrepid. Manually installing according to this guide also failed. I got ‘class BilboPost’ has no member named ‘setSlug’ upun build among other issues.

So I proceeded like this:

Install dependencies:

sudo apt-get install kdelibs5-dev kdepimlibs5-dev libboost-dev libqt4-sql-sqlite

Get the source from http://www.ohloh.net/p/bilbo/download?filename=bilbo-1.0-src.tar.gz&projects_id=bilbo

Unpack,

sudo tar -xzvf bilbo-1.0-src.tar.gz

Then just follow the steps from the readme:

cd bilbo

mkdir build

cd build

cmake -DCMAKE_INSTALL_PREFIX=`kde4-config –prefix` ..

make

sudo make install OR su -c ‘make install’

Then I had to manually install the bilbo.desktop file for some reason, so in the directory where you unpacked bilbo:

sudo desktop-file-install bilbo.desktop

Not sure yet whether bilbo/blogilo is really the ultimate blog client for Linux, but so far it seems stable and feature rich and I’ll retire my Blogjet app for now, the HTML it created was somewhat horrible, with FONT tags and such.

=-=-=-=-=
Powered by Bilbo Blogger

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

Editing less (less css) with Netbeans IDE

CSS, Linux, Netbeans 7 Comments »

Just a little tip, as the syntax of less (less css) is so similar to css, just add a new file type in Netbeans > Tools > Options > Miscellaneous > Files like so:

Update: I found less editing works a lot better with Netbeans 6.5.1 than with 6.8. The code formatting of 6.8 is too picky and will essentially not format less as it’s not proper css. No such problems with Netbeans 6.5.1 which I also use on Windows as a vastly superior less and css editor compared with Visual Studio.

You can always get Netbeans 6.5.1  and other versions through this page:

http://www.netbeans.info/downloads/dev.php

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