Monday, March 03, 2008

Sun Tech Days Plus, Bangalore

Sun Tech Days Plus was an exclusive annual event of Sun Microsystems which happened in Bangalore on 27th Feb, 08 at Hotel Grand Ashok. Actually it was an extension to the main event which was happening in Hyderabad. They started with the Keynotes of Rich Green live from Hyderabad. After the speech of Rich green there was a Demo showcase and that was really cool. Guys were showcasing their work using java technologies like Swing, J2me and JavaFX.

After the demo showcase they started with the sessions. The first session was on Java SE 6 Update N. Update N is the new release of java SE 6 that introduces new features and enhancements. It was pretty interesting to know that how Sun is taking quick moves to enhance java features and capabilities.

Another interesting session was on Batch processing with Spring Batch. Spring Batch is a lightweight batch framework designed to enable the development of robust batch applications vital for the daily operations of enterprise systems. This session was from Accenture and they showcased a simple example as well for doing a batch processing using Spring batch.

Apart from other sessions I liked one interesting session on Metro and REST. Project Metro is the new name for the web services stack from Sun. So we can say Metro is nothing but JAX-WS + Project Tango combination. JAX-WS is the standardized web services stack and Project Tango (also known as WSIT) is the interoperability toolkit (interoperability with .Net 3.0). REST (Representational State Transfer) describes an architecture style of networked systems. There’s a debate going on in the industry that says REST is better method for building Web services than SOAP. The whole web services space looks quite interesting and Sun has given good support for web services development in the new release of NetBeans IDE. There were some other sessions as well on JavaFX and Java Persistence API by Sun guys and there was a session on Unit testing J2EE applications using JUnit by Accenture guys. Overall the event was good with the main focus on showcasing Sun’s new technologies and initiatives which will really create some sort of awareness among the techies about the new technologies.

Friday, February 15, 2008

A dozen free & essential apps for Windows

A dozen free & essential apps for Windows by ZDNet's George Ou -- Every time I build a new Windows computer, there are a dozen free and essential applications that I always install for other people. These applications all seem to fill essential functions and they all seem to be well-behaved installers and uninstallers, in other words it won’t crash your computer or drag it down with gunk. [...]

Wednesday, February 13, 2008

Small utility program to unlock PDF documents

Ever downloaded a PDF document from internet which doesn’t have print option or its disabled? I hope you must have come across this situation.

Try this small java program to unlock PDF document for printing etc.

I am using iText API for doing it. They have a very rich collection of classes and methods to play with PDF files.

 

You need itext-1.4.6.jar to run this program. You can download this jar from http://www.lowagie.com/iText/download.html . If you are using eclipse IDE then set this jar in your project build path or if you are running this code from command prompt then you need to set this jar in your classpath.

 

So here is the code… just copy it and run it. You can see we are passing PDF file name to unlockPdf() method though command prompt. inputFile name is your original file which you want to unlock and outputFile name can be anything which you like.

 

package my.examples;

 

import java.io.FileNotFoundException;

import java.io.FileOutputStream;

import java.io.IOException;

 

import com.lowagie.text.DocumentException;

import com.lowagie.text.pdf.PdfEncryptor;

import com.lowagie.text.pdf.PdfReader;

import com.lowagie.text.pdf.PdfWriter;

 

public class UnlockPdf

{

  public static void main(String[] args)

  {

    if (args.length < 2)

    {

      System.err.println("usage: java my.examples.UnlockPdf inputfile.pdf outputfile.pdf");

    }

   else

    {

      new UnlockPdf().unlock(args[0], args[1]);

    }

  }

 

  private void unlock(String inputFile, String outputFile)

  {   

 

    try

    {

      PdfReader reader = new PdfReader(inputFile);

      PdfEncryptor.encrypt(reader, new FileOutputStream(outputFile), null, null,

  PdfWriter.AllowAssembly | PdfWriter.AllowCopy

              | PdfWriter.AllowDegradedPrinting | PdfWriter.AllowFillIn

              | PdfWriter.AllowModifyAnnotations | PdfWriter.AllowModifyContents

              | PdfWriter.AllowPrinting | PdfWriter.AllowScreenReaders, false);

    }

    catch (FileNotFoundException e)

    {

      e.printStackTrace();

    }

    catch (IOException e)

    {

      e.printStackTrace();

    }

    catch (DocumentException e)

    {

      e.printStackTrace();

    }

  }

}

 

 

 

 

 

Tuesday, January 22, 2008

Here comes DevCamp, Bangalore

Guys DevCamp Bangalore 1 is happening on February 9th 2008. It’s really good news for developer community of Bangalore. It will be like most other unconference camps with main focus on developer’s community. I hope to have some real cool application development demos and sessions. This DevCamp will have focus on all aspects of software development and will be an interesting event for anybody who is part of a software development team.

So what are you waiting for? Register yourself at the wiki (http://www.devcamp.in/wiki/Register) and if you are interested to give any session then do visit session page (http://devcamp.in/wiki/Sessions) and put your session details there.

For any further details do visit the wiki: http://www.devcamp.in .Alternatively you can also sign up on the mailing list to get the latest updates about DevCamp.

Venue detail:

ThoughtWorks Technologies (India) Pvt. Ltd. 2nd Floor, Tower C, Corporate Block ,Diamond District, Airport Road , Bangalore, KA - 560 008

Wednesday, December 12, 2007

My Stock Trading Experience

Well off late I started share trading from November, 07. Here I would like to share my experience for all those novice people who want to know the basics. I am not an expert and I am still in the process of learning lot of things so don’t take my words blindly.

These all are my personal views and thoughts which may differ person to person..

What you need to get started?

  • Capital – 20 to 30 thousand to start with (it depends on your appetite)
  • Guts – share trading is not for faint hearted people
  • Vision – ability to think and analyze
  • Patience – power to go through ups and downs
  • Honesty – stick to your original game plan
  • Demat and Online trading account – off course it’s needed.

Now before you start checklist..

  • Your need for investment – First of all you need to know that why you want to invest, what’s your need and for what time frame you want to invest. You should be clear about these things like is it for short term or for long term etc.
  • Have a clear target like how much you want to earn – You should have a clear plan before buying the stock like what kind of profits you are looking for and it should be realistic. For example you may except to earn 50% in 3 months from that particular stock.
  • Gather information about the company in which you want to invest – Do the small research on the company’s past and present performance. Go through their website and read recent news about the company and if you feel positive about it then only buy that stock.
  • Get the information about the sector to which that company belongs – Yes it’s very important to know about the sector that company belongs. If the sector itself is performing badly then no point in expecting a good return from the company. For example nowadays the whole IT sector is down so the all IT companies shares are down and nobody is interested in them.
  • Check the market and economy conditions – You should also see the market conditions before buying. You should look whether the market is over valued or is there any negative trend etc.

Need more … go through these links and get familiar with common terms and basics.

  • Moneycontrol.com – Great site to learn about market and to get any sort of information about any stock or any sector. Do create a user id for yourself and you can also track your investment in their portfolio tools free of cost.
  • Pehla Kadam (First step) – This provides a basic tutorial about share market and related topics. Very basic and very nicely written. A must read before you kick off.
  • And do read The Economics Times regularly and watch CNBC TV18 or NDTV profit.

Some of the good sectors to invest in (at present)…

  • Construction & Contracting
  • Infrastructure
  • Power generation and distribution
  • Financial and Banks
  • Iron and Steel
  • Oil and gas

Popular Posts