Amazon Great Offers

December 23, 2010

xps to pdf conversion

Hi everyone,
There are many ways to convert XPS to PDF conversion.
  1. Online site
    • Browse the .xps file and click on "Convert" button.
    • It will convert the file to .pdf and gives a link.
    • To save the file: Right click on the link and select "Save Linked Content As"
  2. By using pdf printer
    •  Open the .xps file in either Internet Explorer or XPS Viewer.
    • Click on Print and select any pdf printer like Ayumini PDF Converter, novaPDF Converter etc.
    • Give the output file name 
  3. By using third party softwares
    • I am googling for trusted third party softwares. If I get I will share with you all

Get the xps viewer

December 20, 2010

Wants to do alot with your pendrive like booting, portable applications, logs etc

Hi everyone,
Today I came across pen-drive portable applications and lot more things that we can do with pen-drive.

Here are some links with description
    You can find all most all application here. Which can be loaded in pen-drive and can used wherever we needed.
Note: Only windows portable application are avail.
    Protects your PC with the pen-drive.
    Need additional RAM in your computer. With pen-drive it is possible to upgrade the RAM.
    Protect your private data.
 5) Boot different Linux OSes from pendrive.

Please make use of these.

Please send your feedback and comments to me.

December 19, 2010

Indiranagar Cambridge School, RRB Examination Center, Bangalore

Hi RRB Aspirants,

If your examination center is Indiranagar Cambridge School, #52, 8th Main, 6th Cross, HAL 3rd Stage, Bangalore and wants to know the route and buses .. See this

From Silkboard, Madiwala, Koramangala, MG Road you can take 201, 201G, 201MA, 201QA

From City Railway Station (or) Majestic Please come to MG Road and take any of the above buses.

Get down at KodiHalli bus stop and take Miranda School left side road.

Just ask for ICS(Indiranagar Cambridge School), Its walkable distance from the bus stop.

Make use of it.

Insert and Display image BLOB in JSP page

Hi everyone,

Today we just tried to insert jpeg file and displaying that file in one html page

Source Code:
file name: img_uploadanddisplay.jsp
<%@ page import="java.sql.*"%>
<%@ page import="*, java.util.*, java.lang.*"%>

<% ResultSet rs=null;
Connection con=null;
Statement stmt=null;
PreparedStatement psmt,psmt1;
Blob blobfile = null;
byte [] imgdata = null;
int status = 0;
boolean del_status = false;
OutputStream os = null;
String req_id=request.getParameter("id");
System.out.println("Entered"+req_id); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("Jdbc:Odbc:BTSJAVA","System","vijay"); stmt=con.createStatement();
psmt = con.prepareStatement("insert into img_temp values(?,?)");
int id_val = 1;
File img=new File("D:/photos/passport/PP.jpg");
FileInputStream fis= new FileInputStream(img);
status = psmt.executeUpdate();
//System.out.println("Trying to insert data");


stmt = con.createStatement();
rs = stmt.executeQuery("select imgfn from img_temp where id = 1"); //+Integer.parseInt(req_id));

os = response.getOutputStream();

System.out.println("Getting Data");


System.out.println("Got Data");

catch(Exception e)

Create a html file with the following content

image tag src="img_uploadanddisplay.jsp?id=1"

Please send your feedback and queries to me.

December 16, 2010

Word 2007 Macro for auto-formatting the content in each line

Word macro for iterating entire document line by line and edit the content

Sometimes we may need to format the string with quotes and comma. I have been facing this for sometime. If the content is less, it will ok to go to the starting position of the string and type " or ' and go to the end of the string and type " or ' and appending , at the end of every line, etc.




What you need to do, Please follow the below steps.

1) Just download the macro code below and paste in word visual basic editor or create a macro with this code
2) Edit the code according to your convience either to use " or '
3) Save the code and run the macro
4) It will confirm with the user whether the user copied the data or not.
5) Wait for user to copy the content
6) Automatically format and copy the formatted content
7) Displays a message to user saying that "Data is formatted and copied. You can paste the content in required application"

