Posts

Showing posts with the label programming

Implement SSL on Java

In order to implement SSL on server we need to do the following: 1. Generate a private key using Keytool. Here is the sample command for keytool keytool -genkey -alias tomcat -keyalg RSA -keystore keystore.jks This will ask several questions. The first question is what is your name and the answer must be the fully qualified name of the domain. For example, if the domain is reveim.com, the name should be reveim.com. If all other information is provided and a password is set, this will generate a file named keystore.jks and store a private-public key pair in this file. The alias name is important and  can be any word. This alias name will be required during certificating signing process. The generate keystore.jks file is called the self-signed certificate. This can be used with custom clients. But if the client is a browser, self signed certificate should not be used because user will see a warning message for their first visit. For production use, we need...

Integrating Python and Apache

Today I'm going to write on how to integrate Python with apache web server. All you probably know that Python is also a server side scripting language. So, like PHP and other server side scripting languages, you can use Python in the same way. This is not tough, just a matter of some minutes. Okay, before you start the tutorial, you must (most probably already you have) have the following installed in your computer/server. 1. Apache web server (Only apache or xampp, wamp etc anything containing apache will do). I'll use xampp as reference but others should behave the same 2. Python (I'm using 2.7) So, if you don't have these two installed, download and install them first and then continue As you are here, you have already installed apache/xampp/wamp and Python. Follow these steps 1. Go to your apache folder. In my case, as I'm using xampp it's in location C:\xampp\apache 2. Go to the conf folder and open the httpd.conf using a text editor. I pref...

Important links for developers

1. Tutorial for integrating facebook into android application(fbshare): click here 2. Tutorial for showing nice message boxes using jquery. click here 3. Great article on android 2D animation . click here 4. GIT tutorial for beginners. click here 5. Google classes and tutorials click here 6. Using Python for CGI scripting click here