- 博客(15)
- 资源 (2)
- 问答 (1)
- 收藏
- 关注
原创 ubuntu识别真机
sudo vim /etc/udev/rules.d/50-android.rules # addSUBSYSTEM=="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 123
原创 no such file to load -zlib
sudo apt-get install zlib1g-devruby extconf.rb make && sudo make install。 public void static main(String[] args){ System.out.println("xxxxxxxx");}
2010-10-30 21:43:52 97
visibility vs display
当visibility被设置为"hidden"的时候,元素虽然被隐藏了,但它仍然占据它原来所在的位置,而且width和height属性不为空 display设为"none"后width和height属性为空。 可以通过设置visibility为"hidden", 并且设置position为absolute,让他不占据原来的位置并且...
2010-04-19 11:43:08 257
mouseover/mouseout vs mouseenter/mouseleave
mouseenter/mouseleave prevent the event bubbling
2010-04-18 17:06:57 118
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 95
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 121
原创 Moving lines up or down in a file
Moving lines up or down in a fileFrom Vim Tips WikiTip 646 Previous Next created 2004 · complexity basic · author Frank Butler · version 6.0The following mappings in your vimrc provide a ...
2009-10-11 21:37:44 81
使用spring模拟rails的fixture来构建测试数据
首先定义模型, User和Article为一对多的双向关联。 @Entitypublic class User { @Id @GeneratedValue private int id; private String name; @OneToMany(mappedBy = "user", cascade = CascadeType.ALL) @Entitypublic ...
2009-03-10 11:29:01 159
Altered ecside(updated at 2009-2-1)
功能和外观和fins的ecside差不多, 最大的不同是: 分页、查询等操作是在页面中(tag)进行的,而不是在controller中进行,有些callback的味道. 这样做最大的优点在于web层代码非常简单, 在spring mvc中://创建FilterList(一个用于收集查询条件的类)的帮助方法,并将DataProvider(用于在列表标签中查询数据)存储在M...
2008-10-12 16:48:45 92
原创 rails.vim ubuntu crash solution
download the latest vim (vim-7.1.293) source code (seehttp://www.vim.org/download.php), and compiled it: cd vim7 ./configure --with-features=huge make make installif "You need to ins...
2008-06-18 14:01:15 95
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 120
又一个DynamicDao
模型如下:@Entitypublic 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 185
: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 121
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 84
请问vim怎样在命令模式下插入空格?
2008-06-27
TA创建的收藏夹 TA关注的收藏夹
TA关注的人