<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
   <title>電気技術とプログラムの世界</title>
   <link rel="alternate" type="text/html" href="http://tasyu.com/e/" />
   <link rel="self" type="application/atom+xml" href="http://tasyu.com/e/atom.xml" />
   <id>tag:tasyu.com,2010:/e//4</id>
   <updated>2010-11-21T04:25:19Z</updated>
   <subtitle>TASYUの趣味で行っている電子工作や実験・プログラムの記録</subtitle>
   <generator uri="http://www.sixapart.com/movabletype/">Movable Type Pro 5.02</generator>


<entry>
   <title>Windows2GBの壁</title>
   <link rel="alternate" type="text/html" href="http://tasyu.com/e/2010/11/windows2gb.php" />
   <id>tag:tasyu.com,2010:/e//4.3228</id>
   
   <published>2010-11-21T04:11:32Z</published>
   <updated>2010-11-21T04:25:19Z</updated>
   
   <summary>Fortranプログラムなどを組む中でWindowsで作業している場合 Vari...</summary>
   <author>
      <name>TASYU</name>
      <uri>http://tasyu.com/</uri>
   </author>
   
   
   <content type="html" xml:lang="ja" xml:base="http://tasyu.com/e/">
      <![CDATA[Fortranプログラムなどを組む中でWindowsで作業している場合

Variable XXX too large for NTCOFF. Bigger than 2GB. Use heap instead

静的配列をしようしていると2GBの壁にぶつかる。
これは64bitOSのWindowsにしても変わらず単一の配列が2GBを超える計算ができなくなる。
そこで64bitOSのWindowsを扱う場合にのみ使える方法だが、動的配列で定義をすることで8GBまでの単一配列が扱えるようになる。

具体的にはFortranの場合

dimention A(256)
などの配列を
real,allocatable,dimension(:) :: a
と動的配列で定義した後

allocate(a(256))
としてメモリを確保する。

二次元配列の場合は
real,allocatable,dimension(:,:) :: a
allocate(a(256,512))

こうゆうことを考えるとLinuxマシンの方がいいような気がしてくる。
そもそも64BitのWindowsを開発するときになぜ修正しなかったのだろう。せっかくの64bitが。。。

参考
<a href="/link.php?url=http://www.softek.co.jp/SPG/Pgi/win64/index.html">PGI Workstation/Server for Windows(R) 製品情報</a>
<a href="http://software.intel.com/en-us/articles/memory-limits-applications-windows/">Memory Limits for Applications on Windows* - Intel® Software Network/</a>
<a href="http://software.intel.com/en-us/forums/showthread.php?t=56742">Forums - Intel® Software Network</a>]]>
      
   </content>
</entry>

<entry>
   <title>指定フォルダ内の画像からランダムで壁紙を自動設定</title>
   <link rel="alternate" type="text/html" href="http://tasyu.com/e/2010/03/post_7.php" />
   <id>tag:tasyu.com,2010:/e//4.3158</id>
   
   <published>2010-03-15T05:06:19Z</published>
   <updated>2010-03-15T05:16:46Z</updated>
   
   <summary>Windowsのpowershellを利用して壁紙をランダムで自動設定してくれる...</summary>
   <author>
      <name>TASYU</name>
      <uri>http://tasyu.com/</uri>
   </author>
   
      <category term="03PC" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://tasyu.com/e/">
      <![CDATA[Windowsのpowershellを利用して壁紙をランダムで自動設定してくれるようにしてみた．

コードは以下の通り

<blockquote>
function set-wallpaper{
    Param ( [string]$newpaper="",[string]$format)
    
    switch ($format) {
        "tiled" {$tile=1;$style=0}
        "centered" {$tile=0;$style=0}
        "fit" {$tile=0;$style=2}
        default {$tile=0;$style=0}
    }
    
    #verify file exists
    if (Get-ChildItem $newpaper -ea "SilentlyContinue") {
       $regkeys="HKCU:Control Panel\Desktop","HKCU:Software\Microsoft\Internet Explorer\Desktop\General"
       foreach ($regkey in $regkeys) {
        Set-ItemProperty -path $regkey -name WallPaper -value $newpaper
        Set-ItemProperty -path $regkey -name TileWallpaper -value $tile
        Set-ItemProperty -path $regkey -name WallpaperStyle -value $style
       }
    $rundll32="{0}\System32\RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters" -f  $env:windir
    Invoke-Expression -Command $rundll32
     }
     else {
        Write-Warning "Failed to find $newpaper"
     }
     
}

$folder="F:\img\material\wallpaper"

$file=get-Childitem $folder -name | get-Random

set-wallpaper $folder/$file "centered"
</blockquote>

上記コードをwallpaper.ps1などと名前を付けて保存

下から三行目
<strong>$folder="F:\img\material\wallpaper"</strong>
で画像が入っているフォルダを指定

最終行
<strong>set-wallpaper $folder/$file "centered"</strong>
にて
"tiled"　並べて表示
"centered"　中央に表示
"fit"　拡大して表示
を設定

後はwallpaper.ps1をスタートアップ時などに読み込ませてあげれば完了．
今回はWindowsXPで行ったがデスクトップの再描画が上手くできないのかデスクトップのアイコンを表示しない設定にしないと上手く動かなかった.
そのため，実行時に壁紙が変更されるわけだが実際に目で見れるのは再ログインした後といった動作になってしまっているのでデスクトップの再描画する等の改善が必要そう．

スクリプト参考
<a href="/link.php?url=http://www.scriptinganswers.com/forum2/forum_posts.asp?TID=2217">ScriptingAnswers.com Forums: How do I get a Powershell script to set Wallpaper?:</a>
powershell関連付け参考
<a href="/link.php?url=http://www.roy.hi-ho.ne.jp/mutaguchi/powershell/how_to_install.html">PowerShell Scripting - インストールから実行まで</a>]]>
      
   </content>
