創業

Square, instagram, etc. 都是藉iPhone 及極少人數,造到超過十億美元身價。
Instagram, e.g.,最初只有七個人。
(其實9gag.com 四個人,截至今天都已達到可在創業版上市的市值)
這些故事,使行內it人很多創業幻想,創業,科投,集資,賣盤,一條方程式,單今年到現在都已有幾個億萬富翁,年輕像 “pair", 只是fresh grad, draw something 更是賣後就消失,都值二千萬美金。
我都是it 專才,有冇人想和我創業?:)
不過,對我來說,社會和諧,看教會更新及轉化,比純粹錢,更值,更不枉青春

Marmalade fixes lookup for developers

All Marmalade examples should be runnable after proper setup. (/Developer/Marmalade/6.0/examples/)

If any error comes up, there should be some settings to be added.

As at Marmalade 6.0, it is NOT yet a very complete system settings for OSX 10.7 and XCode 4.3.2.

This is a reference for shortcutting the problems you may meet on Marmalade 6.0

 

1.

Q: Can build for x86, but not ARM and Deploy Tool

A: Try install Marmalade GCC plugin. Located at /Developer/Marmalade/6.0/tools/xcode/.

Copy the file to /Users/(username)/Library/Application Support/Developer/Shared/Xcode/Plug-ins/

 

2.

Q: The error shown in Deploy Tool for iPhone: ERROR: codesign_allocate not found: /Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate

A: find the file: /Developer/Marmalade/6.0/s3e/deploy/plugins/iphone/sign_app.py, line 495

codesign_allocate = join(root, ‘Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate’)

change the path to:

codesign_allocate = join(root, ‘/usr/bin/codesign_allocate’)

 

Manage, the World

The major concept of management is “Uncertainty Minimizing"
Good management reduce uncertainty.
Bad management increase uncertainty.
Uncertainty always leads to resource allocation ineffectiveness.
~ a statement hit people with resonance, from management science professor

In my perspective, I recalled the Genesis 1. The Earth was chaos and void in the beginning, not only God arrange it into order in the 7-days creation, as well He command Man to manage the world and conquer chaos.
The Chaos/Uncertainty management, get resonance between Modern Management Science & the Bible.

Solutions to some weird problem

Provide here solutions to some difficult problems:

Q: <libxml/HTMLParser.h> file not found

A: Add “$SDK_DIR/usr/include/libxml2″ to “header search path" (not “library search path")

Q: ARC get error

A: You may skip ARC for those file not suitable to use ARC. Steps:

1. Go to Target0>Build Phases

2. Open “Compile Sources"

3. Select ALL files you want.

4. Press ENTER (don’t do mouse dbl-click)

5. Enter “-fno-objc-arc"

人生發展

二十多歲的時候,若不好好學習、見識,探索事業,卅歲的年紀便不能使事業上一層樓,事業流於平庸,或不能成為行內專家。

三十多歲的時候,若不拉闊事業根基,拓展行內頂尖專業競爭力,和個人特質,便在面臨四十歲的中年危機中受壓,高不成低不就,而且經濟不能負擔新家庭、兒女,再加上父母退休的肩擔期。

四十多歲,若沒有趁兒女年幼多陪伴和教育,就㑹在五十多歲時兒女進入暴風期時,與兒女脫勾。兒女可能因教養不足而出軌,構成終生之傷。而這階段,父母亦很需要照顧和關心,也㑹面臨多種健康挑戰。

五十多歲,是面臨退休之年。這年紀的關鍵就是安排退休生活,決定人生最後三分之一的事業發展與健康維持。沒錯,退休不是人生終結,而是以成熟與睿智去訓練下一代接班人。這時,除了兒女,個人接觸到的二十歲出頭的年輕人,都極需要人生教練。退休人仕,是充當這職份的最佳人選。而父母這時多已仙遊,成為所謂「中年孤兒期」。

二十歲前呢?十多歲,是要學習重要的社㑹技能與常識,學習基本社㑹與人生運作。若缺乏了學習,㑹影響二十多歲的事業發展。

十歲以下,是基礎學習。學習自己的情緒智商、人際技能、閱讀與表達能力、學習能力、思考能力、愛與被愛等等。這些學得好,就在十多歲進入社交學習期更輕易。

*  *  *

人生,說到底,是一份「管理一個生命的托負」。

每一階段都活得好,不輕易。但上天總有恩典,走錯過的路㑹有足夠時間和恩典可以回頭。而活得好的人總要得獎賞。

聖經有個故事說,人生如有個老闆,將幾千萬或上億價值的財富交給部下管理。有些人擁有得多,老闆也要求得多,擁有得少,老闆也要求得少。

