WordPress系统本身,默认安装的情况下使用默认模板,实际上对搜索引擎并不友好,并没有针对搜索引擎进行很好的设计,下面我介绍一些技巧和方法可以使得WordPress能否对搜索引擎更为友好。 1、文章URL链接结构的优化 Permalink里面要包含postname.一般的服务器都支持mod_.....
分类:
其他好文 时间:
2015-03-09 17:27:20
阅读次数:
124
#include #include #include int open(const char *pathname, int flags); int open(const char *pathname, int flags, mode_t mod...
分类:
其他好文 时间:
2015-03-09 15:58:13
阅读次数:
132
配置: WSGIScriptAlias /var/www/wsgi-scripts/simple.wsgi def application(environ, start_response): output = ‘hello world’ status = ‘200 OK’ headers = [(‘...
分类:
其他好文 时间:
2015-03-09 14:24:01
阅读次数:
150
1.打开apache配置文件 httpd.conf 。2.开启rewrite模块,去掉注释##LoadModule rewrite_module modules/mod_rewrite3.让apache服务器支持.htaccess,打开httpd.conf,设置AllowOverride为AllOp...
分类:
Web程序 时间:
2015-03-09 14:19:50
阅读次数:
192
将Trac与Apache配合使用,需要用到mod_wsgi模块,首先Apache要安装负责wsgi的模块。def application(environ, start_request): #... from trac.web.main import dispatch_request return d...
分类:
Web程序 时间:
2015-03-09 14:14:20
阅读次数:
117
#define ll long long
#define maxn 1000010
#define MOD 1000000007
ll f[maxn],ny[maxn];
ll inv(ll a,ll m){
ll p=1,q=0,b=m,c,d;
while(b>0){
c=a/b;
d=a; a=b; b=d%b;
d=p; p=q; q=d-c*q;
}
return p...
分类:
其他好文 时间:
2015-03-08 23:04:42
阅读次数:
149
#include #include #include #include #include using namespace std;typedef long long ll;const int Mod = 836131;const int N = 1e6 + 3;int T_T, n, a, K, t...
分类:
其他好文 时间:
2015-03-08 21:29:48
阅读次数:
164
题意:问有没有数对(i,j)(0x)是否出现,所以要逆序枚举。代码:#include #include #include #include #include #include #define Mod 1000000007#define lll __int64#define ll long longu...
分类:
其他好文 时间:
2015-03-08 16:58:57
阅读次数:
152
高精度模版(bin神的)
/*
* 高精度,支持乘法和加法
*/
struct BigInt
{
const static int mod = 10000;
const static int DLEN = 4;
int a[600],len;
BigInt()
{
memset(a,0,sizeof(a));
len =...
分类:
其他好文 时间:
2015-03-08 14:21:55
阅读次数:
174
把nexus5升级到了5.0然后想获得root。
以下内容适用于Mac系统电脑以及曾root过的nexus5机器
1.下载工具:http://pan.baidu.com/s/1hq9ZsEw
来源:http://bbs.gfan.com/forum.php?mod=viewthread&tid=7535779
2.也许你以为需要安装驱动,但我发现用不着,起码在yosemite上成功了。直接...
分类:
系统相关 时间:
2015-03-08 11:48:21
阅读次数:
355