星期日, 12月 14, 2014
星期四, 7月 05, 2012
Solve Tic Tac Toe with the MiniMax algorithm
星期一, 7月 02, 2012
How to Own Your Startup’s Niche
http://www.readwriteweb.com/start/2012/06/how-to-own-your-startups-niche.php
1. Create a Blue Ocean Strategy
2. Put Your Branding to Work
3. Mind the Gap!
4. Choose to Serve a Niche Audience
5. Rebrand Your Customer, Not Your Product
6. The Power of Information
7. Let the Community Speak
星期日, 7月 01, 2012
星期二, 5月 29, 2012
iphone developing sdk sample tools
-
SAMPLE
2-01. Web APIの使い方とMapKitを用いた地図の表示(徳井直生)
-
RECIPE
3-02. MPMoviePlayerControllerを自由に扱う―岡村浩志(Ages5&up / Delaware)
→TweetMap.zip
2-03. HTML+CSS+JavaScriptで作るWebアプリ(大宮聡之)
→viewer.zip
書き出したファイル:viewerフォルダ
→MyFirstCocos2d.zip
→PacBoy.zip
→CakeCutterLite.zip
2-07. 目的に特化したテーブルビューの使い方(バスケ)
→0207project.zip
2-08. カメラを使った音のエフェクターの開発(笠谷真也)
→CameraFilter.zip
→CameraFilter-iOS4.zip
→P2P.zip
→Downloader.zip
→SampleMovie.zip
3-03. CustomFontLabelクラス―岡村浩志(Ages5&up / Delaware)
→CustomFont.zip
→SimpleTable1.zip
3-05. テーブルビューレシピ2―データの保存―バスケ(関心空間)
→SimpleTable2.zip
3-06. テーブルビューレシピ3―WebKitを使う―バスケ(関心空間)
→SimpleTable3.zip
3-07. テーブルビューレシピ4―セルの再利用―バスケ(関心空間)
→Ekidata1.zip
3-08. テーブルビューレシピ5―グループテーブルビュー―バスケ(関心空間)
→Preferences.zip
3-09. テーブルビューレシピ6―セルのカスタマイズとパフォーマンス―バスケ(関心空間)
→Ekidata2.zip
- 追記
-
cocos2dのインストール(本文P100)
cocos2dのバージョンによってはインストールスクリプトのファイル名が異なるため、正しくインストールできない場合があります。その場合は下記のコマンドに変更してください。
$ ./install-templates.sh -u
- (void) start
{
if (![self isCancelled]) {
// キー値監視を登録する
[self addObserver:_observer
forKeyPath:@"isFinished"
options:NSKeyValueObservingOptionNew
context:(void *)_tag];
// フラグを設定する
[self setValue:[NSNumber numberWithBool:YES] forKey:@"isExecuting"];
// ダウンロードを開始する
// iOS 4.0対応の為
//_data = [[NSMutableData data] retain];
//_connection = [NSURLConnection connectionWithRequest:_request delegate:self];
[self performSelectorOnMainThread:@selector(startConnection) withObject:nil waitUntilDone:NO];
}
}
- (void) startConnection
{
_data = [[NSMutableData data] retain];
_connection = [NSURLConnection connectionWithRequest:_request delegate:self];
NSLog(@"ダウンロード 開始 %@", [_request URL]);
}
星期三, 5月 09, 2012
mac print screen command
-
Hold down Apple key ⌘ + Shift + 3 and release all
- then use your mouse to click on the screen
- Done. You will see a picture file in at your desktop. That’s the screen capture picture.
- Switch to the screen that you wan to to do screen capture
-
Hold down Apple key ⌘ + Shift + 4 and release all key
- Now, You will see the mouse cursor will change to +
- You can start to drag your mouse to select the portion you wish to capture.
- Once finish, you will see a picture file in at your desktop. That’s the screen capture picture!
- Switch to the screen that you wan to to do screen capture
-
Hold down Apple key ⌘ + Shift + 4 and release all key
- Now, You will see the mouse cursor will change to +
- Press the space bar once
- You will see the mouse cursor change to a camera
- Now you can use the camera to select which application window to screen capture
- Once finish, you will see a picture file in at your desktop. That’s the screen capture picture!
Dewitt Jones photo
http://www.dewittjones.com/keynotes.htm
星期日, 2月 19, 2012
新中國郵票的分類與識別
根據國家郵政局郵票分類辦法,郵票有以下幾類:
一、 普通郵票:沒有特定的題材,圖案較為簡單,票麵無發行誌號、印刷年份、排列序號等。如:普29《長城》郵票一套4枚。見下圖。
星期五, 11月 18, 2011
星期一, 11月 07, 2011
cocos2d Open Source Game projects
• Author: http://kwigbo.com
• Homepage: http://kwigbo.com/private/305272732/tumblr_
kve45bK4RO1qav61q
• License: http://creativecommons.org/licenses/by-sa/3.0/us/
DeBlock
• Author: http://www.lhunath.com/
• Homepage: http://www.lhunath.com/
• License: Open Source (URL)
Gorillas
• Author: http://kwigbo.com
• Homepage: http://kwigbo.com/private/305272732/tumblr_
kve45bK4RO1qav61q
• License: http://creativecommons.org/licenses/by-sa/3.0/us/
Grabbed
• Author: http://ortatherox.com/
• Homepage: http://ortatherox.com/grabbed/
• License: Open source
Pusher
• Author: http://kwigbo.com
• Homepage: http://kwigbo.com/post/335053103/pusher-source-code
• License: http://creativecommons.org/licenses/by/3.0/us/
Thrown
• Author: http://ortatherox.com/
• Homepage: http://ortatherox.com/thrown/
• License: Open source
Tweejump
• Author: http://iplayful.com
• Homepage: http://github.com/haqu/tweejump
• License: Open source
Sapus Tongue
• Author: http://www.sapusmedia.com/
• Homepage: http://www.sapusmedia.com/sources
星期一, 10月 31, 2011
星期日, 10月 30, 2011
星期六, 10月 29, 2011
星期日, 10月 23, 2011
星期五, 10月 21, 2011
星期三, 10月 12, 2011
cocos2d Open Source Game projects
Open Source Game projects
Ordered alphabetically
ABC123
- Author: kwigbo
- Features: Mixture of cocos2d and UIKit
- Homepage: http://kwigbo.tumblr.com/abc123
- How to use: Open project in xcode - Build and Go
Artifice
- Author: kwigbo
- Features
- Cocos2d / UIKit mixture
- OpenFeint integration
- Push Notifications via Urban Airship
- Online turn based multiplayer
- App Engine application backend (Source Included)
Climbers
- Author: haqu
- Features
- ipad
- zwoptex spritesheets
- smooth vertical scrolling
- particle system
- verlet rope
- music and sound
- actions
- menu
- Homepage: https://github.com/haqu/climbers
- License: Open Source (MIT)
DeBlock
- Author: Lhunath
- Features:
- Cocos2D-iPhone
- TouchJSON
- Music/Audio
- Homepage: http://deblock.lhunath.com
- How to use: See “Versions” tab on game homepage
- License: Open Source (JRL)
Gorillas
- Author: Lhunath
- Features:
- cocos2d
- music/audio
- Homepage: http://gorillas.lhunath.com
- How to use: Follow instructions from game homepage
- License: Open Source (JRL)
Grabbed
- Author: orta
- Features:
- chipmunk physics
- chipmunk collisions
- Homepage: http://ortatherox.com/grabbed/
- How to use: load Skeleton.xcodeproj then Build & Go
- License: Open Source
Pusher
- Author: kwigbo
- Features: This is a simple game shell that uses Tiled tile map editor for creating a scrolling tile based map.
- TileMapAtlas
- How to use: Open project in xcode - Build and Go
Thrown
- Author: orta
- Features:
- chipmunk physics
- chipmunk collisions
- Homepage: http://ortatherox.com/thrown/
- How to use: load Skeleton.xcodeproj then Build & Go
- License: Open Source
Tweejump
- Author: haqu
- Features:
- vertical scrolling
- BitmapFontAtlas
- Homepage: https://github.com/haqu/tweejump
- License: Open Source (MIT)
Commercial Game projects
Sapus Tongue
- Author: Sapus Media
- Features
- iAd / adMob
- Sprite and Spritesheet
- Parallax
- Menu
- Chipmunk collisions
- Sound
- Transitions
- cocosLive
- Homepage: http://www.sapusmedia.com/sources
- License: Commercial
cocos2d Basic Concepts
cocos2d Basic Concepts
There are some basic concepts introduced in this library that you will need to know when developing a cocos2d application:
Scenes
A scene (implemented with the CCScene object) is more or less an independent piece of the app workflow. Some people may call them “screens” or “stages”. Your app can have many scenes, but only one of them is active at a given time.
For example, you could have a game with the following scenes: Intro, Menu, Level 1, Cutscene 1, Level 2, Winning cutscene, losing cutscene, High scores screen.
You can define every one of these scenes more or less as separate apps; there is a bit of glue between them containing the logic for connecting scenes (the intro goes to the menu when interrupted or finishing, Level 1 can lead you to the cutscene 1 if finished or to the losing cutscene if you lose, etc.).
A cocos2d CCScene is composed of one or more layers (implemented with the CCLayer object), all of them piled up. Layers give the scene an appearance and behavior; the normal use case is to just make instances of Scene with the layers that you want.
There is also a family of CCScene classes called transitions (implemented with the CCTransitionScene object) which allow you to make transitions between two scenes (fade out/in, slide from a side, etc).
Since scenes are subclasses of CCNode, they can be transformed manually or by using actions. See Actions for more detail about actions.
Director
The CCDirector is the component which takes care of going back and forth between scenes.
The CCDirector is a shared (singleton) object. It knows which scene is currently active, and it handles a stack of scenes to allow things like “scene calls” (pausing a Scene and putting it on hold while another enters, and then returning to the original). The CCDirector is the one who will actually change the CCScene, after a CCLayer has asked for push, replacement or end of the current scene.
The CCDirector is also responsible for initializing OpenGL ES.
Layers
A CCLayer has a size of the whole drawable area, and knows how to draw itself. It can be semi transparent (having holes and/or partial transparency in some/all places), allowing to see other layers behind it. Layers are the ones defining appearance and behavior, so most of your programming time will be spent coding CCLayer subclasses that do what you need.
The CCLayer is where you define event handlers. Events are propagated to layers (from front to back) until some layer catches the event and accepts it.
Although some serious apps will require you to define custom CCLayer classes, cocos2d provides a library of useful predefined layers (a simple menu layer: CCMenu, a color layer: CCColorLayer, a multiplexor between other layers: CCMultiplexLayer, and more ).
Layers can contain CCSprite objects, CCLabel objects and even other CCLayer objects as children.
Since layers are subclass of CCNode, they can be transformed manually or by using actions. See Actions for more detail about actions.
Sprites
A cocos2d' sprite is like any other computer sprite. It is a 2D image that can be moved, rotated, scaled, animated, etc.
Sprites (implemented using the CCSprite class) can have other sprites as children. When a parent is transformed, all its children are transformed as well.
Since sprites are subclass of CCNode, they can be transformed manually or by using actions. See Actions for more detail about actions.