Its very simple and useful. Try this.
Macro Code:
sub FormatData()
Dim lineCount, i As Integer
Dim oWB As Document
Dim decision As Variant

Set oWB = Documents.Add

decision = MsgBox("Please copy the content and then click on OK", vbOKCancel, "Decision")

Select Case decision
Case vbOK 'If user agrees proceed further by pasting the content
'Paste the content from clipboard which is copied
Selection.PasteSpecial DataType:=wdPasteText, Placement:=wdInLine
Case vbCancel 'If user clicks on cancel then exit
GoTo last
Case Else
GoTo last
End Select

'got the first line
Selection.GoTo What:=wdGoToLine, Which:=wdGoToFirst

'Formatting the data

'Counting number of lines
lineCount = oWB.BuiltInDocumentProperties("Number of lines").Value

For i = 1 To lineCount
'Quoting the line
Selection.HomeKey Unit:=wdLine
Selection.TypeText Text:="'"
Selection.EndKey Unit:=wdLine
Selection.TypeText Text:="'"

'Appending , till linecount-1 line
If i < lineCount Then
Selection.TypeText Text:=","
End If
'Moving to next line
Selection.MoveDown Unit:=wdLine, Count:=1
Next i

'copy the content in the document

ActiveDocument.Close savechanges:=wdDoNotSaveChanges

'Informing user that he/she can paste the data where ever required
MsgBox ("Content is formatted and copied, Please paste the data in the required application")


End Sub

'go to the beginning
'Selection.HomeKey Unit:=wdStory

'go to the end
'Selection.EndKey Unit:=wdStory

'got the first line
'Selection.GoTo What:=wdGoToLine, Which:=wdGoToFirst

'go to the last line
'Selection.GoTo What:=wdGoToLine, Which:=wdGoToLast

'If you just want to select a line, you can also do something like this :
'Selection.HomeKey Unit:=wdLine
'Selection.EndKey Unit:=wdLine, Extend:=wdExtend

'Count number of words
'sNumberofwords = oWB.BuiltInDocumentProperties("Number of words").Value

For any further queries, please send mail to

December 10, 2010

Mounting (Connect) external disks in Ubuntu

Hi everyone,

Most of the present Ubuntu Operating Systems will auto-mount the internal/external disks.

In some cases that may not be done automatically. In that situation, you can manually mount the media to the Ubuntu.

Here comes the mounting of external disks like HDD, Pen-drive etc in Ubuntu. 


1) Open terminal
2) Type sudo su in the terminal
3) Enter the password
4) Now you will be in super user mode i.e. # mode
5) Go to the desktop or some folder where you want to create a folder for mounting
    ex: # cd /home/user1/Desktop
6) Create a directory
    ex: # mkdir ExtrnDisk
7) Type the following command for NTFS disks
    # mount -t ntfs-3g /dev/sdb1 ExtrnDisk/ (FAT32 -- vfat)

    Type the following for rest of the disks
    # mount /dev/sdb ExtrnDisk/
8) Now you can see the drive contents mounted to ExtrnDisk folder


December 08, 2010

Write Protect your pen drive from copying, deleting and etc.,

Hi everyone,

Today one of my friend asked me "Why I cann't copy the data to my USB Pendrive". It is showing message like "Remove the write-protection or use another disk". Can you help me to resolve? "

I just checked and came to know that, the pen drive is write protected. Only we can copy the content from pen drive but can't do deleting and copying to pen drive.

  • To remove the write protection, please follow the steps below.
  • Open run window by pressing windows + R or start->run
  • Type regedit.exe and click on "Ok" button or Press Enter button.
  • Please go to the following path
  • If there is no WriteProtect key, please create a DWord key with name WriteProtect
  • To enable write-protect, please give "1" as key value
  • To disable write-protect, double click the WriteProtect key and give value as 0 
Hope you will protect your pendrive.

Featured Post

Java Introdcution

Please send your review and feedback to