Custom Search

Monday, August 13, 2012

Using OpenSSL


WARNING: CAN’T OPEN CONFIG FILE: /USR/LOCAL/SSL/OPENSSL.CNF


In Command Prompt type the following before running the openssl command

set OPENSSL_CONF=c:\[PATH TO YOUR OPENSSL DIRECTORY]\bin\openssl.cfg

then whatever... The following was lifted from adobe:
http://help.adobe.com/en_US/as3/iphone/WS144092a96ffef7cc-371badff126abc17b1f-7fff.html


Convert an Apple developer certificate to a P12 file on Windows

To develop iPhone applications using Flash CS5, you must use a P12 certificate file. You generate this certificate based on the Apple iPhone developer certificate file you receive from Apple.
  1. Convert the developer certificate file you receive from Apple into a PEM certificate file. Run the following command-line statement from the OpenSSL bin directory:
    openssl x509 -in developer_identity.cer -inform DER -out developer_identity.pem -outform PEM
  2. If you are using the private key from the keychain on a Mac computer, convert it into a PEM key:
    openssl pkcs12 -nocerts -in mykey.p12 -out mykey.pem
  3. You can now generate a valid P12 file, based on the key and the PEM version of the iPhone developer certificate:
    openssl pkcs12 -export -inkey mykey.key -in developer_identity.pem -out iphone_dev.p12
    If you are using a key from the Mac OS keychain, use the PEM version you generated in the previous step. Otherwise, use the OpenSSL key you generated earlier (on Windows).

Thursday, January 19, 2012

《天與地》 片尾曲 《年少無知》

After watching this Hong Kong Drama, it shows how real dramas can be.
My ex-partner was a liar and planned his exit 6 months before he quit. He registered an Interactive Technology company (even the company write up was similar to mine) in 2010 under the name of his friend and cousin (based on his lies) and claimed that he was only a technology consultant to them while he was a partner and employee drawing a salary from my company.
In order to free himself of more time to do projects for his other company behind my back, he got his wife to fake a case of catching him cheating on her and giving him hell. Threatening to divorce him etc. His wedding was happily held in 2011. Photos of the projects he did for his cousin's company was on Facebook and some had his wife in it as well. With a big smile of course.
He claims that he was caught in-between kinship (his cousin) and his partner,me. Therefore he did not disclose anything to me. And that he was obliged to help his cousin. That ass should have just quit. Now he is just a liar, betrayer and his conscience will prick him one day. I don't have to do anything to him. May he wake up one day and realize that he has done me wrong.

《天與地》 片尾曲 《年少無知》

作曲:黃貫中
填詞:林若寧
編曲:黃貫中、劉志遠
歌曲監製:黃貫中
主唱:林保怡、陳豪、黃德斌

林︰年少多好 頑劣多好
Good to be young, Good to be wild
不甘安於封建制度裡 迷信上街真理會達到
Not contented with the feudal system, believing that the truth will be found on the streets
旗幟高舉 群眾聲討
Rally with banners, despite public condemnation
不惜犧牲一切去上訴 權貴的想法太俗套
Sacrifice everything to appeal/promote, good ideas are too conventional
只可惜生活是一堆挫折 只可惜生命是必須妥協
It's a pity that life is a string of setbacks, a pity that we need to compromise in life

陳︰年少多好 貧困多好
Good to be young, good to be poor
一蚊積蓄足以快樂到 廉價結他抒發我暴躁
When a cent can make you happy, and a cheap guitar can express your frustrations
財富得到 年歲不保
When fortune is gained, life has passed
捐輸不必講究有回報 人世間總會有異數
Don't need to expect anything when you give, there will always be surprises in life
只可惜生活是一聲發洩 只可惜生命是一聲抱歉 怕追到
Its a pity that life is a howl of frustrations, a pity that life is but a word sorry, when the time comes.
合︰如果 命運能選擇
If we can choose our fate
十字街口 你我踏出的每步更瀟灑
We can navigate our crossroads with more flair
如果 活著能坦白
If life can be lived with honesty
舊日所相信價值 不必接受時代的糟蹋
Old values will not succumb to anachronism.

黃︰年少多好 朋友多好
Good to be young, good to have friends
一番爭執不會有被告 遊戲競爭不會記入腦
no dispute without a defendant, rat race will not be remembered
年歲增長 無法修補
Grow older, no way to make amendments
青春的詩總會老 時間多恐怖
The young chief poet will grow old, time is a scary thing

合︰如果 命運能選擇
If we can choose our fate
十字街口 你我踏出的每步無用困惑
We can choose our paths at the crossroads without confusion
如果 活著能坦白
If life can be lived with honesty
舊日所相信價值 今天發現還未老
Old values, not too late to realize them today.
如果 命運能演習
If fate can be practiced
現實中不致接納 一生每步殘酷抉擇
Don't need to accept the reality of, the brutal choices of every step in life
留守 過去的想法
Remember the past experiences
我會否好像這樣 生於世上 無目的鞭撻
Will I be like this, living on this earth, in eternal torture.

Translation of lyrics done by JC. please give me your comments. thanks