23
Feb
2010

Netbeans : Only using space tabs for python

I like to use tab as separator for all my files (html/css/js) but it is recommended to use space tabulation for python files.

With netbeans, the problem is if you go in the preferences :

Tools > Options > Editor > Formatting

you can see the parameter "Expand tabs to spaces" when you are using "Language : All Languages" and "Category : Tabs and Indents" (Of course, I didn't checked this one in order to have tabs and not space).

But, now if you choose Python as Language, there is no "Tabs and Indents" category.

So by default, you had to choose to expand tabs to space for all your files in order to have the python files to work.

But I've found the solution to just using space for python files, and tab for the rest.

All you have to do is to add the following lines to the file

[Netbeans Installed Folder]/.netbeans/6.8/config/Editors/text/x-python/Preferences/org-netbeans-modules-editor-settings-CustomPreferences.xml

    <entry javaType="java.lang.String" name="code-template-expand-key" xml:space="preserve">
        <value><![CDATA[TAB]]></value>
    </entry>
    <entry javaType="java.lang.Boolean" name="expand-tabs" xml:space="preserve">
        <value><![CDATA[true]]></value>
    </entry>

Restart your editors and that's it ! You can now have space for python and tabs for the rest of your script files !

Hope this helps !

21
Jul
2008

How to install DBDesigner 4

Hey !

Today I will explain how to install dbdesigner4 on Fedora. It's a bit tricky ! :/

So first of all, download these two files :

After, extract dbdesigner (tar -xvzf DBDesigner4.0.5.4.tar.gz).

Extract also kylixlibs3-borqt-3.0-2.tar.gz.

Go to the kylixlibs3-borqt folder, and do this :


tar -xvzf DBDesigner4.0.5.4.tar.gz
tar -xvzf kylixlibs3-borqt-3.0-2.tar.gz
cd kylixlibs3-borqt
su -
cp libborqt-6.9.0-qt2.3.so /usr/lib/libborqt-6.9.0-qt2.3.so
ln -s /usr/lib/libborqt-6.9.0-qt2.3.so /lib/libborqt-6.9-qt2.3.so
/sbin/ldconfig
chown -R user:user ../DBDesigner4
cd ../DBDesigner4/
./startdbd

And thats it ! :)

But now, you want to connect DBDesigner to your database to automatically manage your table from your design ! And apparently It doesn't work !

Okay, okay, I give you the solution !

Donwload this file :
http://www.devart.com/dbx/download.html (the right for you, sure !)

Extract it and copy it to /usr/lib :


tar -xvzf dbxmda.tar.gz
su -
cd DbxMda
mv libsqlmda.so.4.20 /usr/lib/

Then, open DBDesigner, go to Database > Connect to Database, click on "New connection Database", choose the "advance" tab, and modify these informations :

LibraryName: libsqlmda.so.4.60
VendorLib: libmysqlclient.so.10.0.0
GetDriverFunc: getSQLDriverMySQL

BE CAREFUL ! The current value for GetDriverFunc is NOT the same as the one indicated here ! Yep ! The Y is in upper caps but mine is in lower caps. It's a big difference because in the libsqlmda.so, the function is getSQLDriverMySQL and NOT getSQLDriverMYSQL, so if you leave the Y, it will not work ! :p

Now you can play with mysql ^^

01
Jul
2008

Error c00ce56e

Impossible d'effectuer l'opération à cause de l'erreur suivante c00ce56e.
Could not complete the operation due to error c00ce56e

This problem occur on IE7 when you send an xhr request with a json-comment-filtered response.

The problem is that IE7 does not manage this file type.

To avoid this problem, just remove the


header ('Content-Type: text/json-comment-filtered');

From your Php file (or something like that in other languages files (asp, cfm, etc)) and you will normally not have this problem.

27
Jun
2008

Problem of JVM with Eclipse Ganymede

It appear that the JVM (under Linux apparently (I've only tested on it)) has some problems that makes Eclipse crash a lots of time (just by saving a file, for example).
It's very boring.

I've found a solution to avoid this problem, just edit the eclipse.ini file and add this line :

-XX:CompileCommand=exclude,org/eclipse/jdt/internal/compiler/lookup/ParameterizedMethodBinding,<init>

Normally, your problem is now away ! :)

06
Jun
2008

Installing Eclipse Ganymède Rc4 with the Web Development plugins

The actual release of Eclipse is the 3.3 but the new version, 3.4 alias Ganymede will be available soon. I'm pretty sure that the Rc4 is quite stable so I decided to use it.

To download the Rc4, just follow this link.

Now, I needed to install my usual plugins, that mean Pdt, Zend, Subclipse and JSEclipse.

For Pdt, the main problem of incompatibility is far away :). Just download the nighltly build at this location, and unzip it.
Then, launch Eclipse and go to Help > Software Updates... > Available Software. Click on Add Site, Local, and select the Pdt folder.
Then, follow the instruction to install it. VERY EASY !! :)

If you have a problem, follow this link.

Now, Zend Debugger. More easy, just click on Add Site, copy this link :
http://downloads.zend.com/pdt
and then unfold the new element to choose the Zend Debugger, check it and install it :)

Now, Subclipse, as same as Zend debugger, add this site :
http://subclipse.tigris.org/update_1.4.x
and install the plugin.

Finally, for JSEclipse, add this site :
http://download.macromedia.com/pub/labs/jseclipse/autoinstall/
and install the plugin.

You have now a new and fresh version of Eclipse Ganymede !

Now, go to work !!