离线安装MicroSoft APP Store 中的应用 先决条件 操作系统版本在Windows10 或者以上 能正常访问互联网 PowerShell 步骤概要 在MircroSoft APP Store 获取应用APP 连接 下载APP应用 在PowerShell中添加应用 操作步骤 打开Microsoft Store 页面搜索你想要下载的APP https://apps.microsoft.com/home?hl=en-us&gl=US 例如Spotify: 将地址栏复制 去除? 后面的内容 右侧选择框中的四个选项分别代表: Fast:Windows Insider Fast 通道,属于最新开发版; Slow:Windows Insider Slow 通道,相对 Fast 较稳定; RP:Release Review 也是微软软件发布的一个通道,软件成熟度较高,待 RP 过后,就会正式发布。 Retail:指正式发布的包,也是系统默认的等级。

August 1, 2024 0comments 45hotness 0likes Read all

Setting Up SMB Service on Ubuntu 18.04 Table of Contents Install SMB and enable the SMB server and restart it. Add an SMB user. Edit the SMB configuration file. Permission configuration: Read (R) Read/Write (RW) Firewall configuration. Visit the SMB server on your local network. Install SMB server sudo apt update sudo apt install samba sudo systemctl enable smbd sudo systemctl restart smbd Add an SMB user sudo smbpasswd -a username Edit the SMB configuration file sudo vim /etc/samb/smb.conf [WiKiFolder_for_Client] comment = Shared Folder path = /home/username/wiki browseable = yes valid users = @username [WiKiFolder_for_Client]: The name of the shared folder being defined. comment = Shared Folder: Description of the shared folder. path = /home/username/wiki: Specifies the path of the shared folder. browseable = yes: Allows the shared folder to be visible on the network. valid users = @username: Specifies that only users belonging to the username group can access the shared folder. [WiKiFolder_for_Client] comment = Shared Folder path = /home/ccdcam/wiki browseable = yes valid users = ccdcam writable = yes valid users = username: Specifies that only users belonging to the username group can access the shared folder. writable = yes: Allows users to write to the shared folder. Firewall configuration Allowed th 445/tcp sudo ufw allow 444/tcp Accessing the SMB Share on your local network For Windows: Enter \\<serverIPaddress> in the file explorer's address bar, then proceed to log in. Viewing the SMB User List Using the pdbedit Command: To list the users in Samba, enter the following command in the terminal: sudo pdbedit -L -v This will…

July 25, 2024 0comments 48hotness 0likes Read all

Flash OpenIPC firmware onto SigmaStar SSC335 SoC and Sony IMX307 IPC module. Requirements IPC module USB to TTL cable Windows laptop or computer Running a TFTP server on your Windows computer Results IPC module specifications Flash:GD25Q64CSIG: https://www.digikey.cn/zh/products/detail/gigadevice-semiconductor-hk-limited/GD25Q64CSIG/9484942 Soc:SigmaStar SSC335https://linux-chenxing.org/infinity6/ssc335_pb_v03.pdf Sensor: 1/2.8" 2MP CMOS Sony IMX307 LAN Windows computer TFTP SERVER directory structure The "bin" directory serves as the current directory for the TFTP server, used to store firmware files. Disable the firewall on the Windows computer and run tftp64.exe. Step 1: Welding the UART interface. Here is the TTL connection. Step 2: Connect the IPC module to your Windows computer using a USB to TTL cable. Connect the IPC module to your computer using a USB to TTL cable. Open PuTTY. Configure the serial port information. Restart the IPC module. In the PuTTY window, continuously press the "Enter" key on the keyboard. Step 3: Enter the following command in the PuTTY window # Enter commands line by line! Do not copy and paste multiple lines at once! setenv ipaddr 192.168.8.200; setenv serverip 192.168.8.250 mw.b 0x21000000 0xff 0x800000 tftpboot 0x21000000 openipc-ssc335-lite-8mb.bin #如果上面的命令执行不成功,请执行下面的。sf lock 0; 会提示失败, 不过没关系,继续下面的 1. if there is no tftpboot but tftp then run this instead tftp 0x21000000 openipc-ssc335-lite-8mb.bin sf probe 0; sf lock 0; sf erase 0x0 0x800000; sf write 0x21000000 0x0 0x800000 reset Note If you cannot input in serial port mode, please close the serial port first. Before re-entering, turn off flow control.

