Sunday May 06, 2007

Hudson support in NetBeans IDE 6.0

There is available the support for Hudson (http://hudson.dev.java.net) integration in NetBeans IDE 6.0. You can download it here (http://nbmodules.dev.java.net). Project details you can see here (http://nbmodules.dev.java.net/hudson).

Now i show you a short preview what you can do with Hudson Module

Hudson root node is situated in the runtime tab. Via them you are able to add a new hudson instance or clinking on the tooltip node.


Then you will see the add instance wizard where you are able to define the hudson instance you want to add.


Instance node should appear under hudson root node. There you can see build queu, and view nodes. Under view node the jobs are situated. Job can be started by its right click context menu or draging it into build queue node area. Btw. other hudson instances you are about to add via hudson root context menu (right click on a hudson root node).


As you can see the red color jobs are broken. Broken jobs notification is situated in the status bar area as a blinking red circle.


Clicking on that red circle you can see popup panel with all broken builds.


You can use also job detail. It can be called by clicking on a job node in runtime tab or clicking on broken job in the popul panel.
hudson-5 Hudson instance properties window you are about to call by clicking Properties in hudson instance node context menu. You can set autosynchronization time there.


And that's all for quick preview. Project info and upcoming features are available on the project's page.

Monday Dec 04, 2006

Support for Database Servers Integration in NetBeans IDE

There is available the first preview of the support for Database Servers Integration in NetBeans IDE. Now it contains two modules: Database Server Registry and HSQLDB Database Server Support. You can download it from project page

The first snapshot of Database Server Registry bring these features :
\* Server integration API

The first snapshot of HSQLDB Database Server bring these features :
\* Server registration
\* Start / Stop
\* Database Management (create, delete)
\* Easy adding of jdbc connections

More information about support you can read on project page

Changing the web browser invoked by Thunderbird

When you click on a web link in Thunderbird, it invokes the default web browser for the operating system. It is possible to change this behaviour by changing the default browser. Another way (at least on Linux, tried with TB1.5 under Suse and Debian) is to insert a line

user_pref("network.protocol-handler.app.http", "/usr/bin/firefox");

in Thunderbird's prefs.js (of course put in the correct path to your firefox).

Wednesday Sep 28, 2005

Try out support of the JBoss and WebLogic application servers in the NetBeans IDE 5.0

As everybody knows the NetBeans IDE 5.0 Beta has been promoted and a lot of new features come with it. One of them is support for JBoss and WebLogic application servers. Now you are able to develop and test your enterprise applications on these servers directly from NetBeans IDE. It's great. A new epoch of enterprise applications development in NetBeans is about to begin. Let's try it out. The NetBeans IDE 5.0 Beta you are able to download from here:

http://www.netbeans.info/downloads/download.php?type=5.0b

Enjoy It !!

Wednesday Aug 31, 2005

Process Killer Plugin For NetBeans IDE

It's actually my first NetBeans plugin. It's simple enhancement for terminating of the processes. After installation you will see a red button in toolbar and in main menu will be a new menu called "Lite Tools". After clicking on the red button you will see the dialog via it you are able to kill processes how you want ;)

Here it is:
http://blogs.sun.com/roller/resources/marigan/org-netbeans-modules-litetools.nbm

I will be delighted for any mention. Thanks ;)

Sunday Aug 21, 2005

Installation of the JDK on Debian Linux

Here is the quick guide how to do it. Of course you are able to run JDK installer and by the normal way extract the content and copy JDK somewhere but ! What to do if you want to have the JDK as system default and you do not want to create symbolic links manually ? For those people is this guide ;)

You have to do this:
1. Download the JDK which you want from http://java.sun.com
2. You need these packages: java-package, fakeroot (install them -> apt-get install java-package fakeroot
3. Now we make a debian package from the JDK installation package by running this -> fakeroot make-jpkg jdk-1_5_0_04-linux-i586.bin (of cource you are able to do this with any jdk package)
4. Now we install the created debian package -> dpkg -i sun-j2re1.5_1.5.0+update04_i386.deb (you have to be a root to do this)
5. Now you have your choosen jdk installed as a system default. Relogin now.
6. Check the functionality -> java -version
Actually this procedure is able to apply also on the JRE ;))

Monday Aug 15, 2005

Sun's web in retrospective

