Tuesday Nov 20, 2007

What's New in NetBeans IDE 6.0

Editor Improvements

* Smarter code completion. The NetBeans editor is quicker and smarter, providing completions for keywords, fields, and variables. It also lists the most logical options at the top, and lets you dig down into the full options at the bottom

* Highlights. You can think of the highlights feature as an easy-to-use and more correct substitution for the editors Search. The IDE tracks the position of the caret and, based on it, highlights some parts of the code. The highlights are marked with a background color in the editor they are also put into the error stripe, which permits for having overview of the whole file.

* Better Navigation and Inspection. In addition to Highlights, the source editor lets you quickly navigate through your code with improved Navigator window organization and the Members and Hierarchy Inspectors.

* More than just code completion. With live templates and Surround With functionality, you can quickly enter commonly used blocks of code and focus on the business logic.

* There is much more. See the Java Editor User's Guide.

Ruby/JRuby/Ruby on Rails Support

* Project Support. Quickly create Ruby projects with logical structure, run Ruby files, configure other Ruby interpreters (such as JRuby or native Ruby), locate and install Ruby Gems through a graphical wizard, create and execute unit tests, run RSpec specification files, jump between a Ruby file and its corresponding unit test or spec file, and so on. View Demo.

* Advanced Ruby Editing. Advanced code editing for Ruby, using semantic information about the program to offer code completion, showing available classes and methods for the current expression, along with the associated RDoc documentation. The syntax highlighting is enhanced with semantic information, such that unused local variables and parameters are shown in gray. There are many other editing features, including Goto Declaration for jumping to the declaration point of a class or method reference. View Demo.

* Ruby Debugger. Single-step or run through Ruby code, set breakpoints, look at local variables, navigate the call stack, switch threads, and evaluate expressions by just hovering the mouse over the variable in the Editor. There is also support for the "fast debug" extension.

* Ruby on Rails Support. Generate Rails projects, or generate code through the Rails code generator graphical wizard, which offers documentation on the plugins within the wizard itself. Third party generators are also supported. Furthermore, there are actions for jumping quickly between a Rails action and its corresponding View, or warping to the browser for the URL most relevant to the file you are editing. Database migrations and Rake targets are supported as well. Finally, RHTML files are highlighted (along with improved NetBeans 6.0 support for related files, such as JavaScript and CSS). View Demo.

Easier Installation and Upgrading

* Unified installation experience. The new NetBeans installer makes it easier to get the functionality that you want. No more downloading and installing separate packs. Now you choose the download that best suits you and install the features and runtimes you need in one installer. You can add functionality later by re-running the installer.

* Keep updated. The Update Center and Module Manager have been merged into the Plugins manager. Easily enable and disable functionality, search for updates, and get new functionality all in one place.

Swing GUI Development

In addition to numerous improvements of the highly acclaimed NetBeans GUI Designer (formerly known as "Project Matisse"), Java desktop application development support has been enhanced with following features:

* Swing Database Applications. Taking advantage of Beans Binding technology (JSR 295) and the Java Persistence API, it is now easier than ever to create Swing desktop database applications. Using the new Java Desktop Application project template, you can quickly set up a form that displays a database table and enables you to modify the database. Bind a database table to an existing form by dragging a table from the Runtime window onto a form. View Demo.

* Beans Binding. Besides helping with database applications, the IDE's support for beans binding also makes it much easier for you to keep properties of different beans in synch.

* Swing Application Framework (JSR 296) support. You can now develop small to medium-sized desktop applications faster than ever by taking advantage of the building blocks provided by the Swing Application Framework. This framework simplifies the handling of the application lifecycle, actions and resources.

Swing Application Frameword support
Profiling

* Profiler integrated into NetBeans IDE. NetBeans Profiler has become an integral part of NetBeans IDE 6.0! There's now no need to download and install the NetBeans Profiler separately.

* Profiling Points. Profiling points enable you to place profiling points in your source code to more precisely control the collection of profiling results.

* Compare Memory Snapshots. You can compare saved and unsaved memory snapshots to see what objects have been created or released from the heap between when the snapshots were taken. For more, see Comparing Memory Snapshots.

