windows下安装redis1、redis简介redis是一个key-value存储系统。和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)、zset(sorted
set --有序集合)和hashs(哈希类型)。这些数据类型...
关键词:Cookie的作用 1.记录访客的某些信息。例如可以利用Cookie纪录用户光临你的网页次数,或者访客曾经输入过的信息,某些网站(如网易社区)可以自动纪录你上次登录的用户名,用的就是Cookie。
2.在页面之间传递变量。浏览器并不会保存当前页面上任何变量信息的,当页面被关闭,页面上的任何....
分类:
Web程序 时间:
2014-05-03 22:10:13
阅读次数:
432
首先看下面这个例子
public static void main(String[] args) {
ArrayList al1 = new ArrayList();
al1.add(1);
ArrayList al2 = new ArrayList();
al2.add("hello");
//int型链表和string型链表,结果为true
System.out.p...
分类:
编程语言 时间:
2014-05-03 22:02:53
阅读次数:
376
题目:
Given a string S and a string T, count the number of distinct subsequences of T in S.
A subsequence of a string is a new string which is formed from the original string by deleting some (c...
分类:
其他好文 时间:
2014-05-03 21:48:19
阅读次数:
252
在派生类中序列化一个基类
假如有一个基类如下:
class student_info
{
public:
student_info() {}
virtual ~student_info() {}
student_info(const std::string& sn, const std::string& snm, const std::string& sg)
: name_(sn),...
分类:
其他好文 时间:
2014-05-03 21:41:12
阅读次数:
356
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without an...
分类:
其他好文 时间:
2014-05-03 21:35:49
阅读次数:
310
String Problem
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1442 Accepted Submission(s): 645
Problem Description
Give you a str...
分类:
其他好文 时间:
2014-05-03 21:28:56
阅读次数:
289
播放视频的两种方式:
使用VideoView播放视频(方便,推荐)
使用MediaPlayer和SurfaceView播放视频(早期的方式)
第一种方式:
使用VideoView播放视频的步骤如下:
在界面布局文件中定义VideoView组件,或在程序中创建VideoView组建
调用VideoView的如下两个方法加载指定视频
setVideoPath(String...
分类:
移动开发 时间:
2014-05-03 21:07:17
阅读次数:
393
package ioTest.io3;
import java.io.File;
/*
* 获取一个目录下的所有文件夹和文件,包括子文件夹和子文件 。
* 并将文件夹和文件名称打印在控制台上面。并且要显示文件目录的层级
* 注:运用了递归的算法。
*/
public class FileDemo3 {
public static void main(String[] args) {
...
分类:
编程语言 时间:
2014-05-03 20:54:44
阅读次数:
677