One day you may need to isolate some of your key(s) to different keystore. Here is the command for it,
keytool -importkeystore -srckeystore mystore.jck -destkeystore myotherstore.jks -srcstoretype jceks
-deststoretype jks -srcstorepass mystorepass -deststorepass myotherstorepass -srcalias myserverkey
-destalias myotherserverkey -srckeypass mykeypass -destkeypass myotherkeypass
Here is my Scenario - Why I needed to do it?
to be added..... :-)
Monday, February 10, 2014
Thursday, January 02, 2014
How to Create MicroSIM from standard SIM
As name says MicroSIM is smaller than standard sim, but chip is exactly same size in both cases. MicroSIM is 15 mm in height and 12 mm in width. So we can cut plastic area in order make it. Please be careful not to damage chip while you cut it.
Please use below pdf document for the MicroSIM template.
MicroSIM Template
Good luck...
Please use below pdf document for the MicroSIM template.
MicroSIM Template
Good luck...
Friday, November 08, 2013
Example Spring MVC, JPA, Hibernate Project with Maven
Here is the github link for sample Spring MVC, JPA, Hibernate Project with Maven. You can download and build your project on top of it.
sample-spring-mvc-jpa
Happy Hacking..
Thursday, October 03, 2013
Write Text file to network drive
if you use domain then you have to use user variable like below,
String user = "domain;user:password";
else use below code,
String user = "user:password";
rest of the code should be like below,
NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication(user);
String path = "smb://server/D/MyLocation/data.txt";
SmbFile sFile = new SmbFile(path, auth);
SmbFileOutputStream sfos = new SmbFileOutputStream(sFile);
sfos.write("Test".getBytes());
There you go, data.txt should be there in your locatoin :-)
Sunday, August 25, 2013
Change/ Modify Image meta data in Linux
Step 1.) sudo apt-get install libimage-exiftool-perl
Step 2.) exiftool -AllDates='2013:08:08 15:35:33' -overwrite_original image.jpg
Hope this tip would help you in one day :-)
Friday, January 21, 2011
Asynchronous programming in Java with Jsp and Servlets
Have you ever needed to do some task asynchronously with Jsp and servelet? If if is EJB container like jboss then we can use message driven beans or some other technique. I found a good discussion thread that has suggested few good solutions for that.
http://cephas.net/blog/2004/02/02/asynchronous-method-invocation-in-java/
http://cephas.net/blog/2004/02/02/asynchronous-method-invocation-in-java/
Friday, August 13, 2010
Check Your Programming ability with Java
Hi all, after Long time :-)
I found a nice site, which offers really good questions to test our java programming knowledge. Just go through the test. All the best
http://www.betterprogrammer.com/
I found a nice site, which offers really good questions to test our java programming knowledge. Just go through the test. All the best
http://www.betterprogrammer.com/
Monday, September 15, 2008
Wednesday, June 18, 2008
Google App Engine
Although Google has announced this quite while ago, I tried it today. It is amazing service (product) by google. I don not want to write more... Here is the url... try it yourself
http://code.google.com/appengine/
http://code.google.com/appengine/
Saturday, May 03, 2008
Sri Lanka in top 10 contries in the GSoC 2008
Google has recently announced the top 10 countries this year
See the article
I think this is a great achievement as a country. Well done guys :). Good luck with your great work.
See the article
I think this is a great achievement as a country. Well done guys :). Good luck with your great work.
Tuesday, January 08, 2008
Connecting your Nokia N70 phone in Linux
I tried several ways to connect my Nokia N70 phone in my Debian box. I did it using bluetooth, but I wanted to connect it via USB. So I did some googeling, but I did not find any solution. Therefore I raised that question in LKLUG (Lanka Linux User Group) and get few responses. This is what I did.
I used this link as suggested in LKLUG mailing list.
http://think2ed.blogspot.com/2008/01/connect-your-nokia-n70-with-your-ubuntu.html
First of all I installed obexftp tool,
1.) sudo apt-get install obexftp
Using obexftp you can check whether the your phone is correctly connected to the machine.
2.) sudo obexftp -u
Above command indicates that.
All the above commands and related outputs are clearly mentioned in above link
Then I installed obextool (ObexTool is a graphical frontend for ObexFTP)
Debian repositories does not contain obextool packages.
Then I visited following link,
http://www.stud.uni-karlsruhe.de/~ubq7/debian
It contains all the repository details where obextool packages exists.
Copy following repository paths in your sources.list
deb http://www.hendrik-sattler.de/debian extra main
deb-src http://www.hendrik-sattler.de/debian extra main
execute following commands,
1.) sudo apt-get update
2.) sudo apt-get install obextool
After installing obextool, run the following command.
sudo obextool --obexcmd "obexftp -u 1"
So, thats it. now it list the contents in your mobile phone (My one is Nokia N70). It lists two letters. i.e. The phone's internal memory is accessed as C: whereas E: refers to the memory card.
Now you can exchage files etc etc...... Enjoy it :-D
Refer this link for more details
http://dburr.veritel.com.au/nokia/
I used this link as suggested in LKLUG mailing list.
http://think2ed.blogspot.com/2008/01/connect-your-nokia-n70-with-your-ubuntu.html
First of all I installed obexftp tool,
1.) sudo apt-get install obexftp
Using obexftp you can check whether the your phone is correctly connected to the machine.
2.) sudo obexftp -u
Above command indicates that.
All the above commands and related outputs are clearly mentioned in above link
Then I installed obextool (ObexTool is a graphical frontend for ObexFTP)
Debian repositories does not contain obextool packages.
Then I visited following link,
http://www.stud.uni-karlsruhe.de/~ubq7/debian
It contains all the repository details where obextool packages exists.
Copy following repository paths in your sources.list
deb http://www.hendrik-sattler.de/debian extra main
deb-src http://www.hendrik-sattler.de/debian extra main
execute following commands,
1.) sudo apt-get update
2.) sudo apt-get install obextool
After installing obextool, run the following command.
sudo obextool --obexcmd "obexftp -u 1"
So, thats it. now it list the contents in your mobile phone (My one is Nokia N70). It lists two letters. i.e. The phone's internal memory is accessed as C: whereas E: refers to the memory card.
Now you can exchage files etc etc...... Enjoy it :-D
Refer this link for more details
http://dburr.veritel.com.au/nokia/
Saturday, November 24, 2007
Google Desktop Gadgets - Hall of fame
I earlier wrote about Google Desktop and its featured gadgets. This time I am going to write you about Hall of fame :).
Before you go in to details, Just visit this page.
Hall of fame
What do you think?
This is what Google says,
"We love our developers! The first time your desktop gadget or indexing plug-in is added to our directory and shared with millions of Google Desktop users around the world, we'll send you a developer appreciation package. Subsequent submissions give you a shot at other rewards. If some of your gadgets or plug-ins become very popular, you'll earn a spot in our Developers' Hall of Fame."
As they said, I got the developer appreciation package for my first gadget - Simple calculator
Now I have developed four gadgets and you can see them in this page.
As Google said, If some of our gadgets become very popular, we can earn a spot in Developers Hall of Fame.
So all in all my Calculator gadget become very popular and Now I have a spot in Developer Hall of Fame :-D
If you go that page you can find my Name and some details of my gadgets, but my photograph not there :(. I sent my details with photograph to Google Desktop and hopefully they will publish it in future.
Finally Thanks Lahiru who motivated me to develop Google Desktop gadgets :) (Thanks machan)
Before you go in to details, Just visit this page.
Hall of fame
What do you think?
This is what Google says,
"We love our developers! The first time your desktop gadget or indexing plug-in is added to our directory and shared with millions of Google Desktop users around the world, we'll send you a developer appreciation package. Subsequent submissions give you a shot at other rewards. If some of your gadgets or plug-ins become very popular, you'll earn a spot in our Developers' Hall of Fame."
As they said, I got the developer appreciation package for my first gadget - Simple calculator
Now I have developed four gadgets and you can see them in this page.
As Google said, If some of our gadgets become very popular, we can earn a spot in Developers Hall of Fame.
So all in all my Calculator gadget become very popular and Now I have a spot in Developer Hall of Fame :-D
If you go that page you can find my Name and some details of my gadgets, but my photograph not there :(. I sent my details with photograph to Google Desktop and hopefully they will publish it in future.
Finally Thanks Lahiru who motivated me to develop Google Desktop gadgets :) (Thanks machan)
Saturday, November 17, 2007
Sahana
"Sahana is a Free and Open Source Disaster Management system. It is a web based collaboration tool that addresses the common coordination problems during a disaster from finding missing people, managing aid, managing volunteers, tracking camps effectively between Government groups, the civil society (NGOs) and the victims themselves.:.......
Thats what Sahana web site says.
I got the opportunity to join Sahana project in February 2007 as an intern. I have heard its recognition and reputation during my university career and at that time I did not think that I will get the opportunity to contribute to that project.
All the credits should go to Core developers (Chamindra, Pradeeper, Ravindra, Mifan and rest...). They have done a tremendous job to bring the project into this stage.
I love FOSS, I like to contribute to FOSS, So I just started to doing it now. :-D
Thats what Sahana web site says.
I got the opportunity to join Sahana project in February 2007 as an intern. I have heard its recognition and reputation during my university career and at that time I did not think that I will get the opportunity to contribute to that project.
All the credits should go to Core developers (Chamindra, Pradeeper, Ravindra, Mifan and rest...). They have done a tremendous job to bring the project into this stage.
I love FOSS, I like to contribute to FOSS, So I just started to doing it now. :-D
Saturday, September 29, 2007
Gentoo Linux
"Gentoo is all about choices. When installing Gentoo, this is made clear to you several times -- you can choose how much you want to compile yourself, how to install Gentoo, what system logger you want, etc."
Read more
With a sudden decision, yesterday night, I tried to install Gentoo on my desktop machine. I am happy to say that, I did it :D. After one sleepless night, now I have working Gentoo box (BTW I am still installing Gnome).
They provide very useful manual to do so :). If you carefully follow it, you will be definitely succeed.
But something went wrong in my installation as I could not set up Grub correctly. Anyway I managed to setup LILO instead. I could not figure out the mistake I made. BTW I droped a mail to LKLUG regarding that issue and hopefully I will get an answer soon.
I will write my new experience on Gentoo. So, its time to do more and more hacking on Gentoo.
Read more
With a sudden decision, yesterday night, I tried to install Gentoo on my desktop machine. I am happy to say that, I did it :D. After one sleepless night, now I have working Gentoo box (BTW I am still installing Gnome).
They provide very useful manual to do so :). If you carefully follow it, you will be definitely succeed.
But something went wrong in my installation as I could not set up Grub correctly. Anyway I managed to setup LILO instead. I could not figure out the mistake I made. BTW I droped a mail to LKLUG regarding that issue and hopefully I will get an answer soon.
I will write my new experience on Gentoo. So, its time to do more and more hacking on Gentoo.
Friday, September 07, 2007
Google Desktop Gadgets
It is really fun. If you have free time, just try to code small gadget using Google Desktop API. It is really not much difficult thing ;-). This SDK lets us create gadgets and indexing plug-ins for Google Desktop.
for more info
http://desktop.google.com/dev/index.html
After creating your gadget, you can submit the software. Then Google will do a review and if your software performs well, they will approve it. Then you can find it by selecting the appropriate category from the links on the left side and scrolling down to your listing.
for more
http://desktop.google.com/plugins/
To reward your creative talents, they would give you a limited edition Google Desktop Developer's patch or ........bla bla bla .. :D
I have developed small gadget so far and I am happy to say that they approved it. :)
So its time to develop more and more gadgets......... hope you will too.. cheers
for more info
http://desktop.google.com/dev/index.html
After creating your gadget, you can submit the software. Then Google will do a review and if your software performs well, they will approve it. Then you can find it by selecting the appropriate category from the links on the left side and scrolling down to your listing.
for more
http://desktop.google.com/plugins/
To reward your creative talents, they would give you a limited edition Google Desktop Developer's patch or ........bla bla bla .. :D
I have developed small gadget so far and I am happy to say that they approved it. :)
So its time to develop more and more gadgets......... hope you will too.. cheers
Monday, August 20, 2007
Thursday, July 26, 2007
Firefox vs IE(Internet Explorer)
Well firefox and Internet explorer, two different web browsers (and mostly use). So I thought to give some clues to select what is the best browser. I have some experience in developing web application using AJAX and CSS and ....... Ooops most of the times it generate some kind of bugs in IE (as it does every time ;-)). That is the reason why I am writing this article here.
Here are some related articles
1.) hmmmm good one
2.) excellent one
3.) oops yet another one ;-)
I think this is enough at the moment.
Apart from those articles, one big difference exists between them. Can you guess?
In most of the sites,
Firefox shows "DOWNLOAD it from here". :-)
IE shows "Check prices" :-(
"Lets use Firefox ;-)"
Here are some related articles
1.) hmmmm good one
2.) excellent one
3.) oops yet another one ;-)
I think this is enough at the moment.
Apart from those articles, one big difference exists between them. Can you guess?
In most of the sites,
Firefox shows "DOWNLOAD it from here". :-)
IE shows "Check prices" :-(
"Lets use Firefox ;-)"
Thursday, July 19, 2007
Google Summer of Code 2007
:-) Starting with smile since this my first non technical article (That does not mean I am technical person ;-) ).
Although it was announced in February, finally I thought to write something. ;-)
It is annual program started in 2005.
"We accepted over 900 student applicants from a pool of nearly 6,200 applications." ----- Google.
So I am amongst that 900 :-). I submitted two proposals for Sahana project. One about GPS and other about AJAX. OOps my GPS proposal got rejected. :-(
Finally, other one that is my own idea "Complete AJAX library for Sahana" accepted. :-D
Now I am in the process of developing that library and I am on schedule I guess ;-). So I am pretty sure I will be able to submit my final delivery on time.
This is amazing program. Thanks Google ! :-)
Although it was announced in February, finally I thought to write something. ;-)
It is annual program started in 2005.
"We accepted over 900 student applicants from a pool of nearly 6,200 applications." ----- Google.
So I am amongst that 900 :-). I submitted two proposals for Sahana project. One about GPS and other about AJAX. OOps my GPS proposal got rejected. :-(
Finally, other one that is my own idea "Complete AJAX library for Sahana" accepted. :-D
Now I am in the process of developing that library and I am on schedule I guess ;-). So I am pretty sure I will be able to submit my final delivery on time.
This is amazing program. Thanks Google ! :-)
Thursday, June 14, 2007
Internet Explorer on Linux
If u are a linux web developer, sometimes you need to test your web application in Internet Explorer (cos IE has some problems and differs when compares with firefox ;-) ).
for do that u dont have to log on to (problamatic)windows OS. Just install IE in linux.
here is the url
http://www.tatanka.com.br/ies4linux/page/Installation
for do that u dont have to log on to (problamatic)windows OS. Just install IE in linux.
here is the url
http://www.tatanka.com.br/ies4linux/page/Installation
Sunday, April 15, 2007
Set up Sinhala in Linux
Here is two useful links that you can set up and configure Sinhala in Ubuntu edgy and Debian etch
http://www.nongnu.org/sinhala/doc/howto/sinhala-howto.html
then use following link to do more stuff
http://anuradha-ratnaweera.blogspot.com/search?q=si_LK
cheers
http://www.nongnu.org/sinhala/doc/howto/sinhala-howto.html
then use following link to do more stuff
http://anuradha-ratnaweera.blogspot.com/search?q=si_LK
cheers
Subscribe to:
Posts (Atom)
State Machine implementation for Spring Boot Project
Well I do not write a lot about it. You have plenty of resources to read about it. The behavior of state machines can be observed in many d...
-
You can calculate your GPA using this. :-) Grade Credits Subject 1 Subject 2 Subject 3 Subject 4 Subject 5 Subject 6 Subject 7 Subject 8 Sub...
-
If u are a linux web developer, sometimes you need to test your web application in Internet Explorer (cos IE has some problems and differs w...
-
:-) Starting with smile since this my first non technical article (That does not mean I am technical person ;-) ). Although it was announce...