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

mount a share directory of qnap located in another netowork.

The situation of the networks is such as: hp-ub(ubuntu, laptop) | | network 1 | network2 nova3(ubuntu, workstation) --------------------------------qnap "homes", "kazu" | | network 1 | mach3(windows) qnap serves shared directories "kazu" a…

Problem caused by emerging virtualbox-guest-additions into gentoo "host"

I made a mistake to emerge virtualbox-guest-additions into gentoo host. This package is designed to be used on gentoo guest. After removing this package, I had a problem that user account startx failed. This problem is due to the design of…

磯竿トップカバーの糸通しを使えるようにする

磯竿トップカバーの糸通しは中古で竿を買ってしばらくして、樹脂の劣化のためだと思うが、糸を通す部分が折れてなくなった。 太目のナイロン糸をエポキシ接着剤でくっつけて、わっかにして、使っていたが、エポキシ樹脂の量が多く、ガイドにこすれて無理やり…

トイレの電灯のスイッチの交換

DIY

トイレの電灯のスイッチが、押してもかっちりとどまらずにぐんにゃり戻り、電灯がつかなくなった。スイッチ部分の機械的摩耗によるものと思われた。夜中、スイッチをセロハンテープで固定し、電灯をつけ、用を足すなど面倒至極である。パーツを手配し交換し…

create and mount a lvm of two 9Tb hdd drives

lvm = logical volume fdisk cannot manage partitions more than 2 Tb. Instead, parted can. Firstly, I checked which of /dev/sd* correspond to the new drives by fdisk and df . They were /dev/sdb and /dev/sdc. Then, I created the partitions: p…

/etc/crontab on Ubuntu 16.04 LTS

Service name = cron Its job setting can be written in /etc/crontab. To check the staus of cron,do the following command as root: service cron status I added the following line at the end of /etc/crontab 00 3 * * 1 root /root/homebk.sh 2>&1…

クロダイ(カイズ)釣りの餌

この地域では,夏になると,下手くその自分でもなんとか小さいクロダイ=カイズ程度はぽつぽつ釣れる.以前住んでいたところほどエサ取りの小鯖に悩まされることはないが,9月ごろにはエサ取りも活性が高くなり,オキアミではすぐ餌が取られることも多い. …

convolution in multidimensional space with a gussian function using scipy.ndimage.gaussian_filter

If y want to convlute your function with a gaussian in multidimensional space, scipy.ndimage.gaussian_filter is useful: from scipy.ndimage import gaussian_filter data3_blur = gaussian_filter(data3, sigma=[1, 0.5, 0]) sigma is a scalar or l…

浴室のシャワーカラン切り替え一時止水が完全には止水しない

DIY

切り替えはできるし,ハンドル等からの水漏れは認められないが,完全にぴたっと止水できず,シャワーの口からちょろちょろ流れてしまう. このような場合は,切替弁ユニットを新品にすればよいらしい.交換も家の大元の止水栓を止める必要はない.水とお湯の…

take care to treat hdf5 files by using h5py

If y open a hdf5 file and do some oeprations in such a way: f = h5py.File(outfile) data4 = f["data4"] condition = f["condition"] for yindx in range(0, condition.shape[1]): for eindx in range(0, condition.shape[3]): if (abs(yindx - 84)**2 +…

xearth on icewm @gentoo linux

なつかしがって,なんとなくxearthをlinuxのデスクトップ画面にしたくなった. ubuntu/unityでは自前でコンパイルしたうえで,desktop環境との干渉を避ける必要があるが,あまりその方法についての情報はなく,諦めている. icewmを使っている自分のgentooで…

釣りの買い足し物品と今後の対策

もう6月も下旬だ.十分水温も温かいので,チヌなども釣れるのではとでかけたが,結果は全くアタリなしであった.昨年釣りを始動したのは7月末だった.この地は2ヶ月ほど遅いようだ..かといって遠路南下して釣る気にはなれない.グレの強い引きは魅力的…

洗面台の水道の水漏れ

DIY

洗面台の蛇口はシャワーヘッドになっており,ホースを伸ばして洗髪等出来るタイプであることに水漏れ箇所を調べていて初めて教えてもらった. あれやこれややっていると水漏れの対策もたった. 1)シャワーヘッドとホースのつなぎ目からの水漏れ: これは,…

python+fortranでmpi並列

○python + fortran pythonからfortranのサブルーチン等を用いるには,pythonのctypesを用いる. fortranでISO_C_bindingを用いる必要はなさげ. ○pythonでのmpi mpi4pyを用いる. ○pythonかつfortranでmpi py2f()でcommをfortran仕様に変換してやることで,f…

audacityによるオーディオテープデジタル化

GWは釣りにも行けず,まあ,この時期はあまり釣れないので良いのだが,終盤になって,テープをファイル化して廃棄する計画を実行に移した. いろいろ検討した結果: 1) テープとテーププレイヤーとアナログアンプとヘッドフォン端子のライン(必須) に,mac…

xterm on mac: disable sound bell

You can disable the sound bell in xterm by writing in /etc/inputrc the folloing sentence: set bell-style none In my mac book pro, there was no /etc/inputrc. So I made the text file of this one line. It worked.

Gentoo linux: how to select a kernel version as default

Grub2 uses a combination of menuentries and submenus. We can select a kenel as default in a manner like this: 1) Edit /etc/default/grub GRUB_DEFAULT="1>10" 2) grub-mkconfig -o /boot/grub/grub.cfg In this case, the 10 th menuentry kernel in…

Macでの未解決問題

mac からwindowsにmicrosoft remote desktopでwindowsを操作する上での問題 1.日本語英語入力の切替えのショートカットが効かない 2.windowsでポップアップウィンドウが出ると,フリーズする ソフトウェア 画像編集 inkscapeは動くが.. 追記: 1.を解決…

macのデスクトップにterminalのランチャー作るやり方

訳あってmac book proを仕事用に使えるようにした. sshログインしやすいように,以前にデスクトップ上にショートカットみたいなものを作った記憶はあるが,どうやって作って,さらに例えばこれらからリモートホストを変更するにはどうしたらよいかわからな…

How to show vasp molecular dynamics trajectory by using vmd

Although vmd ver 1.9 has a vasp plug-in, it does not show the atomic structure as soon as the vasp file is loaded. After the file loaded, u should set the atom style as CPK. It can be done by choosing the Graphics tab -> Representation -> …

dockerのインストール方法@ubuntu

docker のインストール ただしfreeのdocker community https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-repository を参考にすればよい。 必要となるソフトウェアのインストール su - apt updateapt install apt-transport-http…

整備すべきこと

レビン 車検見積もり予約(来週木曜日)済 それまでに ・左ドア内張り剥がれ補修 済 ・地面と底との最低隙間の計測,車検規定確認.済 ・ヘッドランプクリーニング,コーティング ・バンパーこすり跡タッチアップ ・エアフィルター交換 済 ・トランク内清掃 …

XML, 行列演算のためのperl モジュールの追加@ubuntu クラスタ

XMLファイルを読み、中のデータを用いて行列演算して新たな出力を出すperlスクリプトを作った。数台からなる計算機クラスタでqsubで実行すると、XML::TreePPがないと言われて蹴られる。locateすると出てくるのだが。。 解決:クラスタのほかのノードで当該モ…