イナヅマTVログ

2009.03.02
18:20
author: taikiken
0件のコメント

曇らない眼でネットは見なくちゃいけないんだ

ネットは便利だけど使い方を間違うといけないとあらためて思わずにいられないできごと。
真実と虚実が入り交じってるいるのがネットでそこにあるものを鵜呑みにしちゃイケナイよね、な話。

US Wired blog に Why the Japanese Hate the iPhone な記事。
日本でiPhoneのセールスがうまくいってなくて、その理由として nobi hayashi(林伸行さん)と Daiji Hirata さんが「iPhoneよりP905iのほうがイケテルから」なことを言ったと引用されてる・・・(超要約)

どうもこれが真実ではなかったらしい。
そもそも記事に引用されている言葉を2人は喋っていない。
ブログ記事の元ネタに使われているマスメディア(日本の新聞)記事がそもそもちゃんと取材をしていなくて根拠が怪しい。
ブログを書いた人間は独自の調査をせず記事の裏付けもとらずそのまま引用してしまった。

よくある注目を浴びるために書かれた様子。

ことの顛末はそれぞれご本人のブログに詳しく書かれているのでご参照あれ。

My view of how iPhone is doing in Japan by Nobi (Nobuyuki Hayashi)
nobilog2 : マスコミもブログも、兜の緒を締める頃合い!?

About “Why the Japanese Hate the iPhone.” : Daiji Hirata

Apple Insider
http://www.appleinsider.com/articles/09/02/28/japanese_hate_for_iphone_all_a_big_mistake.html

またやっちゃったよ、Wired!

2009.03.02
15:40
author: taikiken
0件のコメント

FiTC Amsterdam 2009, 講演資料をダウンロードしまショ

FiTC Amsterdam 2009 での講演資料をダウンロードできるようにしてくれている方がいます。
ありがたく、使わせていただきましょう。

BIT-101 Blog Keith Peters
キーノートドキュメントとflaファイルがダウンロードできます。
FiTC Amsterdam のスークロールしてスクロールしたトコ。

Andre Michelle
FITC Amsterdam Source Codes
ランタイムサウンド生成のActionscriptファイル。

お二人ともFlash界隈では超がつく有名人。
ありがたいです。

FiTCに限らず海外では Flash & Flex なカンファレンスが活発なんだね。
Flash on the Beach なんていかにも楽しそうな催しもあってるみたいだし。

2009.03.01
05:43
author: taikiken
0件のコメント

hobnox, クールなデモビデオ

hobnox チームの Kai-Philipp さんがクールなデモビデオをアップしてた。

こんなご機嫌なマシンが使えるとイイネ。

Live もおまかせ、あのキューブはナニ!?

Hobnox Audiotool Live Performance from joa e on Vimeo.

hobnox は次々と機能を追加してますますイカしたサイトになってる。

2009.03.01
05:26
author: taikiken
0件のコメント

Flash で Guiter synthesizer

神 Andre Michelle がまた気になるエントリーとサンプルをアップ。
Flash で Guiter を演奏している。

ブログエントリー
Karplus-Strong Algorithm
aM laboratory
Karplus-Strong Guitar

FITC Amsterdam 2009 で最初のデモをしてきたらしい。

超クールなデモ!
ギター音が Flash でリアルタイム・エフェクト再生されている。

アルゴリズムの Karplus-Strong string synthesis は、Wikipedia 先生によると・・・
難しすぎて良くわからない。。。

ただこの理論が特許で押さえられている可能性があるらしい。

hobnox チームは guiter synthesizer plugin を開発中らしいけど、この件が障害になるとしたら心配です。

2009.02.28
12:01
author: taikiken
0件のコメント

UNIQLOCK, COLOR PARKA X COLOR JEANS

あれ、いつのまにか UNIQLOCK がアップデートしてる。

相変わらず、高解像度動画をストレスなく再生させているのは見事。
Flash Player は 9.0.45 から、ということは動画CODECは On2VP6、キレイダ。
解像度は 960 x 540 の HD解像度。

小気味良い、と言いたいところだけど・・・
同じ映像が続けて繰り返される確率が高い。
以前のUNIQLOCKには無かったことなので、アルゴリズムが変更されたのかも。

