上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页
摘要: 该配置文件放在res/drawable目录下,以一个Button为例-定义了按钮的一般状态、获得焦点状态和按下时的状态:button_selector.xml<?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true" > <shape> < 阅读全文
posted @ 2012-10-07 17:04 WenEric 阅读(362) 评论(0) 推荐(0) 编辑
摘要: android:backgroundandroid:clickableandroid:fadingEdgeandroid:fadingEdgeLengthandroid:focusableandroid:longClickableandroid:minHeight/android:minWidthandroid:nextFocusDownandroid:nextFocusLeft/android:nextFocusRight/android:nextFocusUpandroid:saveEnabledandroid:scrollX/android:scrollYandroid:scrollba 阅读全文
posted @ 2012-10-07 15:39 WenEric 阅读(836) 评论(0) 推荐(0) 编辑
摘要: ----------------------------application-----------------------------------1.android:uiOptions=[none|splitActionBarWhenNarrow]:额外界面选项----------------------------activity----------------------------------------1.android:noHistory=[true|false]:是否需要移除这个activity当用户切换到其他屏幕时2.android:configChanges=[mcc,mnc 阅读全文
posted @ 2012-10-05 19:11 WenEric 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 1.安装依赖包#sudo apt-get build-dep vlc#sudo apt-get install libtool build-essential autoconf automake git-corelibxcb-shm0-dev libxcb-xv0-dev libxcb-keysyms1-dev libx11-xcb-dev libcppunit-dev python-dev libboost-all-dev libdbus-1-dev libmad0-dev libavcodec-dev libavformat-dev libswscale-dev liba52-dev li 阅读全文
posted @ 2012-10-03 21:13 WenEric 阅读(917) 评论(0) 推荐(0) 编辑
摘要: try{ String matrixFilePath=LotteryNumberUtils.getMatrixPath("S6",reds.size(),cse); if (logger.isDebugEnabled())logger.debug("----"+matrixFilePath+"----"); File matrixFile=new File(matrixFilePath); if(!matrixFile.exists())return this.message("***"); ... 阅读全文
posted @ 2012-08-31 14:02 WenEric 阅读(516) 评论(0) 推荐(0) 编辑
摘要: web开发中可以通过gzip压缩页面来降低网站的流量,而gzip并不会对cpu造成大量的占用.resin中配置Gzip只需要在resin配置文件中加入一个filter即可,以下测试在resin-4.0.23非专业版上进行1.在resin.xml中<web-app ...>下增加<web-app xmlns="http://caucho.com/ns/resin"> <filter filter-name="gzip" filter-class="com.caucho.filters.GzipFilter" 阅读全文
posted @ 2012-08-28 12:13 WenEric 阅读(836) 评论(0) 推荐(0) 编辑
摘要: 1.下载jprofiler,解压tar -zxvf jprofiler7.tar.gz,执行/opt/jprofiler7/bin/jprofiler2.系统环境变量添加: JPROFILER_HOME=/opt/jprofiler7 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JPROFILER_HOME/bin/linux-x643.resin.xml中配置:<class-loader> ... <tree-loader path="/opt/jprofiler7/lib"/> <tree-loader path=& 阅读全文
posted @ 2012-08-19 21:15 WenEric 阅读(1233) 评论(0) 推荐(0) 编辑
摘要: 1.下载resin,resin普通版本和pro版本主要区别是pro支持缓存和负载均衡。pro因为有强大的cache功能,独立作为web服务器处理静态页面性能都可以和apache有一比。但普通版本独立作为web服务器性能就要差一些。当然可以使用apache+resin的方案借助apache的缓存功能提 阅读全文
posted @ 2012-08-17 17:25 WenEric 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 由于一些低端手机不支持cookie,造成登录不上,在网上也查过都用url重写(a.普通方式实现 b.jstl-<c:url/> c.webwork-<ww:url/>)来实现,要是若大的项目都这么来工作量会很大,最终找到了一个解决方法采用resin url rewrite来传递jsessionid,以下配置为resin4.0.231.resin.conf默认配置中,jsessionid以cookie的方式在页面传递,即:<session-config> <enable-url-rewriting>false</enable-url-rewr 阅读全文
posted @ 2012-08-15 11:20 WenEric 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 1.下载nginx源码解压编译安装,下载依赖库zlib,pcre(支持正则表达式配置),openssl2.tar -xzvf pcre-8.31.tar.gz#不需要执行编译和安装仅作为编译Nginx时的引用3.tar -xzvf zlib-1.2.7.tar.gz #不需要执行编译和安装仅作为编译Nginx时的引用4.tar -xzvf nginx-1.2.1.tar.gz mkdir -p /opt/nginx mkdir -p /opt/nginx/conf mkdir -p /opt/nginx/tmp mkdir -p /opt/nginx/run mkdir -p /op... 阅读全文
posted @ 2012-08-14 21:20 WenEric 阅读(376) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页