這個財富,你有好好管理嗎?你希望人生終結時,㑹得到怎樣的評價呢?

----------------
後記:近日和朋友談人生有思考與學習,再總結以前的輔導經歷,以有上文。

Available font in iOS

Family: Thonburi
	Font: Thonburi-Bold
	Font: Thonburi

Family: Snell Roundhand
	Font: SnellRoundhand-Bold
	Font: SnellRoundhand-Black
	Font: SnellRoundhand

Family: Academy Engraved LET
	Font: AcademyEngravedLetPlain

Family: Marker Felt
	Font: MarkerFelt-Wide
	Font: MarkerFelt-Thin

Family: Geeza Pro
	Font: GeezaPro-Bold
	Font: GeezaPro

Family: Arial Rounded MT Bold
	Font: ArialRoundedMTBold

Family: Trebuchet MS
	Font: TrebuchetMS
	Font: TrebuchetMS-Bold
	Font: TrebuchetMS-Italic
	Font: Trebuchet-BoldItalic

Family: Arial
	Font: Arial-BoldMT
	Font: ArialMT
	Font: Arial-ItalicMT
	Font: Arial-BoldItalicMT

Family: Marion
	Font: Marion-Regular
	Font: Marion-Bold
	Font: Marion-Italic

Family: Gurmukhi MN
	Font: GurmukhiMN
	Font: GurmukhiMN-Bold

Family: Malayalam Sangam MN
	Font: MalayalamSangamMN-Bold
	Font: MalayalamSangamMN

Family: Bradley Hand
	Font: BradleyHandITCTT-Bold

Family: Kannada Sangam MN
	Font: KannadaSangamMN
	Font: KannadaSangamMN-Bold

Family: Bodoni 72 Oldstyle
	Font: BodoniSvtyTwoOSITCTT-Book
	Font: BodoniSvtyTwoOSITCTT-Bold
	Font: BodoniSvtyTwoOSITCTT-BookIt

Family: Cochin
	Font: Cochin
	Font: Cochin-BoldItalic
	Font: Cochin-Italic
	Font: Cochin-Bold

Family: Sinhala Sangam MN
	Font: SinhalaSangamMN
	Font: SinhalaSangamMN-Bold

Family: Hiragino Kaku Gothic ProN
	Font: HiraKakuProN-W6
	Font: HiraKakuProN-W3

Family: Papyrus
	Font: Papyrus-Condensed
	Font: Papyrus

Family: Verdana
	Font: Verdana
	Font: Verdana-Bold
	Font: Verdana-BoldItalic
	Font: Verdana-Italic

Family: Zapf Dingbats
	Font: ZapfDingbatsITC

Family: Courier
	Font: Courier-Bold
	Font: Courier
	Font: Courier-BoldOblique
	Font: Courier-Oblique

Family: Hoefler Text
	Font: HoeflerText-Black
	Font: HoeflerText-Italic
	Font: HoeflerText-Regular
	Font: HoeflerText-BlackItalic

Family: Euphemia UCAS
	Font: EuphemiaUCAS-Bold
	Font: EuphemiaUCAS
	Font: EuphemiaUCAS-Italic

Family: Helvetica
	Font: Helvetica-LightOblique
	Font: Helvetica
	Font: Helvetica-Oblique
	Font: Helvetica-BoldOblique
	Font: Helvetica-Bold
	Font: Helvetica-Light

Family: Hiragino Mincho ProN
	Font: HiraMinProN-W3
	Font: HiraMinProN-W6

Family: Bodoni Ornaments
	Font: BodoniOrnamentsITCTT

Family: Apple Color Emoji
	Font: AppleColorEmoji

Family: Optima
	Font: Optima-ExtraBlack
	Font: Optima-Italic
	Font: Optima-Regular
	Font: Optima-BoldItalic
	Font: Optima-Bold

Family: Gujarati Sangam MN
	Font: GujaratiSangamMN
	Font: GujaratiSangamMN-Bold

Family: Devanagari Sangam MN
	Font: DevanagariSangamMN
	Font: DevanagariSangamMN-Bold

Family: Times New Roman
	Font: TimesNewRomanPS-ItalicMT
	Font: TimesNewRomanPS-BoldMT
	Font: TimesNewRomanPSMT
	Font: TimesNewRomanPS-BoldItalicMT

Family: Kailasa
	Font: Kailasa
	Font: Kailasa-Bold

Family: Telugu Sangam MN
	Font: TeluguSangamMN-Bold
	Font: TeluguSangamMN

Family: Heiti SC
	Font: STHeitiSC-Medium
	Font: STHeitiSC-Light