でも同じ映像が2回続くと、「あれっ見たよナ」な感じがしてちょっと違和感がある。
パーカーの色とかが変わってるのかと思ったりして見てるけど、それはない様子。
3回連続することもあるんだね。
続きを読む →

2009.02.27
01:42
author: taikiken
1件のコメント

今さらながら ActionScript 3 コーディング規約

Adobe Open Source
Flex SDKコード記述に関する規則とベストプラクティス

かなり前に英文しか無かったドキュメントの翻訳版。
翻訳自体も2008-05-19、すいぶん前の話。
Flex で調べたいことがあったので Adobe のサイトでガサガサしてたらこのページへたどり着いた。

久しぶりに見たのでクリップしておく。

かなり「後日発表予定」が目につく、で後日ってイツ?
原文も同じ項目が TBD になってるので翻訳の問題ではなさそう。

気になったところをメモ。

続きを読む →

2009.02.26
17:54
author: taikiken
3件のコメント

iPhone SDK, UIWebView で Flip, Autoresize

UIWebView フレームワークを使って Web ページを表示した。

表示は簡単だったけど、これに Flip の機能をどうやって実装するのか悩んだ。
できてしまえば「簡単」だったけど、そこにたどり着くのは少々遠かった。
自分のためにメモしとく。

Controller.m

- (void)loadView {
	[ super loadView ];
	CGRect bounds = [ [ UIScreen mainScreen ] applicationFrame ];
	webView = [ [ UIWebView alloc ] initWithFrame:CGRectMake(0.0, 0.0, bounds.size.width, bounds.size.height) ];
	webView.scalesPageToFit = YES;
	webView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
	[ self.view addSubview:webView ];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
	return YES;
}

webView.scalesPageToFit = YES;
webView.autoresizingMask = UIViewAutoresizingFlexibleWidth;

に設定することと
shouldAutorotateToInterfaceOrientation return YES;// true すれば良かったんだね。

後はフレームワークが勝手にやってくれるらしい。

iPhone SDK, UIWebView+Flip

iPhone SDK 付属のシュミレーターで当サイトを立て向きで表示した後に横にFlipした時にウインドウサイズに合わせて表示領域を拡大するの画。
ハードハッカーには幼稚園レベルでも、これができただけでもかなりうれしい。
暗黙(?)のイベントとコールバックな関係がまだつかめていない。

2009.02.26
02:35
author: taikiken
0件のコメント

iPhone SDK, Flip : 向きの変更

iPhone デベロッパーズ クックブック レシピ 2-2。
コードをヘッダー、ソースと分けてみた。

プロジェクト名:RotateView

.xib, .nib ファイルを削除。

RotateViewAppDelegate.h

#import <UIKit/UIKit.h>
 
@class RotateViewViewController;
 
@interface RotateViewAppDelegate : NSObject <UIApplicationDelegate> {
    UIWindow *window;
    RotateViewViewController *viewController;
}
 
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet RotateViewViewController *viewController;
 
@end

RotateViewAppDelegate.m

#import "RotateViewAppDelegate.h"
#import "RotateViewViewController.h"
 
@implementation RotateViewAppDelegate
 
@synthesize window;
@synthesize viewController;
 
- (void)applicationDidFinishLaunching:(UIApplication *)application {    
	window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
	viewController = [[RotateViewViewController alloc] init];    
	[window addSubview:[ viewController view]];
    [window makeKeyAndVisible];
}
 
- (void)dealloc {
    [viewController release];
    [window release];
    [super dealloc];
}
 
@end

RotateViewViewController.h

#import <UIKit/UIKit.h>
 
@interface RotateViewViewController : UIViewController {
}
 
@end

RotateViewViewController.m

#import "RotateViewViewController.h"
 
@implementation RotateViewViewController
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)orientation duration:(NSTimeInterval)duration  {
 
	CGRect apprect;
	apprect.origin = CGPointMake(0.0f, 0.0f);
 
	if ((orientation == UIInterfaceOrientationLandscapeLeft) || (orientation == UIInterfaceOrientationLandscapeRight))
		apprect.size = CGSizeMake(480.0f, 300.0f);
	else
		apprect.size = CGSizeMake(320.0f, 460.0f);
 
	// Iterate through the subviews and inset each item
	float offset = 32.0f;
	for (UIView *subview in [self.view subviews])	
	{
		CGRect frame = CGRectInset(apprect, offset, offset);
		[subview setFrame:frame];
		offset += 32.0f;
	}
}
 
