Philippe’s 3 Rules of Software Craftsmanship

Philippe Kahn is one of the co-founders of Borland. If you been living and doing programming back in the 90′s you have the right to know him for your Turbo Pascal and Turbo C!

He formulated his own law in Computer Science. Originally from the Wikipedia.

Rule #1 – “Start with a vision”

Rule #2 – “Throwing more bodies at software projects only makes things worse”

Rule #3 – “There are three vectors that drive software craftsmanship: quality, schedule, and features. The challenge is that you only get to pick two”

Number 2 is my personal favorite!

A really nice blog

Well I admittedly  admired this article about the Philippines 50 years from now (which probably I’m cold dead on that time!).  The real thing that caught my attention was the write-ups about the present time which consequently the statistics is accurate especially those things that bothering me everyday- Pilipinos. If you’re working in the Philippines and you’re a middle wage earner whose government imposed you an  “extremely”  higher tax rate- that can afford to send couple of children to school all by your tax! I mean were all working hard just to get enough of daily needs and see these people marching,rallying,complaining to the government that they do not have foods,quality education for their children,they getting poorer and poorer! little they know that almost or majority of the money coming from the tax goes to them. Most rich people only have 2-4 children by average while less fortunate has 5-8 children! And still they have the guts to complain! Ako nga wla pang anak nahihirapan na eh yung pa kayang merong 8 anak! talgang maghihirap nga kayo! I don’t believed that the main reason why they are “less fortunate”  is because they did not able to finished or fully didn’t go to school at all. As Humans we have the capacity to learn all by ourself. Hindi naman nakapagaaral si Eba at Adan ahh! To cut this story short here is my OPEN LETTER to all Pilipinos:

1. Maawa naman kayo sa nag papakahirap magtrabaho at nag babayad ng buwis. Samantalang kayo wlang ibang gawin kundi magreklamo at mag rally. Kung yang sinisigaw nyo buong araw sa kalsada nilalagay nyo sa opisina o kung saang lehitimong trabaho eh di sana kumita pa kayo ng malaki at makaraos din. As if naman papakingan kayo ng mga yan! eh dekada nang may luga mga tenga nyang mga yan. Mamamatay din sila at bahala na humusga yung nasa itaas (yung mas mataas pa sa Malacañang).

2. Please lang huwag na kayong kumontra sa RH (Reproductive Health) Bill! Likas nang malilibog ang mga Pilipino- hindi ka naniniwala? 94 million and counting every minute. We are top 12 in the whole planet! kung kada isa dyan nag bibigay ng piso kada 1 linggo malamang maunlad na tayo.hahaha. Kontra ng kontra hindi naman nila kayang solusyunan!

3. Dapat wala nang official “Opposition” na party sa Legislative. Bakit hindi nalang baguhin katulad ng democratic or republican? eh putang inang yan kada may UUSOD meron dapat HAHATAK. kung hindi ka sang ayon meron pa naman ibang paraan. Ang dadali naman ng trabaho nyo dyan mag iisip ka lng ng pangontra kumita ka na! VIP pa sa society!  may Kickback pa! Libreng magagandang kotse at with security escort kahit saan! laway lng puhunan! wala pang amo!

4. Dapat nang baguhin ang Saligang Batas! (Constitution). Masyado ng inaabuso dahil ginawa ito para lutasin ang mga pagkakamali at pagkukulang sa batas nung kapanahunan ni President Marcos. Kaya ayaw ng mga mambabatas kasi alam nila na hindi na sila makakaporma. At dapat meron nadin Impeachment ang Senate at House of Reresentatives!

5. It is time to make the country an I.T hub of the world. Medyo bias pero dapat lang. At tsaka  sana wag naman puro call center diba. madami naman magagaling na programmer,web designer,system admins at kung ano ano pa na Piliino. Magandang gawing “Internet Gateway” ng East at Southeast Asia ang Pilipinas dahil sa Geo-location nito. Dapat lahat ng cable ng China, Japan at Singapore nasa Pilipinas tapos tayo ang mag tatawid pauntang Australia at US!!! Para mura ang Broadband dito!hahahaha!!!

6. Bawal na ang tatanga tanga! lalo na dito sa Metro Manila!

7. Aysuin na ang MRT sa EDSA! habang buhay nlng ba ganyan? next year 100 million na ang tao sa Piliinas. Goodluck naman sa ating lahat!

8. Dapat nang gawing fully computerized lahat ng sangay ng gobyerno! para mabilis at bawas corruption.

9. Lagyan ng DNA info ang lahat ng Birth Certificate! para nka “index” at “unique”  ang lahat ng mga tao!

10. Reserved/Not used.

SSL Certificate to Java jks Keytool Conversion tips

When updating the Tomcat Java Key Store file (jks) from a signed ssl certificate file in PEM format (crt file) is pain in the ass. Here is a few trick to get it up fast.

1. First, convert your certificate and key into a pkcs12 file. This method converts the certificate & key into a PKCS12 file which may then be converted (by the Jetty tool) into a JKS keystore – the JSSE native format.

openssl pkcs12 -export -in signed-cert.crt -inkey website.key -out website.pkcs12

2. Download the java tool, jetty-core-6.1.x.jar from http://dist.codehaus.org/jetty/

3. Copy your current tomcat keystore file to a safe place then convert it

java -classpath jetty-core-6.x.jar org.mortbay.jetty.security.PKCS12Import website.pkcs12 keystore.jks
Enter input keystore passphrase: secret
Enter output keystore passphrase: secret
Alias 0: 1
Adding key for alias 1

Notice as the default alias created is named 1, instead of the key alias you wanted. to change this, and by trick, clone this key and then specify the desired alias you wanted.

keytool -keyclone -alias 1 -dest new_keyalias_name -keypass secret -new keypass_secret -keystore keystore.jks -storepass secret

4. Now removed the old one

 keytool -delete -alias 1 -keystore keystore.jks

5. Verify the keystore file

  keytool -list -v -keystore keystore.jks

Be sure that the Key Entry type is PrivateKeyEntry not trustedCertEntry as Tomcat will cause problem and would not be loaded (Alias name  does not identify a key entry).

Sample:

Keystore type: JKS
 
Keystore provider: SUN
Your keystore contains 1 entry

Alias name: xxxx.com
Creation date: Sep 20, 2010
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
.... and so on...


Replace your current (and ofcourse, back it up as I have no responsibilities if you messed your original one) Tomcat keystore file then restart Tomcat/Java to take effect.