* DrillDown Graph. Profiling results can be displayed in a graph that categorizes where CPU time has been spent. You can click on the graph sections to drill down from high-level categories to more detailed profiling information. For more, see Areas of Interest - Categorization rules

* Heap Walker. When profiling your application you can now use the Heap Walker to help evaluate Java heap contents and search for memory leaks. For more information about Heap Walker, see the Profiler 6.0 documentation on Heap Walker.

* JMeter Integration. Added support for JMeter enables you to start JMeter scripts at the beginning of a profiling session, providing an easy way to do load testing while you profile. For more, see Load Generator Support.
* Dynamic Attach on JDK 1.6.

Web and Java EE

* Built-in visual design for web applications. The Visual Web project template is now merged with the main web application project template. Just add the Visual Web JavaServer Faces framework to your web project and leverage a comprehensive library of Ajax enabled JavaServer Faces components to build your application.

* Visual page flow editing. Linking pages in your web application has never been easier with the new Visual Page Flow Editor, supporting JavaServer Faces, JSP, and HTML pages.

* Enhanced JavaScript support. Full syntax highlighting, code completion, and error checking for JavaScript code is available both in stand-alone JavaScript files and in HTML, RHTML, and JSP files.

* Enhanced web services support. Drag and drop consumption of web services in visual web app pages. Restful web services are available to wrap entity beans and provide easy CRUD functionality. Better visual editing of JAX-WS web services. Integral support for web service security, reliability and transactions. Improved web service interoperability. Deployment to Sun Java System Application Server, GlassFish, Tomcat, JBoss 4.2.1, and JBossWS 2.0.1.

* Support for Ajax-enabled JavaServer Faces components. Project Woodstock component library encapsulates Javascript and complex server side within JavaServer Faces components. Using an Ajax-enabled component is like working with any other component: Drag and drop the component, set properties, and customize server-side event handlers.

* Easy migration from Java Studio Creator. Positioned as the migration path for Java Studio Creator 2, NetBeans 6 preserves your investment in Java Studio Creator projects while allowing you to leverage the many productivity features of the NetBeans IDE in one tool.

* Enhanced CSS editing. The CSS Editor lets you preview changes to your CSS as you make them.

Mobility

* New Integrated UI for CLDC/MIDP and CDC development. The Mobility pack now supports the project properties previously available only for CLDC/MIDP projects. These include project configuration support for device fragmentation, integrated obfuscation and optimization support, and multiple deployment options, all built on Apache Ant for easier coding and management.

* New game builder. Now it's easier to create mobile games with the Mobility Pack's visual editing support for the MIDP 2.0 Game API. The API supports animated sprites and the ability to arrange tiled layers into scenes.

* New Visual Mobile Designer. The Visual Mobile Designer (VMD) has been re-designed for improved functionality and usability.

* Design analysis. Design Analysis identifies unused components for removal from complex visual designs .

* New custom components. New components for the Visual Mobile Designer simplify the creation and design of mobile file browsers, Short Message Service (SMS) composers, login screens, and Personal Information Manager (PIM) browsers.

* New components for Flow Control.

* Generated code is now easier to modify.

* Re-written JSR-172 stub compiler. The new generator has support for Base64 type and is able to parse documentation from methods.

* Improved project configuration management. A new UI for the Project wizard makes it easier to add new project configurations for new mobile devices. It's now easier to create multiple builds for multiple configurations.

SOA

* Artifacts for service composition and assembly. The CASA Editor allows you to edit the configuration of enterprise projects. It supports adding and/or modifying bindings and service endpoints, adding/removing connections between Service Units to connect to endpoints of external Service Units, and creating Binding Component-to-Binding Component connections.

* Graphical WSDL editor. Create abstract WSDL documents (WSDL without bindings) easily along with partner link type information.

* XSLT editor to edit transformations. Visually edit transformations.

* Tooling support for binding components. Support for File, HTTP, and JMS binding components.

* Java EE Web Service project support. A Java EE project that implements web service server or client interfaces can be added to a composite application as a JBI Service Unit. The Java EE project can communicate with other service units directly using the internal JBI Normalized Message Router (NMR).

