Table of Contents Create and activate the Python environment Install Python modules Install MS SQL Start coding & Run Prerequisites For this project, we used MS SQL, so the operating system is Windows Server 2012. I installed MS SQL Server 2012 Advanced. If your system is Windows 10 or Windows 11, please install the latest version of MS SQL Express instead Python 3.12 Windows OS MS SQL Express Internet Get start Create and activate the Python environment ## create venv and activate it python -m venv c:\project\event \# <path/to/new/virtual/environment> cd c:\project\event\Scripts .\activate evnt ## if u want to deactivate deactivate Install Python modules U can install thoese module step by step , or u can use pip install -r requirement.txt Python modules install step by step ## install requirement / pip uninstall - uninstall module pip install numpy #if not work try pip install "numpy<2.0.0" pip install pymssql pip install pandas pip install python-dotenv pip install streamlit \##display this env python modules pip list Python modules install via requirement.txt numpy pymssql pandas python-dotenv streamlit Install MS SQL MS SQL Download site Microsoft® SQL Server® 2022 Express https://www.microsoft.com/en-us/download/details.aspx?id=104781 SQL Server installation guide https://learn.microsoft.com/en-us/sql/database-engine/install-windows/install-sql-server?view=sql-server-ver16&culture=en-us&country=us MS SQL Remote https://www.itiohub.com/log/437.html Starting coding First streamlit app Example: import streamlit as st st.title("Hello, there!") st.write("Welcome to my website") Save it, then go back to PowerShell or run it in your VS Code. streamlit run app.py The default port is 8501, but you can change the port if you want. streamlit run app.py --server.port 80 More example and more tuorials https://docs.streamlit.io/develop/tutorials Connect to the SQL Exmaple: import…

November 22, 2025 0comments 182hotness 2likes 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 674hotness 0likes Read all

重新安装Windows操作系统之后,有时候会忘记安装一些软件,索性今天写一篇笔记来专门记录.在这篇文章中,我会分成以下几个类目来列出Windows操作系统下必备&常用的软件清单,以及软件的官方链接或者Github页面 软件类目 Windows常用运行库 DirectX https://www.microsoft.com/en-us/download/details.aspx?id=35 Microsoft Visual 运行库 https://www.ghxi.com/yxkhj.html 办公软件 Office365 & Microsoft https://www.microsoft.com/zh-cn/download/office WPS 金山软件 国内版 https://www.wps.cn/ WPS 海外版 https://www.wps.com/ Typora https://typora.io/ 系统增强 Dism++ https://github.com/Chuyu-Team/Dism-Multi-language Wub https://www.itiohub.com/log/windowsUpdateBlock.html BandiZIP https://cn.bandisoft.com/bandizip/ 7z https://www.7-zip.org/ Snipaste https://www.snipaste.com/ Anydesk https://www.anydesk.com 社交通讯 Messenger https://www.messenger.com/ Telegram https://www.telegram.org WhatsAPP https://www.whatsapp.com/ LINE https://line.me/en/ QQ https://im.qq.com/pcqq 微信 https://www.wechat.com/ 媒体应用 VLC https://www.videolan.org/vlc/ Potplayer https://potplayer.daum.net/ Spotify https://open.spotify.com SoundCloud https://soundcloud.com/ 龙卷风收音机 https://cradio.live/ OBS Studio https://obsproject.com/ SAO FM https://sao.fm/ 街声 https://streetvoice.com/ 编程工具 Notepad++ https://notepad-plus-plus.org/ VS Code online https://vscode.dev/ VS Code desktop https://code.visualstudio.com/ Visual Studio 2022 https://visualstudio.microsoft.com/zh-hans/downloads/ PyCharm https://www.jetbrains.com/pycharm/ Scratch 3 https://scratch.mit.edu/ Mind+ https://mindplus.cc/ 3D绘图 Designspark Mechanical https://www.rs-online.com/designspark/mechanical-software 照片编辑和管理 Adobe Lightroom Classic https://www.adobe.com/products/photoshop-lightroom-classic.html Adobe Photoshop https://www.adobe.com/products/photoshop.html BandiView https://cn.bandisoft.com/bandiview/

January 4, 2024 0comments 1515hotness 0likes Read all

ReIcon 一款桌面图标整理和布局软件 软件介绍 Reicon是便携式免费软件,使您能够保存和还原桌面布局。 如果您经常更改屏幕分辨率(例如,玩游戏或使用需要特定分辨率的应用程序),则您可能会熟悉桌面图标的问题,因为您切换回正常的分辨率后会陷入混乱。 Reicon通过允许您保存桌面布局来解决此问题,然后单击按钮(或使用右键单击上下文菜单)还原它。 Reicon非常易于使用。 设置您的图标,按照您喜欢它们的方式,保存布局,然后在需要时稍后还原该布局。 如何使用 GUI操作 将你想要的图标位置摆至你想要的坐标 点开Reicon程序,将布局保存好 选择你想要恢复的布局 ,在布局列表中鼠标右键选择恢复即可 命令行使用 Reicon还支持命令行操作 以下是命令操作指南 Usage: <command> [<additional commands>] Commands: /S : Save desktop icons layout /R : Restore desktop icon layout /File : Icon layout file location /ID : Desktop icon layout ID or order /Name : Desktop icon layout name Examples: ReIcon_x64.exe /S ReIcon_x64.exe /S /File C:\Test.ini /Name New icon layout /ID abc ReIcon_x64.exe /R ReIcon_x64.exe /R /ID abc ReIcon_x64.exe /R /ID 1 ReIcon_x64.exe /R /File C:\Test.ini /ID abc 以下批处理示例了使用Reicon命令行恢复图标布局 D:\ReIcon\ReIcon\ReIcon_x64.exe /R /ID nmj 更多用法可以参考软件官方说明: https://www.sordum.org/8366/reicon-v2-0-restore-desktop-icon-layouts/ 参考:https://www.sordum.org/8366/reicon-v2-0-restore-desktop-icon-layouts/

