新千葉 ガーベージ・コレクション

FPGA マガジンやインターフェースで書けなかったこと等をちょぼちょぼ書いてます。@ryos36

2015-11-01から1ヶ月間の記事一覧

NETGEAR の ReadyNAS を使う

WD の 3T を2使って ReadyNAS 102 にインストール。最初、HD を入れるときにセットの仕方がわからなくて難儀した。1 でボタンを押すと 2 のコネクタがスライドして外れるようになっている。そして、スライドさせて HD を入れる。まずは DHCP で立ち上げた。…

Dell のなんか脆弱性

Win32/CompromisedCert.Cという脆弱性があるというアラートが Windows 8.1 で表示された。詳細を見ると C:\Program Files\Dell\Dell Foundation Services\Dell.Foundation.Agent.Plugins.eDell.dll C:\Program Files\Dell\Dell Foundation Services\Dell.Fou…

ghdl で ieee 2008

ghdl で numeric_std を使う方法。結論から書くと --std=08 を使う。ghdl のライブラリの下の list は次の通り。 ieee/ Makefile.inc README std/ vital2000/ ieee2008/ mentor/ redist1164/ synopsys/ vital95/普通に ghdl xxx_tb.vhdl とかすると ieee が…

ghdl で Xilinx の unimacro とか

Xilinx の unimacro と unisims を ghdl でコンパイル。ghdl の使い方を 100 % 把握していないのですが、なんとかなった。まず -i で Import ghdl -i --ieee=synopsys --work=unisim unisims/*.vhd ghdl -i --ieee=synopsys --work=unisim unisims/primitive…

ghdl 再び

hanzer/gVHDL · GitHub 昨日失敗した ghdl のコンパイル。上の github のソースをもってきて gcc-4.9.3 を指定するといまのところコンパイルがうまくいっている。 You need to download and untar the sources of gcc version 4.9.2 [do not modify this lin…

ghdl

cygwin で ghdl をコンパイルするも結局できなかった。おそらく 32bit 環境ならできる。 vhdl/ortho-lang.c がコンパイルできなかった。[追記] 最終的にうまくいったryos36.hatenablog.com以下ダメだった記録。cygwin で ada をインストール。gnatmake が動…

C# で画面キャプチャ

画面をキャプチャする: .NET Tips: C#, VB.NET キャプチャーで来た。

gs で png 出力

gs -dNOPAUSE -dBATCH -sDEVICE=pngalpha -sOutputFile="o.png" screen4.epsgs で DEVICE を pngalpha にすると png 出力になることがわかった。png256 とかもあるのか。 http://ghostscript.com/doc/current/Devices.htm なんだ tiff もできるじゃん。とい…

cygwin postscript で漢字

本当は gs なんだけど。 Cygwin + Ghostscript + Windows TrueTypeフォント - you/uni のとおりに ln -s /cygdrive/c/Windows /usr/share/mswin で /usr/share/ghostscript/ver/Resource/Init/cidfmap に追加 /MS-Gothic << /FileType /TrueType /Path (/usr…

chicken scheme + postscript

postscheme というものを使用して scheme で postscript の出力をしてみた。 h8gi/postscheme · GitHub おかげで postscript がわかりかけてきた。SICP の wave は面白い結果を生む。

tinyclos

tinyclos でプログラミングできつつある。 これは楽。純粋な Lisper じゃない私向き。 define-generic は2回呼ぶとそれまでの登録を消してしまうことがわかった。 #;1> (load "test.scm") ; loading test.scm ... ; loading /usr/lib/chicken/7/tinyclos.im…

tinyclos

Scheme でも CLOS が使える。tinyclos 。1992 に Xerox の人が書いている。たぶんThe Art of the Metaobject Protocol の作者。 読んで解説を書いてる人がいる。http://practical-scheme.net/wiliki/wiliki.cgi?Scheme%3ATinyCLOS複雑そうなのに 1000 行に満…

chicken-install

FreeBSD には alloca.h がない。man alloca とすると stdlib.h を必要とすると書いてある。なぜか chicken の readline は alloca.h を include している。そこで > chicken-install -r readline readline/readline-egg.c を編集 > sudo chicken-install -t …

介護保険制度はレンタルが原則

なんで、介護保険制度はレンタルが原則なのか?例えば、うちのばあい amazon で 12,000 円程度で購入できるトイレの手すりを月 2,000 円で借りている。おおむね6カ月でもともとの金額に達する。レンタルは大体こんなもんだ。なぜレンタルが原則なのかは不明…

scheme でもうすこしできた。

(define last-data10b '()) (define count-in 0) (define count-out 0) (define (line-scaler data10b last-flag) ;; (if (= count-in count-out) (assert (null last-data10b))) (print `(,count-in ,count-out)) (let ((new-value12b (if (= count-in coun…

scheme でなんかできた

(define-syntax count-down00 (ir-macro-transformer (lambda (form inject compare?) (let ((data-n (cadr form)) (sp (caddr form)) (body (cdddr form))) (let ((sp-list-rv (list? sp))) (let ((key-word (if sp-list-rv (car sp) sp)) (num (if sp-list…