HTC Vive TrackerをUnityでHMDレスで使いたい時に出るエラーを回避する

【Unity】ViveのHMDなしにTrackerを使う - てんちょーの技術日誌

先人の知恵を参考に動作確認してみたところ、Init_HmdNotFoundPresenceFailedって出て、一度はHMD接続しないとダメっぽかった。
ググってみたところ、設定ファイル2つ編集してdriver_null( = non-physical HMDとのことらしい)を有効化すれば接続不要にできるとか。


First
Just add

"activateMultipleDrivers" : true,

to near the top of the "steamvr" section of your steamvr.vrsettings config file. Using

"forcedDriver": "null",

in steamvr.vrsettings helps make sure the non physical display be used even when there is a physical hmd connected.

{
   "steamvr" : {
      "activateMultipleDrivers" : true,
      "forcedDriver": "null",
      "allowAsyncReprojection" : false,
      "allowInterleavedReprojection" : false,
      "allowSupersampleFiltering" : false,
      "enableHomeApp" : false,
      "mirrorViewGeometry" : "1387 675 2272 1270",
      "showMirrorView" : true
   }
}

C:\Program Files (x86)\Steam\config\steamvr.vrsettings

Secondly
Set enable to true in null driver to enable it.

{
	"driver_null" : {
		"enable" : true,
		"serialNumber" : "Null Serial Number", 
		"modelNumber" : "Null Model Number",
		"windowX" : 0,
		"windowY" : 0,
		"windowWidth" : 1920,
		"windowHeight" : 1080,
		"renderWidth" : 1920,
		"renderHeight" : 1060,
		"secondsFromVsyncToPhotons" : 0.01111111,
		"displayFrequency" : 60.0
	}
}

C:\Program Files (x86)\Steam\steamapps\common\SteamVR\drivers\null\resources\settings\default.vrsettings

Run SteamVR without HMD? :: SteamVR Developer Hardware 総合掲示板


早速試してみたところ、SteamVRのHMDアイコンが変化し、Unityでエラーを吐かなくなった。

GAMEBOY開発

突然ですがGAMEBOY開発に手を出したりしてます。
プログラミング知識ゼロ時代に興味持ったことはあったんですが、英語情報出てきた時点でウィンドウ閉じた記憶が。
で、最近こういうTweet見たのが引き金になって…って次第。


情報集めるにあたって、Internet Archiveにめっちゃお世話になりました。
お礼に$25寄付しといた。集めた情報はあとで纏める予定。
Internet Archive: Digital Library of Free Books, Movies, Music & Wayback Machine


現在はGBDKっていうC言語開発環境を使ってあれこれ模索中。
かゆいところに手が届かないのでアセンブラに手を出さざるを得ない雰囲気が全開です…。
とりあえず本購入した。

はじめて読むマシン語―ほんとうのコンピュータと出逢うために

はじめて読むマシン語―ほんとうのコンピュータと出逢うために

はじめて読むアセンブラ―ソフトウェアツールの原点を探る (アスキーブックス)

はじめて読むアセンブラ―ソフトウェアツールの原点を探る (アスキーブックス)

IE8だけクラッシュさせる技

I've isolated a strange issue with IE8 regarding the CSS :before and :after pseudo elements. The issue occurs when you set one pseudo elements position to absolute and the other's to relative; see the following example:

<style type="text/css">
  div:before { content: ""; position: relative; }
  div:after { content: ""; position: absolute; }
</style>
<div>stuff</div>

IE8 crashes. Literally. No error, nothing helpful - just the dreaded "Internet Explorer has stopped working" and the Windows 7 attempt to relaunch it. To be clear, the error occurs when switching to the IE8 Browser and Rendering Mode of IE9. When i loaded the example in IETester's IE8 page, no error occurred.

I will test this in an actual IE8 asap, but my question is: why does this happen? Is it an IE8 bug? Maybe a side effect of some sort of position bug? Isn't IE8 supposed to render pseudo elements?

css - IE8 Bug with pseudo elements - Stack Overflow


嵌るところだった。

Could not launch "アプリ名" launch or suspend in progress

強制再起動方法があるのをこれで初めて知った。
端末ブラックアウトして焦ったが復旧できてよかった。

Xcodeの停止ボタンを押しても反応なし。
ホームキーを押しても、2度押ししても反応なし。
電源ボタンを長押ししても反応なし。

これはバッテリーを外すしかないか?と思いきや、バッテリーってどうやって取り外すことができるんだ?
と困っていたら、ホームキーと電源ボタンを使って再起動することで対処できました。


再起動:
ホームキー & 電源ボタン 同時押しで10秒間


これで該当アプリを消して再インストールして実行できました。

[iOS] Could not launch "アプリ名" launch or suspend in progress で端末が固まったときの対処: ものづくりログ

UIImageのimageNamed:(キャッシュ有)とimageWithContentsOfFile:(キャッシュ無)

imageNamed:の方が描画早いがメモリリークにご注意とか何とか。


imageNamedはメモリ食う - 三浦仮想研究所
grimleaperの開発日誌 - iPhoneアプリ開発グループ
UIImage::imageNamed:を使う上で気をつけること | Yusk's UseCase
逆引きObjective-C for iPhoneアプリ for iPhoneアプリ開発 - UIImageViewなどに画像を設定する
Cocoaの日々: NSAutoreleasePool と UIImage
Using imageWithContentsOfFile instead of imageNamed of UIImage
UIImage #imageWithContentsOfData: などは描画が激遅 | Sun Limited Mt.
UIImage::imageNamed:を使う上で気をつけること - Yusk’s UseCase
imageNamed is evil « Under The Bridge
落ちるアプリ:UIImageでのハマリ | istis

webフォントがWindowsで見ると汚い件について色々

Webフォントがっつり使うには、世のOSがMacに統一でもされない限りまだ厳しい、という話で、その対策を調べてたりしてた。
CufonだとWinでもばっちりだけど、力技な仕組み(canvasタグに置換して描画)なのでだいぶお勧めできない感。

WebフォントをWindowsでも綺麗に表示するためには | JSer.info
Webフォントをキレイに見せるテクニックを2つ紹介(Chrome編)
Using CSS3 and @font-face to use any custom font on a web site - Robert's talk
The Safest Web Fonts
Cufonの使い方 - Netch