<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[lfx_cool的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/lfx_cool</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; lfx_cool]]></copyright><item><title><![CDATA[从inputstream里读取string的简单方法]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83735801</link><guid>https://blog.csdn.net/lfx_cool/article/details/83735801</guid><author>lfx_cool</author><pubDate>Fri, 22 Oct 2010 15:46:06 +0800</pubDate><description><![CDATA[java的io流真的有点繁琐,对于向我这种不常搞java的人来说,几下这些function的用法有点难度,
在这里拷几行代码备用.

从inputstream里读取string的简单方法:
BufferedReader r = new BufferedReader(new InputStreamReader(inputStream));
StringBuilder total = new...]]></description><category></category></item><item><title><![CDATA[Android, get readable xml from apk]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83724175</link><guid>https://blog.csdn.net/lfx_cool/article/details/83724175</guid><author>lfx_cool</author><pubDate>Sun, 26 Sep 2010 18:32:55 +0800</pubDate><description><![CDATA[[url]http://code.google.com/p/android-apktool/[/url]

能解压rar或zip格式的程序都能原来解压apk文件, 但是解压后的java代码和xml文件都是加码的, 没法看懂的, 解压dex文件有点复杂, 但解码xml相对容易,
打开cmd或terminal, 输入 &quot;apktool d appname.apk&quot;, 即可得到解压成功, 当然前提...]]></description><category></category></item><item><title><![CDATA[proc and lambda]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83486606</link><guid>https://blog.csdn.net/lfx_cool/article/details/83486606</guid><author>lfx_cool</author><pubDate>Fri, 06 Nov 2009 11:18:32 +0800</pubDate><description><![CDATA[A return from inside a block that’s still in scope acts as a return from that scope. A return 
from a block whose original context is not longer valid raises an exception (LocalJumpError 
or ThreadE...]]></description><category></category></item><item><title><![CDATA[嵌套方法定义与调用]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83486587</link><guid>https://blog.csdn.net/lfx_cool/article/details/83486587</guid><author>lfx_cool</author><pubDate>Fri, 06 Nov 2009 10:50:27 +0800</pubDate><description><![CDATA[[code=&quot;java&quot;]def toggle 
  def toggle 
    &quot;subsequent times&quot; 
  end 
  &quot;first time&quot; 
end[/code] 
[code=&quot;java&quot;]#irb
&gt;&gt;toggle # =&gt; &quot;first time&quot; 
&gt;&gt;toggle # =&gt; &quot;subsequent times]]></description><category></category></item><item><title><![CDATA[ruby method and block]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83486397</link><guid>https://blog.csdn.net/lfx_cool/article/details/83486397</guid><author>lfx_cool</author><pubDate>Thu, 05 Nov 2009 20:36:34 +0800</pubDate><description><![CDATA[  Method parameters are considered to be variables local to that method. 
  Block parameters are assigned values when the block is invoked. 
]]></description><category></category></item><item><title><![CDATA[git ]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83483328</link><guid>https://blog.csdn.net/lfx_cool/article/details/83483328</guid><author>lfx_cool</author><pubDate>Wed, 28 Oct 2009 14:32:11 +0800</pubDate><description><![CDATA[git status #查看状态
git diff #查看修改的内容

git add|rm [path] #将修改添加到一个commit
git add . #快速添加全部修改,不必单个文件逐一添加

git commit #提交到本地库
 
git reset [HEAD] 
git reset HEAD^
git revert HEAD

git pull #将远程库...]]></description><category></category></item><item><title><![CDATA[Rails: RSpec, Cucumber, Authlogic, and factory_girl]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83469718</link><guid>https://blog.csdn.net/lfx_cool/article/details/83469718</guid><author>lfx_cool</author><pubDate>Wed, 14 Oct 2009 18:36:04 +0800</pubDate><description><![CDATA[(原文连接：http://jjinux.blogspot.com/2009/07/rails-rspec-cucumber-authlogic-and.html)
Friday, July 17, 2009
Rails: RSpec, Cucumber, Authlogic, and factory_girl

After a day of work and a week of readi...]]></description><category></category></item><item><title><![CDATA[*, & 参数前缀]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83439881</link><guid>https://blog.csdn.net/lfx_cool/article/details/83439881</guid><author>lfx_cool</author><pubDate>Tue, 11 Aug 2009 14:07:04 +0800</pubDate><description><![CDATA[we speciﬁed the arguments as *args, meaning “collect the actual parameters passed to the method into an array named args.”

比如：
def some_method(arg1, arg2, *args)
  ...
end
调用some_method(1,2,3,4...]]></description><category></category></item><item><title><![CDATA[migration foreign key]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83438686</link><guid>https://blog.csdn.net/lfx_cool/article/details/83438686</guid><author>lfx_cool</author><pubDate>Fri, 07 Aug 2009 18:19:58 +0800</pubDate><description><![CDATA[# db/migrate/6_add_foreign_key.rb
[code=&quot;ruby&quot;]
class AddForeignKey &lt; ActiveRecord::Migration
  def self.up
    execute &quot;ALTER TABLE bees ADD CONSTRAINT beehive_id_fkey FOREIGN KEY
(beehive_id) R...]]></description><category></category></item><item><title><![CDATA[include and require]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83437796</link><guid>https://blog.csdn.net/lfx_cool/article/details/83437796</guid><author>lfx_cool</author><pubDate>Wed, 05 Aug 2009 19:00:33 +0800</pubDate><description><![CDATA[The &quot;include&quot; statement is for including a module into a class:
   1. module Bar
   2. end
   3.  
   4. class Foo
   5.   include Bar
   6. end 

The &quot;require&quot; statement loads a ruby file.
...]]></description><category></category></item><item><title><![CDATA[class<<self]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83437789</link><guid>https://blog.csdn.net/lfx_cool/article/details/83437789</guid><author>lfx_cool</author><pubDate>Wed, 05 Aug 2009 18:25:52 +0800</pubDate><description><![CDATA[问：
Hi
   I have code like

   class A
     class ]]></description><category></category></item><item><title><![CDATA[include and extend]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83437785</link><guid>https://blog.csdn.net/lfx_cool/article/details/83437785</guid><author>lfx_cool</author><pubDate>Wed, 05 Aug 2009 18:04:02 +0800</pubDate><description><![CDATA[Correct Understand:
&quot;extend&quot; adds methods from a module into a class as class methods.
&quot;include&quot; adds methods from a module into a class as instance methods.


It is quite easy to demonstrate thi...]]></description><category></category></item><item><title><![CDATA[textmate快捷键]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83435734</link><guid>https://blog.csdn.net/lfx_cool/article/details/83435734</guid><author>lfx_cool</author><pubDate>Thu, 30 Jul 2009 16:40:06 +0800</pubDate><description><![CDATA[⌘T: Go To File，这个每天要用到N次
Esc: 自动补全
⌃W: 选中当前word
还有默认的类似Emacs的光标移动，不过这些是Mac自己的快捷键

For Rails:
⌘R: Run
⌃|: ...
⌥⌘⇧↓ : Go to...
⌃⇧H：生成partial template

ctrl + ⌘ +上下键：移动整行
ctrl + shift + K： 删除...]]></description><category></category></item><item><title><![CDATA[常用特殊符号HTML代码(转) ]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83430866</link><guid>https://blog.csdn.net/lfx_cool/article/details/83430866</guid><author>lfx_cool</author><pubDate>Fri, 17 Jul 2009 10:14:08 +0800</pubDate><description><![CDATA[[url]http://www.cnblogs.com/barrysgy/archive/2009/02/20/1394729.html[/url]
 
´ &amp;acute; © &amp;copy; &gt; &amp;gt; µ &amp;micro; ® &amp;reg; 
&amp; &amp;amp; ° &amp;deg; ¡ &amp;iexcl;   &amp;nbsp; » &amp;raquo; 
¦ &amp;brvbar; ÷ &amp;divide; ¿ &amp;]]></description><category></category></item><item><title><![CDATA[HTML: button和input button的区别]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83430665</link><guid>https://blog.csdn.net/lfx_cool/article/details/83430665</guid><author>lfx_cool</author><pubDate>Thu, 16 Jul 2009 17:46:55 +0800</pubDate><description><![CDATA[HTML: button和input button的区别 
一句话概括主题：具有相同的作用但是在可操控性方面更加强大。

HTML 4.01规范的Forms部分指 名表单有以下几种控制类型：buttons, checkboxes, radio buttons, menus, text input, file select, hidden controls, object controls. ...]]></description><category></category></item><item><title><![CDATA[Subversion与CVS]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83424744</link><guid>https://blog.csdn.net/lfx_cool/article/details/83424744</guid><author>lfx_cool</author><pubDate>Sun, 28 Jun 2009 10:17:45 +0800</pubDate><description><![CDATA[（原文网址：http://fayfaykong.blog.163.com/blog/static/171453442007114112527881/）
CVS 
CVS是一个C/S系统，多个开发人员通过一个中心版本控制系统来记录文件版本，从而达到保证文件同步的目的。工作模式如下： 

CVS服务器（文件版本库） 

CVS（Concurrent Version System）版本控制系...]]></description><category></category></item><item><title><![CDATA[未来五年程序员应当具备的十项技能]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83405301</link><guid>https://blog.csdn.net/lfx_cool/article/details/83405301</guid><author>lfx_cool</author><pubDate>Wed, 10 Jun 2009 12:59:19 +0800</pubDate><description><![CDATA[2009-04-15 16:18作者：出处：天极网  责任编辑：郑重　
　
    作为一名程序员，如果你想在这个领域内继续向前进步或者在当前的经济形势下保持不被炒鱿鱼，那么你就决不应当自满自足，你需要继续学习。近日，著名IT评论员Justin James在他的博客中列出了未来五年程序员应当具备的十项技能，如果照此实践，你未来的工作前景一定一片光明。

　　当前的经济形势下，很多程序员将目...]]></description><category></category></item><item><title><![CDATA[LinkedList和ArrayList的区别]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83405219</link><guid>https://blog.csdn.net/lfx_cool/article/details/83405219</guid><author>lfx_cool</author><pubDate>Wed, 10 Jun 2009 09:21:24 +0800</pubDate><description><![CDATA[首先看一下LinkedList和ArrayList的继承关系。

public class ArrayList extends AbstractList implements List, RandomAccess, Cloneable, Serializable    

public class LinkedList extends AbstractSequentialList impl...]]></description><category></category></item><item><title><![CDATA[运行时异常]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83404903</link><guid>https://blog.csdn.net/lfx_cool/article/details/83404903</guid><author>lfx_cool</author><pubDate>Tue, 09 Jun 2009 11:19:38 +0800</pubDate><description><![CDATA[运行时异常与其他异常的不同之处在于，抛出运行时异常的方法不需要用throws声明，
以下代码将打印
Inside throwOne.
finally executing.
(然后抛出运行时异常):
Exception in thread &quot;main&quot; java.lang.RuntimeException...

[code=&quot;java&quot;]
public class ThrowDem...]]></description><category></category></item><item><title><![CDATA[instanceof的用法]]></title><link>https://blog.csdn.net/lfx_cool/article/details/83404408</link><guid>https://blog.csdn.net/lfx_cool/article/details/83404408</guid><author>lfx_cool</author><pubDate>Mon, 08 Jun 2009 09:59:53 +0800</pubDate><description><![CDATA[java中的instanceof用来判断一个类是否是另一个类的对象，即is-a关系
但是不能跨类层次，即不能比较两个不相干的类。
[code=&quot;java&quot;]
class Cat{}
class Fish {
  public static void main(String[] args){
   Fish t= new Fish();
   System.out.println(t ...]]></description><category></category></item></channel></rss>