Question: Create a complete C# program that will simulate a log-in process. If the username and password are both correct the program will display “Log-in Successful”, otherwise it will display “Invalid Log-in details” FlowChart: C# Logical Operators: Code Answer: using System; namespace Module6 { class module6 { static void Main(string[] args) { string emailid, password; //use readline get user input […]

October 3, 2022 Read all

此博文记录了如何在网页中简单提取视频源地址的方法,起因是STS 课程中有一个Assessment是要观看影片去回答问题。Youtube没有资源,网页操作不方便,我想把他放到VLC中播放。 软件环境 Chrome浏览器 VLC打开网络链接(视频源地址 M3U8) Windows 10 操作步骤 使用Chrome浏览器在视频播放页面按F12进入开发模式(如上图所示)。 在控制台找到Network 在搜索框输入M3U8 复制Request URL中的值在VLC中打开即可 Reference: How do we download a blob url video [closed]https://stackoverflow.com/questions/42901942/how-do-we-download-a-blob-url-video 如何下载 blob 地址的视频资源https://www.cnblogs.com/mq0036/p/14953209.html

September 30, 2022 Read all

Create an new windwos forms project. Design Size. Add panel. design panel color,size,style. Add button. calculartor button and oper button. Coding button function. Declaring variables double fstNum,secNum; string oper; Identify button function btnCE private void btnCE_Click(object sender, EventArgs e) { textDisplay.Text = "0"; string f, s; f = Convert.ToString(fstNum); s = Convert.ToString(secNum); f = ""; s = ""; } backspace […]

September 25, 2022 Read all

Example explainedLine 1: using System means that we can use classes from the System namespace. Line 2: A blank line. C# ignores white space. However, multiple lines makes the code more readable. Line 3: namespace is used to organize your code, and it is a container for classes and other namespaces. Line 4: The curly braces {} marks the beginning […]

September 24, 2022 Read all

云服务器配置 CPU 2核 - 内存 4GB - 系统盘 60GB Centos7.6 安装docker #/bin/bash sudo yum install -y yum-utils sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo sudo yum-config-manager --enable docker-ce-nightly sudo yum install docker-ce docker-ce-cli containerd.io systemctl start docker #启动容器 systemctl enable docker #开机自启 sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose docker --version docker-compose --version […]

June 27, 2022 Read all

Intel UHD 630 Driver for Windows 7 CPU: Intel® Core™ i7-8700Video: Intel UHD 630OS: Windows 7 64-bit Driver Downloadhttps://www.biostar.com.tw/app/en/event/H310_windowstool/win7_8th_i3_i5_Driver_2.0.rar Thanks https://www.sevenforums.com/drivers/424720-intel-uhd-630-driver-windows-7-a.html https://www.intel.com/content/www/us/en/download/18799/28436/intel-graphics-driver-for-windows-15-45.html

June 18, 2022 Read all

【Steam不再提供中国内地的CM服务器】CM(Connection Manager)服务器,用于 Steam 帐户登录认证、好友在线状态、聊天和游戏邀请等等方面。目前 Steam 获取的服务器列表已不存在中国内地服务器。 由于steam不再提供中国内地的CM服务器,导致每周末晚高峰的时期,steam登录及其困难。写这篇文章是为了记录处理这个问题的过程和解决办法,希望能帮到大家; 解决方案如下 方法一 指定客户端连接协议启动客户端 直接给steam.exe的快捷方式加参数-tcp或-websocket来指定连接协议启动客户端 -tcp模式 -websocket模式为改善使用体验,我添加了一个启动目录,使得在启动时候可以选择启动模式如果此方法无法连接登录,请选择方法二 方法二 添加hosts,在默认情况下指定CM服务器 / 强制指定使用WS连接启动客户端 使用Dogfight360的工具添加host 指定MC服务器 ,然后通过WS连接模式启动客户端即可 点击检测延迟选择延迟较低的服务(晚高峰建议避开新加坡,日本,香港 我这里选择卢森堡,具体根据您的互联网运营商选择) 选择指定的MC服务器 点击应用选中 通过-websocket连接模式启动即可 此文章并不能保证百分之百可以解决。通过希望通过此文章能够让您尝试多一个方法去解决此问题。 参考阅读:Dogfight 360的博客https://www.dogfight360.com/blog/knowledge-base/fix_steamlogin/ Steam statushttps://steamstat.us/ 其乐https://keylol.com/

May 21, 2022 Read all

为什么要创建符号链接 部分游戏无法识别中文路径需要从第三方游戏库加载到官方游戏库节省时间提高效率 使用Linkexe链接 配置文件说明 [Count] ;文件个数 FileCount=1 [PathInfo] ;SourceFile源文件相对于本exe所在目录 DriveLetter映射目标路径 SourceFile0=Battle.net DriveLetter0=C:\ProgramData\ ;注意序号默认从0开始,如果设置非0会报错无法正常运行 注: 该程序非公开,此配置文件只做记录 使用Powershell脚本创建符号链接 待更新完善 New-Item -ItemType SymbolicLink -Path "Symbolic\Link\Path" -Target "New\Target\For\Link" -Force 相关阅读 How to change the drive in a symbolic link?https://superuser.com/questions/1362951/how-to-change-the-drive-in-a-symbolic-link# 微软知识中心https://docs.microsoft.com/zh-cn/windows-server/administration/windows-commands/mklink Powershellhttps://docs.microsoft.com/zh-cn/powershell/module/microsoft.powershell.management/new-item?view=powershell-7.2&viewFallbackFrom=powershell-6 应用实例https://www.itiohub.com/log/steamgame.html

March 9, 2022 Read all

故障现象 故障发生前操作 使用Symantec ghost磁盘对拷之后新磁盘上的系统无法 进入系统出现以上错误 设备情况 联想ThinkPad E580 源磁盘和新的目标磁盘都是MBR模式 2TB磁盘有9个分区,每一个分区一个操作系统 解决步骤 使用PE系统里面的引导修复修复其中一个分区 使用磁盘管理工具重建引导(注意备份分区表) 重启电脑进入BIOS关闭快速启动,选择传统模式启动即可(如果需要UEFI启动请根据实际情况设置) 在当前进入的操作系统中使用EasyBCD 添加和编辑引导即可 将引导添加到相对应的分区即可 参考阅读 EsayBCDhttps://neosmart.net/EasyBCD/ 磁碟分割MBR、GPT是什麼?https://www.linwei.com.tw/forum-detail/76/ 声明 此文章作为本人日常笔记,不对读者负责;数据无价,谨慎操作

March 3, 2022 Read all

#!/bin/bash wget -c http://ftp.apnic.net/stats/apnic/delegated-apnic-latest cat delegated-apnic-latest | awk -F '|' '/CN/&&/ipv4/ {print $4 "/" 32-log($5)/log(2)}' | cat > ipv4.txt cat delegated-apnic-latest | awk -F '|' '/CN/&&/ipv6/ {print $4 "/" 32-log($5)/log(2)}' | cat > ipv6.txt cat delegated-apnic-latest | awk -F '|' '/HK/&&/ipv4/ {print $4 "/" 32-log($5)/log(2)}' | cat > ipv4-hk.txt cat delegated-apnic-latest | awk -F '|' '/HK/&&/ipv6/ {print $4 "/" 32-log($5)/log(2)}' […]

February 17, 2022 Read all
14567814