- 浏览: 315698 次
- 性别:
- 来自: 上海
最新评论
-
bu123dian:
都没有中文了么?英文看起来真的比较费劲
JIRA Git Plugin -
haohappy2:
We can call it dynamic content ...
Varnish and Nginx -
spidersea:
文中提到“利用 Varnish cache 减少了90%的数据 ...
Varnish and Nginx
文章列表
<!DOCTYPE html>
<html lang="zh">
<head>
<title>极速智能搜索</title>
<meta charset="utf-8">
<link href="http://s1.bdstatic.com/r/www/search/is/css/ISAnimate1.css" rel="stylesheet">
<script src="http://s ...
PHP CSV Writer
- 博客分类:
- PHP
<?php
/**
* Simple class to properly output CSV data to clients. PHP 5 has a built
* in method to do the same for writing to files (fputcsv()), but many times
* going right to the client is beneficial.
*
* @author Patrick WU
*/
class CSV_Writer {
public $data = array();
p ...
When using wget with https, if you get the following error:
Could not seed PRNG; consider using --random-file.
Disabling SSL due to encountered errors.
It means that the udev daemon may be in physical mode. Create the /dev/random device manually:
mknod /dev/random c 1 8
Actuall ...
http://www.jeremyskinner.co.uk/2010/07/31/hosting-a-git-server-under-apache-on-windows/
http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/
<?php
$cityname="上海"
$pa = '/[\x{4e00}-\x{9fa5}]/siu';
preg_match_all($pa, $cityname, $r);
$count = count($r[0]);// can't set one word
echo $count;
http://www.iteye.com/news/29175
suppose you use timestamp, but you need to get the date
SELECT
DISTINCT DATE( `LoginDate` ) FROM
loginlog
SELECT
DISTINCT left( `LoginDate` , 10 ) AS
URL中一些字符的特殊含义,基本编码规则:
1、空格换成加号(+) 2、正斜杠(/)分隔目录和子目录 3、问号(?)分隔URL和查询 4、百分号(%)制定特殊字符 5、#号指定书签 6、&号分隔参数
转义字符的原因:
如果你的表单使用get方法提交,并且提交的参数中有“&”等特殊符的话,如果不做处理,在service端就会将&后面的作为另外一个参数来看待。例如表单的action为list.jsf?act=go&state=5则提交时通过request.getParameter可以分别取得act和state的值。如果你的本意是act='go&stat ...
1)运行SCORM APIAdapter。
2)调用API初始化函数。
3)加载课件SCO初始化数据。
4)获取Data Model中的用户ID和用户姓名。
5)获取Data Model中cmi.core.lesson_status值,即当前用户对当前SCO的学习状态,包括passed (通过) completed (已完成) browsed (浏览) incomplete (非完成) failed (失败) not attempted (未尝试) 6种状态。
6)获取数据模型中的cmi.core.entry 值,该值判断当前用户是否第一次学习当前SCO。如果值为“ab-initio ...
Linux系统通过shell提供了大量方便的工具,如:awk、grep、sort、more、less、tail等等,方便程序员或者从事数据分析的人员对一些小文件的快速分析,掌握好这些工具,可以极大地提高简单数据分析的效率。
工具/原料
Linux系统
一、awk常用技巧和方法
1
文件每行按第二列去重并打印第二列不同的值及出现次数:
awk -F"\t" '{a[$2]+=1}END{for(x in a) print x"\t"a[x]}' a
2
求两个文件中 ...
#!/bin/sh
b=''
for ((i=0;$i<=100;i+=2))
do
printf "progress:[%-50s]%d%%\r" $b $i
sleep 0.1
b=.$b
done
echo
运行结果为: progress:[..................]100%
利用-\|/实现旋转滚动效果
#!/bin/bash
i=0
while [ $i -lt 20 ]
do
for j in '-' '\' '|' '/'
do
printf "i ...
CSS3 new feature list
- 博客分类:
- CSS3
由于CSS5标准还未完全订下来,所以各种内核的浏览器都有自己的标准,为了不使属性混淆,所以各家在各自标准前加了一个前缀,
如:-moz- 主要是firefox火狐
-webikt-主要是chrome谷歌,
-o-主要是用于苹果机上的浏 ...
Tomcat在启动的时候,都会从D:\Tomcat6.0\conf\server.xml中获得server启动的一些基本信息;在server.xml中,你会看到这个节点,如下所示:
<Service name="Catalina">
<Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" port="80" redirectPort="8443& ...
Tomcat 内网能访问外网不能访问问题
- 博客分类:
- Tomcat
1. 确保你的防火墙
2. 新建入站规则,如果你的端口是80,8080,443, 必须添加这些端口 如附件
3. windows中: 修改在 C:\WINDOS\system32\drivers\etc\hosts 文件,以上例为例,修改为 127.0.0.1 www.xxx.com
~ openssl version -a
OpenSSL 1.0.1 20 Mar 2013
built on: Tue Mar 4 07:26:06 UTC 2014
platform: debian-amd64
options: bn(64,64) rc4(16x,int) des(idx,cisc,16,int) blowfish(idx)
compiler: cc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO - ...