Thursday, March 11, 2010

Eclipse button bug fix

I have installed the eclipse 3.5.1 on my Ubuntu 9.10 and I was unable to click some of the buttons but possible to use the keyboard to that purpose. To fix it just create an executable file example: eclipse_runable.sh and type in the following information:


export GDK_NATIVE_WINDOWS=true
PATH_TO_YOUR_ECLIPSE_RUN_FILE

for example:

export GDK_NATIVE_WINDOWS=true
/home/prajol/eclipse/eclipse

Now, you can start eclipse using this executable file and not bump into such annoying bugs.

Saturday, May 02, 2009

Converting video files in linux

Converting video file format is easily done through the program ffmpeg which can be installed with a simple command : sudo apt-get install ffmpeg
after installing this just run it with different parameters. Here is an example of converting .asf file format to .avi file format:
ffmpeg -i inputfile.asf -target ntsc-vcd outputfile.avi


Another video file format converter is mencoder. Example :
''mencoder yourmovie.3gp -ovc lavc -lavcopts vcodec=msmpeg4v2 -oac mp3lame -lameopts vbr=3 -o yourmovie.avi''

Wednesday, April 08, 2009

Quick guide to set up SVN for eclipse (subclipse) in linux and using Google Code for the repo

Installing javaHL for the subversion project might be required depending on the JVM you have. This is to make it compatible with java. This javaHL is present in the libsvn-java package, which can be installed using:

$sudo apt-get install libsvn-java

Now we are set to install the subclipse. This step is nicely presented with step-by-step screen shot in the official site : http://subclipse.tigris.org/install.html

Now to use the SVN you will require a repository so open a project in GoogleCode from http://code.google.com/hosting/ and clicking on the "create a new project" link.

Go back to eclipse and go to File>Import and select SVN>check out projects from SVN and click on Next. Doing so you will get an option of create a new location select it and click on Next. At the "url" enter the following "https://[projectname].googlecode.com/svn/
with https you will make the repository read and write together. Then check the folder in which the project you want to be persent in (e.g. trunk).

Now if you have a project already running and want to put it in the repository. Just commit right click the project>Team>commit

Friday, April 03, 2009

TeXlipse - Eclipse as a LaTeX editor


TeXlipse is an eclipse plug-in that adds LaTeX support. This enables you to work on your LaTeX documents from within eclipse and gives you a good interface to work with LaTeX files. This feature is neat and easy when compared to other editors present in the Linux platform.
More information can be found at it's home page . This screen shot is taken from this site.

Saturday, February 28, 2009

Tuesday, February 10, 2009

start stop mysql in debian

shell> /etc/init.d/mysql stop
shell> /etc/init.d/mysql start

Tuesday, February 03, 2009

Adding new language keyboard layout in KDE

1) Open "System Settings" from the KDE menu.
2) Click on the "Regional and Language" option.
3) Click on the "Keyboard Layout"
4) Click on the radio button "Enable keyboard layout"
5) Select your country name "Layout Name" that is given in the list which you can find it below. for me it is Nepal country code "np" and shift it to the Active layout by clicking the right arrow button.
6) save and then start using, also tick on the "show indicator for single layout" in the "Indicator Option" tab for easy changing option.