1、package to install in ubuntu or Debian$ sudo apt-get install -ybuild-essential kernel-package libncurses5-dev bzip22、Prepare Kernel Source and excut...
分类:
移动开发 时间:
2014-08-27 16:20:00
阅读次数:
207
[root@somesystem jvm]# fpm -s dir -t rpm -n "custom-java" -v "1.0.3" -a noarch --prefix=/usr/lib/jvm jdk1.6.0_31 jdk1.7.0_11
Created rpm {:path=>"custom-java-1.0.3-1.noarch.rpm"}
[root@somesystem j...
分类:
其他好文 时间:
2014-08-27 14:54:09
阅读次数:
5797
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(Res.layout(this, "layout_select")); //软件activity的布局
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, Res.layout(this, "...
分类:
移动开发 时间:
2014-08-27 13:02:17
阅读次数:
235
特性(attribute)是被指定给某一声明的一则附加的声明性信息。在C#中,有一个小的预定义特性集合。在学习如何建立我们自己的定制特性(custom attributes)之前,我们先来看看在我们的代码中如何使用预定义特性。using System;public class AnyClass{ ....
分类:
其他好文 时间:
2014-08-26 19:00:26
阅读次数:
220
因为产品安全的需求,需要将之前老代码的RMI服务端口绑定到127.0.0.1。解决办法是通过Spring导出服务时设置自己的RMISocketFactory。在验证代码时发现自己实现的RMISocketFactory在有大量RMI请求时,会将造成系统的资源泄漏,导致请求时无法创建本地线程。通过jconsole一看,原..
分类:
其他好文 时间:
2014-08-24 10:22:53
阅读次数:
218
【Struts2国际化资源文件定义的3种范围方法】1)全局的国际化资源文件,对所有的Action和View都有效定义方式:在struts.xml中增加全局资源文件定路径定义:<constantname="struts.custom.i18n.resources"value="globalMessage"></constant>对应的资源文件为classpa..
分类:
其他好文 时间:
2014-08-23 02:27:10
阅读次数:
204
Custom fonts can make all the difference in the world when you’re trying to convey a specific user experience. Luckily, it’s pretty easy to add your own fonts in your iOS app but there are some ...
分类:
移动开发 时间:
2014-08-22 16:33:29
阅读次数:
395
1.打开配置文件 2.移除不需要的Block,并添加Log Block 3.添加“Custom Trace Listener” 4.定义Attributes 5.添加定义类库“CustomTraceListenerExtensions” 6.编写代码,如下: using System;
using ...
分类:
Web程序 时间:
2014-08-22 12:24:26
阅读次数:
349
// Only override drawRect: if you perform custom drawing.// An empty implementation adversely affects performance during animation.- (void)drawRect:(C...
分类:
其他好文 时间:
2014-08-21 22:36:55
阅读次数:
316
有时候,日志输出的时候会根据时间来分类,譬如“20140821\trace.log”,在Enterprise Library中通过工具配置,只能定义日志文件名称,可以通过代码修改FlatFileTraceListenerData实现或Custom Trace Listener方式, 通过代码修改Fl...
分类:
Web程序 时间:
2014-08-21 18:48:24
阅读次数:
376