Synchronization issues across different operating systems: filename

Today, my colleague create a file in the shared folder named “x bb .txt” via Nextcloud. Originally, I thought there is something wrong with my computer. Scan my system for several hours, nothing was detected. Later, I notice there is a warning notification from Nextcloud, it said because of the limitation of the windows system in the filename, I cannot synchronize the file. Then I renamed the file, and everything becomes normal again. It is also noticed that if there is such a file in a zip file, unzipping the file to a specific folder will not work.

The point is my colleague using mac os and I am using windows. The rules for naming files are not identical.

Windows doesn’t allow these characters in filenames:

< > : “ / \ | ? *

Also, windows does not support long file names.

今天,我的同事通过 Nextcloud 在名为“x bb .txt”的共享文件夹中创建了一个文件。 本来,我以为我的电脑有问题。 扫描我的系统几个小时,没有检测到任何东西。 后来,我注意到Nextcloud有一个警告通知,它说由于windows系统在文件名方面的限制,我无法同步文件。 然后我重命名了文件,一切又恢复正常了。 还要注意的是,如果 zip 文件中有这样的文件,将文件解压缩到特定文件夹将不起作用。

关键是我的同事使用mac os,而我使用的是windows。 命名文件的规则不相同。

Windows 不允许在文件名中使用这些字符:

< > : “ / \ | ? *

此外,Windows 不支持长文件名。

电脑被偷偷安装了挖矿软件protect.exe一路赚钱

今天打开电脑发现word十分卡顿,非常不正常。打开任务管理器出现了一个进程,protect.exe, cpu占用率高达98%。寻找到进程的地址,C:\Program Files (x86)\YiLu\,看名字就是国内的作品。搜索相关信息确认是一个挖矿软件。查看安装时间是1月7日早上6:59, 显然不是我自己安装的软件,估计电脑被黑了。点击 C:\Program Files (x86)\YiLu\unins000.exe卸载。进一步地安装360进行电脑查杀。

查看了下软件的相关信息:

http://www.iguaji.com/yiluzhuanqian.html

1、一路赚钱是 2018 年上线的一款挂机软件。
2、官方描述:软件将利用计算机算力进行分布式计算、网速测试、广告业务等工作。
3、挂机哥经过分析,软件主要执行分布式计算,占比 90%以上,网速测试几乎很少,而广告业务相当于 0。
4、什么是分布式计算呢?挂机哥认为更合适的词应该叫区块链。一路赚钱的核心工作就是挖矿,也许是比特币,也许是其他虚拟币。为什么判断一路赚钱是挖矿呢?因为你挂机的收入多少,与 CPU 和 GPU 性能有关。
5、在一路赚钱官网,列出了用户收入排行榜,假设榜单为真实榜单,那一路赚钱是非常给力的,第一名一年收入超过 20W,第二名到第五名分别是 11 万+、10 万+、6 万+、5 万。(这是高手)
6、当然,这些高手并不是一台机器挂机产生的收入。也许他们的 CPU 和 GPU 级别都比较高,按照单机年收入 500 元算,第五名要有 100 多台配置很高的机器才行。都是需要仰望的存在!!
7、这算是挂机哥分享的第一个挖矿类的挂机项目,以此为起点,后续还将分析更多。

官方网站:https://www.yiluzhuanqian.com/,已经无法访问。https://www.5v13.com/yznr/19097.html有软件的相关介绍。

Compatibility between Microsoft Word and google docs

Microsoft word 和google doc的兼容性问题

Recently I use google docs for teamwork. However, because the original file is made of Microsoft Office Word, there are several issues that some information/feature lost when I save the file with google docs.

  1. The number of the title will not display in google doc.
Original in word
Displayed in Google doc

2. The personal format of text will not take effect in google docs.

I created a format “dasda”

open in Google Docs, my personal format is removed/lost.

3. The color and format of table in google doc is different in Microsoft Word

Table in word
The table in google doc

4, the Equation from MathType is not correct but still readable and can be normal again in Microsoft Word. You will lose all the numbers of equations.

5. Endnote is not compatible with google doc.

WordPress:如何屏蔽垃圾评论

How to block spam comments

有了网站才明白垃圾评论这么多。这里推荐三个插件阻止垃圾评论。

  1. 首先是插件Akismet,这个可以自动阻止一下显然的垃圾评论。下图是我这个网站的垃圾评论拦截记录。只是这个插件的个人版功能有限,所以还需要另一个插件进行辅助。