Recently I have found a very cool server (www.archive.org) conversant by storing of the web pages all over the world. This service has been started sometime in the year 1996 and by this age they stored a lot of web pages. Actually you are able to see even some pages that already don't exist. So it's really good stuff. It's great for creating the evolution report of your web sites. So i have prepared little tour to the retrospective of the Sun's web since year 1996. Enjoy ;)

1996

1996
an arrow 1997

1997
an arrow 1998

1998

1999

1999
an arrow 2000

2000
an arrow 2001

2001

2002

2002
an arrow 2003

2003
an arrow NOW

2005

Sunday Aug 14, 2005

How the vi editor would seem if it has been made by Microsoft

Microsoft VIM

Executing scripts on a remote machine

These are a few quick tips how to make it real. First what you need: two computers ;), both to have bash and ssh installed and 'authorized_keys' file with public rsa key from the caller machine (only if you want to have communication without password typing)

Now let's do it :

1. Make a simple bash script which we want to execute on a remote machine. You are able to use this one:
#!/bin/bash
echo "Greetings from "$(uname -n)
exit 0
2. Execute this script on a remote machine by running this:
cat simple.sh | ssh user@remote /bin/bash
You should see this output:
Greetings from remote
It's unbelievably simple isn't it ? You send content of the script file through the pipe to a remote machine on which you connect via ssh and where you run the bash in which you execute the script that come from your computer .;) Due to these nice features i do really love unix :)

Wednesday Aug 10, 2005

The Tao Of Programming

Actually the Tao philosophy is very universal proposition and it has a lot of modifications and extensions which cover every piece of human being. And due to this fact it's no wonder that someone takes the traditional Tao and applies it on the so spoken thing that the programming with its huge tribute absolutely is. Of course there is a lot of documents taking care about the Tao in programming exists but every one what i've found is not built well and always a couple of ideas there has no sense. Except one ! I have found out it haply in the silent void. This document is really cool and it is worth to read it. Here it is. THE TAO OF PROGRAMMING

Tuesday Aug 09, 2005

Installing of the nVidia drivers on JDS (SuSe Linux version)

On the first sight it seems as the clear thing but sometimes it can be the iffy problem. Actually i describe here the ordinary method how to do that.

JDS (SuSe Linux version)

First of all you have to download the drivers. The best way is to download the drivers from nVidia. So now you have to stop the X server. There is a few possible ways (you can kill all x applications and then also gdm ;) but it is little bit dumpy-looking) but the best one is move into the runlevel 3. You can do that this way:
- press CTRL+ALT+F1 (you has moved into the text mode but X server still running -> you can switch back by pressing ALT+F7/8)
- now login as root (use command "su" ;))
- move into the runlevel 3 -> run command "init 3 (the X server will be switched off)
- run the nVidia installer -> run the downloaded file -> "sh [downloaded-file]"
- pass through the installer (maybe you will need the kernel pre-compiled headers -> for this use google ;))
- now the nvidia kernel module is installed
- edit your XFree/XOrg config file -> for XFree edit the /etc/X11/XF86Config and for XOrg edit the /etc/X11/xorg.conf (which X server you are using you can find out by running this command "X -version") and in this file you have to change the line where the video driver is specified. Mostly the video device section seems like this:
Section "Device"
  BoardName    "name of your card"
  BusID        "1:0:0"
  Driver       "nv"
  Identifier   "Device[0]"
  Screen       0
  Option       "Rotate" "off"
  VendorName   "NVidia"
EndSection
So you have to change the line Driver "nv" for Driver "nvidia".
- now restart the computer by running command "reboot" or if you don't want to restart load the module into kernel by running command "modprobe nvidia" and than back into the runlevel 5 by running command "init 5".
- now you have the nVidia drivers running and you can avail the advantages of OpenGl or Direct3D. For settings use the nvidia-settings utility (you can get it from here). Enjoy it ! ;)

Debian Linux

So there is a lot of ways to do that. I have found very good document about this problematic and i have stored it in my bookmark. Actually here it is: http://home.comcast.net/~andrex/Debian-nVidia/index.html. For settings use the nvidia-settings utility (you can get it by running command "apt-get install nvidia-settings"). Enjoy it also ;)

Sunday Aug 07, 2005

Make your own web browser integrated in NetBeans IDE

