hehaibo
hehaibo · 共 182 篇文章
phonegap 2.9.1 jar打包
确保以下环境安装正确 Java JDK 1.5 or greater Apache ANT 1.8.0 or greater Android SDK http://developer.android.com And then, to generate the cordova-2.9.1.jar file, follow the next steps: Download and extract the phonegap-2.9.1.zip file. In a terminal/cmd window go inside the recently extracted directory: $ c…
2014-10-26 18:48 · phonegap · 评论(0)
phonegap hardwareAccelerated问题
/Users/criteriastudio/Documents/TITANIUM/AppTestAndroid/build/android/AndroidManifest.xml:6: error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android' 解决办法: 修改 project.properties中的target=android-8为新的api target=android-19
2014-10-26 18:47 · phonegap · 评论(0)
openJDk下图片验证码字体问题
Probable fatal error:No fonts found. java.awt.FontFormatException: bad pfa font linux字体安装在 /usr/shared/fonts目录下面 。 执行 fc-cache 让字体生效
2014-10-25 10:27 · java · 评论(0)
图片格式识别
http://stackoverflow.com/questions/2744909/java-detecting-image-format-resize-scale-and-save-as-jpeg
2014-05-30 14:13 · 评论(0)
代码规范
1 接口方法名 不需要public修饰符,默认是public 2 类方法中不要包含与全局变量同名的变量名 3 圈复杂度 if等逻辑判断规则个数不要超过10个, && || & | 等判断算2个 4 对方法的参数不要进行直接修改,而建议采用临时变量名 5 方法参数中不能有未使用的参数 6 方法的命名不能含有_线,static且非final变量不能含有_ 7 在try{}catch(}不能打印e.printStackTrace() 8 不能有system.out.pringln()语句 9 不能有未使用的全局变量 10 (object ==null && object instanceof XX…
2014-04-05 14:07 · 评论(0)
juni单元测试
Caused by: java.lang.NoClassDefFoundError: org/junit/runners/BlockJUnit4ClassRunner at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defin…
2014-04-05 13:39 · 评论(0)
No mapping found for HTTP request with URI [/ifr_status/] in DispatcherServlet
[WARN ] 2014-03-22 10:31:58 :No mapping found for HTTP request with URI [/ifr_status/] in DispatcherServlet with name 'springMVC' 可恶的金山毒霸
2014-03-22 10:48 · 评论(0)
java应用中的-幂等性
[原创链接: http://www.smithfox.com/?e=16 转载请保留此声明, 谢谢] 绝大部分网络上对幂等性的解释类似于: "幂等性是指重复使用同样的参数调用同一方法时总能获得同样的结果。比如对同一资源的GET请求访问结果都是一样的。" 我认为这种解释是非常错误的, 幂等性强调的是外界通过接口对系统内部的影响, 外界怎么看系统和幂等性没有关系. 就上面这种解释, System.getCPULoad(), 这两次调用返回能一样吗? 但因为是只读接口, 对系统内部状态没有影响, 所以这个函数还是幂等性的. 首先了解一下什么是幂等性,如果你没有兴趣可以直接跳过这段代数概念解释 :)…
2014-02-20 14:35 · 评论(0)
java hashmap的加载因子
加载因子是表示Hsah表中元素的填满的程度.若:加载因子越大,填满的元素越多,好处是,空间利用率高了,但:冲突的机会加大了.反之,加载因子越小,填满的元素越少,好处是:冲突的机会减小了,但:空间浪费多了. 冲突的机会越大,则查找的成本越高.反之,查找的成本越小.因而,查找时间就越小. 因此,必须在 "冲突的机会"与"空间利用率"之间寻找一种平衡与折衷. 这种平衡与折衷本质上是数据结构中有名的"时-空"矛盾的平衡与折衷.
2014-02-20 14:09 · 评论(0)
ibatis开发注意事项
ibatis开发注意事项 1 sql ibatis 配置文件加载是否正确 大写是否一致,如 AP_EpibolyTask.xml是否配置成了 Ap_EpibolyTask.xml 2
2013-12-31 18:55 · 评论(0)
maven编译拷贝二进制文件大小不一致
<plugin> <artifactId>maven-war-plugin</artifactId> <configuration> <outputDirectory>${basedir}/../target</outputDirectory> <webResources> <resource> <directory>${basedir}/src/main/webapp</directory> <filtering>true</filtering> <includes> <include>*</include> </includes> </resource> </webResources> …
2013-12-31 17:53 · 评论(0)
ibatis
原因就是 <isNotEmpty prepend="and" property="subCategoryCode"> sub_category_code=#subCategoryCodes# </isNotEmpty> 多了个s
2013-12-19 16:56 · 评论(0)
学习方法
个人觉得学习一个东西的步骤: 1、看介绍 2、看demo 3、看入门 4、自己做demo 5、manual、reference 6、应用 7、看总结 8、看心得 9、思考 10、看源码 11、调试源码 12、修改源码 13、自己做简单实现 14、不断完善
2013-12-15 15:08 · 收藏 · 评论(0)
牛人帖子
http://www.dbafree.net/?p=378 http://www.anysql.net/ http://yumianfeilong.com/ http://dirlt.com/ http://blog.csdn.net/kimmking/article/details/10497953 阿里中间件 http://jm-blog.aliapp.com/?p=1384 -庄周梦蝶 http://blog.fnil.net/ Sea.js 是一个开源项目,目前由阿里、腾讯等公司共同维护。 http://seajs.org/docs/ 酷壳 http://coolshell.cn/ …
2013-12-10 08:48 · 收藏 · 评论(0)