* Use the BPEL Designer to rapidly design a business process diagram, and the NetBeans will generate the corresponding WS-BPEL 2.0 compliant source code. Fully automated round-trip engineering between source and diagram views. Visually add and connect partner links to BPEL project. Click to enlarge. The Composite Application Service Assembly (CASA) editor allows users to visually edit composite applications and provides drag and drop support for adding WSDL bindings, External Service Units. Click to enlarge.
NetBeans IDE provides a rich set of tools for editing and configuring composite applications, including the BPEL Designer, WSDL Editor, and CASA Editor. The Web Services Definition Language (WSDL) designer allows users to drag and drop WSDL components in the WDL designer.

UML

* Template based code generation now available and customizable. UML now provides template based code generation for Forward Engineering. The new code generation approach uses FreeMarker templates, which allow users to customize how code is generated by simply modifying the templates used. Users can enhance code generation by adding new code generation templates using the Domain Templates panel in the UML Options window.

* Enhanced code generation feature. The ability to merge newly generated source code into existing source code files is now available.

* Improved collections management. A user's collection types are preserved during Forward and Reverse Engineering and may be set and changed via properties dialog for code generation.

* Alignment Tools now available. The Diagram Editor now has alignment tools available. Select the diagram elements to align, right-click the selection, and choose Align from the pop-up menu.

* New Window Layout. By default, the Documentation window is now docked to the Properties window area. The Design Center window is now docked to the Explorer area by default.

* Save As action now on diagram node. The "Save As" action has been added to diagram nodes. The action allows a diagram to be duplicated.

C/C++

* Improved gdb debugging quality and performance

* New code assistance features
o Type hierarchy, which lets you inspect all subtypes or supertypes of a class.
o Include hierarchy, which lets you inspect all header and source files that are directly or indirectly included in a source file, or all source and header files that directly or indirectly include a header file.
o Code completion for #includes
o Switch between source file and header file with the same name and corresponding extension

* Makefile-based projects dependency

* Support for Mac OS X

NetBeans Platform API Improvements

* Visual Library API. The Visual Library API, which is the next generation Graph Library, is useful for data visualization, such as graph-oriented modeling, in NetBeans modules. For further information, view demo or visit http://graph.netbeans.org/.

* NetBeans Preferences API. The NetBeans Preferences API provides a NetBeans-specific implementation of the JDK's Preferences API. For example, it allows you to store preferences in the NetBeans user directory.

* Lexer. Enhanced NetBeans API for creating tokens from a textual input. The tokens can then be used to, for example, provide syntax coloring. For further information, see http://lexer.netbeans.org/.

* Logger. NetBeans API ErrorManager deprecated, in favor of standard JDK's Logger mechanism. For details, see Logging in NetBeans.

* Generified Interfaces. The JDK 1.5 generics are used throughout the NetBeans APIs.

FOR MORE DETAILS VISIT
http://www.netbeans.org/community/releases/60/

Advanced computing using Sun Studio 12

Multicore and Multi-threaded Application Migration Support

* Compiler optimizations for the newest multicore architectures
* Thread analysis tools to quickly identify tricky multithreading issues
* Compiler auto-parallelization of single-threaded code
* Updated Open MP support

Sun Studio Compilers and Tools for Linux

* The Sun Studio IDE and performance analysis tools, with improved ABI compatibility, can be used to create better-optimized applications for opensource created applications.

Simplified Migration Path

* Source and object-level compatibility with prior releases
* ABI compatibility allows you to leverage the newest compiler technology
* Compatibility features lessen dependence on shared libraries; and reduce the extra packaging and dependencies, especially on Linux

Simplified Application Debugging

* Improved IDE GUI makes it easy to access advanced debugging features

Improved Performance Analysis Tools

* Deep dive the performance of your program, algorithm changes hardware system counters
* Correlate your source code to actual machine execution.
* Profile Dataspaces on UltraSPARC systems
o Unique views into the performance costs associated with application memory references.

Highest Performance on Sun Platforms

* Record setting runtime performance

Friday Nov 16, 2007

November workshops....

Workshop 1

3rd November, Saturday 5-8 pm
Solaris install demo, and OpenSolaris presentation
Basic UNIX commands and working on a Solaris platform/Linux
We showed a Solaris presentation and talked about its various features and advances. Then
there was a hands on UNIX commands and shell scripting. We received nice feedbacks.

Workshop 2