2. 第二个插件是WP Captcha

这个插件可以给评论设置不同的验证码,比如数学,或者计算等等。例子就在这篇文章的最下方。因为国内不能访问google,所以这个验证码相对来说还是比较弱的。

3. 第三个插件 Wp 安全

这个插件是一种防火墙,可以屏蔽特定的ip。到设置里->垃圾防护->垃圾评论的ip监控。这里可以选择“启用自动阻止垃圾评论的ip”。这样就可以防止某个ip频繁设置垃圾评论。

4. 最后wordpress自身设置

在仪表盘的设置->讨论->禁止使用的评论关键字, 这样就可以对Akismet作为补充。

XGP & EA Play Games list and comments EA play 会员以及游戏推荐

Recently, I bought the EA play membership and have tried a few games. Here I will give some comments of the game. Here I just give the comments.

EA play

  1. Battlefield series. Battlefield 1 and 5 has the best picture quality and the campaigns are also good. The battle with tanks and planes are quite cool. Aside from these two, the picture qualities of the other seires are just soso because of the early release (>5 years ago). Battlefield hardline is not recommed, bored in play. Battlefield Bad company 2, amazing.
  2. Plants vs. Zombies. Good games to relax. The classic 2D one does not have a high resolution setting not suitable for 4k monitor. The 3D ones (Garden warfare, GW2 and Battle for Neighborville) are simillar with good picture quality and cute charaters. The Neighborville has more characters and the nut is the best one to me, funny to play.
  3. Sea of Solitude. The sunny scence is beautiful but the black one is not comfortable to me. The game is not recommended because of the dark style. Aslo like the name of the game, you will fell bad for the story (quarrel between parents, campus bullying) during playing the game. Don’t play this in the evening.
  4. Titanfall2. Excellent game, best mecha game. Nice story and the way to play. The only drawback is the unstable server of EA so that you are not sure wethere you can play the online game or not.
  5. Mass effect. Not finished yet, but the story is cool from others’ review. The picture quality of 1 is so so and not attractive to me. 2 and 3 are better and look relative good.
  6. Crysis remastered. Have not played yet. The picture quality is not as cool as I expected.
  7. Need for speed. A car game. Even though the new ones have better picture quality but my favourite one of this series is “need for Speed Most Wanted (2005)” which is not avaible. Need for Speed™ Hot Pursuit Remastered is similar to Most Wanted (2005), good to play, the the access to free roam is enabled by pressing “L ctrl” in the career page.
  8. Star War: Jedi: Fallen Order has about 20 hours to finish the main mission. It is funning to play as a Jedi. The game has a lot elements similar to Titan Fall 2 and Assassin’s Creed that Jedi is able to run on the wall and climb on the wall.

Xbox Game Pass

  1. Halo Infinite. It takes about 10 hours to finish. Don’t have too much surprise. Some scenes are repeated again and again. The tank Scorpion is quite cool to play.

My hardware is Lenovo Legion 5 Pro 16 82JQ001PGE. AMD 5800H, 32 GB Ram, an external monitor, 4k resolution.

奥地利日常生活小记

这一块就让我记录下奥地利工作生活发生的有意思的事。

今天见到了S,S是坚决不打疫苗的,所谓的顽固派。但是奥地利政府明年要立法强制打疫苗,不然的话就罚款,3600欧。S说了,明年准备给投诉信给政府,而且要找很多人(several millions),这样政府就忙不过来了,看他们怎么办。我称之为人力DDoS攻击, good luck。

2022年1月3日

和S又聊了下政府的政策,S说政府不可能拿到罚款的,S已经准备做老赖了。

2022年1月24日

今天去边上的学校操场跑步,中途来了辆车,下来个大爷。大爷看着我跑了两圈,我就停下来和大爷聊了聊,互相问候了下。原来大爷的腿换了假肢,晚上过来锻炼锻炼适应下新的腿。难怪会看着我跑,估计大爷心里想着他年轻的时候。

Shortcomings of the Bluetooth speaker Sony SRS-XB12

There are two shortcomings of the Sony SRS-XB12. First, it can not be held on or stay asleep without connection to any device. It will automatically shut down. So you need to turn it on every time when u use it. If you have two of them and make them as a pair, then you need to turn on each of them. The most dissatisfying stuff is that if you have two of them as a pair and you want to connect them with another device, then you will have trouble. You need to operate many times, press the “power button” and the “add button” to successfully connect them to another device. All in a word, it is not recommended to buy this model.

