Usage for vscode

1. c++ vscode debug 1) The "preLaunchTask" tag in launch.json should be the same as the "label" tag in tasks.json. 2) The "g++ -g" tag means debug mode, which will enable the breakpoints in the cpp file/program. 1.1 launch.json { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "C++ Launch", "type": "cppdbg", "request": "launch", "program": "${workspaceRoot}/test", "stopAtEntry": false, //"customLaunchSetupCommands": [ // { "text": "target-run", "description": "run target", "ignoreFailures": false } //], //"launchCompleteCommand": "exec-run", "linux": { "MIMode": "gdb", "miDebuggerPath": "/usr/bin/gdb" }, //"osx": { // "MIMode": "lldb" //}, //"windows": { // "MIMode": "gdb", // "miDebuggerPath": "C:\\MinGw\\bin\\gdb....

March 14, 2024 · 1 min · 153 words · lvsolo

Tips For Linux

the ownership and write/read permission of files on a external disk/portable hard driver changed when reboot a computer. sudo mount -o uid=lvsolo,gid=lvsolo /dev/sdd1 /media/lvsolo/CA89-5817/

February 5, 2024 · 1 min · 24 words · lvsolo

Usage for cloud server

1. using frp to expose local port referring to : frp to expose local port 2. using hugo + nginx to build blog how to install and use hugo theme PaperMod can be found in my later blog essay: tip for hugo themes **but the difference is when we bind a website to a blog, we in fact direct the website DNS to a static web-directory instead of start a server using hugo server ** so we should generate the static website content by running...

January 29, 2024 · 2 min · 421 words · lvsolo

Usages for Old Cellphones

不需要root即可在android手机上安装linux,从而部署各种系统、博客等。 更进一步的,能够通过linux调用手机上的摄像头等传感器,使手机丰富的传感器组件得到利用。 手机用andronix+termux+vnc安装ubuntu系统 不使用桌面的话可以不安装vnc 电脑连接手机上的termux,使用质感文件管理器可以管理termux中的文件 https://www.jianshu.com/p/2e6c8152a2ba 手机andronix的ubuntu22中安装anaconda https://zhuanlan.zhihu.com/p/608147907 3.手机中ubuntu安装hugo+papermode theme bash sudo apt install hugo hugo new site hugo_themes --format yaml cd hugo_themes cd themes git clone git@github.com:lvsolo/PaperMod.git 项目中有crontab定时代码,可以让手机中的博客自动更新github上的最新推送,从而做到随处编辑都可几乎实时更新博客页面。 4.如何使用安装好的ubuntu系统,调用摄像头等传感器? TODO

December 10, 2023 · 1 min · 31 words · lvsolo