March 5, 2023 0comments 587hotness 0likes Read all

TCPING介绍 tcping 是由美国人 Eli Fulkerson先生用C++ 编写的一个开源网络检测工具;你可以下载可执行文件, 也可以下载源码自行编译。 Offical website: https://download.elifulkerson.com/files/tcping/0.39/ tcping和ping类似,也是用于检测网络连通性的一个工具。不同于ping的是,tcping 可以检查端口,更多的用法请在程序中执行 ? 来查阅。 程序的帮助信息 使用tcping检测应用程序的端口延迟 从Eli Fulkerson 的网站下载下来,通过命令行的方式来运行 在程序所在目录输入程序 和目标地址进行检测 .\tcping.exe google.com 443 //.\tcping.exe 目标地址/域名 目标端口 即可获得结果,也可以在程序后面添加参数 .\tcping.exe -t google.com 443 //.\tcping.exe -t 目标地址/域名 目标端口 (-t长ping) .\tcping.exe -h google.com //.\tcping.exe -h 目标地址/域名 目标端口 示例图 使用tcping来检查网络游戏的网络波动 当我接到有用户反馈网络游戏延迟高或者连接不上的时候,通常我会使用tcping,tracert,nslookup,ping 这几个命令来协助排查故障;总结一下几个步骤如下 拿到与游戏相关的服务器地址有时候游戏服务器是通过域名连接,我会使用nslookup检查解析地址 使用ping检查基本的延迟状态有些游戏服务器禁ping,我会使用tracert 来跟踪路由,顺便找一下游戏连接的端口(后面使用tcping检查端口) 使用tracert跟踪路由运营商链路调整 有时候会影响游戏体验;某个节点断掉tracert可以协助你判断路由节点的问题 使用tcping检查游戏服务器端口延迟和是否开放有些游戏是UDP协议,我会用hping,或者nc。基本上tcping已经很够用所以我这里只介绍tcping。 前面的文章 使用 PsPing进行网络测试https://www.itiohub.com/share/psping.html 以上所述内容均以Windows操作系统为主。如果你有其它更好用的工具 ,欢迎在下方留言分享。

November 15, 2022 0comments 575hotness 0likes Read all

本篇博文非专业科普,仅限于让非专业人士理解基本的网络构造和排障,文中会有很多非专业词汇以及非标准表述,如果你对网络有更深的兴趣和探究请查阅其它文档和书籍 我们现在电脑基本的上网路径 运营商-大楼机房网络设备-路由器-电脑 电脑会有一个由家里路由器分配的IP地址,路由器有大楼机房网络设备分配的IP地址,大楼机房的网络设备有运营商给的IP地址或者网段; 有时候电脑打不开网站,能上QQ,电脑有些网站打得开,有些打不开。电脑没网络,手机有网络这些问题我们就需要通过windows 自带的一些命令去排查网络故障了 电脑没有互联网,任何程序都无法连接网络 使用Windows 命令行 的Ping 工具 Ping 网关(路由器) 在命令行中查看网络配置 ipconfig /all 我的网关是192.168.1.1,具体IP地址请按你的实际情况输入 Ping 192.168.1.1 -t 如果是Time out 请检查以下方面 网络配置是否正确,或者将电脑设置DHCP 动态获取 检查路由器是否正常运行 检查网线是否插入正常 PLDT 的路由器部分型号只有LAN1 分配了网关地址 如果是有

July 20, 2021 0comments 624hotness 0likes Read all

某些时候电源的模式会直接影响部分游戏体验。在此,如果你没有对省电的需求的话,为了提高游戏体验。请直接输入这项 (卓越性能)High performance powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 其他选项以及用法,请参考官方文档https://docs.microsoft.com/en-us/windows-hardware/design/device-experiences/powercfg-command-line-options

January 31, 2021 0comments 764hotness 0likes Read all

场景需求 Frp客户端正常情况下是在cmd界面运行容易被客户端误关闭不美观现在通过Nssm 将它以服务的形式在后台运行 下载 NSSM https://nssm.cc/download 安装 NSSM 解压 nssm-2.24-101-g897c7ad.zip,里面分为 win32 和 win64 两个文件夹。根据系统的判断,此处以 Windows 10 x64 演示,将文件夹 win64 复制到 D 盘根目录下。并将文件夹 win64 改名为 nssm,此时的目录结构如下:

November 24, 2020 0comments 580hotness 0likes Read all

Win10远程桌面出现 身份验证错误,要求的函数不受支持,这可能是由于CredSSP加密Oracle修正 解决方法 解决方法:

May 17, 2020 0comments 489hotness 0likes Read all

2020年5月12日发布 Windows 2004 版本

May 13, 2020 0comments 623hotness 0likes Read all
12