Category Archives: Tech

Sandboxie 中输入法切换导致stuck问题

Updated: 我感觉我找到解决方案了。在Wnd 里允许访问Wnd Class,然后测试就没有IME切换问题了,不需要其他任何设置。如下图所示(sandboxie-plus, v1.8.4), Apr 15, 2023

I’m pleased to say that I’ve found a solution that works. By enabling access to all Wnd Class, the CJK IME stuck in sandboxie issue has been resolved. I’m curious, though: was I the first to discover this solution? I’ve attached a screenshot below to show the necessary settings in Sandboxie-Plus. No additional settings are required.

enabling access to all Wnd Class in Sandboxie-plus, v1.8.4
Continue reading

Wacom绘画板手写跳跃的问题

家里两位教师,今年线上教学任务重,所以买了两块Wacom绘图板。一块是 Intuos BT M,一块是Intuos Pro PTH-660,通过蓝牙连到laptop,用Powerpoint讲解的时候,可以很方便的手画,真是很好用。(Intuos Pro的蓝牙充电有一点小问题(一直是0%充不上电),需要注意,我们回头另述)

但在使用时,会遇到一点问题,就是有时候手写的时候,光标会自动跳跃到另一处,从而出现莫名其妙的直线。这种情况不管在使用ppt,还是用微软白板,都有可能出现。我的使用环境是 win10/11。

我花了一些时间去寻找可能的solution,在网上一下子是找不到的,所以总结在这里是有必要的。

秘密在Tablet properties 里面。当绘图板连接到laptop后(不管是有线还是蓝牙),都可以打开这个peoperties 的设置窗口,如下图所示。其下有一个checkbox是 Use Windows Ink。把这个打勾上。然后你会发现上述问题已经全部解决。

Enjoy!

Wacom Tablet Properties window. Enable the “Use Windows Ink” option when using Wacom Tablet on Windows. Otherwise, the cursor will sometimes jump when using the tablet, resulting in inadvertent straight lines.

NoteExpress v3.7.0.9296 文献多重选择问题

最近帮学生改论文,发现NoteExpress 当前版本在多重选择时出现停顿、文献条目位置移动等现象。

具体是压住Ctrl键,在第一次点另一条文献时能够成功选择,但再点另一条的时候 NE就要停顿一下子,过一些时间后才响应,不过选择好的几条文献条目位置都发生了变化。而NE 好像也没有提供其他多选的方法,这样使得NE 多重选择基本没法用,很是不便。

偶尔发现当我把中文模式切换到英语输入时,如下图所示,多重选择就可以正常使用。因此这个问题可能与中文输入法有关。

我的环境是win 11, version 22H2,应该是更新到最新了。NoteExpress 也是当前最新的 v3.7.0.9296 。

error 2102: detection error of ssd on x270

This error occurred after I reinstalled my x270 laptop. I cleaned all the data on the disks, reinstalled win10, and also reset the bios to factory settings. When I do a cold restart (shutdown and then press the power button), error 2102 (message reads “Detection error of storage device (m.2 ssd)”) appears before win10 starts. I shall press ESC twice before I can get the win10 system to come up. 

I have searched Google. All I found is that it is hardware problem, that you call the manufacturer and replace the storage device. So that what’s I did.  I bought a new 256G m.2 2248 SSD for 299 Chinese Yuan.

I unscrewed the rear cover of x270, and replaced the old ssd with the new one. Unfortunately, the same error appears on cold boot. Frustrating. But I changed my mind, it is more like a bios problem instead of a hardware problem.

Then I tried different settings. At last, I found a perfect solution.

  1. Press Enter key to interrupt the normal boot procedure.
  2. Press F1 to enter bios.
  3. Disable secure boot in the security tab of bios.
  4. Set boot UEFI mode to both, with UEFI first option.
  5. Save changes and reboot.

The error is gone! Bravo!

x270 disassembly view/ photo by Zhuotong Nan

家庭全覆盖无线路由器方案

办公室搁一个无线路由器就够了,毕竟办公室小。但100来平米的房子,三室两厅模样,即使无线路由器放居中的客厅,卧室因为隔了墙,wifi 信号往往不佳。买号称大功率的很多条天线的那种路由器,事实上也是不好用。

我以前是家里买两个无线路由器,一个搁客厅,一个搁主卧,做成桥接(Bridge),但需要我自己设置,而且桥接的那个无线路由往往有时候连接也不是那么顺畅。

大概一年前,试了一下水星路由器Mesh方案,当时买的是Mercury M6G,三只,一只搁客厅,连了网线;一只搁次卧,基本实现全房间无缝覆盖。另买一只搁书房,因为书房还有一个HP LaserJet打印机,需要插网线才能提供无线打印。三个Mesh路由器之间无线桥接即可,配置起来只要接几下按钮。一年多的试用下来,印象中还比较稳定。

刚才看了一下水星的官网,最新的Mesh系列已经是M18G了,提供了wifi 6的支持。

这不是水星路由器的软文,只是把自己的生活经验分享给需要的朋友。应该也有其他品牌的Mesh 方案,我感觉大同小异吧。另外还有那种通过交流电线的路由方案(路由器插到墙壁插座),但据说速度会受到一些影响,而且不能插到有电涌保护的插座板上,不是很推荐。

