1.2.3.4.5.filter应用1.用过滤器解决全站乱码问题 1.1 乱码分类 乱码分为get和post方式请求乱码 1.2 post请求乱码解决 post请求乱码很好解决只需一行代码搞定request.setCharacterEncoding("utf-8")告诉服务器用utf...
分类:
编程语言 时间:
2015-05-04 19:31:07
阅读次数:
320
总共五种数据类型:1、Strings - 字符串127.0.0.1:6379> set name "zhaoja"OK127.0.0.1:6379> get name"zhaoja"2、Hashes - 哈希值3、Lists - 列表Redis的列表是简单的字符串列表,排序插入顺序。可以添加元素到R...
分类:
其他好文 时间:
2015-05-04 19:30:51
阅读次数:
121
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace demo5{ ...
分类:
Web程序 时间:
2015-05-04 19:29:24
阅读次数:
108
sudo apt-get install nautilus-open-terminal
安装完毕之后即可在任一路径下打开终端了:...
分类:
系统相关 时间:
2015-05-04 18:17:55
阅读次数:
174
public class People { public string name { get; set; } public string age { get; set; } public string sex { get; set; } }Li...
分类:
Web程序 时间:
2015-05-04 17:20:19
阅读次数:
110
在写程序时,有时候编译器需要程序必须是英文输入,但大家经常切到中文或者直接复制网络上的源代码,所以就出现了et_ip.c:28:1: 错误: 程序中有游离的‘\302’get_ip.c:28:1: 错误: 程序中有游离的‘\240’get_ip.c:28:1: 错误: 程序中有游离的‘\302’ge...
分类:
其他好文 时间:
2015-05-04 17:13:42
阅读次数:
239
#!/bin/bash echo "-----------------------start install mysql----------------------" apt-get install make cmake libncurses5-dev bison g++ mkd...
分类:
数据库 时间:
2015-05-04 17:13:06
阅读次数:
170
// Compile in sbt
// Run in sbt>run get https://raw.githubusercontent.com/nraychaudhuri/scalainaction/master/
chap02/breakable.scala
//
// The command line in sbt is
// >run (post | get | delete |...
分类:
其他好文 时间:
2015-05-04 16:00:06
阅读次数:
499
在使用hibernat的时候有时需要获取实体在更新前的某个字段的值,但hibernate没有提供公开的api来获取,如果使用session的get方法或用hql获取始终只能获取到更新后的值(我说的是在同一个会话当中,如果你另启一个...
分类:
Web程序 时间:
2015-05-04 16:00:06
阅读次数:
221
需要luacurl(http://luacurl.luaforge.net/)和MD5两个库函数curl = require("luacurl")require("md5")-- 下载图片function get_img(url, c) local result = {} if c ==...
分类:
其他好文 时间:
2015-05-04 15:03:55
阅读次数:
97