qshinoの日記

Powershell関係と徒然なこと

2020-01-01から1年間の記事一覧

PCR検査技師の生産性

検査技師の生産性 中国、1日484万件の検査、検査技師3万8千人→1人1日127件。稼働率を考えると1日約200件。 日本は検査技師約6万人。1割がpcr検査するとして6千人。検査1日1万件として、1人1日2件弱。 数字から見ると、日本の検査技師の生産性が中国の1/100だ…

コロナ関連レポート

pcr test for all city at 青島 https://www.nejm.org/doi/full/10.1056/NEJMc2032361 6-month consequences of COVID-19 in patients discharged from hospital: a cohort study https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(20)32656…

コロナ年表

Twitter @yamakai74 さん作 これは凄い力作なので宣伝。 https://twitter.com/yamakai74/status/1293719155430928384?s=19

QuarantineとIsolation

# 日本語では隔離と訳される事が多いisolation とQuarantine.米国公衆衛生局?HHSでの定義Isolation separates sick people with a contagious disease from people who are not sick.Quarantine separates and restricts the movement of people who were …

英国の確保中ワクチン

一覧 英国政府が投資し確保中のワクチン数。参考)英国人口約67M。 adenoviral vaccines (Oxford/AZ)、100M個 mRNA vaccines (BioNTech/Pfizer & Imperial)、30M個 inactivated whole virus vaccines (Valneva)、60M個 protein adjuvant vaccines (GSK/Sanofi…

8/3 渋温泉、の猿ホステル

の猿ホステル コロナ感染拡大基調の為か、本来は8人部屋を予約したにも関わらず、一人部屋を使わせてくれた。お風呂は源泉かけ流しの温泉で、内湯と外湯。外湯は正面のホテルが目に入り、空は真上しか見えないが、朝4時まで入る事ができる。また、部屋に戻り…

イタリア、下水調査結果からR推定

イタリアの下水調査論文から イタリアの下水調査論文から、雑にRを推定してみる。 最初に結論 雑な推論として、イタリアの3月頭までのR=1.7前後と思われる。一時言われていたR=2.5で増加したとすると、感染者が3月段階で9000万人を超えると推計され、現実の…

mysql utf16le

mysql utf系はBOM Byte order mark 未対応。 ファイルからbinaryで取り込み、先頭2バイトを除去したものをキャストすればmysql上の文字列として扱える。 例 // テーブルt のbinカラムにbinary型として、utf16le with bomデータが入っている場合。 select con…

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