投稿

SSDの起動タイム

MacBookPro 17inch(6,2) Intel 320 Series SSDSA2CW300G3K5(300G)の起動時間の比較 起動時間メモ rEFit  OS選択メニューまで約8秒 MacOSX起動 Total約17秒 (さらにResume復帰が高速、約3秒) rEFit->grub2メニューまで約20秒     Ubuntu10.11 (ahci mode/no swap) Total約40秒      Windows7 (ide mode)Total約44秒 grub2までIDEモードが立ち上がるため、grub2までの時間が長いのが欠点。それ以降もちょと遅め。ディフォルトではSSD向けにチューンしていないのか? また、レジュームへの復帰がHDD並に遅い(約18秒)。 Windows7は全てIDEモードのため、一番遅い。Appleがboot campで正式対応するまで危険なのでahciにはしない方針。 尚、当たり前かもしれないがMacOSXはSSD対応に対して成熟している。 既にSSD対応Macを多く発売しているのでチューンは確実におこなわれていると感じた。 PS MacOSXの起動は速いが問題はルーター(Apple Airbase)との接続が 相性のためか うまく行かず、接続するために2,3分かかることがある。 Linuxはルーターとの相性はよく瞬時につながる。Windows7は少し遅めだがつながる。

WebGL

WebGLを使う上で便利なリンク集 WebGL http://www.khronos.org/webgl/ WebGLのデバックツール 情報源: http://www.youtube.com/watch?v=7sad-UGSOXE&feature=uploademail http://www.khronos.org/webgl/wiki/Debugging webgl-inspector http://benvanik.github.com/WebGL-Inspector/ webgl-debug.js https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/debug/webgl-debug.js Printing Errors and other constants WebGLDebugUtils. init ( ctx ) ; alert ( WebGLDebugUtils. glEnumToString ( ctx. getError ())) ; glsl-unit Unit Ttest http://code.google.com/p/glsl-unit/ three.js WebGLのミドルウェア https://github.com/mrdoob/three.js/ stats.js FPSを表示してくれる https://github.com/mrdoob/stats.js detector.js WebGLのサポートされているVIDEOカード、またはブラウザかを判断する github three.js内に含まれる see example/ WebGLの環境情報取得 http://get.webgl.org/

emacsを快適に使う

最近のemacsは CUAモードのONとX-WidnowとClipboard統一をおこなったほうが、幸せになります。 (cua-mode t) (setq cua-auto-tabify-rectangles nil) ;; Don't tabify after rectangle commands (transient-mark-mode 1) ;; No region when it is not highlighted (setq cua-keep-region-after-copy t) ;; Standard Windows behaviour ;; Xとクリップボード共通 (setq x-select-enable-clipboard t) (setq interprogram-paste-function 'x-cut-buffer-or-selection-value)

node.jsのチュートリアルなど

http://nodetuts.com/index.html module.exportsの説明VIDEO http://nodetuts.com/tutorials/17-building-nodejs-modules.html e-bookは http://nodetuts.com/handson-nodejs-book.html がわかりやすいと思った。 この本で引用されているUrls Node.jsの説明 http://debuggable.com/posts/understanding-node-js:4bd98440-45e4-4a9a-8ef7-0f7ecbdd56cb Dependency Injection http://martinfowler.com/articles/injection.html Steve Yegge’s masterpiece Execution in the Kingdom of Nouns http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html Create Advanced Web Applications With Object-Oriented Techniques http://msdn.microsoft.com/en-us/magazine/cc163419.aspx

イベントハンドラの呼ばれる順

イベントハンドラの呼ばれる順に依存するコードは避けるべきという記述がパーフェクトJavascriptにあった。当然と思う。以前にWIN32のプログラムを作成しているときに、確実性がなくて最後まで不安だった箇所もそのコードふきんだったからだ。特にアプリケーション終了時におけるメモリリークを防止したりするコードは複雑であった。(ウィンドウが4,5以上存在し、マルチスレッドで多くのスレッドがあった)重要な心得だと思う。

Gypにgypされた。

v8をandroid用にコンパイルする際、クロスプラットフォームプロジェクトツールの Gyp に騙された(笑) $ make android -j16 CC="/usr/local/android-ndk-r7/ toolchain/bin/arm-linux- androideabi-gcc" \ build/gyp/gyp --generator-output="out" build/all.gyp \               -Ibuild/standalone.gypi --depth=. -Ibuild/android.gypi \               -S-android  -Dv8_can_use_vfp_ instructions=true Traceback (most recent call last):   File "build/gyp/gyp", line 18, in <module>     sys.exit(gyp.main(sys.argv[1:] ))   File "/usr/lib/pymodules/python2.7/ gyp/__init__.py", line 457, in main     options.circular_check)   File "/usr/lib/pymodules/python2.7/ gyp/__init__.py", line 101, in Load     depth, generator_input_info, check, circular_check)   File "/usr/lib/pymodules/python2.7/ gyp/input.py", line 2275, in Load     [dependency_nodes, flat_list] = BuildDependencyList(t...

cygwinのgitkが使い勝手が悪くなった。

正直な話、これには失望してしまった。 Tcl/Tkの仕様変更のためX-Serverが必要となった。(後日、動作するようにした。 ココを参考 ) $ gitk Application initialization failed: no display name and no $DISPLAY environment variable Error in startup script: no display name and no $DISPLAY environment variable     while executing "load /usr/lib/tk8.5/../../bin/libtk8.5.dll Tk"     ("package ifneeded Tk 8.5.11" script)     invoked from within "package require Tk"     (file "/usr/bin/gitk" line 10) このcygwinの変更は何を血迷っているのかと思うほど、cygwinの使い勝手を悪くしてしまったと思う。 動作しない原因は以下に記してある。 http://cygwin.com/ml/cygwin/2012-02/msg00115.html Tcl/Tkの仕様変更が原因。X-serverを立ち上げれば動作するようだが(xint, xorg-serverなど)、環境によって不安定になってしまい。 使いものにならなくなってしまった。cygwinは日本語対応(utf-8)が安定していたし、多くのツールが使えるので残念である。 使いにくいがgit純正windows版(migw32を応用)のほうが幸せになれるので 、しばらくそちらを使うことにして 、cygwinは元に戻らないかと期待しつつ様子を伺う. 追伸: X-serverで動作するようにした。 http://git-scm.com/