随笔分类 -  misc

上一页 1 2 3 4 5 6 ··· 16 下一页
摘要:我们先撕简单的。a ab a|b aa* a(a|b)* 先不管匹配任意字符的. 重复>=1次的+ [^0-9]除0-9外 \digit数字等。 正则表达式(regular expression, re)为啥叫表达式,不叫正则字符串之类?因为它是个表达式。3+5*2是个表达式;两个字符串可以有连接运 阅读全文
posted @ 2022-12-22 17:48 Fun_with_Words 编辑
摘要:Originally, the Kernighan and Plauger macro-processor, and then m3, formed the engine for the Rational FORTRAN preprocessor, that is, the Ratfor equiv 阅读全文
posted @ 2022-12-21 19:39 Fun_with_Words 编辑
摘要:GitHub - devongovett/regexgen: Generate regular expressions that match a set of strings How does it work? Generate a Trie containing all of the input 阅读全文
posted @ 2022-12-20 20:29 Fun_with_Words 编辑
摘要:Linux那些事——GTK+, Qt, Gnome, KDE, xWindow, xOrg区别 - devilyouwei - 博客园 (cnblogs.com) The 8 Best Ubuntu Desktop Environments (20.04 Focal Fossa Linux) - L 阅读全文
posted @ 2022-12-17 21:38 Fun_with_Words 编辑
摘要:666行的象棋程序下得不错啊 | 印刷用棋盘工具带源码 (MFC, 约150行) | 浏览器里的中国象棋 JavaFx WebView使用研究 | JavaFX WebView and WebEngine Tutorial | JNI 入门教程 What options are available 阅读全文
posted @ 2022-12-14 20:05 Fun_with_Words 编辑
摘要:想知道尼康D5100用的啥CPU吗?请看Nikon Hacker。 相机也有模拟器? Photography News: A really smart AI-based robot, ChatGPT, has recently appeared on the web. You can ask it 阅读全文
posted @ 2022-12-13 09:46 Fun_with_Words 编辑
摘要:【 出处 】 咱们先验证下"千万人口…30万个阳性…只有9个是真的"对不对。 总人口 = 测试结果为阳性的人数 + 测试结果为阴性的人数 测试结果为阳性的人数 = 确实为阳性的人数 + 假阳性(阴性误报为阳性)人数 【目前较快的新冠核酸检测的结果可以在4-6小时内取得。而抗原检测只需要15分钟就可以 阅读全文
posted @ 2022-12-12 01:13 Fun_with_Words 编辑
摘要:全部666行(不计最后空行),不是只有界面。界面很简陋: b2c5写错了,应为b2b9炮七进七打马。截图不改了。9级就是9秒。没空格的如c3c47也行(7秒)。 源码就一个.cpp: #include <stdio.h> #include <stdlib.h> #include <string.h> 阅读全文
posted @ 2022-12-10 21:24 Fun_with_Words 编辑
摘要:这可烦人了: short i = 1, j = 2; i += j; // warning C4244: '+=' : conversion from 'int' to 'short', possible loss of data (VC6 Warning Level 4) 还是VC6, cl /W 阅读全文
posted @ 2022-12-07 15:56 Fun_with_Words 编辑
摘要:尼康 - D5100 - 产品介绍 (nikon.com.cn) | D5100Hardware - Nikon Hacker Samsung Expeed (External Bus) SDRAM, DDR2-800 or DDR2-667, 4x 64Mx16=512 MB MXIC Expee 阅读全文
posted @ 2022-12-04 21:14 Fun_with_Words 编辑
摘要:Photography News: New 35mm Lenses, Rumored Canon Cameras (photographylife.com) Photography News: Mysterious AF Technology, High-MP Camera Sales TTArti 阅读全文
posted @ 2022-12-04 20:06 Fun_with_Words 编辑
摘要:clock()在<time.h>里,Linux和Windows下都有。clock(3) - Linux manual page (man7.org) The clock() function returns an approximation of processor time used by the 阅读全文
posted @ 2022-12-04 19:57 Fun_with_Words 编辑
摘要:虽然用GDI+可以画GIF或PNG格式的图片,但多知道点总没坏处。VC带了gdiplus.h和gdiplus.h.lib 足球的背景是蓝色,不是黑色。 下面的代码片段来自印刷用棋盘工具(Ellipse毛刺感很强),但注释拿足球做例子: void TransBitBlt(HDC hdc, int x, 阅读全文
posted @ 2022-12-04 18:55 Fun_with_Words 编辑
摘要:象棋小巫师系列源程序 | 象棋资源 - 象棋百科全书 (xqbase.com) 循序渐进的最后一步,就一个源文件XQWL06.CPP,内核+图形界面共1823行(与开局库有关的部分可以安全去掉)。下得有模有样。费点心思能看懂程序。代码片段: static void SearchMain(void) 阅读全文
posted @ 2022-12-04 17:29 Fun_with_Words 编辑
摘要:下面左边和中间的画是silhouette, 最右边的不是: [LDOCE] silhouette: a dark image, shadow, or shape that you see against a light background Date: 1700-1800; Language: Fr 阅读全文
posted @ 2022-08-26 16:43 Fun_with_Words 编辑
摘要:Copyleft is the practice of granting the right to freely distribute and modify intellectual property with the requirement that the same rights be pres 阅读全文
posted @ 2022-08-24 13:24 Fun_with_Words 编辑
摘要:A session cookie, also known as an in-memory cookie, transient cookie or non-persistent cookie, exists only in temporary memory while the user navigat 阅读全文
posted @ 2022-08-23 13:34 Fun_with_Words 编辑
摘要:以mysql为例进行分页,如: SELECT * FROM table WHERE age < 30 LIMIT 0, 10 SELECT * FROM table WHERE age < 30 LIMIT 10, 20 ... SELECT * FROM table WHERE age < 30 阅读全文
posted @ 2022-08-21 13:12 Fun_with_Words 编辑
摘要:【百度百科】中国港台地区把内存芯片叫做“内存颗粒”,其它芯片叫做“晶片”。搜memory particle结果很少: https://golerugged.com/article/284.htmlThe full name is Quad-Level Cell, a four-layer stora 阅读全文
posted @ 2022-08-20 19:06 Fun_with_Words 编辑
摘要:编过一点点串口通信程序(摄像机云台),当时有些问题没想明白,现在瞎琢磨了下。 你真的了解串口吗(示波器串口波形分析) 停止位怎么还有1.5位,不设停止位怎么也能用? 1. 也许大家都用了默认值。 2. 停止位和空闲的电平是一样的,多闲一会好像也没啥问题。 怎么从错误中恢复? 见过自动从高到低尝试波特 阅读全文
posted @ 2022-08-20 13:31 Fun_with_Words 编辑

上一页 1 2 3 4 5 6 ··· 16 下一页









 和4张牌。

点击右上角即可分享
微信分享提示