`
gazeldx
  • 浏览: 102063 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论
文章列表
  我也开源啦!freemarker+struts2+Spring+Hibernate的项目,还用到了extjs,JQuery,Ajax用JSON。大家来围观,源代码在: https://github.com/gazeldx/javaee-ssh-freemarker   我是在jeecms的架构基础上进行了一系列的封装,使得代码量少了很多。 jquery架构与freemarker整合,所有的验证都不需要特别写js,只要写vld="required:true,dateISO:true。。。。"这样就可以了。 实现一个增删改查全功能,代码如下: 先看view部 ...
http://www.ibm.com/developerworks/cn/linux/l-cn-hardandsymb-links/ $ ln file1 file2(硬连接) $ ln -s file1 file2(软连接) 文件系统,每个文件都有一个用户数据和元数据,元数据里有文件id,创建者等信息,用户数据是实际存储的内容。文件和文件夹在Linux中地位相同,后者只是存储了一对文件名的文件。硬连接本质上是一个文件id(inode)对应了多个别名(文件名),而软连接是生成一个新的inode,其用户数据存储的是目标文件的文件名!
http://www.ibm.com/developerworks/cn/linux/l-cn-hardandsymb-links/
Choose Ubuntu12.04 32bit, no 64bit for saving memory. After installed RVM, you can read: http://ruby.taobao.org $ aptitude install postgresql-9.1 Follow https://github.com/gazeldx/mystory/wiki/Postresql create user root $ sudo -u postgres createuser root $ rake db:setup $ crontab -e

监测内存占用

$ ps aux $ cat /proc/memento 第二行是最有用的,free是实际可用,前一个是已经被用掉的。 $ pmap -x <process pid> 看某个进程的情况。 内存减少了也不要惊慌,Linux会自己释放,详见http://blog.csdn.net/hbcui1984/article/details/5101265 其他参考: http://stackoverflow.com/questions/131303/how-to-measure-actual-memory-usage-of-an-application-or-process
https://github.com/javan/whenever http://stackoverflow.com/questions/14612818/whenever-gem-i-set-output-but-the-logfile-doesnt-show-up-where-id-expect-it http://stackoverflow.com/questions/15395479/using-cron-on-mac-osx-mountain-lion 05 15 * * * bash -l -c 'cd /Users/lane/projects/duokong &&am ...
Maccbook OSX10.8.2 注意1 :HomeBrew 安装 Postgresql注意:Postgresql版本就用9.2的,因为Mac自带的用的是9.2的,否则会冲突。 $ brew search postgresql 注意2: $ rails new duok -d postgresql $ cat confing/database.yml $ gem install pg -- --with-pg-config=/usr/local/bin/pg_config 上面这一句很重要,否则会报错: PG::ConnectionBad could not connect to ...

prevent double-click

 
First we talk about the button. Button or Submit Solution 1: disable_with => "Begin Service" Rails can use :disable_with => "Begin Service". Example: = button_tag "Begin Service", root_path, :disable_with => "Begin Service" This will not work when ...
@Column(unique = true) private String name; 是无用的,因为http://stackoverflow.com/questions/3496028/columnunique-true-does-not-seem-to-work Any对象只能是单向的,One-to-Many不行。 @Entity(name = "brand") 这样的写法是错误的,会报错:org.hibernate.hql.ast.QuerySyntaxException: Brand is not mapped [from Brand] 正确的写法是: @Entit ...
maven常用命令: mvn clean compile mvn install会自动安装好数据库的表,前提是数据库已存在 maven与Eclipse集成度高,output信息可以输出到Eclipse Console,方法:run as->Configuration->Browse WorkSpace->Goal 写:clean compile install package ;Offline不选,项目如是从SVN来的,则会从SVN URL自动下载Dependency jar。下到本地后,则可以Offline选中。
Ø 劳动手册(或退工单),上家单位开具的离职证明或者其他可以证明终止前劳动关系的文件。(应届毕业生凭报到证) Ø 身份证、自大学开始的学历、学位证明原件,各种技术资格或职业资格证书、职称证书原件。(面试时已验正的则不需再携带) Ø 一寸免冠彩照4张 Ø 入职时勿需向任何人出示您的录用信,涉及个人信息,请注意保密

test weibo iteye

test weibo iteye1

备案相关事项

取消备案需要找原来的主机服务商。
mystr = "我爱fd--xbsk伙 d--d 与天2载--r user--fd" if /--([bxsrgylh]{1,3})(.*)--/ =~ mystr puts $1 puts $2 g = "<span style='" $1.split('').each do |vv| puts vv end puts $2 puts g # g += "'>" + $2 + "</span>" # mystr = mystr. ...

Rickson Gracie vedio

Rickson Gracie 胜 船木诚胜 http://v.ku6.com/show/KD46oXMzNW1IJwzb.html 2
Global site tag (gtag.js) - Google Analytics