»
S
I
D
E
B
A
R
«
iPhone 3GS Battery Percentage Meter
Jul 28th, 2009 by Anish Kumar
iPhone 3GS Battery Meter

iPhone 3GS Battery Meter

iPhone 3GS now supports showing the battery charge level as a percentage rather than just the icon indicator.  Percentage indicator is really helpful. Most of the times I plug the charger to my macbook when it starts showing the battery level at less than 3%. And with iPhone I usually end up plugging the charger only when it shuts down completely running out of battery.  The 10% battery remaining warning is too early.

Unfortunately Apple has put this new option only in new iPhone 3GS. Its not available for iPhone 3G or the 1st gen iPhone. Apple is so cruel.

I wonder what big pain would it cause to Apple to include that feature in all iPhone models. Apple acts crazy.

Enable HTTPS On Apache Running On A Leopard
Jul 22nd, 2009 by Anish Kumar

SSL is a big part of building secure web services. The steps outlined below can help generate a certificate for Adobe AIR applications to be signed.

Quick note: This is a fairly detailed process, so take a firm hold of the wheel and be prepared for a lengthy ride. You are going to need your terminal and su access.
You will be generating encryption keys and certificates, and editing Apache conf files.
First, you need a certificate

Step 1

Open up a terminal window, and su root. Then, cd over to your Documents directory.

Add a new directory in there using mkdir and call it certs like so:

sh-3.2# mkdir certs

Then cd into it.

Type this command…

sh-3.2# /System/Library/OpenSSL/misc/CA.pl -newca

You’ll see a whole pile of stuff fly by, piece by piece:

CA certificate filename (or enter to create) (hit enter)
Making CA certificate ...
Generating a 1024 bit RSA private key
......++++++
...........++++++
writing new private key to './demoCA/private/cakey.pem'
Enter PEM pass phrase: [enter a passphrase]
Verifying - Enter PEM pass phrase: [enter the passphrase again]
-----

You are about to be asked to enter information that will be incorporated into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value, If you enter ‘.’, the field will be left blank.
—–

Read the rest of this entry »