摘要: 1.如何理解Exception,Error和Throwable Throwable是Exception和Error的父类. Error表示错误,一般是系统级的错误! Exception一般是程序运行期间的错误! 通常在使用 try{}catch(Exception e){} 这种结构的时候,只能找到一半的错误,也就是说只能捕获Exception范围内的异常 并处理使得程序能够正常运行.而Error范围内的错误就无法捕获并处理. 通过 try{}catch(Throwable a){} 的方式能够处理,但是一般情况下不这样做。 原因在于查看Error下面的子类,VirtualMachineErr 阅读全文
posted @ 2013-10-31 14:29 麦飞 阅读(3682) 评论(0) 推荐(1) 编辑
摘要: http://www.cnblogs.com/sunzn/archive/2013/05/10/3064129.html 阅读全文
posted @ 2013-10-14 18:12 麦飞 阅读(157) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/jueblog/article/details/12112747 阅读全文
posted @ 2013-10-11 16:52 麦飞 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 有效:http://blog.csdn.net/sara_loveyou/article/details/9057483 阅读全文
posted @ 2013-10-09 19:57 麦飞 阅读(124) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/noTice520/archive/2011/02/01/1948738.html 阅读全文
posted @ 2013-10-09 14:42 麦飞 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Activity一共有以下四种launchMode:1.standard2.singleTop3.singleTask4.singleInstance我们可以在AndroidManifest.xml配置的android:launchMode属性为以上四种之一即可。比较详细的解释:http://blog.csdn.net/liuhe688/article/details/6754323 阅读全文
posted @ 2013-10-09 14:36 麦飞 阅读(167) 评论(0) 推荐(0) 编辑
摘要: http://blog.linezing.com/2011/04/rebar%EF%BC%9Aerlang%E6%9E%84%E5%BB%BA%E5%B7%A5%E5%85%B7 阅读全文
posted @ 2013-02-05 15:43 麦飞 阅读(254) 评论(0) 推荐(0) 编辑
摘要: http://net.tutsplus.com/tutorials/html-css-techniques/9-most-common-ie-bugs-and-how-to-fix-them/ 阅读全文
posted @ 2012-07-11 16:00 麦飞 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 在某些特定的场合,在没有知道宽度的情况下却要求水平居中,今找到些解决方法,现转过来一起学习学习方案一、利用浮动的包裹性和相对定位百分比数据值特性,传说称之为“相对浮动”.unknow_width_center1{position:relative;left:50%;float:left;}.unknow_width_center1 li{position:relative;right:50%;z-index:2;float:left}<ulclass="unknow_width_center1"><li><a href="#" 阅读全文
posted @ 2012-06-28 11:41 麦飞 阅读(3313) 评论(0) 推荐(1) 编辑
摘要: 概述IE浏览器以不支持大量的css属性出名,同时也因其支持的css属性中存在大量bug。本页列举了IE下的一些问题,实例样本和一些我们已知的解决方法。尽管我已经尽力按照它们本来的性质对它们进行分类,仍有许多bug可以分在好几个部分之下,这种情况下,我将会将此bug分在普通bug这一部分。统计目前为止。本站点包含46个”普通bug”教程,5个”haslayout bug”教程,6个”不支持的方法”教程,一个“冲突bug”教程。总共58个教程,70个解决方法。最近的教程发布于2009年8月19日 15:38:47 星期三站点包含44个IE6 bug,28个IE7 bug以及19个IE8 bug。注 阅读全文
posted @ 2012-06-26 14:29 麦飞 阅读(6446) 评论(0) 推荐(1) 编辑
摘要: http://blog.imbolo.com/creating-rounded-corners-with-css/ 阅读全文
posted @ 2012-06-14 10:54 麦飞 阅读(166) 评论(0) 推荐(0) 编辑
摘要: -O的指令已经取消使用这个办法试试看第一步 首先安装7zip和convmv(如果之前没有安装的话)sudo apt-get install p7zip-full convmv第二步 假设zip文件名为abc.zip,那么LANG=C 7z x abc.zipconvmv -f cp936 -t utf8 -r --notest * 阅读全文
posted @ 2012-06-08 11:09 麦飞 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 简单点说: 阻塞就是干不完不准回来,非阻塞就是你先干,我现看看有其他事没有,完了告诉我一声 我们拿最常用的send和recv两个函数来说吧... 比如你调用send函数发送一定的Byte,在系统内部send做的工作其实只是把数据传输(Copy)到TCP/IP协议栈的输出缓冲区,它执行成功并不代表数据已经成功的发送出去了,如果TCP/IP协议栈没有足够的可用缓冲区来保存你Copy过来的数据的话...这时候就体现出阻塞和非阻塞的不同之处了:对于阻塞模式的socket send函数将不返回直到系统缓冲区有足够的空间把你要发送的数据Copy过去以后才返回,而对于非阻塞的socket来说send会立即返 阅读全文
posted @ 2012-05-22 16:03 麦飞 阅读(84561) 评论(11) 推荐(18) 编辑
摘要: http://www.swordair.com/blog/2010/08/415/ 阅读全文
posted @ 2012-05-15 16:15 麦飞 阅读(152) 评论(0) 推荐(0) 编辑
摘要: http://heikezhi.com/2011/04/19/how-to-rails-3-1-coffeescript-howto/http://jashkenas.github.com/coffee-script/ 阅读全文
posted @ 2011-12-06 17:21 麦飞 阅读(364) 评论(0) 推荐(0) 编辑
摘要: http://seamon.iteye.com/blog/1058510 阅读全文
posted @ 2011-12-05 14:49 麦飞 阅读(298) 评论(0) 推荐(0) 编辑
摘要: http://zhuidaniu.com/blogs/734 阅读全文
posted @ 2011-12-02 10:51 麦飞 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 安装RVM命令:bash<<(curlhttp://rvm.beginrescueend.com/releases/rvm-install-head)然后修改用户配置文件/Users/username/.profile,你也可以写到别的全局配置里.添加一行代码:[[-s"$HOME/.rvm/scripts/rvm"]]&&."$HOME/.rvm/scripts/rvm"#ThisloadsRVMintoashellsession.如果"$HOME/.rvm/scripts/rvm" 存在,则执行重启Te 阅读全文
posted @ 2011-12-01 16:02 麦飞 阅读(18056) 评论(0) 推荐(0) 编辑
摘要: 安裝五笔五笔98 (有些字打不出来)1、下载 wget http://ibus.googlecode.com/files/ibus-table-wubi-1.1.0.20090219.tar.gz2、tar -zxvf ibus-table-wubi-1.1.0.20090219.tar.gz3、cd ibus-table-wubi-1.1.0.200902194、./configure --prefix=/usr --enable-wubi98 --disable-wubi865、sudo make install 阅读全文
posted @ 2011-12-01 14:58 麦飞 阅读(349) 评论(0) 推荐(0) 编辑
摘要: https://github.com/blog/517-unicornhttp://www.iteye.com/topic/1026876 阅读全文
posted @ 2011-11-25 19:06 麦飞 阅读(333) 评论(0) 推荐(0) 编辑