自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 资源 (2)
  • 问答 (1)
  • 收藏
  • 关注

原创 ubuntu识别真机

sudo vim /etc/udev/rules.d/50-android.rules  # add SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" sudo chmod a+rx /etc/udev/rules.d/50-android.rules  #go to tools of android sdk  s...

2011-10-15 10:20:54 167

原创 no such file to load -zlib

sudo apt-get install zlib1g-dev ruby extconf.rb make && sudo make install。  public void static main(String[] args){ System.out.println("xxxxxxxx"); }  

2010-10-30 21:43:52 151

visibility vs display

当visibility被设置为"hidden"的时候,元素虽然被隐藏了,但它仍然占据它原来所在的位置,而且width和height属性不为空       display设为"none"后width和height属性为空。         可以通过 设置 visibility为"hidden", 并且设置position为absolute, 让他不占据原来的位置并且...

2010-04-19 11:43:08 297

mouseover/mouseout vs mouseenter/mouseleave

mouseenter/mouseleave prevent the event bubbling

2010-04-18 17:06:57 155

vim学习

1. Marks     m{a-z}   在光标处设置标记, 然后通过`{a-z}回到标记处, 或'{a-z}回到标记的行首.     例如用mm来标记,然后用‘m跳回标记处。    :help :mark 可以了解更多高级用法。     2.  Grep      下载Grep.vim(http://www.vim.org/scripts/scri...

2010-03-30 17:33:49 137

instance_exec vs instance_eval

instance_exec allows you pass arguments to the block which is to be evaluated in the new self: o = Struct.new(:val).new("Hello") o.instance_exec("World!"){|arg| val + " " + arg} # => Hell...

2010-03-28 23:00:08 181

原创 Moving lines up or down in a file

Moving lines up or down in a file From Vim Tips Wiki Tip 646 Previous Next created 2004 · complexity basic · author Frank Butler · version 6.0 The following mappings in your vimrc provide a ...

2009-10-11 21:37:44 133

使用spring模拟rails的fixture来构建测试数据

   首先定义模型, User和Article为一对多的双向关联。   @Entity public class User { @Id @GeneratedValue private int id; private String name; @OneToMany(mappedBy = "user", cascade = CascadeType.ALL)   @Entity public ...

2009-03-10 11:29:01 205

Altered ecside(updated at 2009-2-1)

  功能和外观和fins的ecside差不多,  最大的不同是: 分页、查询等操作是 在页面中(tag)进行的,而不是在controller中进行,有些callback的味道.   这样做最大的优点在于web层代码非常简单,  在spring mvc中: //创建FilterList(一个用于收集查询条件的类)的帮助方法,并将DataProvider(用于在列表标签中查询数据)存储在M...

2008-10-12 16:48:45 124

原创 rails.vim ubuntu crash solution

download the latest vim (vim-7.1.293) source code (see http://www.vim.org/download.php), and compiled it: cd vim7 ./configure --with-features=huge make make install if "You need to ins...

2008-06-18 14:01:15 125

hibernate persist() vs save()

persist() is well defined. It makes a transient instance persistent. However, it doesn't guarantee that the identifier value will be assigned to the persistent instance immediately, the assignment mig...

2008-05-20 10:03:07 178

又一个DynamicDao

模型如下: @Entity public class Topic { @Id @GeneratedValue private int id; private String title; private Date createdAt; ....... }      用法如下: public interface TopicDao { @Find Topic fi...

2008-05-14 14:57:59 237

:dependent => :delete_all vs :destroy_all

:delete_all is much faster than :destroy_all, it doesn't trigger any destroy callbacks on the associated object. :destroy_all iteratively call the associated objects's destroy method

2008-04-12 16:28:29 163

Reloading the Association

Notice that the second time I invoke the association via user, the object_id remains the same. The related object has been cached. However, passing true to the accessor reloads the relationship and I ...

2008-04-12 15:50:25 118

The difference between << and create

1.

2008-04-12 15:33:36 136

TheAlgorithmDesignManual_2nd.pdf

The algorithm design manual, second edition

2011-01-07

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除