- (void)loadView
{
	// Create the main view
	UIView *contentView = [[UIView alloc] initWithFrame: [[UIScreen mainScreen] applicationFrame]];
	contentView.backgroundColor = [UIColor whiteColor];
	self.view = contentView;
	 [contentView release];
 
	// Get the view bounds as our starting point
	CGRect apprect = [contentView bounds];
 
	// Add each inset subview
	UIView *subview = [[UIView alloc] initWithFrame:CGRectInset(apprect, 32.0f, 32.0f)];
	subview.backgroundColor = [UIColor lightGrayColor];
	[contentView addSubview:subview];
	[subview release];
 
	subview = [[UIView alloc] initWithFrame:CGRectInset(apprect, 64.0f, 64.0f)];
	subview.backgroundColor = [UIColor darkGrayColor];
	[contentView addSubview:subview];
	[subview release];
 
	subview = [[UIView alloc] initWithFrame:CGRectInset(apprect, 96.0f, 96.0f)];
	subview.backgroundColor = [UIColor blackColor];
	[contentView addSubview:subview];
	[subview release];
}
 
// Allow the view to respond to all iPhone Orientation changes
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
	return YES;
}
 
 
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview
    // Release anything that's not essential, such as cached data
}
 
 
- (void)dealloc {
    [super dealloc];
}
 
@end

main.m

#import <UIKit/UIKit.h>
 
int main(int argc, char *argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    int retVal = UIApplicationMain(argc, argv, nil, @"RotateViewAppDelegate");
    [pool release];
    return retVal;
}

分からないことだらけ。
#import は PHP の require_once() と同じように働くらしい。
SDKの説明に「2回以上インクルードしない」と書いてあった。

2009.02.25
21:35
author: taikiken
0件のコメント

Flash Player 10 update, 10.0.22.87

Flash Player 10 のニューバージョンがリリースされた。
今度のヴァージョンは 10.0.22.87。

Flash Audio + IE7 でブラウザがクラッシュ?
IE7 + Flash Player 10.0.12.36 + Audio 再生中に CONTROL + N で新規ウインドウを立ち上げるとブラウザがクラッシュする、はFixされた。
Adobe bugjira
SampleDataEvent playback in IE7 window crashes browser when new Flash window displayed

新プレイヤーは下記のURLから。
http://get.adobe.com/jp/flashplayer/

デバッグ版はまだらしい。

ところで、ヴァージョン表記の区切り文字は「ドット」と「カンマ」のどっち。
http://get.adobe.com/jp/flashplayer/ は「ドット」。
http://www.adobe.com/jp/support/flashplayer/ts/documents/tn_15507.htm は「カンマ」。

update
http://www.adobe.com/support/documentation/en/flashplayer/10/Flash_Player_10_Release_Notes.pdf
10.0.22.87の修正点が書かれたPDF。

Flash Player update available to address security vulnerabilities

デバック版も用意されていた。
Adobe Flash Player Support Center

セキュリティアップデートが含まれているのでアップデートは必須。

Adobe AIR 1.5.1

AIR も 1.5.1にアップデートされていた。

2009.02.25
20:58
author: taikiken
0件のコメント

iPhone が実質 0円!

SoftBank が iPhone for everybody キャンペーンを始めている。

iPhone 8G 契約で端末料金と同等の金額が割引され実質0円になるらしい。

ホワイトプラン 980
S!ペーシック 315
パケット定額 1029 ~ 4410
月月割(24回) -1280
機種代金(24回) 1280
合計 2324 ~

パケット定額フルの上限価格も下がっている。

次期端末発売前の在庫一掃セール?
Best Buy でも$100ディスカウントをやってるな話もあったりして、iPhone次期端末発売は近いのでしょうか?

これは「買い!」なのでしょうか?
それとも「グッ」と我慢のしどころ?