5th November, Monday 5-8 pm
JAVA 2 SE programming
(introduction to Object oriented programming concepts, java data types,
threads, basic applets etc)
This workshop had on-hands programming were we wrote basic java progs and people got to learn about the basics of JAVA. Again the feedbacks for the session were good and the enthusiasm
in the participants was great.

Workshop 3

6th November, Tuesday 5-8 pm
JAVA 2 SE programming(advanced)
(applets, AWTs, Swings, listeners/actions (GUI), introduction to class
loaders etc)

In this workshop we extended where we started from in workshop 3 and we covered some advanced features of Java. All in all the workshop was a great success and the feedbacks were also awesome.

Workshop 4

7th November, Wednesday 5-8 pm
Net beans 6.0 (Making Desktop applications/plug-in)

This was the netbeans module on desktop applications. We spent some time
in brushing up the basics of the past two days of JAVA. Then I gave a
small introduction and presentation on Netbeans 6.0 whereafter I showed
them all the features of the IDE. We made a small desktop application
for an address book form.

Workshop 5

15th November, Wednesday 5-8 pm
JDBC Applications

This Tech demo included a presentation of about an hour JDBC, basic SQL, and databases.
We then moved on to a hands on session on writing SQL queries on Oracle 9, thereafter creating a small database(address book) in MS-Access and interfacing it with a java program to try and manipulate the database using the java code.

Wednesday Oct 24, 2007

Events....Code for freedom...

Hey guys sessionals have a way of ruining plans don't they...
The week after the sessionals we are planning to hold 3 workshops namely a Solaris install fest, a basic Solaris demo (including some basic unix commands for those who have little or no idea about them) and a Netbeans 6.0 demo. Thereafter time permitting we might as well show you guys some sample desktop applications or plugins that you might be able to develop using JAVA (and illustrate how easy it is to do such stuff on a Netbeans IDE).
Well, we have given out DVD's of the SXDE and we have showed a few guys how to get going...Hope some of you have already started experimenting as well
Moreover I would like you guys to register for the Code for Freedom contest and request for a mentor or start contributing for the competition asap...

Register on the following link...

http://in.sun.com/communities/univ/codeforfreedom/

Cheers..

Wednesday Oct 10, 2007

Sorry guys!!!!

Hey as you all know we had initially planned to hold the install fest for Solaris this week but due to availability of labs it won't be possible to hold it this week.
(Our Technical fest Techtatva - www.techtatva.com is going on... ) So go ahead and take part in Techtatva...loads of competitions there to keep you busy....and next week we shall introduce you to the solaris OS....

Monday Oct 08, 2007

LIFE :: A fight back!!

The morning shone bright,
Life was beckoning me with all its might,
Nature proclaimed its imperial immensity,
And every thing was brilliant in the city,
Happiness was all around,
There was no reason to be bound.

Success I thought had already been achieved,
Was I a fool to accept the fallacy of the deed?
To be complacent was a big mistake,
Joy and elation - my work - made me forsake,
The danger so great, my body did ache.
The harsh reality, seriously, made me shake.
I was all lost in a deep, deadly lake.

I was in the gloom of the despairing journey,
It was like existence on a gurney.
The excruciating pain of a spineless expedition,
To come was failure, defeat, and agitation.
Survival was a burden and life but a complication,
How do I get out of this was the most pertinent question.
Acceptance drove the fear away,
To confront was the only way.

Life is a pillar, absolutely vertical on ascent,
So difficult it gets, I feel my body dent.
My sinews crack and perseverance seems to lack,
The effort so immense, I am taken aback.
Life without a purpose is to dance in a trance,
A meaningless voyage in a wide expanse.

It might be like losing my head,
Hard work and dedication ensure a good night sleep on the bed.
To rest is a cardinal sin,
Relaxing would throw my efforts into a bin.
A small mistake may well be a blunder,
I might slip off with the sound of a thunder.
No doubt the weak do squander,
Iron mettle makes one part of the remainder.

The fruit of Eden keeps my motivation high,
To doubt my caliber, would make my mission die.
Not to rest until I reach the sky,
Is the reason-
I shall one day scale that high.

Sunday Oct 07, 2007

Sun Grand Challenge!!!

