Kamal Wickramanayake's blog

jkscertgen : Generate a full set of CA, service and client keys and certificates in Java keystores

You are into Java security. You want to generate some X.509 certificates to test your application (or use in your production environment). Here's a simple X.509 certificate generator script that makes your life very simple. Download and execute, it will do all the following and you get the keys and signed certificates.

Exporting the private key from a jks file (Java keystore)

Some seems to have used complicated mechanisms including writing new software to do so. Here's a simple approach:

1. Import the keystore from JKS to PKCS12

Flying a helicopter without turning rotor blades!

I threw my cents at a discussion forum and mentioned two ways to create a video of a flying helicopter with rotor blades ramaining standstill - both approaches after capturing a video of a flying machine with a normal camera (without variable frame rate recording).

I felt trying! Original video was grabbed from YouTube.

Option 1: Use a transcoder and experiment with different output frame rates until the blades are seen standstill.

Option 2: Use a video editing software, remove many frames so that blades are seen standstill.

Enabling Apache Axis2 Clustering

I tried enabling clustering support in both standard and war distributions of Apache Axis2 version 1.4. It was not as simple as said. I could see possibly a bug related with coding in war distribution. And in both distributions, I could see improper axis2.xml files and several mistakes in packaging jars. Here's how you go about enabling clustering support:

Environment:

RGB565 To PNG/JPEG

While not common, in rare cases you may have an image in its raw pixel format (say in rgb565). It can even be a portion of video. If you ever come accross converting such raw data to say a png or jpeg image, ffmpeg can be used easily. See the following command:

ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt rgb565 -s 1024x768 -i image.raw -f image2 -vcodec png image.png

 1024x768 is the geometry. image.raw is the file containing the image in rgb565 format. image.png is the new file to be written.

Kandyan Dancer Flowers

Kandyan Dancer

Kandyan Dancer

High resolution images are attached below. Released to the public domain!

Architecture Principles: “The system is down. We cannot work!”

I am to lease a car. All the documents are filled and submitted to the leasing company.  But there is delay.  Reason (by the leasing company): “We cannot obtain credit information from Credit Information Bureau (CRIB) since CRIB information systems are down possibly due to a system upgrade.”

How to get a loan and buy a car strategically?

Due to heavy taxes, one would find this a better option:

1. Get a loan (amount to be the price of the car in Sri Lanka), go abroad, buy a car.

2. Even after airfare and the money spent in buying the car, you will still find money remaining in your hand. Why? Price of cars are so high in Sri Lanka due to heavy taxes. The same car in another country can cost half or 1/3 of the price in Sri Lanka.

3. Enjoy and pay couple of loan installments from the remaining money.

How To Empower Employees?

Problem

One of my friends who is working in a big company in Sri Lanka called me today and explained a most unwanted experience:

"My boss wants everything to happen through him. He asks me not to pursue new initiatives of my own, not to interact with people in other divisions unless such collaborations or communications are authorized by him.

Toyota's Lean Manufacturing Issues

When the business model changes to making the value flow at the pull of the customer, the demand for business agility starts to rise at unprecedented speeds where high speed reporting, analysis and solution identification become inevitable. While new management styles are part of the solution, automation of  business processes (reporting, analysis and solution identification) has its own stake which in many cases influences the just said management styles. A predicted slow down of Toyota is just one example where the values of an informed information technology strategy is highlighted.