Davinci 17 is not running well on Windows 11

It takes sveral mins to load the project on windows 11 which only takes 1 second on windows 10. The hardware is the same, no idea what happened. I do not recommend upgrading to windows11.

不能理解达芬奇的软件设计,自从更新了windows11之后,打开project奇慢无比。loading界面也是。

重装软件之后运行又快了。这里不能安装davinci的control panel。

How to Run Matlab with Visual Studio Code (vs code)

visual studio code 与matlab的配置方法

In order to have a more decent program editor for windows, I try to use vs code to write the m file for Matlab, however, I cannot run it in vs code. Then I start to search for a way to run Matlab script in vs code. Because of the updates of the vs code and related plugins, it takes me about one hour to figure out how to do this. I have read a Chinese tutorial, which is helpful but not enough. Here, I try to list the key steps for the configuration in vs code.

First, install plugins: Code runner (publisher:”Jun Han”), Matlab (publisher:”Xavier Hahn”), Matlab-formatter (publisher:”AffenWiesel”). Just choose the most popular one. Here, matlab-formatter is not necessary.

Second, modify the settings.json of vs code. the file of the setting.json is located in “C:\Users\Rocket\AppData\Roaming\Code\User\settings.json” if you install the vs code in the default directory. The modification parts are highlighted below. You may install Matlab in other folders that you need to change the related path as well.

{
    "python.pythonPath": "C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.9_3.9.1776.0_x64__qbz5n2kfra8p0\\python3.9.exe",
    "editor.renderControlCharacters": true,
    "workbench.editorAssociations": {
        "*.ipynb": "jupyter-notebook",
        "*.m": "default"
    },
    "python.languageServer": "Pylance",
    "auto-build.defaultEnv.name": "STM32F103RET6_creality",
    "security.workspace.trust.untrustedFiles": "open",
    "python.defaultInterpreterPath": "C:\\Program Files\\Python39\\python.exe",
    "diffEditor.renderSideBySide": false,
    "matlab.matlabpath": "C:\\Program Files\\MATLAB\\R2021a\\bin\\matlab.exe",
    "matlab.mlintpath": "C:\\Program Files\\MATLAB\\R2021a\\bin\\win64\\mlint.exe",
    "matlab.linterEncoding": "utf8",
    "code-runner.runInTerminal": true,
    "code-runner.executorMapByFileExtension": {
        ".m" :"cd $dir && matlab -nosplash -nodesktop -r $fileNameWithoutExt",
        ".vb": "cd $dir && vbc /nologo $fileName && $dir$fileNameWithoutExt",
        ".vbs": "cscript //Nologo",
        ".scala": "scala",
        ".jl": "julia",
        ".cr": "crystal",
        ".ml": "ocaml",
        ".exs": "elixir",
        ".hx": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt",
        ".rkt": "racket",
        ".scm": "csi -script",
        ".ahk": "autohotkey",
        ".au3": "autoit3",
        ".kt": "cd $dir && kotlinc $fileName -include-runtime -d $fileNameWithoutExt.jar && java -jar $fileNameWithoutExt.jar",
        ".kts": "kotlinc -script",
        ".dart": "dart",
        ".pas": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt",
        ".pp": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt",
        ".d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt",
        ".hs": "runhaskell",
        ".nim": "nim compile --verbosity:0 --hints:off --run",
        ".csproj": "dotnet run --project",
        ".fsproj": "dotnet run --project",
        ".lisp": "sbcl --script",
        ".kit": "kitc --run",
        ".v": "v run",
        ".vsh": "v run",
        ".sass": "sass --style expanded",
        ".cu": "cd $dir && nvcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt"
    }
}

The third step, save the JSON files and try to run the Matlab file in vs code.

To use matlab-formatter, you need to right-click the open m file and choose the command ” format document”.

the running window is as follows:

The drawback of this method is that the running result will show up in a new window rather than in the terminal of vs code. And also be careful of the name of the running script, the program (Matlab ) may run the script with the same name but in a different folder.

after using this several times, it is not convenient. it is better to editor the script with vs code but run the script in Matlab GUI, then no need to close the pop-up windows. The MathWorks company should do something, even the live script is developed, but not convenient to use.