Well all the CA's of South Indian Colleges in Bangalore had a discussion about something called a SUN Grand Challenge.
It was the brainchild of Abhishek Kumar from BITS, Goa (u just have to be specific with 3 abhisheks anwering to the call of abhishek :D).

Anyhow the basic idea was to hold competitions aimed at Solaris/Netbeans/Java etc. These competitions would range from small quizzes, trivia, simple hacks for an OS, some treasure(read: bug) hunt using Dtrace, obfuscation/tricksy C codes or even some coding competitions in C/C++/JAVA....well the competition is still in the budding phase so ideas are plenty....

So the idea is to hold such competitions in every several college in India and thereafter invite the winners to the host college (which for the first time could be BITS, Goa). Thereafter it can be held on a rotational basis in different colleges in and around India.

Now, the challenges that lie in front of the CA community in India is to advertise this event and chalk out deadline based schedules for the prelims and the finals. Arrange sponsorship of prizes(read:: SUN HR department :P) and to get as many good students educated in this field to compete (that is hold a few workshops before holding the competitions).

So I wanted to get initial reactions from CA's and our own college students regarding SGC (Sun Grand Challenge)

The power of silence

Her ebullient spirit, enervated with the taste of freedom,
Caressed her lifeless body for the one last time,
The blood splattered furniture and her innocent chirpy self,
Forming a gory spectacle of an unheard rhyme,
The ear splitting silence following the shattering noise of the reverberating bullet;
Had for once and for all laid her strife stricken soul into the cuddly abyss of time.

The malevolent stunt to smite the divine gift of life,
Had muted the cacophony of confused voices in her head,
And the small town home leading a not so average life;
Was ushered into a disdainful reality of torturous red

Her past was blown to smithereens;
Though her recent ghastly wounds remained
The spectacle complete, undeniable, irrevocable
For her mortal suffering which blatantly bellowed a story of marital torment,
Had made an ironical tale of silent coercion; completely reliable

The reality, made sonorous with time,
Had burst with the vengeance of a brewing volcano,
For the thunderous revelation that followed years of unvoiced anguish,
Had the law apprehending a violent sadist with a brief swish

Her child. The diminutive eyes behind the silent stare; were shocked!
The pain in her life was begging a vent which it never found
For, a despairing moment had but rocked,
The violent story that had been her life,

Her mother was laid to rest, her remains razed to ground.
She grappled for support, but she found none
Her head spun with remorse and she only wanted to run,
She wanted to kick, punch, hurt the lifeless image in front of her,

But a cold silent stare was all that she managed.
Her breath was heavy and her heart beat with violent madness,
The anxiety of being alone,
The responsibility of proving that weak sacrifice wrong
Had obsessed her waking dream

She wondered at the reasoning for that adrenaline rush;
Why did her mother have to leave her alone, was she happier now?
“Does my pain make her happy”, she wondered.
Conjuring answers and questions and replies and counter-questions, she felt her tender infancy as a detached part of her soul.

She had simply grown into another role.
The sombre relatives were a distant reality,
The consoling voices went past her ears with silent beckoning
Tears; they never came.

The pain was bound in the strongest knot in the wildest corner of her determination;
She could never be weak,
She had to prove her mother wrong.

In another corner of the same room, laden with guilt and remorse stood a perplexed soul.
She stood by the lighted fire, with horror in her eyes,
Staring at the oblivion;
A glance at her grandchild- gaping at the void, on the other side, made her guilt manifold.

The mother of the slain, cursed herself for her shortsighted mistakes,
She had lost a daughter to the hands of silent suffering.
Perhaps it was to be blamed on the single mother’s upbringing;
Who couldn’t make her daughter strong enough
Perhaps she herself wasn’t strong enough,

But time had given her another chance, another shot to set wrong; right,
For in that moment of hushed contemplation
She awoke in the tranquility of this rhyme.
A generation had passed and that silent moment of vivid thought,

Made her resolve taut
Her purpose was clear, crystal to extent of clarity
For she had to be the shoulder for that little angel,
She had to fill the ringing void in her sullen strife
She had to be strong against the firmament, once again to shape her child’s life…

Go visit these links.....

