It is best not to modify the registry. Make a backup when you do.

2023.06.22

Logging

Good morning. It’s better not to modify the registry in Windows 11. If you do, make sure to take a backup. I, unfortunately, didn’t take a backup and messed with the Bluetooth registry, causing issues with the recognition of Bluetooth 5 devices. As a result, I had to use Bluetooth 4 devices until recently.

I decided to take action and realized that things couldn’t continue as they were, so I performed a fresh installation of Windows 11. However, it took quite some time to reinstall all the software on my custom-built PC, and ultimately, it ended up consuming my entire day off. As I mentioned in my recent blog post, I also want to separate my work PC from my personal PC. It’s a matter of mindset and being prepared for any potential issues. I’ve kept separate accounts and made sure to minimize the usage of the C drive space.

For now, I’m able to work with this setup. ‘HIROYUKI’ once said that installing antivirus software is foolish, but I wonder what the consensus is on that matter. How do you all handle it?

タグ

-i, and ultimately, but I wonder, couldn't continue as they were, devices, devices until, drive space, Good morning, HIROYUKI, However, I'm, installing antivirus software, is foolish, it ended up, it took, matter, on my custom-built, once said that, recently, unfortunately,

文字の置き換えはコマンドラインから

2017.09.19

Logging


文字の置き換えは「sed」というコマンドを使うことで
文字の置き換えは可能ですが、文字の置き換えを行なった後、
ファイルの保存もしくは上書き保存を行わないと意味が無いので
注意が必要になります。
例えばリナックス系のサーバで文字を置きたい場合、このような感じに
記述すると文字の置き換えが可能となります。

sed -i -e "s/utf8mb4/utf8/g" mysql.sql

結構、大きめサイズのテキスト形式のファイルも難なく
置き換えが可能です、ちなみにWindowsでも同じようにコマンドから
文字の置き換えすることは可能ですが少々面倒なので、リナックスでの
置き換えを自分は推奨します。
ちなみに文字コードがUTF8ではない場合は
文字コードをiconvでUTF8に置き換え後、文字列の置き換えを
すれば良いのでとても楽です。


ちなみにこちらの動画は悪い例↑
?

タグ

-i, 4, 8, e-, iconv, mb, MYSQL, quot, sed, SQL, UTF-, Windows, コード, こちら, こと, コマンド, サーバ, サイズ, テキスト, ファイル, ライン, リナックス, 上書き, , 保存, 動画, 可能, 場合, 大きめ, 形式, , 必要, 意味, 推奨, 文字, 文字列, 注意, 自分, 記述, 面倒,