ROOT v6.36 on Ubuntu 24.04

libtbb.so.12 not found のときの対処

sudo apt-get install libtbb-dev

カテゴリー: 未分類 | ROOT v6.36 on Ubuntu 24.04 はコメントを受け付けていません

WSL の起動が遅いときの対処 systemd-networkd-wait-online.service が遅い

Windows11 の WSL2 の Ubuntu を アップグレードして Ubunts 24.04 LTS にしたら WSL の起動が遅くなってしまった(数分かかる?).

systemd-analyze blame
すると起動時に時間がかかる順でサービスが表示される.
何故か systemd-networkd-wait-online.service に 2 min もかかっていることが判明.次のように無効化する

sudo systemctl disable systemd-networkd-wait-online.service

systemd-analyze critical-chain
で最も時間のかかっているサービス群を表示できる.

カテゴリー: 未分類 | WSL の起動が遅いときの対処 systemd-networkd-wait-online.service が遅い はコメントを受け付けていません

Julia

julia> >]
pkg> generate MyExample

すると MyExample ディレクトリと下記のサブディレクトリができる.
$cd MyExample

./
├── Project.toml
└── src
└── MyExample.jl

(pkg> add Documenter はすでにされている状態で)
MyExample プロジェクトのルートディレクトリで

pkg> activate docs/

カテゴリー: 未分類 | Julia はコメントを受け付けていません

bashで関数の標準出力を配列として受け取って利用

例えば何らかのpythonコマンドの計算結果で2つの値 100, 99 が print で標準出力に 出てくるとする:

これを bash スクリプト中で受け取って使うには,

でコマンドの結果を受け取る.( )でくくると配列として受け取る
配列を使う時は {$rarr[0]} などとする

カテゴリー: 未分類 | bashで関数の標準出力を配列として受け取って利用 はコメントを受け付けていません

Read and compare command characters with Arduino Ethernet Shield

client.read() returns single byte.
https://www.arduino.cc/reference/en/libraries/ethernet/client.read/

A simple test sketch based on “Chat Server” example.

One gets following Serial monitor after sending a set of characters “ABCD” by, for example, socket.send(“ABCD”.encode(“utf-8”)) in a python script.


カテゴリー: 未分類 | Read and compare command characters with Arduino Ethernet Shield はコメントを受け付けていません