Small and hassle-free subversion repository with Goolge Code and Netbeans 5.5

Posted by admin | Posted in Tools | Posted on 30-04-2007

0

Always wanted to use subversion but didn’t want to set up own server, didn’t know how, or maybe didn’t want to go through registration on java.net? Maybe for many it won’t be surprise BUT maybe there are some people out there, who just like me haven’t realized about free 100MB (can be more) version control account on Google. Here you go, a simple guide to set up subversion on google’s server with Netbeans 5.5!
A few simple steps, few minutes and you can access your project from anywhere!
Step 1. Go to google code project hosting web site at:
http://code.google.com/hosting/
Step 2. Click “Create new project” link, and enter required information:
Step 3. Go to code tab and check the repository details, on this page you have to generate the password to access the repository with netbeans:
Step 4. Your project is now created! Make note of the details and the password.

Step 5. Open up Netbeans and make sure that you have subversion support, if not install subversion from netbeans update center. When subversion is installed click Subversion -> Check out.. and enter the details found on the project website.
Step 6. When you are connected to your repository choose the location on you computer and leave the rest as it is, click “Finish”. Netbeans will now check your project out from the google server.

Step 7. Create new netbeans project from the repository.


Step 8. When you’ve finished, right click on the project node, Subversion -> import into subversion, on the panel click “Next”.

Step 9. You have to provide the label for the import to take effect. You can find the list of possible labels on the project website.

Step 10. Enjoy! Your first subversion project was updated on google’s subversion server. Click “Finish” and commit the changes!
Si ya! ;)

How to’s: Installing Sun Studio 11 on Ubuntu 7.04 FF

Posted by admin | Posted in System Administration, Tools | Posted on 29-04-2007

6

I have always wanted to dive into C++ world (as a rather lazy kind never did). This is my another attempt. Since FF version of Ubuntu was released few days ago, almost every day I find something new and interesting. As I’m forced to write sometimes a very small C++ application (university commitments) and a couple of months ago I have realized that Sun Studio 11 is freely available, I wanted to give it a try. Unfortunately never did, that’s because somehow I couldn’t run it under Ubuntu (sometimes you have to choose, comparing the amount of work you have to do to actually make it work or the amount of work to write the program in VIM and forget about all the gui fancy staff). Anyway FF is available and suprise, suprise, Studio 11 works almost out of the box. Here you go simple step by step guide to install this “little” precious.

1. Install Java SDK and JRE 5, for some reason SS11 doesn’t work with version 6, you can however still keep the version 6 as the default one on the system.
2. Install GNU C/C++ compiler under Ubuntu:

sudo apt-get install build-essential

3. Download Sun Studio 11 software for Linux
4. Run the installer:
change to root (su -)
move the downloaded .bz2 file to the directory where you want to install the software (in my case /opt directory)
run:
tar -xjvvf studio11-lin-x86.tar.bz2v
./installer –nodisplay
5. Answer a few simple questions about installation
6. Don’t worry if sdk 1.4 was not installed.
7. Change one of the awk scripts:
go to /installdirectory/sun/sunstudio11/prod/scripts/ver.awk
and change the line:

FS=“”| |(|)|,|t”;
to:
FS=“”| |(|)|,|t”;

8. Add the studio’s bin directory to your PATH:
Edit .bashrc and add the following line:

PATH=/opt/sun/sunstudio11/bin:$PATH; export PATH

9. Run the newly installed Studio 11 with:
sunstudio
Note:
If you have more than one JDK available and e.g version 6 is your default one, run sunstudio command with the following flag:
sunstudio=’sunstudio –jdkhome ‘path-to-your-jdk5or4′ in my case alias sunstudio=’sunstudio –jdkhome /usr/lib/jvm/java-1.5.0-sun-1.5.0.11′
If that is the case add the alias to your .bashrc file:
alias sunstudio=’sunstudio –jdkhome /usr/lib/jvm/java-1.5.0-sun-1.5.0.11′
and run the command sunstudio as normal.

Sun Studio 11 Splash Screen on Kubuntu 7.04 FF:


…and working IDE:

Good Luck :)


				

Let’s get started…

Posted by admin | Posted in General Programming | Posted on 29-04-2007

2

It’s 29 of April 2007, almost 4 o’clock in the morning and I’ve just decided to start keeping track of some nicer things I’ve found when wandering the software world. Please do not take anything written here too seriously ;)