https://github.com/feelinglucky/php-readability/
http://code.fivefilters.org/php-readability
提取正文算法readability PHP实现
发布时间:July 29, 2014 // 分类:PHP // No Comments
Firefox下JS修改about:config配置代理服务器
发布时间:July 28, 2014 // 分类:Firefox // No Comments
var prefs = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefService);
prefs = prefs.getBranch("network.proxy.");
prefs.setIntPref("type", '1');
prefs.setIntPref("http_port", '3128');
prefs.setCharPref('http', '192.168.1.1')
prefs.setBoolPref('socks_remote_dns', 'true')
//socks将http修改为socks
更多参数:https://developer.mozilla.org/en-US/Add-ons/Code_snippets/Preferences#nsISupportsString
Python处理同义词
发布时间:July 23, 2014 // 分类:Python // No Comments
下载WordNet词库:
wget http://wordnetcode.princeton.edu/3.0/WNprolog-3.0.tar.gz
安装Python模块Whoosh解析词库:
yum -y install python-pip
pip install whoosh
直接加载词库文件并解析:
from whoosh.lang.wordnet import Thesaurus
t = Thesaurus.from_filename("wn_s.pl")
print t.synonyms("hail")
使用索引,生成索引:
from whoosh.filedb.filestore import FileStorage
t = Thesaurus.from_filename("wn_s.pl")
fs = FileStorage("index")
t.to_storage(fs)
通过索引解析:
from whoosh.filedb.filestore import FileStorage
from whoosh.lang.wordnet import Thesaurus
fs = FileStorage("index")
t = Thesaurus.from_storage(fs)
print t.synonyms("hail")
记将域名从Godaddy转到Maddogdomains
发布时间:July 23, 2014 // 分类: // No Comments
1.Godaddy处解锁域名
2.Godaddy处Email Authorization code
3.Maddogdomains处申请转移相应域名并付款
4.Maddogdomains发送邮件附Transaction ID和Security Code
5.登录Maddogdomains账户Pending Transfers添加Transaction ID和Security Code及Godaddy的Authorization code
6.收到Godaddy的域名转移提醒邮件,无操作
7.登录Godaddy Pending Transfers Out立即同意转出
8.此时Godaddy帐户已无转出的域名,Maddogdomains刷新即可看到转入的域名,整个过程历时10分钟。
分类
- Apache (13)
- Nginx (45)
- PHP (86)
- IIS (8)
- Mail (17)
- DNS (16)
- Cacti (14)
- Squid (5)
- Nagios (4)
- Puppet (7)
- CentOS (13)
- Iptables (23)
- RADIUS (3)
- OpenWrt (41)
- DD-WRT (1)
- VMware (9)
- 网站程序 (2)
- 备份存储 (11)
- 常用软件 (20)
- 日记分析 (10)
- Linux基础 (18)
- 欧诺代理 (0)
- Linux服务 (18)
- 系统监控 (4)
- 流量监控 (7)
- 虚拟化 (28)
- 伪静态 (2)
- LVM (3)
- Shell (18)
- 高可用 (2)
- 数据库 (16)
- FreeBSD (3)
- 网络安全 (25)
- Windows (35)
- 网络工具 (22)
- 控制面板 (3)
- 系统调优 (10)
- Cisco (3)
- VPN (5)
- ROS (20)
- Vim (14)
- KMS (4)
- PXE (2)
- Mac (1)
- Git (1)
- PE (1)
- LNS (2)
- Xshell (7)
- Firefox (13)
- Cygwin (4)
- OpenSSL (9)
- Sandboxie (3)
- StrokesPlus (1)
- AutoHotKey (4)
- Total Commander (3)
- WordPress (3)
- iMacros (6)
- Typecho (2)
- Ollydbg (1)
- Photoshop (1)
- 正则 (3)
- Debian (3)
- Python (8)
- NoSQL (6)
- 消息队列 (4)
- JS (7)
- Tmux (3)
- GO (7)
- HHVM (2)
- 算法 (1)
- Docker (2)
- PT (15)
- N1 (16)
- K2P (6)
- LUKS (4)
最新文章
- openwrt ap桥接br-lan获取ipv6
- 解决Sandboxie下Firefox切换窗口后网页部分白屏的问题
- 红米ax6000刷immortalwrt-mt798x闭源驱动固件
- ubuntu编译红米ax6000/360 t7闭源驱动immortalwrt固件
- 此内容被密码保护
- 安装onlyoffice
- ssh生成/转换私钥格式及openssl使用ssh证书rsa非对称加解密文件
- ubuntu/debian禁用qemu-guest-agent
- tmux attach使用ssh agent
- linux用tc给软件应用或ip做qos限制下载上传速度
最近回复
- 海运: 网络,找到相应的url编辑重发请求,firefox有此功能,其它未知。
- knetxp: 用浏览器F12网络拦截或监听后编辑重发请求,修改url中的set为set_super,将POS...
- Albert: 啊啊啊啊啊啊啊啊啊 我太激动了,终于好了英文区搜索了半天,翻遍了 pve 论坛没找到好方法,博...
- jiangker: good, very helpful to me
- fengfeng: N1 armbian 能有编译下内核吗。。我要开启can 不懂怎么操作
- 1: 方法一ngtcp2要改下:./configure PKG_CONFIG_PATH=/usr/l...
- 海运: 关闭服务器
- 海风: override.battery.charge.low以及override.battery.r...
- koldjf: 不能过滤
- 杰迪武士: 此文甚好甚强巨,依照此文在树莓派2 + Rasbian上部署成功 感谢博主美文共赏