Family: Apple SD Gothic Neo
	Font: AppleSDGothicNeo-Bold
	Font: AppleSDGothicNeo-Medium

Family: Futura
	Font: Futura-Medium
	Font: Futura-CondensedExtraBold
	Font: Futura-CondensedMedium
	Font: Futura-MediumItalic

Family: Bodoni 72
	Font: BodoniSvtyTwoITCTT-BookIta
	Font: BodoniSvtyTwoITCTT-Book
	Font: BodoniSvtyTwoITCTT-Bold

Family: Baskerville
	Font: Baskerville-SemiBoldItalic
	Font: Baskerville-Bold
	Font: Baskerville-Italic
	Font: Baskerville-BoldItalic
	Font: Baskerville-SemiBold
	Font: Baskerville

Family: Chalkboard SE
	Font: ChalkboardSE-Regular
	Font: ChalkboardSE-Bold
	Font: ChalkboardSE-Light

Family: Heiti TC
	Font: STHeitiTC-Medium
	Font: STHeitiTC-Light

Family: Copperplate
	Font: Copperplate
	Font: Copperplate-Light
	Font: Copperplate-Bold

Family: Party LET
	Font: PartyLetPlain

Family: American Typewriter
	Font: AmericanTypewriter-CondensedLight
	Font: AmericanTypewriter-Light
	Font: AmericanTypewriter-Bold
	Font: AmericanTypewriter
	Font: AmericanTypewriter-CondensedBold
	Font: AmericanTypewriter-Condensed

Family: Bangla Sangam MN
	Font: BanglaSangamMN-Bold
	Font: BanglaSangamMN

Family: Noteworthy
	Font: Noteworthy-Light
	Font: Noteworthy-Bold

Family: Zapfino
	Font: Zapfino

Family: Tamil Sangam MN
	Font: TamilSangamMN
	Font: TamilSangamMN-Bold

Family: DB LCD Temp
	Font: DBLCDTempBlack

Family: Arial Hebrew
	Font: ArialHebrew
	Font: ArialHebrew-Bold

Family: Chalkduster
	Font: Chalkduster

Family: Georgia
	Font: Georgia-Italic
	Font: Georgia-BoldItalic
	Font: Georgia-Bold
	Font: Georgia

Family: Helvetica Neue
	Font: HelveticaNeue-Bold
	Font: HelveticaNeue-CondensedBlack
	Font: HelveticaNeue-Medium
	Font: HelveticaNeue
	Font: HelveticaNeue-Light
	Font: HelveticaNeue-CondensedBold
	Font: HelveticaNeue-LightItalic
	Font: HelveticaNeue-UltraLightItalic
	Font: HelveticaNeue-UltraLight
	Font: HelveticaNeue-BoldItalic
	Font: HelveticaNeue-Italic

Family: Gill Sans
	Font: GillSans-LightItalic
	Font: GillSans-BoldItalic
	Font: GillSans-Italic
	Font: GillSans
	Font: GillSans-Bold
	Font: GillSans-Light

Family: Palatino
	Font: Palatino-Roman
	Font: Palatino-Bold
	Font: Palatino-BoldItalic
	Font: Palatino-Italic

Family: Courier New
	Font: CourierNewPSMT
	Font: CourierNewPS-BoldMT
	Font: CourierNewPS-BoldItalicMT
	Font: CourierNewPS-ItalicMT

Family: Oriya Sangam MN
	Font: OriyaSangamMN-Bold
	Font: OriyaSangamMN

Family: Didot
	Font: Didot-Italic
	Font: Didot
	Font: Didot-Bold

Family: Bodoni 72 Smallcaps
	Font: BodoniSvtyTwoSCITCTT-Book

Callbacks

There are many different callbacks method signatures in iOS. Most of the time programmers may not recall all of them when they come to use.

Here I provide a check list of different call backs. Will add incrementally.

<GestureRecognizer>

UITapGestureRecognizer* gest_0 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tap_view)];
[control_0 addGestureRecognizer:gest_0];
- (void)tap_view:(UITapGestureRecognizer*)recognizer{
   UIButton* btn_sender = (UIButton*)[recognizer view];
}

<NSTimer>

[NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(timer_callback:) userInfo:button repeats:FALSE];

-(void) timer_callback:(id)user_info{
   UIButton* btn_0 = (UIButton*)user_info;
}

<Multi-Threading>

[NSThread detachNewThreadSelector:@selector(threaded_function:) toTarget:self withObject:button];

-(void) threaded_function:(id) param{
   UIButton* btn_0 = (UIButton*)user_info;
}