</entry>

<entry>
   <title>LinuxにHamachi導入時のエラー</title>
   <link rel="alternate" type="text/html" href="http://tasyu.com/e/2009/12/linuxhamachizino.php" />
   <id>tag:tasyu.com,2009:/e//4.3099</id>
   
   <published>2009-12-26T14:17:03Z</published>
   <updated>2009-12-26T15:12:43Z</updated>
   
   <summary>READMEの手順どおりにインストールして起動すると エラーが 26 23:06...</summary>
   <author>
      <name>TASYU</name>
      <uri>http://tasyu.com/</uri>
   </author>
   
      <category term="03PC" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://tasyu.com/e/">
      <![CDATA[READMEの手順どおりにインストールして起動すると

エラーが
<blockquote>
26 23:06:37.993 [   0] [16878] tap: bad response 00007f00
26 23:06:37.994 [   0] [16878] Failed to configure tap device to use X.XX.XXX.XXX/XX
</blockquote>

どうやらtuncfgにバグがあるらしく以下のサイトを参考に修整

http://d.hatena.ne.jp/RobinEgg/20090616/p1

hamachiのフォルダ内のtuncfgフォルダにあるtuncfg.cをエディタで開いて

272行目辺りにある

<blockquote>
skip:

                for (i=0; i&lt;ctx_n; i++)

                {

                        unsigned long v[2];

                        char cmd[256];
</blockquote>

を

<blockquote>
skip:

                for (i=0; i&lt;ctx_n; i++)

                {

                        /*unsigned long v[2];*/

                        unsigned int v[2];

                        char cmd[256];
</blockquote>

に変更

gccでコンパイルして元々のtuncfgに上書き

hamachiをmake installし直して無事起動を確認]]>
      
   </content>
</entry>

<entry>
   <title>ふぬああやPeCaTVの映像を90度回転させる</title>
   <link rel="alternate" type="text/html" href="http://tasyu.com/e/2009/10/pecatv90.php" />
   <id>tag:tasyu.com,2009:/e//4.3042</id>
   
   <published>2009-10-14T09:00:42Z</published>
   <updated>2009-10-14T09:11:09Z</updated>
   
   <summary>迷ってたのが嘘のように簡単に出来た ffdshowをインストールしてAviSyn...</summary>
   <author>
      <name>TASYU</name>
      <uri>http://tasyu.com/</uri>
   </author>
   
      <category term="03PC" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://tasyu.com/e/">
      <![CDATA[迷ってたのが嘘のように簡単に出来た

ffdshowをインストールしてAviSynthの項目にTurnLeft()を入力するだけ

DS配信とかHD映像を縦にしてプレビューしたい時に便利そう

<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="091014.PNG" src="http://tasyu.com/e/img/091014.PNG" width="670" height="468" class="mt-image-none" style="" /></span>

同様に
TurnRight()
Turn180()
なども使えるみたい

解像度を合わせるにはふぬああのほうが便利そう

参考
<a href="/link.php?url=http://www.avisynth.info/?Turn">http://www.avisynth.info/?Turn</a>]]>
      
   </content>
</entry>

<entry>
   <title>Intensity Pro レビュー</title>
   <link rel="alternate" type="text/html" href="http://tasyu.com/e/2009/08/intensity_pro.php" />
   <id>tag:tasyu.com,2009:/e//4.2990</id>
   
   <published>2009-08-22T07:09:56Z</published>
   <updated>2010-02-02T10:04:30Z</updated>
   
   <summary>Blackmagic DesignのHDMIキャプチャボードIntensity ...</summary>
   <author>
      <name>TASYU</name>
      <uri>http://tasyu.com/</uri>
   </author>
   
      <category term="03PC" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://tasyu.com/e/">
      <![CDATA[<a href="/link.php?url=http://www.blackmagic-design.com/jp/">Blackmagic Design</a>のHDMIキャプチャボードIntensity Proのレビュー

<a href="/link.php?url=http://www.blackmagic-design.com/jp/products/intensity/techspecs/">仕様は公式サイト</a>

注文して手元に届いたのがこれ
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="IMG_0976_R.JPG" src="http://tasyu.com/e/img/IMG_0976_R.JPG" width="640" height="480" class="mt-image-none" style="" /></span>
約15cmの小さな箱でちょっと心細い、けど光沢のある茶色い箱にすこしセンスが溢れてる。
ビデオカードの大きな箱に慣れるとこの小ささはちょっと不安だけど。


内容物はコンポーネント等の変換ケーブル、本体、見開き一枚の案内、ドライバディスク
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="IMG_0977_R.JPG" src="http://tasyu.com/e/img/IMG_0977_R.JPG" width="640" height="480" class="mt-image-none" style="" /></span>

ちなみに変換ケーブルの詳細は
R-Y OUT　＊コンポーネントの赤，S-Videoの出力
Y OUT ＊コンポーネントの緑，コンポジットの出力
B-Y OUT　＊コンポーネントの青，S-Videoの出力
R-Y IN 　＊コンポーネントの赤の入力
Y-IN　＊コンポーネントの緑，コンポジット，S-Videoの入力
B-Y IN　＊コンポーネントの青，S-videoの入力
AES/EBU OUT　＊SPDIF/AESの出力
AUDIO OUT LEFT　＊音声左の出力
AUDIO OUT RIGHT　＊音声右の出力
AUDIO IN LEFT　＊音声左の入力
AUDIO IN RIGHT　＊音声右の入力

＊S-Videoの入出力が二つ指定されているのは、S端子⇔RCA×2というY/C分離ケーブルを用いるためです。
S端子利用を考えている場合は注意が必要です。付属しません。
「ビデオ分配ケーブル S端子⇔RCA×2」で検索すると２００円程度で売られています。


今回使用するPCは以下の通り
CPU	AMD Athlon64 X2 4200+
Memory	6GB(2GB*2+1GB*2)
VGA	NVIDIA Geforce 8600GT 256MB
Sound	Sound Blaster5.1
Motherboard	ASUS M2N-E
OS	WindowsXP Professional Ver2002 SP3
モニタ　acer H243Hbmid
HDMIケーブル　1.5m

コンポーネント信号はトランスコーダーでVGA化しモニタへ
コンポーネントケーブル　1m
VGAケーブル 1m


空いているPCI-E x1のスロットにカードを取り付けて起動すると
早速新しいデバイスの案内が
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="090822-0.PNG" src="http://tasyu.com/e/img/090822-0.PNG" width="586" height="362" class="mt-image-none" style="" /></span>

とりあえずは放置したまま先にドライバのインストールを行う。
今回は付属ドライバディスクは使わずに<a href="/link.php?url=http://www.blackmagic-design.com/jp/support/software/">公式サイト</a>から最新のドライバとソフトをダウンロード
ダウンロードの際には、製品登録として箱に記載のシリアルナンバーを入力。
合わせてメールアドレスなどを入力して、ユーザ登録も行えた。

ダウンロードしたzipファイルを回答するとマニュアルとインストーラーが入っている。
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="090822-1.PNG" src="http://tasyu.com/e/img/090822-1.PNG" width="493" height="248" class="mt-image-none" style="" /></span>
インストーラーを実行してドライバとアプリケーションのインストールが終了すると、再起動が促されるるの一旦再起動する。

その後ウィザードにしたがってインストールを完了させる。
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="090822-0.PNG" src="http://tasyu.com/e/img/090822-0.PNG" width="586" height="362" class="mt-image-none" style="" /></span>

インストールが終了するとコントロールパネルにBlackmagic Control Panelと言う入出力の設定をするリンクが作成される。
プレビューソフトや録画ソフトを使用する前にあらかじめここで入力や出力の設定をしておく必要があるらしい。
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="090822-2.PNG" src="http://tasyu.com/e/img/090822-2.PNG" width="656" height="472" class="mt-image-none" style="" /></span>
ここで設定できる項目は
Set output
HDMI&Y,R-Y,B-Y　＊HDMIとコンポーネントを出力
HDMI&NTSC/PAL(Y Out)&S-Video　＊HDMIとコンポジットとS-Videoを出力

Set input
HDMI Video&HDMI Audio　＊HDMI端子からビデオと音声を入力
HDMI Video&Analog RCA Audio　＊HDMI端子からビデオ，RCA端子で音声を入力
Y,R-Y,B-Y Video&Analog RCA Audio　＊コンポーネントでビデオ，RCA端子で音声を入力
NTCS/PAL(Y In)&Analog RCA Audio　＊コンポジットでビデオ，RCA端子で音声を入力
S-Video&Analog RCA Audio　＊S-Videoでビデオ，RCA端子で音声を入力

Use video setup in NTSC　＊NTSCの規格選択
日本とアメリカ

Select output processing ＊出力信号をアップまたはダウンコンバート
Off
720p HD to 1080i HD
HD to SD letterbox 16:9
HD to SD Anamorphic 16:9

Select input processing　＊入力信号をアップまたはダウンコンバート
Off
1080i HD to SD Letterbox 16:9
1080i HD to SD Anamorphic 16:9
720p HD to SD Letterbox 16:9
720p HD to SD Anamorphic 16:9
SD Letterbox 16:9 to 1080i
SD Anamorphic 16:9 to 1080i


]]>
      <![CDATA[===================

・初代Xboxの接続
今回はコンポーネントでの接続
D４(720p)対応の鉄騎をコンポーネントで入力

プレビューには<a href="/link.php?url=http://axts10.web.infoseek.co.jp/kusunoki/">くすのき電算室</a>の<a href="/link.php?url=http://axts10.web.infoseek.co.jp/kusunoki/kusunokitvhd/">くすのきTVHD</a>(0.99)を使用させてもらいました。

くすのきTVHDではオーバーレイを利用しているので画面取り込みなどをする際には<a href="/link.php?url=http://mosax.sakura.ne.jp/fswiki.cgi?page=Other#p0">OLC</a>などでオーバーレイを解除する必要がありました。

＊全てクリックで拡大します

<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://tasyu.com/e/img/090822-5.PNG"><img alt="090822-5.PNG" src="http://tasyu.com/e/assets_c/2009/08/090822-5-thumb-640x373-129.png" width="640" height="373" class="mt-image-none" style="" /></a></span>

<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://tasyu.com/e/img/090822-3.PNG"><img alt="090822-3.PNG" src="http://tasyu.com/e/assets_c/2009/08/090822-3-thumb-640x373-127.png" width="640" height="373" class="mt-image-none" style="" /></a></span>

<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://tasyu.com/e/img/090822-4.PNG"><img alt="090822-4.PNG" src="http://tasyu.com/e/assets_c/2009/08/090822-4-thumb-640x373-131.png" width="640" height="373" class="mt-image-none" style="" /></a></span>

・PecaTV 1.05でもプレビューを確認
x1倍表示、x0.5倍表示共に大して負荷に変わりは感じられませんでした。
・ふぬああでもプレビューを確認

ふぬああの設定は
ビデオキャプチャピン(カスタム)
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="090824-2.PNG" src="http://tasyu.com/e/img/090824-2.PNG" width="536" height="441" class="mt-image-none" style="" /></span>

・HD対応ゲーム(D2)
Intensity Proは、D2(480p)の取り込みには対応していないので、あらかじめD２出力はオフに設定しておきます。
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="090822-7.PNG" src="http://tasyu.com/e/img/090822-7.PNG" width="614" height="435" class="mt-image-none" style="" /></span>

この状態で入力信号を1080iに変換(SD Anamorphic 16:9 to 1080i)してやることでHD非対応またはD2対応のゲームも取り込むことができました。
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="090822-8.PNG" src="http://tasyu.com/e/img/090822-8.PNG" width="656" height="472" class="mt-image-none" style="" /></span>

当然ですが小さな画面を1080iに拡大表示しているのでD4ゲームよりは粗い結果になりました。

＊クリックで拡大できます。

D2(480p)対応ゲーム　NINJA GAIDEN Black (x0.5表示)
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://tasyu.com/e/img/090822-9.PNG"><img alt="090822-9.PNG" src="http://tasyu.com/e/assets_c/2009/08/090822-9-thumb-640x374-135.png" width="640" height="374" class="mt-image-none" style="" /></a></span>
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://tasyu.com/e/img/090822-10.PNG"><img alt="090822-10.PNG" src="http://tasyu.com/e/assets_c/2009/08/090822-10-thumb-640x374-137.png" width="640" height="374" class="mt-image-none" style="" /></a></span>

HD非対応ゲーム　MURAKUMO(x0.5表示)
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://tasyu.com/e/img/090822-13.PNG"><img alt="090822-13.PNG" src="http://tasyu.com/e/assets_c/2009/08/090822-13-thumb-640x374-141.png" width="640" height="374" class="mt-image-none" style="" /></a></span>
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://tasyu.com/e/img/090822-14.PNG"><img alt="090822-14.PNG" src="http://tasyu.com/e/assets_c/2009/08/090822-14-thumb-640x374-143.png" width="640" height="374" class="mt-image-none" style="" /></a></span>


＊ふぬああやPecaTVでも取り込むことができましたが、ffdshowなどでインターレース解除しないとインターレス特有の横線が現れてしまうので、負荷の面からはくすのきTVHDで表示するのが適していそうです。

ふぬああの設定は
ビデオキャプチャピン(カスタム)
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="090822-11.PNG" src="http://tasyu.com/e/img/090822-11.PNG" width="536" height="434" class="mt-image-none" style="" /></span>
ビデオキャプチャフィルタ
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="090822-12.PNG" src="http://tasyu.com/e/img/090822-12.PNG" width="452" height="316" class="mt-image-none" style="" /></span>


===================
・Xbox360の接続
HDMIで入力、720pでプレビューはくすのきTVHD
音声はHDMIでなくPCのライン入力に入力しました。

*クリックで拡大します。

THE IDOLM@STER Live for You!
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://tasyu.com/e/img/090901-0.PNG"><img alt="090901-0.PNG" src="http://tasyu.com/e/assets_c/2009/09/090901-0-thumb-640x372-151.png" width="640" height="372" class="mt-image-none" style="" /></a></span>

<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://tasyu.com/e/img/090901-1.PNG"><img alt="090901-1.PNG" src="http://tasyu.com/e/assets_c/2009/09/090901-1-thumb-640x372-153.png" width="640" height="372" class="mt-image-none" style="" /></a></span>

<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://tasyu.com/e/img/090901-2.PNG"><img alt="090901-2.PNG" src="http://tasyu.com/e/assets_c/2009/09/090901-2-thumb-640x372-155.png" width="640" height="372" class="mt-image-none" style="" /></a></span>

HDMIで入力し、出力をHDMIにしてプレイしてみましたが、とくに遅延も感じられませんでした。


===================
・PSP-2000の接続
初代Xbox際に説明した通りD2(480p)には対応していません。
インターレス出力にして、初代Xbox同様1080iに変換すればメニュー画面等は取り込むことができますが、当然ながらゲーム画面は取り込むことはできません。
＊クリックで拡大できます。(x0.5表示)
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://tasyu.com/e/img/090822-15.PNG"><img alt="090822-15.PNG" src="http://tasyu.com/e/assets_c/2009/08/090822-15-thumb-640x374-145.png" width="640" height="374" class="mt-image-none" style="" /></a></span>

しかし、PSP-3000ではインターレスでのゲーム画面出力に対応しているので、この方法を使えば取り込みは可能だと思いますが、手元に無いため試していません。


===================
・Canon HV20の接続

HDカメラなどはIEEEで接続するのが本来の使い方かもしれませんが、HDMI出力がついているので試してみました。こちらは何の問題も無く表示できました。

ビデオ 再生を一時停止してキャプチャ
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://tasyu.com/e/img/090823-0.PNG"><img alt="090823-0.PNG" src="http://tasyu.com/e/assets_c/2009/08/090823-0-thumb-640x374-148.png" width="640" height="374" class="mt-image-none" style="" /></a></span>

===================
・出力
Intensity proには、キャプチャの機能の他に、入力されている信号を出力する機能も備わっています。
ただし、一つだけ条件があり、PCのモニタ上でプレビュー表示をしている必要があります。

出力の方法は二種類で
HDMI&Y,R-Y,B-Y　＊HDMIとコンポーネントを出力
HDMI&NTSC/PAL(Y Out)&S-Video　＊HDMIとコンポジットとS-Videoを出力
があります。共に、二つの出力を同時に使用することが可能で、前者の場合、HDMIとコンポーネントから入力された信号が出力されます。
アクションゲームをプレイしてみましたが、得に遅延は感じられませんでした。

ただし、環境の問題かもしれませんが、1080i変換(SD Anamorphic 16:9 to 1080i)を利用している映像の場合、コンポーネントでは正常に表示されましたが、HDMIの出力は色がおかしくなってしまいました。

NINJA GAIDEN Black 1080i変換(SD Anamorphic 16:9 to 1080i) HDMI出力　＊カメラにて撮影
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="IMG_0990_R.JPG" src="http://tasyu.com/e/img/IMG_0990_R.JPG" width="640" height="480" class="mt-image-none" style="" /></span>

]]>
   </content>
</entry>

<entry>
   <title>高電圧　放電現象</title>
   <link rel="alternate" type="text/html" href="http://tasyu.com/e/2009/04/post_6.php" />
   <id>tag:tasyu.com,2009:/e//4.1737</id>
   
   <published>2009-04-25T03:34:29Z</published>
   <updated>2009-04-25T04:11:41Z</updated>
   
   <summary> 球対球　放電現象 FLASHプレーヤー がインストールされていないかJavaS...</summary>
   <author>
      <name>TASYU</name>
      <uri>http://tasyu.com/</uri>
   </author>
   
      <category term="04電気工学" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://tasyu.com/e/">
      <![CDATA[<script type="text/javascript" src="http://labs.tasyu.com/flv/ufo.js"></script><br />

球対球　放電現象
<img src="/e/img/090425-0.png" width="640" height="480"><br>
<p id="player"><a href="/cgi-bin/link.cgi?url=http://www.macromedia.com/go/getflashplayer">FLASHプレーヤー</a> がインストールされていないかJavaScriptが制限されています。</p><br />
<script type="text/javascript">var FO={movie:"http://labs.tasyu.com/flv/flvplayer.swf",width:"512",height:"384",majorversion:"7",build:"0",bgcolor:"#ffffff",allowfullscreen:"true",           flashvars:"file=http://tasyu.com/e/file/MVI_0754.flv&lightcolor=0xffffff&backcolor=0xff7f50&frontcolor=0xCCCCCC"};UFO.create(FO,"player");</script></p>


針対平板　放電現象
<img src="/e/img/090425-1.png" width="640" height="480"><br>
<img src="/e/img/090425-2.png" width="640" height="480"><br>
<p id="player2">
<script type="text/javascript">var FO={movie:"http://labs.tasyu.com/flv/flvplayer.swf",width:"512",height:"384",majorversion:"7",build:"0",bgcolor:"#ffffff",allowfullscreen:"true",           flashvars:"file=http://tasyu.com/e/file/MVI_0762.flv&lightcolor=0xffffff&backcolor=0xff7f50&frontcolor=0xCCCCCC"};UFO.create(FO,"player2");</script></p>
<img src="/e/img/090425-3.png" width="640" height="480"><br>
<p id="player3">
<script type="text/javascript">var FO={movie:"http://labs.tasyu.com/flv/flvplayer.swf",width:"512",height:"384",majorversion:"7",build:"0",bgcolor:"#ffffff",allowfullscreen:"true",           flashvars:"file=http://tasyu.com/e/file/MVI_0763.flv&lightcolor=0xffffff&backcolor=0xff7f50&frontcolor=0xCCCCCC"};UFO.create(FO,"player3");</script></p>
<img src="/e/img/090425-4.png" width="640" height="480"><br>
<p id="player4">
<script type="text/javascript">var FO={movie:"http://labs.tasyu.com/flv/flvplayer.swf",width:"512",height:"384",majorversion:"7",build:"0",bgcolor:"#ffffff",allowfullscreen:"true",           flashvars:"file=http://tasyu.com/e/file/MVI_0764.flv&lightcolor=0xffffff&backcolor=0xff7f50&frontcolor=0xCCCCCC"};UFO.create(FO,"player4");</script></p>

針対針　放電現象
<img src="/e/img/090425-5.png" width="640" height="480"><br>
<p id="player5">
<script type="text/javascript">var FO={movie:"http://labs.tasyu.com/flv/flvplayer.swf",width:"512",height:"384",majorversion:"7",build:"0",bgcolor:"#ffffff",allowfullscreen:"true",           flashvars:"file=http://tasyu.com/e/file/MVI_0773.flv&lightcolor=0xffffff&backcolor=0xff7f50&frontcolor=0xCCCCCC"};UFO.create(FO,"player5");</script></p>
<img src="/e/img/090425-6.png" width="640" height="480"><br>
<img src="/e/img/090425-7.png" width="640" height="480"><br>
<p id="player6">
<script type="text/javascript">var FO={movie:"http://labs.tasyu.com/flv/flvplayer.swf",width:"512",height:"384",majorversion:"7",build:"0",bgcolor:"#ffffff",allowfullscreen:"true",           flashvars:"file=http://tasyu.com/e/file/MVI_0773.flv&lightcolor=0xffffff&backcolor=0xff7f50&frontcolor=0xCCCCCC"};UFO.create(FO,"player6");</script></p>

ガラス板　固体絶縁破壊
<img src="/e/img/090425-8.png" width="640" height="480"><br>
<p id="player7">
<script type="text/javascript">var FO={movie:"http://labs.tasyu.com/flv/flvplayer.swf",width:"512",height:"384",majorversion:"7",build:"0",bgcolor:"#ffffff",allowfullscreen:"true",           flashvars:"file=http://tasyu.com/e/file/MVI_0785.flv&lightcolor=0xffffff&backcolor=0xff7f50&frontcolor=0xCCCCCC"};UFO.create(FO,"player7");</script></p>
<img src="/e/img/090425-9.png" width="640" height="480"><br>
<img src="/e/img/090425-10.png" width="640" height="480"><br>
<p id="player8">
<script type="text/javascript">var FO={movie:"http://labs.tasyu.com/flv/flvplayer.swf",width:"512",height:"384",majorversion:"7",build:"0",bgcolor:"#ffffff",allowfullscreen:"true",           flashvars:"file=http://tasyu.com/e/file/MVI_0787.flv&lightcolor=0xffffff&backcolor=0xff7f50&frontcolor=0xCCCCCC"};UFO.create(FO,"player8");</script></p>

絶縁油(変圧器油)　JIS C2320　液体絶縁破壊
<img src="/e/img/090425-11.png" width="640" height="480"><br>
<img src="/e/img/090425-12.png" width="640" height="480"><br>
<p id="player9">
<script type="text/javascript">var FO={movie:"http://labs.tasyu.com/flv/flvplayer.swf",width:"512",height:"384",majorversion:"7",build:"0",bgcolor:"#ffffff",allowfullscreen:"true",           flashvars:"file=http://tasyu.com/e/file/MVI_0793.flv&lightcolor=0xffffff&backcolor=0xff7f50&frontcolor=0xCCCCCC"};UFO.create(FO,"player9");</script></p>]]>
      
   </content>
</entry>

<entry>
   <title>m2tをAVIとwavに変換</title>
   <link rel="alternate" type="text/html" href="http://tasyu.com/e/2009/03/mpeg_streamclipm2tavi.php" />
   <id>tag:tasyu.com,2009:/e//4.1701</id>
   
   <published>2009-03-17T11:45:50Z</published>
   <updated>2009-03-17T12:39:17Z</updated>
   
   <summary>HV20で録画した動画をHDVSplitでm2tファイルとして取り込んだあと編集...</summary>
   <author>
      <name>TASYU</name>
      <uri>http://tasyu.com/</uri>
   </author>
   
      <category term="03PC" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://tasyu.com/e/">
      <![CDATA[HV20で録画した動画をHDVSplitでm2tファイルとして取り込んだあと編集するためにAVIに変換したい．
ということでやってみた記録

必要ソフトは
<a href="/link.php?url=http://sourceforge.net/project/showfiles.php?group_id=57023">Avisynth</a>
<a href="/link.php?url=http://lags.leetcode.net/codec.html">Lagarith codec</a>
<a href="/link.php?url=http://www.savefile.com/files/893627">M2T_PreProcessor_lagarith.zip</a>

今回導入したのは
Avisynth_2.5.8(32-bit Windows)
Lagarith codec (v1.3.19)

Lagarith codecはReamMeに書いてあるようにlagarith.infで右クリックしてインストール

M2T_PreProcessor_lagarith.zipを展開したフォルダに変換したいm2tファイルをコピーして
_Run_Bob_Deint.batを実行すればあとは自動的に変換してくれました．

約一分のm2tファイルで2.68GBのAVIファイルと12.2MBのwavファイルに変換されました．


参考
<a href="/link.php?url=http://forum.videohelp.com/topic303573.html">VideoHelp.com　Convert m2t to avi using AviSynth</a>]]>
      
   </content>
</entry>

<entry>
   <title>UbuntuからWinTV-GO PLUS(bt878チップ)キャプチャカードのTVを見る</title>
   <link rel="alternate" type="text/html" href="http://tasyu.com/e/2009/03/ubuntubt878tv.php" />
   <id>tag:tasyu.com,2009:/e//4.1692</id>
   
   <published>2009-03-12T16:22:34Z</published>
   <updated>2009-03-19T15:02:28Z</updated>
   
   <summary>筆記途中です 端末を開いて bt878チップのキャプチャカードが刺さっているか確...</summary>
   <author>
      <name>TASYU</name>
      <uri>http://tasyu.com/</uri>
   </author>
   
      <category term="03PC" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://tasyu.com/e/">
      <![CDATA[<strong>筆記途中です</strong>

端末を開いて

bt878チップのキャプチャカードが刺さっているか確認
<strong>lspci | grep Bt878</strong>

認識されているとこんな感じで表示されます
<blockquote>00:0e.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
00:0e.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)</blockquote>

<strong>sudo gedit /etc/modules</strong>
最後の行にbttvを追加
<blockquote>bttv</blockquote>

bttvに関するオプションのファイルを作る
<strong>sudo gedit /etc/modprobe.d/bttv</strong>

<blockquote>
# bttv
alias char-major-81 videodev
alias char-major-81-0 bttv
# My TV Card
options bttv card=10 pll=1 adc_crush=0
</blockquote>

tvtimeをインストール
<strong>sudo apt-get install tvtime</strong>
途中でNTSC-JPを選択
TVの種類を選択

チャンネルを検索(時間が結構かかります)
<strong>sudo tvtime-scanner</strong>

起動
<strong>sudo tvtime &</strong>

参考
<a href="/link.php?url=http://ubuntuforums.org/showthread.php?t=153935">Howto setup a bt878 TV Card</a>
<a href="/link.php?url=http://www.linux.or.jp/JF/JFdocs/BTTV.html">The BTTV Mini-HOWTO</a>]]>
      
   </content>
</entry>

<entry>
   <title>Net_SmartIRCを利用したPHPのIRCBOT</title>
   <link rel="alternate" type="text/html" href="http://tasyu.com/e/2009/01/net_smartircphpircbot.php" />
   <id>tag:tasyu.com,2009:/e//4.1622</id>
   
   <published>2009-01-17T07:17:35Z</published>
   <updated>2009-01-17T07:36:25Z</updated>
   
   <summary>チャンネルの維持のためにIRCBOTをつくってみた． 実装済み -指定チャンネル...</summary>
   <author>
      <name>TASYU</name>
      <uri>http://tasyu.com/</uri>
   </author>
   
      <category term="02Web" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://tasyu.com/e/">
      <![CDATA[チャンネルの維持のためにIRCBOTをつくってみた．

実装済み
-指定チャンネルの維持
-ローカルユーザーにオペレータ権限を付与
-URLを検出したらタイトル取得して表示
-終了コマンド

指定チャンネルの維持はサンプルの通りに追加して行けばできた
$irc->join(array("#チャンネル1","#チャンネル2"));

ローカルユーザーにオペレータ権限を付与は入室を検出したらhostを参照してローカルユーザーならオペレーション権限を付与．
コマンドの方法が分からなくてちょっと迷った．
メッセージのサンプルのように
$irc->message(~)
を
$irc->op(チャンネル名,ニックネーム)
で成功

URLの検出はメッセージを正規表現でURLか判別してリンククッションの時のようにタイトルを取得して表示

終了コマンドはサンプルをそのまま使った．
一応いたずらとか誤認識を避けるためにローカルユーザーか判別するようにだけ加えておいた


詳細
<a href="http://labs.tasyu.com/ircbot/">http://labs.tasyu.com/ircbot/</a>

動作サンプル
IRC.TASYU.COM #lobby
<a href="irc.tasyu.com">irc.tasyu.com</a>]]>
      
   </content>
</entry>

<entry>
   <title>PEAR マネージャーのアップグレード</title>
   <link rel="alternate" type="text/html" href="http://tasyu.com/e/2009/01/pear.php" />
   <id>tag:tasyu.com,2009:/e//4.1616</id>
   
   <published>2009-01-06T06:47:00Z</published>
   <updated>2009-01-06T07:49:35Z</updated>
   
   <summary>PEARでライブラリを追加しようとしたらマネージャーのバージョンが低いと $ p...</summary>
   <author>
      <name>TASYU</name>
      <uri>http://tasyu.com/</uri>
   </author>
   
      <category term="03PC" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://tasyu.com/e/">
      PEARでライブラリを追加しようとしたらマネージャーのバージョンが低いと

$ pear upgrade PEAR

でアップグレードできるみたい

今回はXML_RPCが必要と言われたから先に

$ pear install XML_RPC

でインストール
      
   </content>
</entry>

<entry>
   <title>MySQL　DATE型のSELECT文検索</title>
   <link rel="alternate" type="text/html" href="http://tasyu.com/e/2008/10/mysqldateselect.php" />
   <id>tag:tasyu.com,2008:/e//4.1528</id>
   
   <published>2008-10-25T07:44:07Z</published>
   <updated>2008-10-25T07:51:29Z</updated>
   
   <summary>日付型　0000-00-00の形式で保存されているDATE型をSELECT文で検...</summary>
   <author>
      <name>TASYU</name>
      <uri>http://tasyu.com/</uri>
   </author>
   
      <category term="02Web" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://tasyu.com/e/">
      日付型　0000-00-00の形式で保存されているDATE型をSELECT文で検索する方法

年指定

SELECT * FROM テーブルネーム WHERE　YEAR(フィールド名) = 検索する年

月指定

SELECT * FROM テーブルネーム WHERE　MONTH(フィールド名) = 検索する月

日指定

SELECT * FROM テーブルネーム WHERE　DAY(フィールド名) = 検索する日

全部そろってる場合は　普通に　フィールド名 = 年-月-日　で検索



      
   </content>
</entry>

<entry>
   <title>libpng.so.2の依存性エラー</title>
   <link rel="alternate" type="text/html" href="http://tasyu.com/e/2008/06/libpngso2.php" />
   <id>tag:tasyu.com,2008:/e//4.1301</id>
   
   <published>2008-06-22T05:46:04Z</published>
   <updated>2008-06-22T05:46:04Z</updated>
   
   <summary>プリンタドライバのインストール作業でlibpng.so.2が必要になった インス...</summary>
   <author>
      <name>TASYU</name>
      <uri>http://tasyu.com/</uri>
   </author>
   
      <category term="03PC" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://tasyu.com/e/">
      プリンタドライバのインストール作業でlibpng.so.2が必要になった

インストールされているのはlibpng.so.3

調べて見ると

libpng10

を入れるとlibpng.so.2がインストールされる模様

aptコマンドでインストールすると解決
      
   </content>
</entry>

<entry>
   <title>改行コードのエラー</title>
   <link rel="alternate" type="text/html" href="http://tasyu.com/e/2008/04/post_5.php" />
   <id>tag:tasyu.com,2008:/e//4.1188</id>
   
   <published>2008-04-20T14:53:18Z</published>
   <updated>2008-04-20T14:53:19Z</updated>
   
   <summary>なんか復旧作業の中で改行コードがおかしくなったらしく /bin/sh: bad ...</summary>
   <author>
      <name>TASYU</name>
      <uri>http://tasyu.com/</uri>
   </author>
   
      <category term="03PC" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://tasyu.com/e/">
      <![CDATA[なんか復旧作業の中で改行コードがおかしくなったらしく

/bin/sh: bad interpreter: No such file or directory

ってエラーのメールが届くようになった，，，

とりあえず該当のファイルを

$ mv xxxx.sh xxxxx.bk
$ tr -d '\r' < xxxxx.bk > xxxxx.sh
$ chmod +x xxxx.sh

これで修正終わり♪]]>
      
   </content>
</entry>

<entry>
   <title>post2blogのインストール方法</title>
   <link rel="alternate" type="text/html" href="http://tasyu.com/e/2008/04/post2blog.php" />
   <id>tag:tasyu.com,2008:/e//4.1185</id>
   
   <published>2008-04-20T04:25:26Z</published>
   <updated>2008-05-22T17:58:39Z</updated>
   
   <summary>スクリプトのダウンロード Vine3.2　postfixの環境で設定 メールを受...</summary>
   <author>
      <name>TASYU</name>
      <uri>http://tasyu.com/</uri>
   </author>
   
      <category term="03PC" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://tasyu.com/e/">
      <![CDATA[<a href="/link.php?url=http://minken.net/mt/archives/000473.html">スクリプトのダウンロード</a>

Vine3.2　postfixの環境で設定

メールを受け取るユーザーの作成　＊

スクリプト内の設定を修正
サーバーにアップロード
実行許可を与える
#chmod 755

postfixのmain.cfを編集

allow_mail_to_commands = alias

を追記

postfixのaliasesファイルを編集

#vi /etc/postfix/aliases

ユーザー名: "|/home/xxxx/post2blog"

を追記

aliasesの更新
# newaliases

postfix再起動
# service postfix restart


ちょっとだけ引っかかったのはmy $urlの設定
メール送っても更新されなくてログを見ると
Command output: 500 Can't connect to tasyu.com:80 (connect: timeout) at /xxxxx/xxxxxx/post2blog line 97

my $urlにはmt-xmlrpc.cgiのアドレスをhttp://の形式で書くんだけど
hostsをいじって無ければドメイン名からはアクセスできない

なので
my $url= http://サーバーのIPアドレス/xxxx/xxxx/mt-xmlrpc.cgi
って感じにしてやれば大丈夫]]>
      
   </content>
</entry>

<entry>
   <title>簡易投票プログラム</title>
   <link rel="alternate" type="text/html" href="http://tasyu.com/e/2008/03/post_4.php" />
   <id>tag:tasyu.com,2008:/e//4.1106</id>
   
   <published>2008-03-07T15:31:15Z</published>
   <updated>2008-03-07T15:36:24Z</updated>
   
   <summary>ピアキャスなどで配信ソフトのリクエストを貰うために製作 掲示板には書き込みしなく...</summary>
   <author>
      <name>TASYU</name>
      <uri>http://tasyu.com/</uri>
   </author>
   
      <category term="03PC" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://tasyu.com/e/">
      <![CDATA[ピアキャスなどで配信ソフトのリクエストを貰うために製作

掲示板には書き込みしなくてもワンクリックならしてくれるかなって思惑で

<a href="http://labs.tasyu.com/tohyo/">動作サンプル</a>

ダウンロードは<a href="http://labs.tasyu.com/">TASYULABS</a>より]]>
      
   </content>
</entry>

</feed>

