Local CDN 是在 Decentraleyes 基础上开发的一个浏览器扩展,该扩展在本地缓存了 ajax.googleapis.com,ajax.microsoft.com 等常见 CDN 的一些js库和框架,例如 jquery,angularjs 等等。


使用了此插件后,访问 https://stackoverflow.com,可以正常加载 jquery 等资源,速度变快很多,页面功能也都正常。


Local CDN 官方网站:

https://add0n.com/local-cdn.html

https://github.com/james-fray/local-cdn


插件下载地址:
https://www.crx4chrome.com/down/46308/crx/


本文链接地址: 使用Chrome 的 Local CDN 扩展加速访问 stackoverflow
https://blog.qingfengju.com/index.asp?id=411

分类:杂谈随感 查看次数:522564 发布时间:2017/7/27 23:35:03

1 安装方法:

a) 安装 pywin32-221.win32-py3.5.exe

b) 执行 D:\Python35\Lib\site-packages\win32comext\axscript\client\pyscript_rexec.py


如果报错:

SystemError: Parent module '' not loaded, cannot perform relative import

修改 pyscript_rexec.py,将 from . import pyscript 改为 import pyscript 再执行。


2 参考文档

D:\Python35\Lib\site-packages\win32com\readme.htm


3 注意事项

无论是Windows脚本宿主,还是IIS,都需要注意32bit/64bit问题;

32位的cscript.exe可以通过%windir%\SysWoW64\cmd.exe中启动,即C:\Windows\SysWOW64\cscript.exe。

示例程序:D:\Python35\Lib\site-packages\win32comext\axscript\Demos\client


本文基于Python 3.5.3 32bit,Windows 7 SP1 64bit.

用Python写ASP,还是挺有意思的,虽然小众了一点。


4 附:pys扩展名关联到cscript.exe

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\pysFile]
@="Python Script File"

[HKEY_CLASSES_ROOT\pysFile\Shell]
@="run"

[HKEY_CLASSES_ROOT\pysFile\Shell\run\command]
@="\"C:\\Windows\\SysWOW64\\cscript.exe\" \"%1\""

本文链接地址: 将 Python 作为 Windows ActiveX Scripting 语言
https://blog.qingfengju.com/index.asp?id=410

分类:脚本编程 查看次数:15056 发布时间:2017/7/6 23:26:43