July 18, 2024 0comments 64hotness 0likes Read all

In this article, I will share with you about my second time installing CUPS on Ubuntu. Requriement Ubuntu 18.04 LTS Install on an Old Computer Canon E410 Series Printer Internet CUPS Installation and Configuration Step by Step Install CUPS on your system #install cups sudo apt-get install cups cups-pdf cups-bsd Back up the configuration file #copy configuration file sudo cp /etc/cups/cupsd.conf cupsd.conf.bak Editing the CUPS configuration file #add user simith to lpadmin group sudo usermod -aG lpadmin simith #edit cupsd.conf sudo vim cupsd.conf Edited cupsd.conf contents.(Configuration options not mentioned should be left as default.) #allow access port Port 63100 LogLevel warn PageLogFormat MaxLogSize 200 1. Show shared printers on the local network. Browsing on BrowseLocalProtocols dnssd 1. Web interface setting... WebInterface Yes 1. Restrict access to the server... <Location /> Order Allow,deny Allow @LOCAL Allow From 127.0.0.1 Allow From 192.168.0.0/16 </Location> 1. Restrict access to the admin pages... <Location /admin> #access user simith can visit admin page Require user simith Order Allow,deny Allow @LOCAL Allow 127.0.0.1 Allow From 192.168.0.0/16 </Location> 1. Restrict access to configuration files... <Location /admin/conf> AuthType Default Require user simith Order allow,deny Allow @LOCAL Allow 127.0.0.1 Allow From 192.168.0.0/16 </Location> 1. Restrict access to log files... <Location /admin/log> AuthType Default Require user simith Order allow,deny Allow @LOCAL Allow 192.168.0.0/16 </Location> Restart CUPS service and add to starup sudo systemctl restart cups sudp systemctl enable cups End Finally, you can visit the Ubuntu IP address and configuration Example: " http:// ubuntu ip address:63100 " Another article 打印服务器cups安装笔记https://www.itiohub.com/log/413.html

June 16, 2024 0comments 30hotness 0likes Read all

因为Frp client 之前是使用批处理启动的,所以每次电脑重启之后,需要等到登录之后才能启动。目的是要操作系统启动之后就直接启动Frp client。为了解决这个问题,所以使用nssm来将Frp client安装到windows的服务,使它作为服务启动。这样就可以实现当电脑启动之后就可以直接启动。 目录 先决条件 安装过程 验证和引用 先决条件 Frp 服务端 与客户端https://github.com/fatedier/frp nssm 程序https://nssm.cc/download 根据Frp服务端的信息配置好相对应的Frp客户端信息 安装过程 Step 1 在Windows操作系统下配置好Frp 的客户端信息之后,使用命令行进入nssm目录,如下图:注:请根据你的实际情况,进入相对应的目录; Step 2 通过命令行 安装服务 nssm install MyFirstService #### Step 3当你在命令行中输入step2的命令,系统会跳出nssm 的gui让你填写程序的相关信息。这个时候,你只要在Nssm gui中填入服务的相关信息即可。如下图所示: 程序路径 程序工作目录 额外参数然后顶部的"Details"就是服务的相关详细描述和设置了。这个大家可以自己去尝试。在填完1-3步骤中的信息之后, 服务就算安装完成了。 (记得使用管理模式运行nssm) 验证和应用 在windows 的命令行输入“services.msc” 打开windows 的服务管理窗口 通过上图就可以判断 服务已经添加成功。 另外你还可以在frp 根目录下查看frp运行的日志。 引用 Frp 服务端 与客户端https://github.com/fatedier/frp nssm 程序https://nssm.cc/download 这就是使用nssm 在windows下,快速的创建服务的简单使用笔记。

June 2, 2024 0comments 48hotness 0likes Read all

