学习计划

发到网上是因为觉得不会完成。 Update 06/11/2024 learn math, then algorithm OCaml current delayed SQL can be continued in Rails GUI can use css instead, currently learning older learn algorithm, do some practices on codewars, start from simple ones Learn OCaml Do python or ruby projects with SQL For GUI, do some projects on Android Finished finish ruby videos (rubyworld 2016) read full “the mother of all demos” Programming intro (past few years) OS (Linux/Windows) - in Arch, Wicresoft Computer networking - University, Wicresoft Compilers - Lox

October 16, 2024

关于Ruby

我好懒决定不想写。有空再说吧。

October 15, 2024

博客复活了

关于这个网站 从2022年3月起一直没有更新过。后来让我改成spinx/jupyter了。 现在的状况 听了几个Ruby的演讲,发现我一直没有程序员的懒惰精神。 过去的时间 从哪里说起呢。我从3月拿到Python起,开始使用Python。在公司里做了消息模拟器。大成功。新技术才是前进的方向。 我离职了。去IBE。但是那里的情况不是很好。没有人文关怀。这是C++的通病。或许我只是想离开。 这也和住的地方有关。东三旗是一个废墟。墙太薄。空气不好。我果然需要一个高质量的生活环境。 我的新工作 后来去了微创。做英语技术支持。 但我现在已经辞职了。

October 15, 2024

convert mouse cursor image to left-handed (horizontally flip) using python

Recently I find that Windows mouse cursor is not very friently for left-handed people. Because it point from right to left. So I wonder if there is a way to change it to “left to right”. I searched the internet but havnen’t found one. Further search give me a message that the “cur” file format is a derivation of the “ico” format: https://en.wikipedia.org/wiki/ICO_(file_format) So I think if we can flip it programatically. ...

September 29, 2024

PyQt webbrowser become a virus

I’m trying to combine backend and frontend. I’ve created a frontend using PyQt webbrowser: from PySide2.QtCore import * from PySide2.QtWidgets import * from PySide2.QtGui import * from PySide2.QtWebEngineWidgets import * import sys class MainWindow(QMainWindow): def __init__(self, *args, **kwargs): super(MainWindow, self).__init__(*args, **kwargs) self.browser = QWebEngineView() self.browser.setBaseSize(800, 600) self.browser.setUrl(QUrl("http://127.0.0.1:8000/")) self.setCentralWidget(self.browser) self.show() def gui_main(): app = QApplication(sys.argv) window = MainWindow() app.exec_() if __name__ == "__main__": gui_main() The backend is using fastapi: from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} def backend(): import uvicorn uvicorn.run(app) So far, everything is good. I can launch backend and start debugging: uvicorn backend:app ...

April 28, 2024

change back iso file's default open program in Windows 7

I change an iso file default open program to C:\Windows\explorer.exe , and I can’t change it back. (Try this in virtual machine, not real computer.) How to change it? My OS is Windows 7. Tried this, but after I change it, the .iso extension disappears from the list. https://stackoverflow.com/questions/14543602/how-to-change-default-program-open-rar-file-which-select-open-file-by-explorer I tried the registry, change Windows.IsoFile entry’s shell->open value, and rebooted, but it didn’t work, too https://www.itechtics.com/set-default-apps/ I deleted the UserChoice subitem of .iso in ...

May 23, 2023

找到方向

体验过C++、java,才发现python真好用。决定用python混饭吃了。 不过找不着得到工作呢…

March 28, 2022

编译Qt

编译Qt 通过 Qt Maintaince Tool 下载源码。 设置编译器环境: Push-Location "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build" cmd /c "vcvars64.bat & set" | ForEach-Object { if ($_ -match "=") { $v = $_.split("=", 2); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])" } } Pop-Location Write-Host -ForegroundColor Green "Visual Studio 2022 Command Prompt variables set." configure: 为了兼容Win7,要设置no-feature-d3d12. # static ..\configure.bat -prefix C:\Qt\5.12.12\msvc2022-static -release -confirm-license -opensource -nomake examples -nomake tests -nomake tools -static -static-runtime -opengl dynamic -angle -combined-angle-lib -no-feature-d3d12 # dynamic ..\configure.bat -prefix C:\Qt\5.12.12\msvc2022-dynamic\ -debug-and-release -confirm-license -opensource -nomake examples -nomake tests -nomake tools -shared -opengl dynamic -angle -combined-angle-lib -no-feature-d3d12 编译 & 安装: $Env:CL="/MP" nmake nmake install

December 21, 2021

Visual Sudio 2022发布啦

微软总是把握软件开发的最前沿方向. 看来ML.NET需要学一学了. 希望能够改变我对机器学习的看法. 15/10/2024 更新 微软还是不行。Just a machine. C++已经过气了。

November 11, 2021

新电脑配置

公司发了工作电脑,是笔记本ThinkBook 14 Gen2 ITL。有16GB运存和512G存储。由于我已经有了一个用来工作的笔记本,这个笔记本就被我拿到宿舍自己用了。小巧方便。 系统更新 联网激活系统后,首先下载更新。更新到了Windows 11. 安装软件 主要有V2ray、Chrome、Windows Terminal、VSCode、Telegram Desktop. 我还安装了VirtualBox用来运行虚拟机。 对了,还有Git for Windows。 虚拟机设置 安装系统后,添加网卡,设置固定IP,然后启用ssh。 通过ssh连接后,升级系统,安装常用软件。 安装cockpit sudo dnf install cockpit sudo systemctl enable --now cockpit.socket sudo firewall-cmd --add-service=cockpit sudo firewall-cmd --add-service=cockpit --permanent web控制台在9090端口。 Windows Terminal设置 更改默认配色为One Half Dark,下载Recursive Font, 更改字体为Rec Mono Linear. 设置默认字号为14,窗口大小为80*24,光标为实心框。 设置Ctrl+D退出(参考): Set-PSReadlineKeyHandler -Key ctrl+d -Function ViExit 卸载软件 卸载联想电脑管家。

October 29, 2021