BigAdmin : www.sun.com/bigadmin
Blogs : blogs.sun.com
Glass Fish : glassfish.dev.java.net
Download Java : www.java.com
Java : community.java.com, javapassion.com
Java Developers : forum.java.sun.com
Netbeans : www.netbeans.com
Open JDK : openjdk.dev.java.net
Open Office : www.open.office.org
Sun Developer Network : developers.sun.com
Soaris : www.opensolaris.org
Sun Academic Initiative : learningconnection.sun.com (please be patient we'll give you an id password for this in a few days.)

Voila !!!

Well those of you who have no clue of a UNIX platform (1st years...etc) or have never used a solaris platform i would recommend you go through some tutorials on shell programming on a UNIX platform. We will be holding an install fest where we'll install a Solaris OS on your computer. The core development world of programmers outside live in a world of open source and without basic understanding of that you will be lost in the race to greater learning.
Google again for some tutorials; and these links should also help ::

www.ee.surrey.ac.uk/Teaching/Unix/
www.unixtools.com/tutorials.html
solarismadeeasy.com/tutorials.htm

Probably you can install the latest release of SXDE or BELENIX (Live CD or Live USB) to get a feel of the OS. We are also humans and can go so far as installing such OS/Softwares for some machines. It'll be great to see some interest from you guys and you taking an initiative to learn such technologies (btw no one taught us how to do it....we too did it out of our own interest...so plz go ahead test these OS' crash your systems and learn from the entire process). And we are always there to help you out if you need some help.

http://www.genunix.org/distributions/belenix_site/
www.genunix.org/distributions/belenix_site/?q=download
belenix.sarovar.org/belenix_download.html
http://developers.sun.com/sxde/download.jsp

We all use torrents so go ahead find yourself a version of the OS you want to install and go ahead and download it. Burn an image of the ISO file using nero et al. and voila!!!

ECE guys!!!

Well first of all my apologies to everybody from ECE. There was little of interest in a code for freedom workshop. However there is a wonderful open source resource that we talked little about during our workshop that you can benefit a lot from. OpenSPARC is an open source FPGA maintained by an online community and you guys can go ahead and join this community. Learn more about the open source architecture and perhaps go ahead and contribute more to its end. Google to learn more about OpenSPARC and here are some of the resources that might be helpful to you guys. Perhaps if some of you go ahead and learn something interesting and want to hold a workshop; we can facilitate that too. www.sun.com/processors/opensparc/ www.opensparc.net/

Code for Freedom Workshop 6/10/2007

We began October in full swing with propagandas about Solaris/Netbeans/Code for freedom and information about our future workshops and demos. The response was immense. We received more than 250 e-mail registrations in our group and TONS AND TONS of questions. The interest in the campus with these technologies is immense. Mr. Ganeshram Nagaraj from Sun Microsystems came over to our campus on 6/10/07 for a workshop on Code for Freedom. More than 150 people turned up. A few were a bit zapped(1st yrs and some Electronics guys) with all the information about Dtrace, ZFS, the various open source technologies et al. but the guys came back and fired us with just more questions. I would say the workshop was an immense success considering the turnout amidst 3 more workshops on the same day (on Ubuntu, ethical hacking etc). Caching in on the interest we will be holding an install fest of OpenSolaris where we will install it one of our labs and as many volunteer machines as possible. Those who are apprehensive about screwing their machines; we'll give them a belenix liveCD to test and get a feel of the OS. Later in the day we plan to hold a Netbeans workshop where we'll give demos as to make Desktop applications et al.

Manipal Campus Talk 29/9/2007

Our college has very few Linux users and fewer still Solaris users (people prefer to use windows and the open source awareness is also less) Today I gave my first talk on our Campus. Around 30 people turned up of which we had some 15 professors/ lectures of our related departments(CSE,IT,ECE). We did this event on a very short notice, if we publicize it more probably we'll get a better turnout. Basically with this talk I wanted to introduce our future activities and evangalise our professors so that they could go back and encourage students to use Solaris. I gave an introduction to the various Open Source projects that are currently underway with special emphasis to the Code for Freedom(India specific). I gave a brief introduction to OpenSolaris(talking a wee bit about ZFS, Dtrace and Zones :: just to catch some of the professors' attention) Also talked about Sun Studio 12 and Netbeans 6.0 ; both the IDE's generated certain amount of interest. A major breakthrough was that I got permissions to install Solaris in our labs and infact our profs were keen to create an OSUG for the campus.