qshinoの日記

Powershell関係と徒然なこと

2020-07-01から1ヶ月間の記事一覧

cable latency

cable latency https://www.arista.com/assets/data/pdf/Copper-Faster-Than-Fiber-Brief.pdf http://www.qsfp-100g-aoc.com/2019/03/25/how-to-reduce-network-latency-with-10g-sfp-dac-cable-40g-qsfp-dac-cable

Android A2DP sink

ref https://www.semicolonworld.com/question/49112/android-device-as-a-receiver-for-a2dp-profile

CFR, IFR, 死亡率

まとめ 名前 説明 新型コロナ インフルエンザ CFR 確定診断者の致命率 1-10% 0.02-0.03% IFR 推定感染者の致命率 0.3-0.6% 0.02-0.03% 死亡率 人口辺り死者数 参考 https://natgeo.nikkeibp.co.jp/atcl/web/19/050800015/051100003/?ST=m_column&P=4

epiforcast

epiforcast 後でやらないかも。 参考 https://epiforecasts.io/covid/methods.html

Python スクレイピング

例 https://qiita.com/umyomyomyon/items/0888dff584666d948dd4

Python Classやインスタンスにメソッド追加。

メソッド追加 Pythonでクラス定義後やインスタンス生成後にメソッドをクラスやインスタンスに追加する方法 クラスにメソッドを追加 インスタンスにメソッドを追加 クラスにメソッドを追加 クラスに関数を追加 class poi: def __init__(self): pass def add(s…

GOTOトラベルキャンペーン

Gotoトラベルキャンペーン申請 申請には下記の書類が必要です。 GOTOキャンペーン申請書類 宿泊証明書と領収書は後でもらうのは面倒なので、忘れずに宿からもらいましょう。 宿泊証明書 領収書 申請書 個人情報同意書 https://travelersnavi.com/coupon/goto…

vcs save and restore

HDL

save and restore vcsでsave, restore を使い、uvmシミュレーションの初期化部分実行後にsave, その他の試験をrestore 後に実行する。 実行イメージ # build vcs -sverilog -ntb_opts uvm a.sv -debug # init and save ./simv +UVM_TESTNAME=general -ucli -…

vmc ip sim model

HDL

vmc ref https://www.systemverilog.io/vmc-model

vcs vpdfiles

HDL

vcs vpdfile control dedign_1がvpd出力モジュール・インスタンス、ネットやレジ指定も可能。但し、階層指定も必要? `ifdef comppostprocess initial if ($test$plusargs("runpostprocess")) begin $vcdpluson(0,design_1); $vcdplustraceon(design_1); $vc…

救急指定病院、1次2次3次

救急指定病院 消防法「救急病院等を定める省令」 救急指定病院は『救急患者の診療に協力できるという旨を都道府県に申し出た医療機関のうち、認定条件を満たし、かつ都道府県知事が認めた病院・診療所』 救急指定病院は役割に応じて1-3次に分類されている。 …

ctime of a file, directory

python, ファイルの更新時刻取得 更新時刻等取得方法。どれでもほぼ同等 os.path.getctime(filename) os.stat(filename).st_atime pathlib.Path(filename).stat().st_mtime from datetime.datetime import fromtimestamp from os.path import getctime from …

uvm memo

Architecture Basic entities 1.1 The Typical UVM Testbench Architecture 1.1.1 UVM Testbench 1.1.2 UVM Test 1.1.3 UVM Environment 1.1.4 UVM Scoreboard 1.1.5 UVM Agent 1.1.6 UVM Sequencer 1.1.7 UVM Sequence 1.1.8 UVM Driver 1.1.9 UVM Monitor …

Verification Document List

List [1]UVM Spec. "Universal Verification Methodology (UVM) 1.2 User's Guide" https://www.accellera.org/images/downloads/standards/uvm/uvm_users_guide_1.2.pdf [2]Tutorial https://verificationguide.com/uvm/uvm-scoreboard-example/ [3]UVM int…

uvm_testname

HDL

初めに UVMでは一つのモデルで複数の試験を可能にするため、simulatorからモデルに試験名を渡す事ができる。 一般的にmodel側でrun_test() を実行する際の引数=試験名をsimulator の+UVM_TSTNAME=試験名 オプションで渡す。 以下は以下はサンプルを示す。 uv…

python ディレクトリを再帰的に取得

HDL

ディレクトリツリーを表示 import glob,os def tree( base ): if base[-1] == '/': base = base[:-2] for f in glob.glob(base+'/**', recursive=True): if os.path.isdir(f): print(f) # main tree( '.' ) glob(pattern, recursive=True)のpattern が**の場…

python variable existance check

check variables if 'aaa' in locals(): pass if 'bbb' in globals(): pass if hasattr(obj,'ccc'): pass

python webapp django with mysql

Django 必要な物 centos python3 apache Django python mysql mod_wsgi MySql setupするもの Django mysql db作成他 apache config 導入編 centos,python3,apache, mysqlは導入済みとする。残りは、 Django python-mysql mod_wsgi Django sudo pip3 install …

排他制御

排他制御 pythonで複数プロセスの排他制御。 案1 open 案2 mkdir 案1 open(mode='x') mode=x 排他的オープン。存在していた場合はエラー、存在しない場合はファイルを作成する。 import os class test: failed=1 passed=0 bug=2 file="lock" def acquire(sel…

git server

git server サーバの立て方。サーバの種類 local ssh https git protocol 全体の流れ sv: bare ディレクトリ作成 /opt/git/poi.git wk: originにsvのbare dirを登録 wk: push おまけ。wk: 新ディレクトリにclone 。poi ディレクトリが作成される。 例 ここで…

スウェーデン

スウェーデン https://www.msn.com/ja-jp/news/coronavirus/%E5%91%BD%E3%82%82%E7%B5%8C%E6%B8%88%E3%82%82%E6%95%91%E3%81%88%E3%81%AA%E3%81%8B%E3%81%A3%E3%81%9F%E3%81%93%E3%81%A8%E3%81%8C%E6%98%8E%E3%82%89%E3%81%8B%E3%81%AB%E2%80%A6%E3%83%AD%E3…

startup for hw

memo https://startup-beam.tokyo/contents/2020-06-22/?utm_source=tw_fj&utm_medium=social&utm_campaign=tokyo_2020

task spooler

候補 linux 向け Task Spooler 基本的なスプーラ ts command により実行。 ts キュー表示 ts xxx xxxコマンド投入 ts -c コマンド出力表示/block する ts -t ラスト10行表示/blockしない https://www.ostechnix.com/add-linux-commands-queue-execute-one-on…

imperial colledge covid sim

sim https://www.imperial.ac.uk/news/197799/imperial-develops-coronavirus-outbreak-simulation-tools/ model https://www.imperial.ac.uk/news/197656/potential-us-covid-19-resurgence-modelled-lockdowns/

新型コロナに効く界面活性剤入り家庭用洗剤

リスト https://www.nite.go.jp/information/osirasedetergentlist.html 次亜塩素酸水等の記事 https://www.buzzfeed.com/jp/kensukeseya/covid-nite-1

Graph tools

Graph https://dev.classmethod.jp/articles/drawing_tools/

Latex Graph

pdflatex with XeLaTex https://tex.stackexchange.com/questions/553106/shifted-vpaths-are-cropped-in-feynmp/553169#553169

Python with statement

with satement with INSTANCE as VARIABLE: ... example with open(filename) as f: txt = f.read() print(txt) with instance class It should implement following methods. __enter__(self) __exit__(self, exception_type, exception_value, traceback) …

携帯4G band

一覧 キャリア バンド 共通バンド Docomo +19/21 1/3/+28/42 au 11/+18/21/+26/41 sbm +8/11/41 rakuten mini 最新 3/4/5/+18/+19/+26/+28 docomo +19 au +18/+26 sbm なし 共通 3/28 まとめ 4G キャリアバンド Docomo 1/3/+19/21/+28/42 au 1/3/11/+18/21/+…

Pcie packet type

posted non-posted completion Type Cmd wo/data Cmd w/data completion cpl cpld posted msg mwt, msgd non-posted mrd, iord, cfgrd iowt, cfgwt, atomics cpl > non-posted > posted cplv = always on non-posted = posted = 転送長が分からない段階での…