<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>短期記憶容量少ナキ我ガ爲ノ備忘録也</title>
    <link>http://microgroove.jp/shaolin/</link>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <lastBuildDate>Wed, 28 Jan 2015 00:31:16 +0900</lastBuildDate>
    <generator>http://www.sixapart.com/movabletype/</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    
      <item>
        <title>(test) </title>
        <description>(The quick brown fox jumps over the lazy dog)</description>
        <link>http://microgroove.jp/shaolin/2015/01/test.html</link>
        <guid>http://microgroove.jp/shaolin/2015/01/test.html</guid>
        
        
        <pubDate>Wed, 28 Jan 2015 00:31:16 +0900</pubDate>
      </item>
    
      <item>
        <title>AES-256-CBC encryption - ruby vs node </title>
        <description><![CDATA[<p lang="ja">
しばらく前にハマったのでメモ。
</p>

<br />

<pre lang="en" style="background-color: #636363; overflow: auto;">
$ ruby -v
ruby 2.0.0p451 .....

$ node -v
v0.10.25
</pre>

<br />

<h3 lang="en">Ruby</h3>

<pre lang="en" style="background-color: #636363; overflow: auto;">
require 'openssl'
require 'digest'
require 'base64'

def encode(cryptkey, iv, cleardata)
    cipher = OpenSSL::Cipher.new('AES-256-CBC')
    cipher.encrypt
    cipher.key = cryptkey
    cipher.iv  = iv

    encrypted = ''
    encrypted << cipher.update(cleardata)
    encrypted << cipher.final
    Base64.strict_encode64(encrypted)
end
</pre>

<br />

<h3>encode w/ Ruby</h3>

<pre lang="en" style="background-color: #636363; overflow: auto;">
data = 'The quick brown fox jumps over the lazy dog'
cryptkey = Digest::SHA256.digest('012345678901234567')
iv = '0a1b2c3d4e5f6g7h'
x = encode(cryptkey, iv, data)

=> "SWozLQpQiz2itvbl1PomOPBTvxMmIE6rl4gZlerajsnJrhAfvp6jj5MBSlu+8fle"
</pre>

<br />

<h3 lang="en">Node.js</h3>

<pre lang="en" style="background-color: #636363; overflow: auto;">
var crypto = require('crypto');

b64dec = function(data) {
  buf = new Buffer(data, 'base64');
  return buf.toString('binary')
};

decode = function(encrypted_64, cryptkey, iv) {
    var cryptkey = crypto.createHash('sha256').update(cryptkey).digest(),
        decipher = crypto.createDecipheriv('aes-256-cbc', cryptkey, iv),
        decoded  = decipher.update(b64dec(encrypted_64));

    return Buffer.concat([decoded, decipher.final()]);
}
</pre>

<br />

<h3>decode w/ Node.js</h3>

<pre lang="en" style="background-color: #636363; overflow: auto;">
decode('SWozLQpQiz2itvbl1PomOPBTvxMmIE6rl4gZlerajsnJrhAfvp6jj5MBSlu+8fle',
    '012345678901234567','0a1b2c3d4e5f6g7h').toString()

'The quick brown fox jumps over the lazy dog'
</pre>]]></description>
        <link>http://microgroove.jp/shaolin/2014/05/aes-256-cbc_encryption_ruby_vs_node.html</link>
        <guid>http://microgroove.jp/shaolin/2014/05/aes-256-cbc_encryption_ruby_vs_node.html</guid>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">AES256</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Cipher</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Node.js</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Ruby</category>
        
        <pubDate>Thu, 15 May 2014 00:00:00 +0900</pubDate>
      </item>
    
      <item>
        <title>あいぽんの位置情報がバカになった </title>
        <description><![CDATA[<p lang="ja">
2〜3週間くらい前からでしょうか。なんだか GPS をうまく拾えてないような挙動。Google Map アプリでも Apple 謹製 Map アプリでも Waze でも、現在位置の追随性が著しく悪くなってしまいました。昨年秋に買った iPhone 5 でのお話。
</p>

<p lang="ja">
5秒おきに、現在値がざっ、ざっ、と動くような感じ。向いてる方向もせわしなく動く。Google Map アプリのナビや Waze なんか使おうもんなら、移動してないのに向きがせわしなく切り替わったり、あっちいったりこっちいったり、斜め後ろ向いたままザザッと動き続けたり。
</p>

<p lang="ja">
これは使えん。GPS アンテナか GPS ユニットが壊れたんかなぁ、と。
</p>

<p lang="ja">
ところが、原因切り分けのために、ふと思い立って Wi-Fi を off にすると、急にまともに使えるように。Wi-Fi を on に戻すと、また不正確な位置と向きをせわしなく表示。ふーむ。
</p>

<p lang="ja">
通常は GPS から取得した位置情報と Wi-Fi から取得した位置情報、そしてモバイルデータ通信から取得した位置情報をうまく使ってくれるはずなのですが、Wi-Fi を on にしていると、GPS と Wi-Fi の位置情報を使わずにモバイルデータ通信からの位置情報のみを使ってくれているように見える。どうもソフトウェア的な何かの不具合に思えます。
</p>

<p lang="ja">
というわけで、PC にバックアップを手動でとったのち、いちど工場出荷状態に戻し、バックアップから復元し直しました。4000曲くらいが iTunes から同期されていているのですが、全て（ハイレゾや 16/44 から）192kbps AAC に変換されて同期されるので、復元にはもの凄く時間がかかります。寝る前に復元開始し、朝起きたら終わってました。あいぽんの空き容量も9GBくらいから14GBくらいに増えてる。いろんなアプリや iOS の吐くゴミデータで埋まってたのかな。
</p>

<p lang="ja">
<del>で、今朝幼稚園へ送る際に確認してみたところ、直ってました。</del>
</p>

<p lang="ja">
<del>もし復元でも直らなかったら、ジーニアスバーに持ち込んで新品に交換してもらおうと企んでいたのですが、それはなくなりました。ともあれまた意図した通りに動作してくれて一安心。。。</del>
</p>

<br />

<p lang="ja">
<strong style="color: #ff9999;">追記 (2013/11/06)：</strong>
<br />
直ってませんでした（涙）。というか状況の切り分けが間違ってました。
</p>

<p lang="ja">
正確にはこうでした。「<strong>カーオーディオにUSB接続すると、あいぽんのGPSがアホになる</strong>」。よって、自家用車による走行中のみ GPS がおかしかったことになります。手持ちで徒歩の時などは全く問題ないことを確認しました。普段歩きながらマップを見たりしないので、気付かなかった（状況切り分けを間違えた）という感じです。。。
</p>

<p lang="ja">
ちなみに車中のホルダーに装着していても、Lightning to USBケーブルによる接続を外せば、再び位置情報がまともになります。つまり、車中のために GPS 電波が拾いにくくなって不正確になっているのではない、ということです。
</p>

<p lang="ja">
エンジンを完全に off にすると、位置情報は正確に戻ります。そしてキーをひねって acc や on の位置にする（カーオーディオに通電する）と、とたんに位置情報が乱れ出します。今日はそこまで確認。
</p>

<p lang="ja">
問題は、数週間前まで、こんなことはなかった、ということ。ここから先の原因特定は少し難儀です。
</p>

<ol lang="ja">
<li>iPhone5 の内蔵 GPS アンテナが劣化（？）して感度が落ちてきてるのか？</li>
<ul><li>これはない気はしますが。。。</li></ul>
<li>iOS7 に上げたタイミングとおおよそ一緒？（な気がする）</li>
<ul><li>現在使用中のカーオーディオと iOS7 の問題な可能性も捨てきれません</li></ul>
<li>あるいは。。。クルマ側の電気系統側のなんらかの問題なのか？</li>
<ul><li>うちのクルマならありえる（涙）</li></ul>
<li>現在使用中の lightning to USB ケーブルのせい？</li>
<ul><li>これもないと思うけど、後日別のケーブルで比較検証することに</li></ul>
</ol>

<p lang="ja">
もうちょっと状況証拠を集めてみようと思います。
</p>

<br />

<p lang="ja">
<strong style="color: #ff9999;">追記 (2013/11/07)：</strong>
<br />
iPhone5s を借りてカーオーディオに接続してみたところ、（私の iPhone5 がかつてそうだったように）特に問題なく現在位置を捕捉していることを確認。ということで、
</p>

<ol lang="ja">
<li>iPhone5 の内蔵 GPS アンテナが劣化（？）して感度が落ちてきてるのか？</li>
</ol>

<p lang="ja">
のケースに該当していそう。Genius Bar で交換してもらえる程度なのかは微妙な気が。。。
</p>

<br />

<p lang="ja">
<strong style="color: #ff9999;">追記 (2013/11/09)：</strong>
<br />
なんと直ってしまった（笑）。壁打ちテニス中にあいぽんをポケットから落としたせいらしい。多分、基板からGPSセンサーが外れかけていて？接触不良で？、落とした衝撃でちゃんと繋がったのではないかと推察。。。Genius Bar 予約はとりあえずキャンセルすることに。
</p>]]></description>
        <link>http://microgroove.jp/shaolin/2013/11/post_19.html</link>
        <guid>http://microgroove.jp/shaolin/2013/11/post_19.html</guid>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">GPS</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">iPhone</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">位置情報</category>
        
        <pubDate>Wed, 06 Nov 2013 09:14:40 +0900</pubDate>
      </item>
    
      <item>
        <title>CrashPlan Keeps Stopping and Starting </title>
        <description><![CDATA[<p lang="ja">
NAS に保存してある膨大な写真や動画（や音楽）をバックアップするために、
<a href="http://www.crashplan.com/" target="_blank">CrashPlan</a>
の利用を開始しました。
</p>

<p lang="ja">
<a href="http://www.backblaze.com/" target="_blank">BackBlaze</a>
や
<a href="https://www.bitcasa.com/" target="_blank">Bitcasa</a>
などと比較検討し、以下の点で採用を決定しました。
</p>

<ul lang="ja">
<li>ローカルデバイス以外（外部接続デバイス、マウントしている NAS ドライブ）などもバックアップ対象に選べる
<li>マルチプラットフォーム
</ul>

<p lang="ja">
自宅のルータ兼サーバ（Vine Linux で稼働中）上で動かせ、ローカルネットワーク上にあって NFS マウントして使っている NAS（NETGEAR ReadyNAS）上のコンテンツをバックアップできる、という点で選定しました。デーモンも管理UIも Java で動くというスタイルのようです。
</p>]]></description>
        <link>http://microgroove.jp/shaolin/2013/07/crashplan_keeps_stopping_and_starting.html</link>
        <guid>http://microgroove.jp/shaolin/2013/07/crashplan_keeps_stopping_and_starting.html</guid>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">BackBlaze</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Backup</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Bitcasa</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">CrashPlan</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Linux</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Vine Linux</category>
        
        <pubDate>Tue, 16 Jul 2013 07:49:00 +0900</pubDate>
      </item>
    
      <item>
        <title>xbmc </title>
        <description>リビングのマシン上での動作がすこぶる悪いので原因調査中。。。</description>
        <link>http://microgroove.jp/shaolin/2013/03/xbmc.html</link>
        <guid>http://microgroove.jp/shaolin/2013/03/xbmc.html</guid>
        
        
        <pubDate>Thu, 21 Mar 2013 20:25:29 +0900</pubDate>
      </item>
    
      <item>
        <title>変換名人 USB-RS232 </title>
        <description><![CDATA[<p lang="ja">
RS-232C (D-Sub 9 pin) なポートがついているマシンを引退させるのに伴い、仕事で必要なので、適当に安い USB シリアル変換アダプタを買いました。
</p>

<br />

<div style="text-align: center;">
<a href="http://www.amazon.co.jp/gp/product/B002AW6LXQ/ref=as_li_qf_sp_asin_il?ie=UTF8&tag=mercuryrecord-22&linkCode=as2&camp=247&creative=1211&creativeASIN=B002AW6LXQ"><img border="0" src="http://ws.assoc-amazon.jp/widgets/q?_encoding=UTF8&Format=_SL160_&ASIN=B002AW6LXQ&MarketPlace=JP&ID=AsinImage&WS=1&tag=mercuryrecord-22&ServiceVersion=20070822" ></a><img src="http://www.assoc-amazon.jp/e/ir?t=mercuryrecord-22&l=as2&o=9&a=B002AW6LXQ" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
<br />
<br />
<a href="http://www.amazon.co.jp/gp/product/B002AW6LXQ/ref=as_li_qf_sp_asin_il?ie=UTF8&tag=mercuryrecord-22&linkCode=as2&camp=247&creative=1211&creativeASIN=B002AW6LXQ">USBをシリアル通信（RS232 9ピン）に変換　変換名人　USB-RS232</a>
</div>

<br />

<p lang="ja">
なんもせずにフツーに認識されてフツーに使えた。ややつまんないけど。
</p>

<p lang="ja">
ドライバはそのまんま <strong><code>pl2303</code></strong>。
</p>

<br />

<blockquote lang="en" style="overflow: auto;">
<pre lang="en">
Bus 005 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x067b Prolific Technology, Inc.
  idProduct          0x2303 PL2303 Serial Port
  bcdDevice            3.00
  iManufacturer           1 Prolific Technology Inc.
  iProduct                2 USB-Serial Controller
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           39
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x000a  1x 10 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0000
  (Bus Powered)
</pre>
</blockquote>]]></description>
        <link>http://microgroove.jp/shaolin/2012/04/henkan_meijin_usb-rs232.html</link>
        <guid>http://microgroove.jp/shaolin/2012/04/henkan_meijin_usb-rs232.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">Converter</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">RS232C</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Serial</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">USB</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Vine Linux</category>
        
        <pubDate>Thu, 26 Apr 2012 15:22:00 +0900</pubDate>
      </item>
    
      <item>
        <title>Storing VM disk image files on a sparse bundle </title>
        <description><![CDATA[<p lang="ja">
<a href="http://www.virtualbox.org/" target="_blank">VirtualBox</a> などで使用する、仮想マシン用のディスクイメージ。これを効率的にバックアップするのには少しコツが要ります。既に広く知られているとは思いますが、個人的メモも兼ねて書いておきます。
</p>]]></description>
        <link>http://microgroove.jp/shaolin/2011/10/storing_vm_disk_image_files_on_a_sparse_bundle.html</link>
        <guid>http://microgroove.jp/shaolin/2011/10/storing_vm_disk_image_files_on_a_sparse_bundle.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">Mac</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">OSX</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Sparce Bundle</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">VirtualBox</category>
        
        <pubDate>Tue, 11 Oct 2011 16:12:00 +0900</pubDate>
      </item>
    
      <item>
        <title>Apple Products I Ever Bought </title>
        <description><![CDATA[<p lang="ja">
今までに買ってきた/所有してきた Apple 製品を思い出してみた。ただなんとなく。
</p>

<p lang="ja">
故 Jobs 氏への強い思い入れは不思議とほとんどなかったのかな、
と改めて思いました。
むしろ Bill Atkinson さん、故 Jeff Raskin さん、
Andy Hertzfeld さん、Joanna Hoffman さん、といった、
エンジニアな方々への興味の方が強かったのかな、と。
</p>
]]></description>
        <link>http://microgroove.jp/shaolin/2011/10/apple_products_i_ever_bought.html</link>
        <guid>http://microgroove.jp/shaolin/2011/10/apple_products_i_ever_bought.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">Apple</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">iPhone</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">MacBook</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Macintosh</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Power Mac</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">PowerBook</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Vine Linux</category>
        
        <pubDate>Fri, 07 Oct 2011 11:15:00 +0900</pubDate>
      </item>
    
      <item>
        <title>Installing Vine Linux on MacBook Air (Middle 2011) </title>
        <description><![CDATA[<p lang="ja" style="font-style: italic;">
要約:
<br />
日常的に Vine マシンとして使っている MacBook Early 2008 の後釜として、MacBook Air Middle 2011 を購入。現時点で Vine が MBA 上でどの程度動くか動かないか、とりあえず現状を確認しました。で、安定するまで当分は OS X 上の VirtualBox に Vine 環境を移そうか、と考えています。
</p>

<br />
<hr width="80%" />
<br />

<p lang="en">
Bought a <strong>MacBook Air (Middle 2011)</strong>
 - 11inch, US Keyboard, 4GB Memory, 128GB SSD and Core i7 -
to replace my MacBook (Early 2008) that has served me very hard
as a Vine Linux development environment as a daily basis for a few years.
</p>

<br />

<div style="text-align: center;" lang="en">
<a href="http://instagr.am/p/J74AO/" target="_blank"><img class="link" alt="[MacBook Air Mid 2011 11-inch]" width="306" height="306" src="http://distillery.s3.amazonaws.com/media/2011/08/11/b3198d2f6ccf42099dafe7cf4644aa56_6.jpg" /></a>
</div>

<br />

<p lang="en">
To be honest,
I always have used my whity MacBook with Vine - Mac OS X is always there
on the harddrive in a separated partition, but I seldom booted it up on my
MacBook - maybe once or twice a year? Another OSX machine at home,
an old PowerMac G4 MDD, is still there and serving me as a daily basis as well,
to store my huge digital music contents (almost all in lossless format) on iTunes
(still hundreds of CDs left to get ripped though), 
and as a scanning machine (connected to the old SCSI A3 flatbed scanner).
</p>

<p lang="en">
The first thing I did on my new toy was to play around the new OS for a while
that amazed me a bit. This was the first time for me to play with the 
multi-touch trackpad and gestures. I felt Gestures and "Mission Control" are
really great for portable computers with small screens like this MBA 11inch.
</p>

<p lang="en">
And the next thing I gonna do was, of course, to figure out how well
this brand new machine is supported on Linux - I know there are so much
to get done on the Linux kernel, the X thing, and some userland utilities,
to run Linux on the MBA 2011 flawlessly, but I just thought it was worth
checking out and playing around.
</p>

<br />

<div style="text-align: center;" lang="en">
<img class="link" alt="[MacBook Air Mid 2011 11-inch vs MacBook Early 2008]" width="450" height="300" src="http://microgroove.jp/shaolin/img/MBA2011_vs_MB2008.jpg" />
</div>

<br />]]></description>
        <link>http://microgroove.jp/shaolin/2011/08/installing_vine_linux_on_macbook_air_middle_2011.html</link>
        <guid>http://microgroove.jp/shaolin/2011/08/installing_vine_linux_on_macbook_air_middle_2011.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">MacBook</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">MacBook Air</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Middle 2011</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Vine Linux</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">VirtualBox</category>
        
        <pubDate>Tue, 16 Aug 2011 15:36:30 +0900</pubDate>
      </item>
    
      <item>
        <title>kernel panic on shutdown w/ vboxdrv </title>
        <description><![CDATA[<p lang="en">
On my environment (VineSeed/Vine Linux 6 on MacBook Early 2008), the system always crashes with a kernel panic when trying to shut the system down like this:
</p>

<blockquote lang="en" style="overflow: auto">
<pre>
panic occurred, switching back to text console
BUG: scheduling while atomic: swapper/0/0x10010000
Modules linked in: sit tunnel4 rfcomm sco bnep l2cap vboxnetadp vboxnetflt vboxdrv autofs4 sunrpc
ipv6 acpi_cpufreq freq_table mperf dm_mirror dm_region_hash dm_log dm_mod uinput snd_hda_codec_realtek
snd_hda_intel lib80211_crypt_tkip snd_hda_codec wl(P) snd_hwdep uvcvideo btusb snd_seq_dummy
snd_seq_oss snd_seq_midi_event snd_seq videodev bluetooth ohci1394 v4l1_compat snd_seq_device
applesmc snd_pcm_oss snd_pcm hwmon rfkill lib80211 ieee1394 led_class snd_timer snd firewire_ohci
soundcore firewire_core i2c_i801 snd_page_alloc sky2 input_polldev mbp_nvidia_bl pcspkr crc_itu_t
joydev iTCO_wdt iTCO_vendor_support appletouch processor battery thermal ac ata_generic pata_acpi
uhci_hcd ohci_hcd ehci_hcd i915 dkms_kms_helper drm i2c_algo_bit button i2c_core video output
[last unloaded: cpufreq_ondemand]
Pid: 0, comm: swapper Tainted: P       D     2.6.35-20vl6 #1
Call Trace:
[&lt;c102d3a6&gt;] __schedule_bug+0x1/0x56
[&lt;c1359495&gt;] schedule+0x83/0x4b9
[&lt;f7d7b78e&gt;] ? drm_crtc_helper_set_config+0x84/0x65b [drm_kms_helper]
[&lt;c135999d&gt;] _cond_resched+0x2e/0x47
[&lt;c10c8b80&gt;] __kmalloc+0xa8/0x145
[&lt;f7d7b78e&gt;] drm_crtc_helper_set_config+0x94/0x65b [drm_kms_helper]
[&lt;c1005e37&gt;] ?show_trace_log_lvl+0x39/0x43
[&lt;f7d7aae8&gt;] drm_fb_helper_force_kernel_mode+0x2b/0x5b [drm_kms_helper]
[&lt;f7d7ab62&gt;] drm_fb_helper_panic+0x17/0x1d [drm_kms_helper]
[&lt;c104b6c3&gt;] notifier_call_chain+0x14/0x16
[&lt;c1359289&gt;] atomic_notifier_call_chain+0x14/0x16
[&lt;c1359289&gt;] panic+0x73/0xbc
[&lt;c1005c17&gt;] oops_end+0x7a/0x88
[&lt;c102088f&gt;] no_context+0x115/0x11f
[&lt;c102098a&gt;] __bad_area_nosemaphore+0xf1/0xf9
[&lt;c1020af0&gt;] ? do_page_fault+0x0/0x2eb
[&lt;c10209a4&gt;] bad_area_nosemaphore+0x12/0x15
[&lt;c1020c32&gt;] d0_page_fault+0x142/0x2eb
[&lt;c10080fd&gt;] ?sched_clock+0x9/0xd
[&lt;c104bfb3&gt;] ?sched_clock_local+0x17/0x11e
[&lt;c1020af0&gt;] ?do_page_fault_0x0/0x2eb
[&lt;c135b9b6&gt;] error_code+0x66/0x6c
[&lt;c104007b&gt;] ? ignore_signals+0x21/0x27
[&lt;c1020af0&gt;] ?do_page_fault+0x0/0x2eb
[&lt;f91a3e0d&gt;] ?rtMpNotificationLinuxOnCurrentCPU+0xa/0x9d [vboxdrv]
[&lt;f91a3a51&gt;] rtmpLinuxWrapper+0x22/0x27 [vboxdrv]
[&lt;c10572e7&gt;] generic_smp_call_function_single_interrupt+0xa0/0xba
[&lt;c1017e29&gt;] smp_call_function_single_interrupt+0xa0/0xba
[&lt;c135b546&gt;] call_function_single_interuupt+0x2a/0x30
[&lt;c104007b&gt;] ? ignore_signals+0x21/0x27
[&lt;f86fa1ea&gt;] ? acpi_idle_enter_bm+0x24d/0x289 [processor]
[&lt;c12b7475&gt;] cpuidle_idle_call+0x73/0xce
[&lt;c10023a3&gt;] cpu_idle+0x4e/0x67
[&lt;c1357280&gt;] start_secondary+0x1a8/0x1ad
</pre>
</blockquote>

<br />

<p lang="en">
I'd been looking for the solution to the issue, and finally I found this was it:
</p>

<ul lang="en">
<li><a href="http://www.virtualbox.org/ticket/9305" target="_blank">Ticket #9305: VBox modules randomly cause kernel panic on computer shutdown -&gt; fixed as of 28-Jul 2011</a>
</ul>

<br />

<p lang="en">
The fix itself was very trivial:
</p>

<blockquote lang="en" style="overflow: auto">
<pre>
--- src/VBox/Runtime/r0drv/linux/mpnotification-r0drv-linux.c	(revision 73209)
+++ src/VBox/Runtime/r0drv/linux/mpnotification-r0drv-linux.c	(revision 73210)
@@ -77,7 +77,7 @@
  * @param pvUser2           The notification event.
  * @remarks This can be invoked in interrupt context.
  */
-static void rtMpNotificationLinuxOnCurrentCpu(RTCPUID idCpu, void *pvUser1, void *pvUser2)
+static DECLCALLBACK(void) rtMpNotificationLinuxOnCurrentCpu(RTCPUID idCpu, void *pvUser1, void *pvUser2)
 {
     unsigned long ulNativeEvent = *(unsigned long *)pvUser2;
     NOREF(pvUser1);
</pre>
</blockquote>

<br />

<p lang="en">
Now the fix has been included on VirtualBox-4.1.0-2vl7 (VineSeed).
</p>

<p lang="en">
Same fix for Vine Linux 6 (more precisely, packages for VinePlus/6) will be uploaded as 4.1.0-2vl6 as well shortly.
</p>]]></description>
        <link>http://microgroove.jp/shaolin/2011/08/kernel_panic_on_shutdown_w_vboxdrv.html</link>
        <guid>http://microgroove.jp/shaolin/2011/08/kernel_panic_on_shutdown_w_vboxdrv.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">Vine Linux</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">VineSeed</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">VirtualBox</category>
        
        <pubDate>Tue, 09 Aug 2011 13:26:57 +0900</pubDate>
      </item>
    
      <item>
        <title>Installing Vine Linux 6.0 beta2 on ZOTAC IONITX-P-E </title>
        <description><![CDATA[<p lang="ja">
自宅のリビングのテレビに接続するメディアサーバ (<a href="http://xbmc.org/" target="_blank">xbmc</a> とか <a href="http://www.videolan.org/" target="_blank">vlc</a> とか) 的な、省電力で安価なマシンが欲しかったので、ION + 定電圧 (CULV) 版 Celeron SU2300 という、変態(?)構成なマザーボード <a href="http://www.zotacusa.com/zotac-ionitx-p-e-intel-celeron-su2300-1-2ghz-dual-core-mini-itx-intel-motherboard.html" target="_blank">ZOTAC IONITX-P-E</a> を購入し、ちょうどベータ版がリリースされている <a href="http://vinelinux.org/" target="_blank">Vine Linux</a> 6.0 をテストがてらインストールしてみました。
</p>

<br />

<div style="text-align: center;">
<a href="http://www.zotacusa.com/zotac-ionitx-p-e-intel-celeron-su2300-1-2ghz-dual-core-mini-itx-intel-motherboard.html" target="_blank"><img alt="[ZOTAC IONITX-P-E]" src="http://microgroove.jp/shaolin/img/ZOTAC-IONITX-P-E.jpg" /></a>
</div>]]></description>
        <link>http://microgroove.jp/shaolin/2011/07/installing_vine_linux_60_beta2_on_zotac_ionitx-p-e.html</link>
        <guid>http://microgroove.jp/shaolin/2011/07/installing_vine_linux_60_beta2_on_zotac_ionitx-p-e.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">ION</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">IONITX-P-E</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Nvidia</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Vine Linux</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">xbmc</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">XOrg</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">ZOTAC</category>
        
        <pubDate>Wed, 06 Jul 2011 17:01:00 +0900</pubDate>
      </item>
    
      <item>
        <title>any good sports for my daughter? (1 comment)</title>
        <description><![CDATA[<p lang="en">
Yesterday afternoon we went to the <a href="http://www.bigk.co.jp/" target="_blank">tennis school</a> (where we once lived near and I had regular lesson for several years) with my daughter to see how the kids tennis lesson (&ldquo;Kinder Class&rdquo;) was like.
</p>

<p lang="en">
We just watched the class behind the fence - not the trial lesson for my daughter. Sorry for her - she complained that she wanted to join the class and play with balls and racquets. Very sorry for her. Anyway we watched 80% of the whole lesson - about 40 minutes - until my daughter got bored of standing behind the fence, watching the kids class on the tennis court.
</p>

<p lang="en">
Not bad. We saw two children (two four-years-old boys) in the class on that day, while on the neighbouring court &ldquo;Players' Course&rdquo; (a very serious class for teens who wants to be professional tennis players) was playing very hard. The two kids were having fun at the class, moving and playing with much joy. They didn't look like they got bored.
</p>
]]></description>
        <link>http://microgroove.jp/shaolin/2011/06/any_good_sports_for_my_daughter.html</link>
        <guid>http://microgroove.jp/shaolin/2011/06/any_good_sports_for_my_daughter.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
        
        <pubDate>Tue, 14 Jun 2011 06:00:00 +0900</pubDate>
      </item>
    
      <item>
        <title>Progress bar on the the Plymouth startup screen &quot;Script&quot; theme </title>
        <description><![CDATA[<p lang="en">
This is the startup screenshot of the soon-to-come Vine Linux 6.0 - the &ldquo;script&rdquo; theme from the <a href="http://freedesktop.org/software/plymouth/releases" target="_blank">Plymouth</a> graphical boot animation.
</p>

<br />

<div style="text-align: center;">
<img src="http://microgroove.jp/shaolin/img/Plymouth_Script_Startup.jpg" />
</div>

<br />

<p lang="en">
To tell the truth I have been always wondering, why the <strong>progress bar</strong> on the boot-up screen looks like this. The progress bar is placed on the black background - the border is drawn in white colour - so the which is the progress bar itself, black one, or white one?
</p>

<p lang="en">
Seems like the &ldquo;script&rdquo; theme itself adopts black-coloured bar as a progress bar itself. So the following screenshot means that the boot-up process is now about 20% complete:
</p>

<br />

<div style="text-align: center;">
<img src="http://microgroove.jp/shaolin/img/Plymouth_Script_Progressbar.jpg" />
</div>

<br />

<p lang="en">
But don't you think it a bit strange? Sometimes do you see this as &ldquo;the progress bar coming from the right side, now approximately 80% complete&rdquo; or something?
</p>

<p lang="en">
I believe, in this example (black background, progress bar with white border),  the following screenshot should represents &ldquo;approximately 20% complete&rdquo; far better:
</p>

<br />

<div style="text-align: center;">
<img src="http://microgroove.jp/shaolin/img/Plymouth_Script_Progressbar2.jpg" />
</div>

<br />

<p lang="en">
If the latter one is still ambiguous, how about the following example whose border colour and the progress bar colour is bit different? I like this much better IMHO.
</p>

<br />

<div style="text-align: center;">
<img src="http://microgroove.jp/shaolin/img/Plymouth_Script_Progressbar3.jpg" />
</div>

<br />

<p lang="en">
What would you think? Am I the only one who think it different?
</p>

<br />

<p lang="en" style="font-style: italic;">
<strong>P.S.</strong><br />This change can be easily done by editing the following png files:
<p>

<blockquote lang="en">
<pre>/usr/share/plymouth/themes/script/progress_bar.png
/usr/share/plymouth/themes/script/progress_box.png</pre>
</blockquote>

<br />

<p lang="en" style="font-style: italic;">
And don't forget to execute &ldquo;<code>sudo /sbin/new-kernel-pkg --mkinitrd --depmod --install (kernel_version)</code>&rdquo; (<code>kernel_version</code> = <code>2.6.35-18vl6</code> for example)</code> to take effect.
</p>

<br />

<p lang="en" style="font-style: italic;">
<strong>P.S. 2</strong><br />
Soon after this article was published, I noticed other Vine members were talking on the IRC channel about changing the default Plymouth theme from Script to Spinfinity - okay, okay - that's another solution to avoid the Script theme...
</p>

<br />

<p lang="en" style="font-style: italic;">
<strong>P.S. 3</strong><br />
Then here's yet another canditate from <a href="http://dicey.org/blog/" target="_blank">Daisuke</a>-san - looking good. The very best IMHO.
Now we can clearly distinguish the progress bar itself - no confusion here.
</p>

<br />

<div style="text-align: center;">
<img src="http://microgroove.jp/shaolin/img/Plymouth_Script_Progressbar4.jpg" />
</div>]]></description>
        <link>http://microgroove.jp/shaolin/2011/06/progress_bar_on_the_the_plymouth_startup_screen_script_theme.html</link>
        <guid>http://microgroove.jp/shaolin/2011/06/progress_bar_on_the_the_plymouth_startup_screen_script_theme.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">Plymouth</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Vine Linux</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">VineSeed</category>
        
        <pubDate>Thu, 09 Jun 2011 14:08:00 +0900</pubDate>
      </item>
    
      <item>
        <title>digikam vs libjpeg-turbo </title>
        <description><![CDATA[<p lang="en">
<a href="http://www.digikam.org/" target="_blank">digikam</a> can't compile on the current version of <a href="http://vinelinux.org/vineseed.html" target="_blank">VineSeed</a> (development/unstable version of Vine Linux, and soon-to-be Vine Linux 6.0).
</p>

<p lang="en">
I found the following lines on the <code>CMakeLists.txt</code> in the digikam source code:
</p>

<blockquote lang="en" style="overflow: auto">
<pre># Extract version of libjpeg so that we can use the appropriate dir
# See bug #227313, #228483
FILE(READ "${JPEG_INCLUDE_DIR}/jpeglib.h" jpeglib_h_content)
STRING(REGEX REPLACE ".*#define +JPEG_LIB_VERSION +([0-9]+).*" "\\1" jpeglib_version "${jpeglib_h_content}")
MESSAGE(STATUS "Identified libjpeg version: ${jpeglib_version}")

IF ("${jpeglib_version}" LESS 80)
    SET(DIGIKAM_LIBJPEG_DIR libjpeg-62)
ELSE ("${jpeglib_version}" LESS 80)
    SET(DIGIKAM_LIBJPEG_DIR libjpeg-80)
ENDIF ("${jpeglib_version}" LESS 80)</pre>
</blockquote>

<br />

<p lang="en">
while on the other hand  VineSeed now has <a href="http://libjpeg-turbo.virtualgl.org/" target="_blank">libjpeg-turbo</a> instead of the ancient <a href="http://libjpeg.sourceforge.net/" target="_blank">libjpeg6b</a>.
</p>

<p lang="en">
<code>jpeglib.h</code> from libjpeg-turbo does <strong>NOT</strong> have the line starting from <code>#define JPEG_LIB_VERSION</code>: instead the declaration is in another header file <code>jconfig.h</code> like this:
</p>

<blockquote lang="en" style="overflow: auto">
<pre>#define JPEG_LIB_VERSION 62</pre>
</blockquote>

<br />

<p lang="en">
So the trivial hack (<em>until the upstream fix this tiny issue</em>) is like this:
</p>

<blockquote lang="en" style="overflow: auto">
<pre>
--- digikam-1.9.0/CMakeLists.txt.orig   2011-02-28 05:16:18.000000000 +0900
+++ digikam-1.9.0/CMakeLists.txt        2011-06-08 14:10:15.000000000 +0900
@@ -153,7 +153,9 @@
 
 # Extract version of libjpeg so that we can use the appropriate dir
 # See bug #227313, #228483
-FILE(READ "${JPEG_INCLUDE_DIR}/jpeglib.h" jpeglib_h_content)
+# VINE: better check jconfig.h in place of jpeglib.h on libjpeg-turbo
+# FILE(READ "${JPEG_INCLUDE_DIR}/jpeglib.h" jpeglib_h_content)
+FILE(READ "${JPEG_INCLUDE_DIR}/jconfig.h" jpeglib_h_content)
 STRING(REGEX REPLACE ".*#define +JPEG_LIB_VERSION +([0-9]+).*" "\\1" jpeglib_version "${jpeglib_h_content}")
 MESSAGE(STATUS "Identified libjpeg version: ${jpeglib_version}")
</pre>
</blockquote>]]></description>
        <link>http://microgroove.jp/shaolin/2011/06/digikam_vs_libjpeg-turbo.html</link>
        <guid>http://microgroove.jp/shaolin/2011/06/digikam_vs_libjpeg-turbo.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">digikam</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Vine Linux</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">VineSeed</category>
        
        <pubDate>Wed, 08 Jun 2011 15:17:00 +0900</pubDate>
      </item>
    
      <item>
        <title>懐かしの8ビットマイコンゲーム? </title>
        <description><![CDATA[<p lang="ja">
現在の手元のマシン (MacBook w/ Intel GM965 Graphic Controller) の VineSeed、<code>XOrg 1.10.0</code>、<code lang="en">xorg-x11-drv-intel-2.14.0-2vl6.i686</code>、<code>Adobe Flash Plugin10.2.152.27</code> で、
</p>

<ul>
<li><a href="http://www.youtube.com/watch?v=w14v4vGUDdg" target="_blank">Tick Tock - student short film for Emory Campus MovieFest 2011</a> (YouTube)
</ul>

<p lang="ja">
を観ようとすると、
</p>

<br />

<div style="text-align: center;">
<img src="http://microgroove.jp/img/YouTube_TickTock_WithHardwareAcceleration.jpg" />
</div>

<br />

<p lang="ja">
。。。。
</p>

<p lang="ja">
どこか懐かしさもある、大昔遊んだマイコンのテレビゲームみたいな。。。。
</p>

<br />
<hr width="80%" />
<br />

<p lang="ja">
結局、Flash の <strong>ハードウェアアクセラレーションを無効にする</strong>、というのが正解だった模様です。特定の YouTube 映像のみでおかしくなっていたので、まあなんか特定のエンコーディング用のアクセラレータの問題ではないかと思ってはいたのですが。
<br />
なにせ VineSeed でちょうど <code>XOrg 1.10</code> 一式が投入された直後ということもあり、原因はなんだなんだということに。。。
</p>

<br />

<div style="text-align: center;">
<img src="http://microgroove.jp/img/AdobeFlash_DisableHardwareAcceleration.jpg" />
</div>

<br />

<blockquote lang="ja">
&lt;d&gt; flash10.2からVAAPI/VDPAUつかったh264のアクセラレーションが使われるようになったのだけど
<br />
&lt;d&gt; h264のプロファイルによっては壊れる
<br />
&lt;d&gt; &一回こわれるとflashプロセスを殺さないと
<br />
&lt;d&gt; 全部に影響するっぽい
</blockquote>

<br />

<p lang="ja">
ということだと。<a href="http://dicey.org/d/">だいさめ</a> 情報サンクス。
</p>

<br />

<div style="text-align: center;">
<img src="http://microgroove.jp/img/YouTube_TickTock_WithoutHardwareAceleration.jpg" />
</div>
]]></description>
        <link>http://microgroove.jp/shaolin/2011/03/hardware_acceleration_sometimes_might_no_do_any_good.html</link>
        <guid>http://microgroove.jp/shaolin/2011/03/hardware_acceleration_sometimes_might_no_do_any_good.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
          <category domain="http://www.sixapart.com/ns/types#category"></category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">Acceleration</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Adobe</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Flash</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">MacBook</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Plugin</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">Vine Linux</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">VineSeed</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">XOrg</category>
        
        <pubDate>Sun, 06 Mar 2011 12:21:00 +0900</pubDate>
      </item>
    
  </channel>
</rss> 