Sep082016
php 依据姓名猜测性别
<?php
/**
* Gender Guesser
*
* This class can guess the gender of chinese names.
*
* Blog Entries: http://blog.wudilabs.org/tag/genderguesser/
* PHP Classes: http://www.phpclasses.org/browse/package/2701.html
*
* PHP versions 5
*
* LICENSE: This program is free software; you can redistribute it
* and/or modify it under the terms of t...阅读全文
抢沙发
Sep072016
Aug272016
Router 开启VPN,Web proxy,Socks代理
/ip firewall nat add action=masquerade chain=srcnat out-interface=ether1
/interface l2tp-server server set default-profile=VPN_Profile enabled=yes
/interface pptp-server server set default-profile=VPN_Profile enabled=yes
/ip pool add name=VPN_Pool ranges=172.31.59.2-172.31.59.20
/ppp profile add change-tcp-mss=yes local-address=172.31.59.174 name=VPN_Profi...阅读全文
Aug262016
密码保护:linux 架设PPTP,L2TP VPN
首先是PPTP
#!/bin/bash
#
# Author: yeho <lj2007331 AT gmail.com>
# Blog: https://blog.linuxeye.com
#
# Installs a PPTP VPN-only system for CentOS
# Check if user is root
[ $(id -u) != "0" ] && { echo -e "\033[31mError: You must be root to run this script\033[0m"; exit 1; }
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/u...阅读全文
作者:绝缘体.. | 分类:c++, hbase, html, Linux, windows, 操作系统, 数据库, 编程语言, 首页 | 阅读: | 标签:c++, hbase, html, Linux, windows
要查看留言请输入您的密码。
Aug262016
Aug252016
获取QQ头像的相关接口
http://q2.qlogo.cn/headimg_dl?bs=QQ号&dst_uin=QQ号&src_uin=QQ号&fid=QQ号&spec=100&url_enc=0&referer=bu_interface&term_type=PC
http://q.qlogo.cn/headimg_dl?dst_uin=10001&spec=640&img_type=jpg
收集的关于几个QQ的接口,
包括QQ头像接口,
QQ空间头像接口,
QQ空间说说、日志、留言、
相册统计接口,...阅读全文
Aug102016
Aug092016
织梦dedecms后台添加图片style全部都变成style的解决教程
织梦dedecms图集自定义字段里面传的图片代码都会变成yle=”width… 在百度多次寻找无果 在官网论坛也找了N久 都不顶用 自己细节分析
发现会把style替换为st<x>y<x>le,多了两个”<x>”,在代码里面搜索发现是官网为了过滤而设定得
比如
1、给文字添加蓝色属性:保存后会发现文字前面多了yle=”color:blue;”>,而且...阅读全文
Aug092016
Aug072016
解析php利用正则表达式解决采集内容排版的问题
/**
* 格式化内容
* @param string $content 内容最好统一用utf-8编码
* @return string
* !本函数需要开启tidy扩展
*/
function removeFormat($content) {
$replaces = array (
"/<\?xml:.*?>/i" => "",
"/<font.*?>/i" => '',
"/<\/font>/i" => '',
"/&...阅读全文