`
DavisWang
  • 浏览: 51306 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
详细对比了三个开源的主流前端MVC架构AngularJS 、 Backbone.js 和 Ember.js的历史、特点、优势和不足 https://www.airpair.com/js/javascript-framework-comparison#8-ember-js
当使用jstack <pid>查看jvm栈信息时,提示:<pid> well-known file is not secure,是由于<pid>进程的所有者与执行jstack命令的用户不一致,即使执行jstack的用户是root,jstack也认为是不安全的。所以需要切换到与<pid>进程的所有者相同的用户下执行jstack命令。如果<pid>进程的所有者是shell用户,可以su到该用户shell下执行,否则可以通过sudo执行:sudo -u $user jstack $pid 
      在通过java程序访问https服务时常常会遇到下面的异常 Caused by: sun.security.validator.Va lidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target      原因分析:      此异常是由于jre不能验证服务端的证书所致,归其原因有下面两种可能:      1) ...
Android Application Development: 10 Tips for More Efficient Apps http://blog.azoft.com/android-application-development-tips/
Android Application Development: 10 Tips for More Efficient Apps http://blog.azoft.com/android-application-development-tips/
    在程序开发中常常会由于不可见字符导致程序编译出错、运行报错或出现异常,而且往往翻来覆去地检查代码和配置文件,未发现有任何问题,这时可能是在某个位置不小心输入了不可见字符或空格导致编译器或程序无法识别而你却不能一眼看到这个捣蛋的家伙所致。出现这种情况时建议把相关的代码或配置文件用支持二进制打开的文本编辑器(如UltraEdit)打开,并仔细检查报错代码行及相关行或配置相关项看是否有不该出现的字符码。
    在调用静态open方法创建java.nio.channels.SocketChannel对象后,必须调用close方法关闭SocketChannel对象以释放创建的文件句柄(fd)资源,否则如果不断地创建SocketChannel对象会使得打开文件的句柄数达到系统设定的上限,从而出现 “Too many open files”的问题。      现象:1)通过netstat -n | wc -l 查看连接数并不多; 2)系统或jvm报Too many open files; 3)通过命令ls -l /proc/<pid>/fd | grep socket |wc -l 查看有 ...
  在BufferedReader的close的方法中已关闭了FileReader的InputStream流 ,一般不需要再去调用FileReader的close方法去关闭InputStream,但在BufferedReader的构造方法中出现异常时会导致不能关闭InputStream,为了减少关闭处理的判断逻辑可借助Closeable接口完成InputStream关闭,具体如下: Reader reader = new FileReader(fileName); Closeable resource = reader; try {   BufferedReader buffered = ...
问题分析:   'org.eclipse.wst.sse.core‘是ADT的所依赖的Eclipse插件,出现缺少'org.eclipse.wst.sse.core 0.0.0'的错误说明你当前使用的Eclipse没有安装此插件 解决办法:    只需要将相应的Eclips的更新地址加入到更新地址列表中(Help->Install New Software..),并注意选中“Contact all update sites during install to find required software”,在重新安装ADT即可。 参见: http://stackoverflow.com/q ...
Android permissions are separated to four groups: - Regular - Dangerous - System or Signed - Signed Permissions in the first two groups can be granted to any application. The last two can be obtained only by applications which are system - preinstalled in the device's firmware or which are signed wi ...
    如果你在做CTS测试时出现此问题: junit.framework.AssertionFailedError: These packages should not be signed with a well known key: [xxx.xxx.xxx.xxx] at android.security.cts.PackageSignatureTest.testPackageSignatures(PackageSignatureTest.java:62) 会令你感到莫名其妙。这个问题一般是由于使用android提供的缺省私钥对apk包进行签名,导致CTS测试失败。     很多开发者不 ...
抽象接口(abstract interface)与接口(interface)没有任何区别,所有接口中的方法缺省为抽象方法,所以在interface前是否有abstract修饰对方法的属性无任何影响。 下面是官方的说明: “All of the methods in an interface (see the Interfaces section) are implicitly abstract, so the abstract modifier is not used with interface methods (it could be—it's just not ...
[img]http://dl.iteye.com/upload/attachment/549297/137b2daa-c869-3e2b-af3a-954aa50eaa3b.jpg[/img]
转自:http://www.iheavy.com/2011/07/28/5-ways-to-boost-mysql-scalability/ There are a lot of scalability challenges we see with clients over and over. The list could easily include 20, 50 or even 100 items, but we shortened it down to the biggest five issues we see. 1. Tune those queries By far the ...
转自:http://www.oschina.net/news/20694/2010-global-best-website   以下为《时代周刊》评出的2011年50个最佳网站的分类及详细列表: Music & Video (音乐及视频类网站) 1:8tracks8tracks是一个自称“手工制作”的互联网音乐广播网站。允 ...
Global site tag (gtag.js) - Google Analytics