简介: 在这篇文章记录了在C sharp 编程中使用IniParse 对ini配置文件进行读写的操作. 读取ini文件中的Mysql数据库配置文件进行数据库连接: 如果你想从一个 .ini 文件中读取配置信息,可以使用第三方库,如 IniParser。以下是如何使用 IniParser 库来实现: 首先,你需要使用 NuGet 包管理器安装 IniParser。在 Visual Studio 中,可以通过 NuGet 包管理器控制台执行以下命令:Install-Package IniParser 然后,创建一个 config.ini 文件,并添加以下内容: [Database] Server=your_server User=your_user Password=your_password Database=your_database 接着,修改你的 mysqldata 类如下: using System; using IniParser; using IniParser.Model; using MySql.Data.MySqlClient; using Sunny.UI; namespace ExpressManageSystem { internal class mysqldata { private static readonly string configFile = "config.ini"; private static readonly FileIniDataParser parser = new FileIniDataParser(); private static readonly IniData configData = parser.ReadFile(configFile); public static string connection_string { get { var databaseSection = configData["Database"]; return $"server={databaseSection["Server"]};user={databaseSection["User"]};password={databaseSection["Password"]};database={databaseSection["Database"]}"; } } public MySqlConnection mySqlConnection = new MySqlConnection(connection_string); //连接数据库 public bool connect_db() { try { mySqlConnection.Open(); return true; } catch (Exception ex) { UIMessageBox.Show(ex.Message); return false; } } //关闭数据库链接 public bool close_db() { try { mySqlConnection.Close(); return true; } catch (Exception ex) { UIMessageBox.Show(ex.Message); return false; } } } } 在这个修改后的代码中,使用了 IniParser 库来读取 config.ini 文件中的配置信息。这样,你就可以通过修改 config.ini 文件来更改数据库连接信息,而无需修改代码。 读取ini文件中的信息保存到变量中: 请参考示例代码 private void CopyExpressInfo() { try { if (datagridview_main_information.SelectedRows.Count == 0) { MessageBox.Show("请先选择客户"); return; } // 获取选中的行 DataGridViewRow selectedRow = datagridview_main_information.SelectedRows[0]; // 获取选中行的数据 string customercode = selectedRow.Cells["customercode"].Value.ToString(); //所需要复制的内容 var configFile = "config.ini"; //定义ini配置文件名称 var parser = new FileIniDataParser(); IniData configData = null; if (File.Exists(configFile)) { configData = parser.ReadFile(configFile); //读取CompanyInfo 部分的信息 var companyInfoSection = configData["CompanyInfo"]; string receiverAir = companyInfoSection["Receiver_air"]; string addressAir = companyInfoSection["Address_air"].ToString(); string phoneNumberAir = companyInfoSection["Phonenumber_air"]; string receiverSea = companyInfoSection["Receiver_sea"]; string addressSea = companyInfoSection["Address_sea"].ToString(); string phoneNumberSea = companyInfoSection["Phonenumber_sea"]; string cnShippinginfo = $"收件人:{receiverAir}\r\n收货地址:{addressAir}({customercode})+空运部\r\n手机号:{phoneNumberAir} \n" + $" \r\n收件人:{receiverSea} \r\n收货地址:{addressSea}({customercode})+海运部 \r\n手机号:{phoneNumberSea}"; //保存到粘贴板 Clipboard.SetText(cnShippinginfo); MessageBox.Show($"已成功复制地址信息到剪贴板。"); } else { MessageBox.Show("配置文件 config.ini 不存在,系统正在为你重新创建!"); configData = new IniData(); MessageBox.Show("创建config.ini 成功,请在软件根目录填写相关信息!"); } } catch (Exception ex) { MessageBox.Show($"Error: {ex.Message}"); } }

March 18, 2024 0comments 64hotness 0likes Read all

简介: 这篇文章记录了自己在解决VALORANT 游戏在Windows 11上VALORANT的反外挂程序"Riot Vanguard"错误代码: VAN9005 or VAN9003的处理过程. 参考: 在Windows 10作業系統上調整虛擬化型安全性(簡稱VBS)設定 | VAN9005 |《特戰英豪》https://support-valorant.riotgames.com/hc/zh-tw/articles/16941220890899-%E5%9C%A8Windows-10%E4%BD%9C%E6%A5%AD%E7%B3%BB%E7%B5%B1%E4%B8%8A%E8%AA%BF%E6%95%B4%E8%99%9B%E6%93%AC%E5%8C%96%E5%9E%8B%E5%AE%89%E5%85%A8%E6%80%A7-%E7%B0%A1%E7%A8%B1VBS-%E8%A8%AD%E5%AE%9A-VAN9005-%E7%89%B9%E6%88%B0%E8%8B%B1%E8%B1%AA Windows 11「VAN9001」或「VAN 9003」錯誤疑難排解 |《特戰英豪》https://support-valorant.riotgames.com/hc/zh-tw/articles/10088435639571-Windows-11-VAN9001-%E6%88%96-VAN-9003-%E9%8C%AF%E8%AA%A4%E7%96%91%E9%9B%A3%E6%8E%92%E8%A7%A3-%E7%89%B9%E6%88%B0%E8%8B%B1%E8%B1%AA Windows 11 关闭基于虚拟化的安全(VBS) 问题疑惑https://answers.microsoft.com/zh-hans/windows/forum/all/windows-11/3864f584-4090-4793-8a5b-34fd73605c91 解决过程: 客户操作系统为Windows11, 笔记本电脑支持TPM2.0根据上面官方支持文档操作,打开TPM2.0之后.通过msinfo32 命令查看安全启动状态,仍然显示未开启.Riot Vanguard 无法正常运行.于是将客户的操作系统更换成Windows10 关闭VBS 之后就可以正常运行游戏了. 总结: 如果你的操作系统是Windows11 ,请开启TPM2.0, 并使用UEFI启动,通过msinfo32 命令查看安全启动状态.如果已经是开启状态则可以正常进行游戏. 如果你是操作系统是Windows10 ,请直接关闭VBS,卸载Riot Vanguard 重新进游戏测试即可.

March 18, 2024 2comments 173hotness 0likes Read all

记得上次被MySQL教训还是在10年前,如今又一次被MySQL折腾一次。早9点开始到现在下午5点。总算是把MySQL装好在Windows10上了。 MySQL安装 https://dev.mysql.com/downloads/installer/ 选择你要的版本安装即可 一切安装完成之后,通过CMD登录或者Navicat 登录会提示---date [ERROR] [MY-011084] [Server] Keyring migration failed. ---date [ERROR] [MY-010119] [Server] Aborting 于是跟着stackoverflow 开始操作https://stackoverflow.com/questions/51448958/mysql-server-8-0-keyring-migration-error-at-login 跟着Sabito的操作可以直接在cmd中登录,但是当启动WindowsService再来用cmd登录的时候会出现以下错误 ERROR 1045 (28000) Access denied for user root@localhost (using password: YES) 解决办法 停止MySQL服务 新增一个文本文档命名为‘mysqlinit.txt’ 在文档中写入以下内容 ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password' 将该文档拷贝到C: CMD管理员权限进入MySQL Server 的 bin目录 在cmd窗口输入以下命令 然后回车 --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini" --init-file=C:\\mysqlinit.txt --console 等待命令执行完成,按Ctrl+C 退出CMD 并关闭 重新启动MySQL服务 这个时候就可以使用CMD或者Navicat 登录了 参考 How to Fix " access denied for user 'root'@'localhost' (using password: yes) " in MySQL Window 10 mysql server 8.0 keyring migration error at loginhttps://stackoverflow.com/questions/51448958/mysql-server-8-0-keyring-migration-error-at-login

February 10, 2024 0comments 35hotness 0likes Read all

这篇笔记主要记录了作为一个新手如何使用Arduino IDE对ESP32S3开发板进行开发,以及ESP32连接到电脑,在Arduino IDE 中添加附加开发板, 通过示例代码点亮ESP32中的LED灯 .以下操作都是在Windows系统环境中进行. 准备工作 ESP32 S3 开发板 Arduino IDE USB To Type C Windows 操作系统电脑 可以正常访问Github的互联网环境 步骤 Arduino IDE 下载 Arduino 下载地址 https://www.arduino.cc/en/software 选择Windows操作系统下载 安装好之后如下 在IDE中添加附加开发板 点击 “文件”-“首选项”,在 “附加开发板管理器网址” 中输入以下地址 Espressif ESP32: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json 如下图所示 点击 “工具”-“开发板”-“开发板管理器”,在 “开发板管理器” 中搜索 “ESP32”,选择"esp32 by Espressif Systems" 点击安装即可 如下图所示 等待安装完成之后就可以开始连接ESP32 开发板. 将ESP32开发板连接到你的电脑 驱动程序安装由于我使用的是USB A TO Type C, ESP开发板上用的是CH343p芯片,所以要提前安装驱动源地官方 驱动地址:http://vcc-gnd.com/ 将设备通过USB A TO Type C的数据线插入到电脑的USB口 切记使用正确的数据线,不是电源线,电源线里面只有2芯,无法传输数据 在设备管理器中检查开发板是否连接正常如果你可以在你电脑的设备管理器中的端口选项中看到该设备,那说明ESP32开发板已经正确的连接到你的电脑了 在Arduino IED中连接开发板并使用示例 通过Arduino IED连接开发板在Arduino IDE左上角点击"选择开发板" 在"开发板"下方搜索"esp32s3" 并且找到相对应的开发板型号, 在右侧选择端口,点击确定即可.如下图所示. 连接完成如下图所示 通过Arduino IDE中的实例点亮开发板的LED 操作步骤如下图所示 接下来IDE 会新增一个窗口,展示BlinkRGB的项目如下图在确认开发板是正常连接的情况下,可以点击左上角的上传按钮将代码上传到开发板. 通过以上步骤,你的ESP32 开发板中的LED 开始闪烁了哦 参考: 如何安装Arduino IDE?添加附加开发板?以 ESP32 为例 - 小栋同学https://xd.sh.cn/arduino-ide-esp32/

February 8, 2024 0comments 53hotness 0likes Read all

眼鏡使用小貼士 定期清潔眼鏡: 使用專用眼鏡清潔液或溫和的肥皂水清洗眼鏡。避免使用含酒精或強酸性物質的清潔劑。 正確佩戴和摘掉眼鏡: 使用雙手握住眼鏡的雙腿,避免單手拿取框架,以防變形。 遠離高溫和潮濕環境: 避免將眼鏡長時間置於高溫環境中,也不要將它們放在浴室等潮濕的地方。 避免用衣物擦拭眼鏡: 使用專用眼鏡布或清潔紙巾擦拭眼鏡,避免使用衣物或紙巾,以防划伤鏡片。 注意鼻托和腿部調整: 確保鼻托和腿部的調整合適,以保持眼鏡的穩固和舒適。 避免戴眼鏡入睡: 長時間戴眼鏡可能導致鏡腿變形,避免戴著眼鏡入睡。 防護眼鏡: 在進行運動或有風塵的環境中,佩戴防護眼鏡,保護眼睛免受外界傷害。 這些建議有助於延長眼鏡的使用壽命,同時確保您的眼睛保持在良好的健康狀態。 眼睛保健小貼士 保持充足的睡眠: 睡眠對眼睛的恢復至關重要。每晚爭取7-8小時的良好睡眠。 遠離煙草: 吸煙可能增加患白內障、黃斑變性等眼疾的風險。戒煙有助於眼部健康。 保持適當的屏幕距離: 使用電子設備時,將屏幕保持在眼睛的合適距離,通常是20英寸遠。 多食用富含抗氧化物的食物: 如胡蘿蔔、菠菜、草莓等,有助於減緩眼部衰老過程。 佩戴太陽鏡: 戴上防紫外線的太陽鏡,保護眼睛免受陽光傷害。 眼保健操: 定期進行眼保健操,如遠近對焦、眨眼操等,有助於緩解眼部肌肉。 用眼休息: 長時間用電子設備或進行近距離工作後,進行眼部休息。每隔20分鐘注視遠處,眨眼,緩解眼部疲勞。 保持房間濕度: 保持室內 濕度,避免眼部因空氣過於乾燥而不適。 感謝:Six分享 和 ChatGPT的整理 引申閱讀: 眼睛疲勞- 妙佑醫療國際 https://www.mayoclinic.org/zh-hans/diseases-conditions/eyestrain/symptoms-causes/syc-20372397

January 10, 2024 0comments 28hotness 0likes Read all
1234513