- 博客(203)
- 资源 (123)
- 收藏
- 关注
原创 Python Playsound用法_艾孜尔江撰
亲测发现Python Playsound库在Windows 10、Python 3环境上无法直接使用(2022年5月1日);修改playsound.py为如下所示:import logginglogger = logging.getLogger(__name__)class PlaysoundException(Exception): passdef _canonicalizePath(path): """ Support passing in a pathlib..
2022-05-02 16:09:47
3098
3
原创 用bat脚本在Windows上实现微信多开_艾孜尔江撰
:: by Alexander Ezharjan:: 艾孜尔江·艾尔斯兰撰稿chcp 65001@echo off::将下方的路径更换为自己的路径即可set WeChat_Location="D:\软件安装根目录(C盘转存)\微信\WeChat\WeChat.exe"set /p count=How many Wechats do you want to open?::set /p WeChat_Location=Where is your Wechat application plac
2021-11-14 14:57:04
116083
原创 解决无法执行python setup install命令的方法
执行python setup.py install命令想要安装一个python包却出错了,这时候出错信息如下:running installerror: can't create or remove files in install directoryThe following error occurred while trying to add or remove files in theinstallation directory: [Errno 13] Permission den
2021-10-04 14:06:16
118495
1
原创 Git版本回退的两种方式_艾孜尔江撰
方式一找到你误提交之前的版本号;git revert -n 版本号 (版本号通过’git log’命令查看,复制你想要回滚的目标版本号);git commit -m YOUR_COMMIT_MSG 提交代码到本地仓库;git push 提交/推送代码到远程仓库。方式二使用git reset –hard 版本号的方式也可以,两者的区别在于《方式一》会新建一个历史记录而reset不会。...
2021-10-01 22:32:53
115961
原创 计算机专业术语对照表_艾孜尔江编
Aabstraction layer,抽象层access,获取,存取acoustic coupler,声音耦合器Active Directory,活动目录Acyclic Dependencies Principle,非循环依赖原则(ADP)acyclic digraph,有向无环图Adaptive Code,自适应代码Add Parameter,添加参数ADSL,Asymmetrical Dingital Subscriber Loop,非对称数字用户环线affinity,绑定aff
2021-09-28 16:01:45
117968
原创 C#初学者的Hello World代码_艾孜尔江撰
using System;using System.Collections.Generic;public class MyClass{ struct Name{ public string FirstName; public string LastName; public string GetName(){ return FirstName + "·" + LastName; } } struct Vector3{ public float x;
2021-08-14 19:33:02
118078
原创 HTML简易的用户名密码登录页面_艾孜尔江撰
<html lang="en"><head> <meta charset="UTF-8"> <title>登录</title> <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;"> <
2021-08-08 17:26:41
121506
5
原创 一次性打开多个网页的工具脚本_艾孜尔江撰
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>艾孜
2021-08-07 20:40:36
118452
原创 使用a标签无法跳转到指定网页的解决办法_艾孜尔江撰
平时HTML中的a标签是我们十分喜爱使用的,但是就是这样的简单基础的标签有时候会出现我们意想不到的问题。首先来一段测试,以复现问题,使用一堆url,动态创建多个a标签,撰写如下所示的代码:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge">..
2021-08-07 19:13:34
121496
原创 弱类型语言中双感叹号的意义_艾孜尔江撰
let o={flag:true}; let test=!!o.flag; //等效于var test=o.flag||false; console.log(test);
2021-07-21 11:55:59
118068
原创 解决微信内置浏览器打开网页未看到漏洞的修复_艾孜尔江撰
问题描述平时在前端网页的开发过程中经常会出现程序员这边更新完的网页同步到线上之后,测试环境下是可以正常看到修复之后的结果,而到了产品经理或者策划那边却会出现没有看到功能受到更新/漏洞得以修复的情况;这个问题十分严峻——如果是已经上线的项目,修复了一些漏洞,而最终的效果没有被客户端用户所感受到,很糟糕!这种情况产生的最多的情况为:(1) 前端页面所指向的URL地址没有变更,还是原来的URL地址;(2) 用户打开该URL地址时使用微信内置浏览器点击打开;(3) 用户打开该URL地址时使用其它浏览
2021-07-10 13:46:45
118075
原创 域名底下设置子域名_艾孜尔江撰
参考通过上面的方式,就可以实现一个域名下面有多个子域名的效果。比如,我的主域名是www.ezharjan.xyz,那么我可以加一个子域名,换一下前缀,换成自己喜欢的,如blog.ezharjan.xyz之类的。修改面板截图如下: { //logic}//shorthandif (['abc', 'def', 'ghi', 'jkl'].includes(x)) { //logic}在JS中,直接使用includes方法,在其它语言中,开发者可以撰写类似的方法来简化代码,在大型项目中这种做法非常有益。...
2021-06-28 22:21:31
163859
原创 C/C++四种方法实现加法操作_艾孜尔江撰
/************************************************************************* > File Name: add.cpp > Author: Alexander > Mail: mysoft@111.com > Created Time: 一 8/24 20:16:39 2020 **************************************************************
2021-06-24 10:45:16
166626
2
原创 VS Code添加到右键菜单_艾孜尔江撰
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\*\shell\VSCode]@="Open with VSCode""Icon"="C:\\Softwares\\VSCode\\Microsoft VS Code\\Code.exe"[HKEY_CLASSES_ROOT\*\shell\VSCode\command]@="\"C:\\Softwares\\VSCode\\Microsoft VS Code\\Code.exe" \
2021-06-24 10:26:58
165343
原创 C及数据结构一瞥_艾孜尔江撰
#include<iostream>using namespace std;void run();int main() { run();}void run() { //int i2 = 555, i1 = 666; //if opened, the result will be 1, which is the space not allocated int i1= 555 , i2 = 666; //跟声明顺序有关,先声明的变量会先被分配到内存空间 int* ptr =
2021-06-22 20:42:13
165852
1
原创 必背命令行集合_艾孜尔江撰
Graphical user interfaces are super friendly to computer users. They were introduced in reaction to the perceived steep learning curve of command-line interfaces (CLIs).However, they often require more resources, are less powerful and hard to automate vi.
2021-06-22 19:31:57
166069
原创 网页端UVC相机测试_艾孜尔江撰
multiCam.html:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title></head><video i.
2021-06-22 19:12:50
165765
1
原创 Java制作软光栅化渲染器_艾孜尔江撰
Main.java :import java.io.IOException;/** * The sole purpose of this class is to hold the main method. * * Any other use should be placed in a separate class */public class Main{ // Lazy exception handling here. You can do something more inter.
2021-06-22 09:25:14
166367
原创 Lua调用外部脚本_艾孜尔江撰
文件结构如下:代码分别如下,首先是 CallByteCode.lua :--[[CallByteCode.lua]]local script = require "ReturnTable"script.foo()其次是 CompileToByteCode.lua :--[[CompileToByteCode.lua]]function luac_func(filename) local targets = filename local chunk =..
2021-06-22 09:03:12
166315
原创 Lua下载图片_艾孜尔江撰
--[[ImageDownload.lua]]--HTTP requestresult = fa.HTTPGetFile("https://xxx.xxx.com/images/assets/flashairLogo_official_small.png", "logo.png")print("<!DOCTYPE html>")print("<html>")print("<body><center>")print("<h2>He
2021-06-22 08:56:35
166203
原创 Lua实现Wifi连接_艾孜尔江撰
--[[WifiConnect.lua]]--[[This script will scan for a specific network, and if it sees itwill connect... then trigger a dropbox uploading script!It logs to a file.]]--local logfile = "wifiConnect.txt"local SSID = "VITP_Open" -- SSID to connect
2021-06-22 08:55:23
166417
原创 Lua扫描WiFi_艾孜尔江撰
--[[SSIDList.lua]]--[[This script will scan for available WiFi networks,and output their SSIDs to a file.]]--local logfile = "ssidList.txt"count = fa.Scan()-- Open the log filelocal outfile = io.open(logfile, "w")-- Write a headeroutfile:w
2021-06-22 08:54:10
165982
原创 Lua实现Dropbox上传_艾孜尔江撰
--[[DropboxUpload.lua]]--[[FlashAir Lua Dropbox example.This script uploads and files in a directory to dropbox, using oauth2.It will store the access token in dropbox_token.txt--]]local tokenfile = "/dropbox_token.txt" -- Where to log output
2021-06-22 08:52:17
165995
原创 Lua实现FTP上传_艾孜尔江撰
--[[FTPUpload.lua]]local logfile = "/FTPLog.txt" -- Log file created in FlashAirlocal folder = "/Upload" -- Folder to upload file is locatedlocal server = "192.168.1.1" -- IP address of FTP serverlocal serverDir = "/LuaTutor
2021-06-22 08:50:30
166941
原创 Lua下载有限制的文件_艾孜尔江撰
--[[HTTPGetFileofAccessLimit.lua]]result = fa.HTTPGetFile("http://somewhere/secretfile.txt", "secretfile.txt", "aUser", "passw0rd")if result ~= nil then print("Success! File downloaded.\n") --process the fileelse print("Failure! File failed to
2021-06-22 08:49:14
166032
原创 Lua下载文件_艾孜尔江撰
--[[HTTPGetFile.lua]]result = fa.HTTPGetFile("https://xxxx.xxxx.xxxx/small.png", "logo.png")if result ~= nil then print("Success! File downloaded.\n") --process the fileelse print("Failure! File failed to download...\n")end
2021-06-22 08:48:16
166614
原创 Lua写文件_艾孜尔江撰
--[[HelloWorld.lua]]print("Hello World!")local file = io.open("Hello.txt", "a")file:write("Hello There!\n")file:close()
2021-06-22 08:46:58
166470
原创 指针常量与常量指针_艾孜尔江撰
代码如下:#include <iostream>void RefConst(){ char greeting[] = "Hello world!"; // ---- (0) char* p = greeting; // non-const pointer, non-const data const char* p = greeting; // non-const pointer, const data (常量指针、指向常量的指针: *p,即'指针指向的值'为const,不能修改).
2021-06-17 20:34:44
166712
原创 关闭Windows更新后出现的桌面下方天气预报_艾孜尔江撰
问题阐述最近根据微软官方定时更新提示,更新了一下Windows 10系统,更新完之后最大的改变我感觉就是桌面右下角任务栏上出现了关于今日天气预报的相关提示,类似于任务栏上的广告。笔者不禁慨叹:“系统内植入广告,居然连任务栏都不放过……”从小喜欢整洁干净的我在看到朴素的任务栏上出现这样的“广告”(其实就是天气预报)时很不是滋味儿,尤其是会影响平时写代码,尤其是当鼠标光标落到这里的时候会出现一个大框,上面会显示“网络连接有问题”(尽管网络很正常)。经过一番折腾,终于找到了关闭它的地方。
2021-06-15 19:03:56
167758
原创 获取平面的法向量_艾孜尔江撰
Vector4 GetNormalVector(const Vector4& p1, const Vector4& p2, const Vector4& p3) { Vector4 s1, s2, pn; s1 = p2 - p1; s2 = p3 - p2; pn = s2 ^ s1; pn.Normalize(); return pn; }作者:艾孜尔江·艾尔斯兰
2021-06-14 21:19:31
167144
原创 图形学中判断背面剔除性_艾孜尔江撰
bool ShouldCullBack(const Vector4& vec) { // anti-clock wise culling Vector4 v(0.f, 0.f, 1.f, 0.f); if (v * vec > 0) return false; return true; }作者:艾孜尔江·艾尔斯兰
2021-06-14 21:16:59
167216
原创 判断点是否在CVV内_艾孜尔江撰
bool IsOutsideCVV(const Vector4& v) { float x = v.getX(); float y = v.getY(); float z = v.getZ(); float w = v.getW(); if (x <= w && x >= -w && y <= w && y >= -w && z <= w && z >= 0)
2021-06-14 21:15:00
166939
原创 C++输出语句重载_艾孜尔江撰
/// 在类中这样写,这是Colour类中的一个函数 inline std::ostream& operator <<(std::ostream& os, const Colour& right) { os << "r: " << right.r << "; g: " << right.g << "; b: " << right.b; return os; }作者:艾孜尔江
2021-06-14 21:12:49
166913
原创 C++中浮点数的比较_艾孜尔江撰
bool Vector3::operator==(const float right) const { bool xIsEqual = fabsf(this->getX() - right) <= EPSILON; bool yIsEqual = fabsf(this->getY() - right) <= EPSILON; bool zIsEqual = fabsf(this->getZ() - right) <= EPSILON; return (x
2021-06-14 21:09:56
167128
原创 点与平面的距离特征_艾孜尔江撰
点到平面距离公式 distance = Ax + By + Cz + D;当 d < 0 — 点在平面法向反方向所指的区域;当 d > 0 — 点在平面法向所指的区域;当 d = 0 — 点在平面上。 编者:艾孜尔江·艾尔斯兰
2021-06-14 16:29:15
167079
240 Toon FX Pack-240组卡通手绘能量火焰闪电烟雾MG动画元素
2020-10-29
TypoKing Title Animation-500组运动文字标题字幕排版动画
2020-10-29
Neon Billboard Logo Revealer-霓虹灯广告牌Logo动画
2020-10-27
Essential Library-网络时尚宣传包装动画-AE模板
2020-10-26
现代计算机图形学入门讲义及作业集合
2020-10-26
计算机图形学基础复习
2020-10-26
MEANBook.zip
2020-10-26
算法和设计模式_电子书.zip
2020-10-05
OpenGL开发源码教程
2020-05-13
RenderEngineReleased.zip
2021-06-14
md5加密算法(JS和C++实现).zip
2021-05-05
批量处理文件名-自动添加前缀或后缀的工具.zip
2021-04-28
梦游天姥吟留别-朗诵-背景视频
2020-11-28
实用小工具库_含谷歌浏览器以及视频合并工具
2020-11-28
数据库原理_软件学院教材版
2020-11-28
Sci-Fi Energy - Logo Reveal Pack-科幻能量三维Logo动画
2020-10-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人