Why someone needs integrated web browser in NetBeans IDE ?? I think it's very good thing for web developers. The web developing will become faster and more comfortable. I know two groups of people. First take all these aspects as good one and have a same opinion in it. The second one is against this feature and tells that doesn't like it and tries to stay out of this feature. So actually i was for a long time in the second group but till the time when i was developing larger web application. Suddenly i found out that it was very unconfortable due to that i have always opened at least 5 firefoxes and everyone is in the different desktop and if i want to deploy and run web application it is by default opened in the last used firefox tab. I always have to search for where my tested application has been opened. I have to switch among the desktops and this i really don't like. Actually in spite of these aspects i decided that i tried to develop a NetBeans plugin to integrate real (mozilla based not like the swing one which is unusable) web browser. Otherwise i haven't any presentable build yet but i try to show you how you are able to create your own browser in a short time. I take the liberty to dividing of the process into a few steps:
- Downloading and installing of the JDIC (Java Desktop Integration Components - we use the WebBrowser component from this package) - Creating of the NetBeans module project (I recommend to use the resources from Geertjan's Weblog. It's great) - Creating of the simple web browser (Actually as i mentioned we use the WebBrowser and we add it into simple swing gui using the NetBeans HtmlBrowser API) - Registering of this browser in NetBeans (We need it in order that the NetBeans would have known about our browser)
Let's start ;) Downloading and installing of the JDIC All resources about the JDIC are available at the JDIC project homepage. I recommend to use the latest build. You can download it from here. And for installation please read the installation guide (Set the JDK where the JDIC is installed as the NetBeans default). I have tried the JDIC on Debian Linux and on JDS SuSe version. On windows i don't know because i haven't bought regular license of the Windows for my personal computer and due to i can't use it (thanks Bill !!! ;)). Creating of the NetBeans module project So in this step we use a new great project wizard for creating NetBeans module. If you don't have it yet download it in the NetBeans update center. It's called "NetBeans Module Projects". And also you have to have the "Open APIs Support" module which is also available in the update center. Now you can create a new module project very comfortably. New Project wizard step 1 New Project wizard step 2 New Project wizard step 3 Creating of the simple web browser Now we can make a simple browser using HtmlBrowser which is in the package org.openide.awt and instead of this fact you have to import library module "UI Utilities API" (you can do that in libraries node in properties of the project). Project Properties Let's create the browser. Here is the complete browser which uses the WebBrowser component from JDIC package (thanks to Martin Grebac who helped me with). You can use it or you can make your own implementation. Registering of this browser in NetBeans This step is the most important. We have to tell to the NetBeans about our browser. For this you need these files and primarily its content:
- A Java class that extends HtmlBrowser.Factory and which makes the browsers from our implementation: MyBrowser.java - A Java class that extends SimpleBeanInfo and which takes care of basic informations about our browser: MyBrowserBeanInfo.java (we use extbrowser plugin for a few resources) - A settings file: MyBrowser.xml
And finally you have to edit module layer file (layer.xml):
<filesystem>
    <folder name="Services">
        <folder name="Browsers">
            <file name="MyBrowser.settings" url="MyBrowser.xml"></file>
        </folder>
    </folder>
</filesystem>
Now your project node should look like this one: Project Node Now you are able to build the project and create NBM file. For installing of the plugin use the NetBeans Update and there choose "Install Manually Downloaded Modules". After installing check if your module is enabled and primarily if your browser is set as default. If everything is alright you can run it. Click on View menu and there on "Web Browser". Your web browser is now opened. Enjoy it ;) ! Your Own Web Browser

Thursday Aug 04, 2005

Welcome

Hi everybody. My name is Michal Mocnak. Actually i am a member of the NetBeans Quality team and i have been working at Sun only for a few months. I have a part time job here and still i study the computer science at the Czech Technical University in Prague. Before i came to Prague i was studying at the gymnasium in a small town in the heart of Moravia. During these studies i was working in Unites Systems company where i was working on some semiconductor testing projects and also i was responsible for company network. Now i am interested in Java, primarily in j2ee, and in the Unix based systems administration. I'd like to post here some interesting things and features from this stuff. And why i have as the main motto the sentence "ENJOY THE SILENCE" ?? The base meaning comes from the best same titled song from Depeche Mode. This song gives very powerful expression of many things and every time when i hear it a lot of cool ideas come to my mind ;).Finally if you have any mentions about anything on this blog please feel free to tell me about it via comments here or via email on my personal address mmocnak@gmail.com.
About

marigan

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
News
Blogs

No bookmarks in folder