Originally posted on Hanynowsky:

Whatever issue you’ve got with the Look & Feel in Ubuntu 12.04 PP, running Netbeans, you can set the LAF native look & Feel instead of the GTK one (which has by the way several issues under Linux).


Go to your netbeans directory (ex: /home/user/netbeans7.2/etc) and open the file : netbeans.conf

then add the following line to netbeans options:
-J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd --laf Metal


# ${HOME} will be replaced by JVM user.home system property

# Options used by NetBeans launcher by default, can be overridden by explicit
# command line switches:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd –laf Metal"
# Note that default -Xmx and -XX:MaxPermSize are selected for you automatically.
# You can find these values in var/log/messages.log file in your userdir.
# The automatically selected value can be overridden by specifying -J-Xmx or
# -J-XX:MaxPermSize= here or on the command line.


View original 274 more words

Instaling Sun Java Jre and Jdk Ubuntu 11.10 Oneiric

Just copied from: http://superuser.com/questions/353983/how-do-i-install-the-sun-java-sdk-in-ubuntu-11-10-oneric

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update sudo apt-get install sun-java6-jdk sun-java6-plugin 


You may want to also add the following

sudo update-alternatives --config java 

You should get the following

 Selection Path Priority Status
* 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode
2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode
Press enter to keep the current choice[*], or type selection number: 2

Select (2) and press enter

Now running:

java -version 


java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)

Chrome new Settings page

These days I realized that my Google Chrome  (Version 19.0.1055.1 dev) Settings page had a new interface (Maybe this change happened some versions ago)

This is how it looks like

Chrome Settings Page

Chrome Settings Page screenshot.

I just loved the new navigation menu. This kind of menu (with a items that only have a border on the left) are being used everywhere (Gmail, Google Reader, …).

Inspired by this menu and it’s source code I co-created a version of it. As this ‘Settings’ page is built in Google Chrome and would not be used in other browsers it does a ‘heavy’ mozkit css usage. The version I wrote don’t.

You can check it here: http://jsfiddle.net/SkvjV/2/


Remainder: Configuring GIT

Posts tagged with ‘remainder’ will be the kind of post that have fast notes on solving/configuring/… something.

This one is about GIT configuration:

Configuring your name and e-mail

git config --global user.name "Your name"
git config --global user.email your@mail.com

Configuring colorized output

git config --global color.branch auto
git config --global color.diff auto
git config --global color.interactive auto
git config --global color.status auto

That’s all

ImportError: No module named appengine.tools

Got this error while playing around with Google AppEngine on Linux (Fedora16).

After googleing a little I got this

(…) After some brief searching, it seems that if you have other google python libs in your python path you’re in trouble. Im my particular case I had the protobuf-python26 port installed (I’m using OS X). I deinstalled that port and everything worked as expected (…)

from http://philipsoutham.posterous.com/importerror-no-module-named-appenginetools

I just had the same problem. After uninstalling protobuf using yum I got dev_appserver.py working.

If you need to use protobuf with AppEngine just check this link. (From the same source above)