Programming
Myeclipse6.5破解类
2011-10-10, Nortan Posted in Java, usefulness | 我来说两句 | 查看全文>>
Myeclipse6.5可能大家也不常用了,我也基本不用,不过用到的时候,没有注册码也难受,在网上找到这个类来生成注册码,还是比较好用的.放在这里备忘: 查看全文…
Ubuntu下Subclipse报failed to load javahl library的解决办法
2011-09-01, Nortan Posted in Java, usefulness, OS | 我来说两句 | 查看全文>>
最近买了一T61p,买回后直接安装Ubuntu 10.04,安装Eclipse并安装Subclipse1.6x插件后,使用svn过程中报
Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
/opt/local/lib/libsvnjavahl-1.0.0.0.dylib: no suitable image found. Did find: /opt/local/lib/libsvnjavahl-1.0.0.0.dylib: mach-o, but wrong architecture
原来是缺少一些关联文件,去subclipse的Wiki看了看,说需要安装libsvn-java,在Ubuntu 下安装很简单,命令如下:
sudo apt-get install libsvn-java
安装完后,这文件在/usr/lib/jni目录下,这个目录并不是eclipse的java.library.path路径之一,所以还需要修改eclipse.ini来告诉eclipse去哪找这个libsvn-java相关的文件.
打开eclipse.ini,在最后行加入如下内容(注意换行)
-Djava.library.path=/usr/lib/jni
(中文) 免费并支持私有库的代码管理平台
2010-05-25, Nortan Posted in sharing, usefulness, Programming | 2 回复 | 查看全文>>
How to run a rake task from cron
2010-04-21, Nortan Posted in Ruby, Programming | 我来说两句 | 查看全文>>
Say you want to do run some stats on your Ruby on Rails application nightly. Create a rake task to do what you want then use cron to execute it.
1.Preflight information
First we need to create the RoR application.
rails cron cd cron script/generate model my_model vi config/database.yml (set the database username/password, and databases created in your environment)
2. Creating the rake task(s)
2.1 Simple task
First lets see how to call any ruby code from rake. Rake code is placed in lib/tasks/FILENAME.rake. So lets create a lib/tasks/cron.rake and place this code in it: 查看全文…
Rails apps auto generate sitemap
2010-04-15, Nortan Posted in Ruby, Programming | 8 回复 | 查看全文>>
标签: Rails, Rails Sitemap Plugin, rails sitemap生成器, sitemap generator, 生成sitemap