视频会议卡顿掉线怎么办?居家办公网络自测与优化升级

问题 你是否网络会议常视频卡顿、声音断续、甚至掉线?经常询问朋友用的是哪家的网络?为啥自己的运营商不给力?自己测一测吧 测速 在家里这些地方分别用电脑和手机访问: speedtest.cn (国外的朋友可访问 speedtest.net ) 离路由器一米且无遮挡的地方 日常居家办公区域 其他你想测速的地方 如果下行速度低于100Mbps, 网速不足; 低于50Mbps, 严重不足。考虑升级措施。 优化升级 网络从运营商到设备有以下因素决定网速: 安装宽带带宽(建议200M以上) 光猫(运营商提供的光猫路由一体机),无需升级 路由器。运营商提供的设备一般光猫路由二合一,wifi功率较低,穿墙能力差。老的设备甚至不支持5.8GHz频段。即使新装的宽带一般有5.8GHz (5GHz),但两个频段独立运作,无法合并让设备智能选择。 建议升级为华为AX3 Pro,京东淘宝闲鱼大概在¥279~399之间。穿墙能力强,双频合并,设备可智能选择2.4GHz还是5GHz 路由器与设备之间的空间。不要有金属,墙角,尽量放在房屋中间位置,开阔遮挡(比如墙壁)最少的地方。不要放在弱电箱。离设备越近越好。甚至不用wifi,用网线直接连接最好。 设备:确保你的设备最低支持Wifi5, 也就是802.11ac协议. 支持最新的wifi6 (802.11ax) 更好。如果不支持Wifi5,建议升级无线网卡或更换设备。你会感谢我。 Bonus: 如果你想进一步提高上网体验,看一下你的测速上行速度,如果在100Mbps以上,恭喜你,比大多数人都强。如果50Mbps以下,可以联系运行商提上行速率。联通用户可以在手机联通app“智能提速包”里购买。¥30/月提至100M(实际130Mbps左右) 以上因素最常见的问题出在 #3, #4 。如果同一地点,不同设备速率差别很大,那就是 #5 设备的问题。 祝大家信号满格,信心满满,居家办公效率高高~

Python Script to Automate Prism PZFX XML Data

I am working on a mathematical modeling figure using Graphpad Prism. I got data from a collaborator. He works on the computational part. He sends me his model fitting and simulation results in a set of CSV files. The data contains: Experiment data: 2 genotypes x 5 cell species x 7 times points x 3 […]

FireFox for Mac中文字体粗细大小不一的解决办法(默认英文)

我的Firefox for Mac 一直有这个问题,某些中文网站字体显示粗细大小不一。如图: 困扰我很久,参考知乎的答案: https://www.zhihu.com/question/19586802 答案中的用户把中文zh放在了en之前,结果访问很多国外网站比如Airbnb, Kayak时,它们默认我来自中国(因为zh-cn排第一嘛)。把界面,货币等都默认为中国,对于在海外学习生活的我们不是很方便。 解决办法是:把en-US(如果在美国),en放在zh-cn之前。 这样访问英文网站没问题,中文字体也没问题。效果如下图: 设置Firefox / Preferences / Content / Languages: 你也可以加入zh-hk,zh-tw以便访问这些地区的繁体网站。如图:

Template rendered html email for Web2py email verification and password reset

For discussion about this old problem, read Google group thread here. I ended up modifying gluon/tools.py. It is probably not a good practice. But it is the easiest solution. I edit register() and email_reset_password() modifying something like (depends on which one) message=self.messages.verify_email % d to message=(”,response.render(’email/template.html’, d)) Be careful with the ending parentheses, the two […]

Force SSL/HTTPS and non-www in web2py

Update 02.08.2018: Code is updated to use just one line to force https: request.requires_https() ======= I read this https://groups.google.com/forum/#!topic/web2py/RzJ4pYtAWF4 and https://stackoverflow.com/questions/26802850/pythonanywhere-web2py-redirect-to-https then I realized “cronjob” problem described in these answers are no longer relevant since `scheduler` has long since replaced `cron` I created a new model secure.py and add: ########## FORCED SSL non-www ########## session.secure() […]

Securing Web2py with Let’s Encrypt / Certbot

In case anybody wondering the same question about using certbot/let’s encrypt and web2py: how do you serve the .well-known folder for certification, when all the request goes to wsgi handler? 1. use `–standalone` as David advised. But you have to stop the web server every time you renew. 2. instead, you can use the standard […]

Passenger WSGI setup with pyenv on Dreamhost for Web2Py

Update 2019.12.06: I have moved from DreamHost to Google Cloud VPS. If this post does not work for you, please see alternative method in a comment by Chris. I have been using fastcgi+flup (link) to run my web2py apps on shared Dreamhost hosting. But the speed was really mediocre. Dreamhost recommends Passenger WSGI for python […]

Inkscape Design Notes

1. Inkscape document background color does not export to PDF, but only to PNG. Use rectangle with desired color as background. 2. Inkscape does not support CMYK color mode for printing. Convert text to path, then import/open with Scribus to export PDF in CMYK mode. Text in SVG does not import into Scribus well. But […]

北京大学标志logo SVG 矢量文件加反白

最近帮校友会制作印刷品,需要用到logo矢量文件。但是北京大学视觉系统只提供了eps文件,而且反白的标志只提供了PNG,没有提供矢量文件。 我在网上用CloudConvert的在线工具把eps转成svg, 然后用inkscape反白处理,并把黑色的logo删除,单留了一个logo. 我把文件分享在这里,希望有同样需要的朋友能省点时间: 北京大学视觉系统标志原稿EPS 北京大学视觉系统标志SVG 北京大学视觉系统标志红色svg 北京大学视觉系统标志反白红底svg