Thursday, February 23, 2012

Windows Dos batch file Date and Time Split


SET currdt=%DATE:~4,2%_%DATE:~7,2%_%DATE:~-4%_%time:~0,2%_%time:~3,2%_%time:~6,2%

SET month=%DATE:~4,2%
SET day=%DATE:~7,2%
SET year=%DATE:~-4%
SET hour=%time:~0,2%
SET sec=%time:~3,2%
SET millis=%time:~6,2%

echo %currdt%
echo %day%
echo %month%
echo %year%
echo %hour%
echo %sec%
echo %millis%

echo %year%_%month%_%day%_%hour%_%sec%_%millis%

The above batch script can extract day, month, year, hour, sec, millisecond.

You can use this in Windows Batch Script for saving files with Date TimeStamp

Wednesday, January 18, 2012

Read contents from Wikipedia even on Blackout

Read contents from Wikipedia even on Blackout

"Wikipedia is protesting against SOPA and PIPA by blacking out the English Wikipedia for 24 hours, beginning at midnight January 18, Eastern Time. Readers who come to English Wikipedia during the blackout will not be able to read the encyclopedia. Instead, you will see messages intended to raise awareness about SOPA and PIPA, encouraging you to share your views with your representatives, and with each other on social media."

There is a way to read contents from Wikipedia during the blackout. I Support Wikipedia initiative, however  wikipedia is very important and to read some information i found a way.

All out need is a Chrome Browser with iReader App (https://chrome.google.com/webstore/detail/ppelffpjgkifjfgnbaaldcehkpajlmbc)

Click on the link below,
http://en.wikipedia.org/wiki/Test_(assessment)





Click on the iReader icon after the page is loaded, as shown above


Bingo !!! You got access to Wikipedia Content even on Blackout !!! Enjoy everyone..... Support Wikipedia 

Support Wikipedia Using Facebook: Facebook Share

Support Wikipedia Using Google+ : Google+ Share

Support Wikipedia Using Twitter: Twitter Share

Any problems or Questions please post it.

Thursday, February 10, 2011

How to copy oracle sqldeveloper settings from one machine to other

When we move machine, copying the Oracle configuration is a problem. However there is solution for this problem.


Navigate to the following location,


Step 1: C:\Documents and Settings\\Application Data\SQL Developer

Step 2: C:\Documents and Settings\\Application Data\SQL Developer\systemXX.X.X.X.XX

Step 3: Copy the product-preferences.xml in the location below,

C:\Documents and Settings\\Application Data\SQL Developer\systemXX.X.X.X.XX\o.sqldeveloper.XX.X.X.XX.XX

Step 4: Copy the connections.xml in the location below,

C:\Documents and Settings\\Application Data\SQL Developer\systemXX.X.X.X.XX\o.jdeveloper.db.connection.XX.X.X.X.XX.XX.XX





Copy these 2 files(product-preferences.xml&connections.xml ) to your new machine in the same location

Wednesday, February 9, 2011

How to copy putty configuration from one machine to other

When we move machine, copying the putty configuration is a problem.
There is solution for this problem.
From the machine where existing putty connection are available we can extract the details. The following steps are to be followed.

Step 1: Windows –> Start –> Run –> regedit















Step2: Navigate in Register Editor –> My Computer –> HKEY_CURRENT_USER –> Software –> Simon Tatham –> Right Click –> Export –> Save as Simon Tatham.reg






Step3: Copy this file Simon Tatham.reg to the new machine.



Step4: Run this Simon Tatham.reg in the new machine the settings will be available.