2017-04-01から1ヶ月間の記事一覧

xillinuxにpipをインストールする

get-pip.pyをダウンロードしてきて sudo python get-pip.py

Ubuntuでユーザをsudoerに追加する

http://qiita.com/white_aspara25/items/c1b9d02310b4731bfbaa gpasswd -a username sudosshでログインしている場合はログアウトしてもう一度ログインするとsudoが効いた

Xillinuxでlightdm(GUI)の自動起動を阻止する

https://unix.stackexchange.com/questions/53671/ubuntu12-04-how-to-disable-a-daemon-process-at-startup/etc/init/lightdm.override を作成して以下を記述 manual再起動

ZYBOのXilinuxのSDカードのリサイズ

resize2fsを使う 初期状態 ディスクがほぼ占有されている root@localhost:~# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/root 1663388 1400292 159160 90% / devtmpfs 255768 4 255764 1% /dev none 51176 640 50536 2% /run none 5120 0…

zynqのブートメッセージ

zynq-uboo 0 Device: zynq_sdhci Manufacturer ID: 74 OEM: 4a45 Name: ASTCTran Speed: 50000000 Rd Block Len: 512 SD version 3.0 High Capacity: Yes Capacity: 7.4 GiB Bus Width: 4-bit reading uEnv.txt ** Unable to read file uEnv.txt ** Copying …

.tar.xzを.tar.gzに変換する

.tar.xz を .tarに変換 xzコマンド http://qiita.com/ymaru/items/87fbc4e68f5995d3964c $ xz -dv debian-wheezy-7.5-armhf.com-20140603.tar.xz.tar を .tar.gz に変換 gzipコマンド http://webkaru.net/linux/gzip-command/ $ gzip debian-wheezy-7.5-armh…

zyboをベアメタルでブートする

以下の記事に従うU-Bootを使った ベアメタル・アプリケーションの作り方(FPGAマガジンNo.14) http://www.kumikomi.net/fpga/sample/0014/FPGA14_116.pdf build-xilteraでカーネルイメージのビルド 依存パッケージ追加 sudo apt-get install gawk chrpath s…

ZYBOでramdisk8M.image.gz に書き込む方法

http://marsee101.blog19.fc2.com/blog-entry-2389.html

Zyboのチュートリアル

ZYBO用のEmbedded Linux チュートリアル6(BOOT.bin の生成) http://marsee101.blog19.fc2.com/blog-entry-2918.htmlbitstreamが見つからないC:\zybo_zbs\source\vivado\hw\zybo_bsd\zybo_bsd.sdk\system_wrapper_hw_platform_0\system_wrapper.bit じゃな…

SSH経由でmatplotlibを使う

http://qiita.com/yoshizaki_kkgk/items/bcb45e3bc936ec49ef00 sudo apt-get install python-qt4/etc/matplotlibrc - backend: TkAgg + backend : Qt4AggMac側ssh config ~/.ssh/config Host hoge HostName 192.168.100.xxx User shohei IdentityFile ~/.ssh…

UnityでHello World

http://answers.unity3d.com/questions/36642/can-i-get-an-example-of-hello-world-in-unity-c.html

clojureのアロー演算子

合成関数がつくれる 便利かも (->> (cons 1 nil) (cons 2) (cons 3) (cons 4) (cons 5)) (5 4 3 2 1) >は最初の引数に渡す (-> (- 2.1 1) println) 1.1 nil

ClojureのIncanterで滑らかにプロットする

interpolationをつかう https://github.com/incanter/incanter/wiki/Interpolation 対象とするソフトマックス関数の定義 (defn softmax [a] (let c' (apply max a) c (repeat (length a) c') exp_a (exp (minus a c)) sum_exp_a (sum exp_a) y (div exp_a su…

Clojureで引数の型にしたがって関数をオーバーロードする

defmultiをつかう http://killingout-n-bita.hateblo.jp/entry/2015/03/21/122739 (defmulti pre-process class) (defmethod pre-process java.lang.Long [a] (cons (double a) nil)) (defmethod pre-process java.lang.Double [a] (cons a nil)) (defmethod…

Clojureでソフトマックス関数を実装する

(defn softmax [a] (let c' (apply max a) c (repeat (length a) c') exp_a (exp (minus a c)) sum_exp_a (sum exp_a) y (div exp_a sum_exp_a)] y)) テスト (let [a (matrix (map #(- (* 1/10 %1) 5) (range 100)))] (view (time-series-plot a (softmax a)…

SinatraでPOSTを受ける

http://qiita.com/ms2sato/items/901d8c5ca77c1133522c

ESP8266でPOSTリクエストを送る

http://stackoverflow.com/a/41382751 #include <ESP8266WiFi.h> const char* ssid = "ssid"; const char* password = "password"; const char* host = "server_name"; void setup() { Serial.begin(115200); delay(100); // We start by connecting to a WiFi network Seri</esp8266wifi.h>…

Espr devloperでADCを使う

0-1.0Vが10bitで取得できるらしい http://makers-with-myson.blog.so-net.ne.jp/2016-05-24

Incanterでグラフ描画

https://data-sorcery.org/category/plotting/function-plot time-series-plot scatter-plot histogramあたりをよく使いそう

PythonコードをVerilogに変換するVeriloggen

http://shtaxxx.hatenablog.com/entry/2015/11/04/004533https://github.com/PyHDI/veriloggen

Navigation drawerを実装する

http://qiita.com/ryugoo/items/1180fae3953891131b92

ライセンスが見つからないエラーでXPSが起動しない

バグらしい 14.7 Licensing - Free EDK IP hardware licenses that came with the installation expired on 2016/01/30 https://www.xilinx.com/support/answers/66733.html上記のライセンスをライセンスマネージャで読み込んだ 見つからない、というダイア…

Bluetooth® 4.1を使用して、モノのインターネットのための低電力無線リンクを構築する方法

L2CAPを使う? https://www.digikey.jp/ja/articles/techzone/2014/jun/how-to-build-low-power-wireless-links-for-the-internet-of-things-using-bluetooth-41

Nucleoの電源

https://denshikousakusenka.jimdo.com/開発環境構築/stm32/nucleoの電源系/