04 2023 档案
摘要:前台 html <script type="text/javascript"> if (typeof (EventSource) != "undefined") { var es = new EventSource("http://localhost:8080/Home/GetNotices?use
阅读全文
摘要:概述 分布式系统中,有一些需要使用全局唯一ID的场景,这种时候为了防止ID冲突可以使用36位的UUID, 但是UUID有一些缺点,首先他相对比较长,另外UUID一般是无序的。 有些时候我们希望能使用一种简单一些的ID,并且希望ID能够按照时间有序生成。 而twitter的snowflake解决了这种
阅读全文
摘要:Cipher using Org.BouncyCastle.Crypto; using Org.BouncyCastle.Crypto.Digests; using Org.BouncyCastle.Crypto.Parameters; using Org.BouncyCastle.Math; us
阅读全文
摘要:AForge官网地址:http://www.aforgenet.com/framework/ using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using S
阅读全文
摘要:记录一下 Dictionary<string, string> dictionary = new Dictionary<string,string>(); foreach (string dic in dictionary.Keys) { //Key: dic //Value: dictionary
阅读全文
摘要:代码如下 import javax.crypto.Cipher; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.DESKeySpec; import javax.crypto.spec.IvParameterSpec;
阅读全文
摘要:如果实在没有方法了可以试一试 删除所有的配置文件,默认位置C:\Users\${你的用户名}\${.IntelliJIdea+版本} 注意:删除配置后之前所有的设置都会失效,谨慎操作。
阅读全文
摘要:flume官网地址http://flume.apache.org/ #下载 wget https://mirrors.bfsu.edu.cn/apache/flume/1.9.0/apache-flume-1.9.0-bin.tar.gz #解压 tar -zxvf apache-flume-1.9
阅读全文
摘要:转自https://blog.csdn.net/mn960mn/article/details/51253038 解决方法如下: 添加maven-compiler-plugin插件,并且配置compilerArguments 如: <plugin> <groupId>org.apache.maven
阅读全文
摘要:GitHub - PlexPt/awesome-chatgpt-prompts-zh: ChatGPT 中文调教指南。各种场景使用指南。学习怎么让它听你的话。
阅读全文
摘要:背景 实在是不想折腾ActiveX控件 1、麻烦(开发麻烦、使用时设置也麻烦) 2、非IE浏览器不兼容 解决方案 写一个摄像头服务,提供http服务,返回摄像头当前画面的Base64字符串,前端页面调用并展示。 效果 前端代码 <!DOCTYPE html> <html> <head> <meta
阅读全文
摘要:GitHub - dotnet/BenchmarkDotNet: Powerful .NET library for benchmarking
阅读全文
摘要:ImageSharp 是一个全新的、功能齐全的、完全托管的、跨平台的 2D 图形库。ImageSharp 旨在简化图像处理,为您带来了一个功能强大而又非常简单的 API。 可以实现很多功能,如:缩放,裁剪,绘画,组合图片等 GitHub - SixLabors/ImageSharp: A moder
阅读全文
摘要:GitHub - spectreconsole/spectre.console: A .NET library that makes it easier to create beautiful console applications.
阅读全文
摘要:GitHub - bchavez/Bogus: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.
阅读全文
摘要:(1)调用LoadLibrary加载非托管DLL到内存中,并调用GetProcAddress 获得内存中非托管函数的指针。 (2) 为包含非托管函数地址的托管签名生成一个DllImport存根(stub)。 (3) 压入被调用方保存的寄存器。 (4)创建一个DllImport帧(frame),并将其
阅读全文
摘要:方法一 改变非托管内存的分配方法,将其修改成采用COM的内存分配方法CoTaskMemAlloc来分配内存。这样封送拆收器在释放非托管内存时,就能自动调用COM的内存释放方法CoTaskMemFree来成功释放掉非托管内存。 方法二 改变为非托管函数编写托管定义时使用的返回值的数据类型,将strin
阅读全文
摘要:效果: 代码如下: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; usi
阅读全文
摘要:1 、用ChatGPT写影评 指令:你是一个自媒体人,同时也是一个专业的影评人。最近熬夜看完了韩剧黑暗荣耀第一季和第二季,忍不住想在公众号分享给粉丝们,请写一篇1000字左右的自媒体文章,并且加上一个有吸引力的标题。 指令模板:你是一个自媒体人,同时也是一个专业的影评人。最近熬夜看完了XX,忍不住想
阅读全文
摘要:1、写报告 报告开头 我现在正在 报告的情境与目的 。我的简报主题是 主题 ,请提供 数字 种开头方式,要简单到 目标族群 能听懂,同时要足够能吸引人,让他们愿意专心听下去。 🌰 我现在正在修台大的简报课,其中一项作业是要做一份让小学生能听懂的简报。我的简 报主题是机会成本,请提供三种开头方式,要
阅读全文
摘要:信不信,随便逮住一个人问他知不知道CPU,我想他的答案一定会是肯定的,但是如果你再问他知道ARM和X86架构么?这两者的区别又是什么?绝大多数的人肯定是一脸懵逼。今天小编就带你深入了解CPU的这两大架构:ARM和X86。以后出去装X就靠它了! ## 重温下CPU是什么鬼## 中央处理单元(CPU)主
阅读全文
摘要:软件截图 项目截图 部分代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; using Nancy; using NLog; using System.Diagnostics
阅读全文
摘要:例子 @EnableScheduling @Component public class Job { /** * 每秒执行一次 */ @Scheduled(cron = "0/1 * * * * ?") public void Job01() { System.out.println("测试");
阅读全文
摘要:当Nancy版本为2.0.0.0时 string postData = Request.Body.AsString; 当Nancy版本为1.4.5.0时 自己写一个扩展方法,代码如下 /// <summary> /// Extensions for Stream /// </summary> pub
阅读全文
摘要:1、获取非input控件的值: webBrowser1.Document.All["控件ID"].InnerText; 或webBrowser1.Document.GetElementById("控件ID").InnerText; 或webBrowser1.Document.GetElementBy
阅读全文
摘要:// 接口 List<SysUser> findByIdList(List<Integer> idList); //xml <select id="findByIdList" resultMap="BaseResultMap"> SELECT * FROM sys_user <where> <if
阅读全文