MemCached高级缓存配置Memcache相关介绍: memcache 是一个高性能的分布式的内存对象缓存系统,它能够存储各种各样的的数据,包括图片,视频,文件等等。缓存功能。 DB、数据源---->memcached--->user 使用memcache的网站一般流量都...
分类:
其他好文 时间:
2014-06-23 07:13:52
阅读次数:
272
参考:http://www.kerneltravel.net/?p=334衔铁两段代码:/*chardev.c*/#include #include /*for file-f_op*/#include #include /*for copy_to_user()*/#include /*for cde...
分类:
其他好文 时间:
2014-06-23 07:03:05
阅读次数:
350
很多网站都通过User-Agent来判断浏览器类型,如果是3G手机,显示手机页面内容,如果是普通浏览器,显示普通网页内容。 谷歌Chrome浏览器,可以很方便地用来当3G手机模拟器。在Windows的【开始】-->【运行】中输入以下命令,启动谷歌浏览器,即可模拟相应手机的浏览器去访问3G手机网页:....
分类:
移动开发 时间:
2014-06-22 23:51:49
阅读次数:
266
话不多说,直接贴代码:
public class TestAction {
private String nextPage;//保存下一步内容的属性
public String destroy(){
if(user.dontConfirm()){//决定下一步
nextPage = LIST_PAGE;
}else{
nextPage = CONFIRM_PAGE;
...
分类:
其他好文 时间:
2014-06-22 22:29:18
阅读次数:
198
一、jsp连接Oracle8/8i/9i数据库(用thin模式)
testoracle.jsp如下:
String url="jdbc:oracle:thin:@localhost:1521:orcl";
//orcl为你的数据库的SID
String user="scott";
String password="tiger";
...
分类:
数据库 时间:
2014-06-22 20:53:39
阅读次数:
220
创建主键(举例)
SQL> alter table emp_ogg add constraint PK_empno primary key(empno);
--创建主键
查询某表有哪些约束
SQL> desc user_constraints;
Name Null? ...
分类:
其他好文 时间:
2014-06-22 19:51:36
阅读次数:
227
一.TARGET_BUILD_VARIANT=user
当选择的编译类型为user的时候,可以在/build/core/main.mk中看到(android 4.2):
# Turn on Dalvik preoptimization for user builds, but only if not
# explicitly disabled and the build is running on Linux (since host
# Dalvik isn't built for non-L...
分类:
移动开发 时间:
2014-06-22 18:17:14
阅读次数:
443
$ sudo mount.cifs //windows-ip/shared /media/ -o user=username password=password
该命令挂载Windows下的shared共享目录到本地/media目录下.
Windows的用户名是username, 密码是password (作相应的修改)
这里的CIFS(Common Internet File Syste...
1、基础
运行 Windows 的计算机中的处理器有两个不同模式:“用户模式”和“内核模式”。根据处理器上运行的代码的类型,处理器在两个模式之间切换。应用程序在用户模式下运行,核心操作系统组件在内核模式下运行。多个驱动程序在内核模式下运行,但某些驱动程序在用户模式下运行。
当启动用户模式的应用程序时,Windows 会为该应用程序创建“进程”。进程为应用程序提供专用的“虚拟地址空间...
1. Introduction HTB is meant as a more understandable, intuitive and faster replacement for the CBQ qdisc in Linux. Both CBQ and HTB help you to contr...
分类:
系统相关 时间:
2014-06-21 15:40:55
阅读次数:
416