07.25.08

Day, full of news!

Posted in NetBeans, NetCAT, Personal at 8:03 pm by Varun

Bravo!

Today, the NetBeans Dream Team page was updated, and I am now one of them. Yes, I was invited to join the team, and had accepted the offer. So, here I am as a NetBeans Community Docs Contribution Coordinator and Dream Team Member!

Second, Jiri Kovalsky, the Liaison officer, Technical Community Manager and NetCAT 6.5 Coordinator. List is surely long and I am sorry If I missed something ;)

Highest Scorer

Today, he announced on demand of certain NetCAT participants, the points earned by every member. It was another shocker for me! I scored 83 points as of 25th July, 3:00 pm C.E.T.

Simply awesome! NetCAT has just completed 2 weeks, we are in for some more surprises, so wait till monday as I come out with 2nd edition of my own NetCAT weekly.

Summer Action Marathon continues…

07.22.08

XML Hyperlink Project Update

Posted in DTD, NetBeans, Personal, XML, nb-61 at 5:10 pm by Varun

Recently,

I blogged about How to Hyperlink XML Layer, with the bit update on my project as well. So, DTD file, if exists, got opened when I click on ARGUMENT, opening TAG Token Id’s, like <filesystem><file name=”"></file></filesystem>

See the italics and bold faced text, they are hyperlinked. So, clicking them I am directed to the apt DTD file within the IDE. Earlier what happened, when I clicked the links again, file which is actually a TopComponent opened as Editor Window, was not requesting focus.

Navigation got smarter

However, now its working…If I click umpteen times, I will be directed to the doc same no. of times. You can get to see this feature in the Revamped Hyperlink Navigation Tutorial, based on a tutorial. I have developed a plugin for that for the time being, though expect the plugin to get updated soon.

NetBeans API’s (Lexer API) rocks!

Enjoy Technology…Enjoy NetBeans

07.11.08

Article | Debug, don’t Run!

Posted in NetBeans, Others, Personal at 8:00 pm by Varun

Hi,

Why I wrote “Debug, don’t Run”? There lies the simplest of reasons, I am working on my internship project, and I was writing an algorithm to map PUBLIC_ID -> URI, read EntityCatalog for more info.

The idea present over there, lets a user to register a PUBLIC_ID in System Filesystem, same way I can retrieve the existent PUBLIC_ID from there.

Why not Run?

While creating the algo, I wrote a method, which would be invoked by the master method (which runs the algo), that would let me replace Whitespaces with Underscores!

I thought it looked good, eye-catchy, sleek, compact and nice utility. Though, when I ran the NBM, it choked, because of that method which ran into infinity.

Do Debug!

I didn’t knew what happened, made changes in rest of the code, thinking it to be fine, as it looked compact…Then, I realised to Debug it, to find the problem, and to my surprise, that sleek, compact looking method was the main cause!

GREAT!!!

I used to do a lot of debugging in C++/Java Applications, Database Applications (JDBC-enabled), I’m still new to NetBeans Platform, trying to learn as much as possible!

Always Remember…

So, always keep in mind, to debug umpteen times, before you get things right, it will surely save you a lot of time, and debug your programming practices too!

07.10.08

How To Hyperlink XML Layer (Part 4)

Posted in DTD, NetBeans, Personal, XML, nb-61 at 12:41 pm by Varun

Hey,

As you know, I have been running a blog series on “Playing with XML Layer”. I have written 3 parts till now, that were tips and Tricks…

Its time for Part 4, though this isn’t any tips and Tricks, as its an abstract tutorial to hyperlink XML Layer, which conforms to any Document-Type-Definition.

Already there exists a tutorial to hyperlink the value contained within the HREF attribute (HTML files) in Platform Tutorials.

At the bottom of that Tutorial, they have mentioned what could be the Next Steps to follow, basically Work Ahead!

Working with JSP and XML documents. (Same principle as above.)

Implementation

As you can see they have mentioned in one of the points, that XML documents can follow the same principle. So, as part of my internship project, I worked to hyperlink the ELEMENT names and their ATTLIST attributes.

For instance;

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "http://www.netbeans.org/dtds/filesystem-1_1.dtd">
<filesystem>
    <folder name="Actions">
        <folder name="Tools">
            <file name="org-nvarun-tat-SayCheez.instance"/>
        </folder>
    </folder>
    <!--Remember SayCheez in earlier parts,
        this is just a snippet of that XML Layer-->
</filesystem>

Now, I made use of XMLTokenId, as the reference tutorial made use of HTMLTokenId, and did the implementation based on XMLTokenId constants.

Note-
The required HyperlinkProvider instance will be registered under text/xml, so any XML file with that MIME Type will hyperlink as suggested.

Features

  • When you click on filesystem/folder/file, a Dialog Box prompts the user with a message that you have clicked right hyperlink, IDE opens the DTD file represented by PUBLIC_ID.
  • For that to happen, click on PUBLIC_ID first to let the IDE know which DTD, does the XML is specified by, then PUBLIC_ID -> URI mapping takes place (redesigning, refer to XML Code Completion support).
  • Also, it extracts the DTD file clicking the SYSTEM_ID (if present is hyperlinked) conforms to and hyperlinks it, clicking it will launch the Browser with the identified URL.

Work Ahead

When you click on filesystem/folder/file, locate the DTD file and open in NetBeans IDE, with specific caret position. As you know, Angad has already created a module for DTD-intra-hyperlinking! So, you would be able to enjoy both functionalities, similar to the one existing in IntelliJ IDEA!

Updated on July 14, 2008

sTay Tuned for More…

06.27.08

Whats the Surprise?

Posted in Community Docs, NetBeans, Personal, Platform at 12:15 pm by Varun

Hey,

Remember the recent blog series I started on hacking XML Layer in NetBeans Module Development, I told ya that I have a surprise for you people, i.e. the plugin I was working upon.

Time to unveil it to you, actually its been out since yesterday, see this blog entry- http://novicenetbeans.blogspot.com/2008/06/netbeans-snap-it.html

Yes, the snapshots you see my recent series of documentations either on blog OR NetBeans Zone, about XML Layer!

They were taken by Snap It!

Yes, Snap It, its a plugin that enables you to take screenshots from within the IDE. Basically, it tries to emulate the “Take Screenshot” Utility, bundled with almost every Ubuntu Distro. Hey, I saw it on OpenSolaris 2008.05 as well.

So, if its present on your Unix-compliant OS too, you would know, what this plugin do! Anyways, Jay and I, have developed this plugin. So, any queries, suggestions are always welcome!

Currently, plugin works only for Linux, Windows. If it works on your Mac, or OpenSolaris! Do notify us, we would love to hear your problems and rectify them ASAP :)

sTay Tuned for More…

« Older entries