无线投屏到win10 PC

有时候学生来办公室找我讨论,face to face那种,打开投影仪又嫌太麻烦了,我办公桌上有两块比较大的屏幕,所以就把学生笔记本电脑接到大屏幕上,大家对着大屏幕讨论。但还是要把线拔来拔去,尤其是有时候学生电脑只有Type C接口,不能直接连,麻烦。于是想是否可以直接无线投屏过来 (两个屏幕则已经连到一台win10主机上)。

事实上多数的win10电脑都已经支持投屏。我办公室用的是台thinkpad x270,2017年出产的笔记本,用了5年,双硬盘,性能还很好,但硬件上已经老,都不支持win11的升级条件,但仍然可以支持从学生笔记本向这台机器的投屏。整个过程不需要安装任何软件,win10已经内置,但藏的比较深。

前提条件,x270电脑与学生电脑都已经连接到同一个wifi路由器(在同一个subnet里)。

Continue reading

QQ企业邮箱邮件空白的问题

我们学校使用的是QQ企业邮箱。今天在登陆Elsevier 的时候,提示要确认邮箱,它往学校邮箱里发了一封信。信件来自 Elsevier Identity,标题是“确认您的电子邮箱”,进到QQ企业邮箱的Web端,在收件箱的预览里可以看到如下主题预览信息:

Zhuotong, 您好! 请确认您的电子邮箱。确认电子邮箱 或者使用此链接: https://id.elsevier.com/ext/em

这个链接明显是不全的。点击进入邮件,出现的是一个空白邮件。明显是Web客户端不能正确处理该邮件内容。

经多方尝试,方案是,在点击进来阅读该邮件内容时,在收件人一栏右侧有一个往下箭头,点击后出现:打印 | 新窗口读信 | 邮件有乱码 | 导出为eml 文件 等内容。有用的是“导出为eml文件“。将在本地另存一个eml文件,该文件可以被outlook客户端打开。里面可以看到链接地址。

另外测试了微信代收信,也是空白邮件,不能正确阅读该邮件。

caj格式转pdf

Update: 现在有一个在线工具:https://caj2pdf.cn/en,挺好用。但只支持.caj后缀,如果是其他后缀的cnki文档,试着改为.caj看看结果,没准有惊喜。Oct 26, 2022

CAJ 是中国知网的一种文献格式,要求安装CAJViewer 才能阅读。我偏爱pdf格式。所以不想在自己的机器上安装CAJViewer。下载到的caj 格式(比如学位论文只提供caj格式),需要一种第三方的工具来实现caj 到pdf 的转换。caj2pdf 正是这样的工具。

  • 下载caj2pdf

从其github 官网(https://github.com/JeziL/caj2pdf)打包下载zip文件,解压缩到目标目录。

Continue reading

非完美方案:Sandboxie中运行腾讯会议/Imperfect solution for running Tencent Meeting in Sandboxie

Sandboxie v5.51.3 (64 bit)

在Sandboxie Classic中创建一个新的Sandbox(比如tencentmeeting),选择从None中创建。下载腾讯会议最新安装程序,安装到刚创建的tecentmeeting沙盒里。可以正常启动腾讯会议。直到试图共享屏幕时,会出现黑屏,共享失败。

大概原因是该沙盒禁止了里面的程序访问屏幕共享(screen sharing)的相关class。在此链接有人建议了类似问题。具体是在tencentmeeting沙盒上右键进入 Sandbox Settings,切换到 Resource Access > Window Access,点Add添加一项,内容是*。保存后重启腾讯会议再试。此外,建议在 Configure > Edit Configuration中,在 [tencentmeeting] 下面增加对蓝牙的支持,即添加一行 OpenBluetooth=y,以添加对蓝牙设备的支持。在我的机器上,由于连接了蓝牙设备也会导致共享屏幕不成功。保存后,Configure > Load Configuration 将修改的配置重载进来,再打开腾讯会议再试。在我的测试中,多数时候能够成功共享屏幕,但偶尔仍然可能失败。

Imperfect workaround: Right click the new sandbox running Tencent Meeting and enter Sandbox Settings. Go to Resource Access > Window Access. Click Add to add a new item providing an asterisk (*) as its name. Apply this modification. Open Tencent Meeting to test screen sharing. In addition, if any bluetooth device is used, append “OpenBluetooth=y” under the section of [tencentmeeting], the name of the sandbox holding Tencent Meeting, in the configuration file which can be edited via Configure > Edit Configuration. Without this enabled in my computer, screen sharing of Tencent Meeting also fails. In my testing, it can work at most times with those modifications but still occasionally fails.

Word 交叉引用如何只保留图表编号

对于涉及大量图表,在写作过程中可能会调整次序时,交叉引用十分有帮助,使得正文里出现的编号与图表实际编号保持一致,而不需要手动去逐个调整。

但在正文插入图表的交叉引用时,有几个可选项是:全部caption;只有标记和编号(only label and number);只有题注文本(only caption text);页码;如上/如下。我们通常插入一个图时要选择Only label and number)选项,这时在正文会出现: Figure 1. 字样。

有时候我们会有同时引用多个图或表的需求。比如 as seen in Figures 2 – 4。这时候我们需要另一个选项是只保留编号,但Word提供的对话框里并没有。

Continue reading