以下内容基于阅读205和217的PDF所做的笔记,没有深入研究。
205 Creating Extensions for iOS and OS X, Part 1
217 Creating Extensions for iOS and OS X, Part 2
Extension有多种,比如Share、Today、照片、输入法等等。
Extension本身不是app,它只是...
分类:
其他好文 时间:
2014-06-22 22:30:15
阅读次数:
272
一.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
在JSP页面中,经常使用javascript,但是要出javascript获取存储在request,session, application中的值,如下是获取request中的值:
假设后台中有:
request.setAttribute("value", "123");
在前台的javascript中有如下获取方式:
1 : var val = "${value}";
...
分类:
编程语言 时间:
2014-06-22 18:14:51
阅读次数:
143
在登录过滤器中,判断请求是ajax请求还是超链接或者地址栏变化的请求
if (httpServletReq.getHeader("x-requested-with") != null
&& httpServletReq.getHeader("x-requested-with").equalsIgnoreCase("XMLHttpRequ...
分类:
编程语言 时间:
2014-06-22 17:56:04
阅读次数:
516
session一般出现在计算机领域,IM软件中的session,老的IM有两层:首先是逻辑层的session来管理会话的参与者,消息列表,会话类型等等;还有协议层的session,主要是代表客户端跟服务器的一个事物通道。
老的IM软件
客户端跟Server交互的每一类操作都是基于会话。比如客户端登录,需要建立一个登录的会话;客户端发消息,需要建立一个会话。下面举例:
客户端向Serv...
分类:
其他好文 时间:
2014-06-22 15:53:27
阅读次数:
191
Spring 绑定 Hibernate.
一.
1. Spring 如何处理propagation=Propagation.SUPPORTS?
2. Spring 何时生成HibernateSession ?
3. propagation=Propagation.SUPPORTS和propagation=Propagation.require对生成Session有何影响 ?
4...
分类:
数据库 时间:
2014-06-22 15:47:24
阅读次数:
274
singleton
prototype
request
session
global session
后三种只适用于容器为webaware applicationContext 例如XmlWebApplicationContext
当 后三种范围bean 被依赖时候,需要添加 cglib代理
xmlns:xsi="http://www.w...
分类:
编程语言 时间:
2014-06-22 00:24:01
阅读次数:
278
As virtualization shifts the network edge from top of rack switches to software virtual switches running on the hypervisors; visibility in the virtual...
分类:
Web程序 时间:
2014-06-21 15:21:57
阅读次数:
414
Running KVM and Openvswitch on Ubuntu 12.10 I’ve got an aging VMWare ESXi 4.0 server that needs to be replaced with something a little more modern and...
分类:
其他好文 时间:
2014-06-21 14:53:30
阅读次数:
338
(image from Anatomy of an open source cloud) A cloud data center consists of large numbers of physical servers, each running a hypervisor with one or ...
分类:
其他好文 时间:
2014-06-21 14:48:04
阅读次数:
225