OrangeHRM的安装 一月 18th, 2012
1. 首先,下载地址:http://sourceforge.net/projects/orangehrm/files/
2. 下载包里有非常简单的安装说明,需要先看看。
Pre-requisites
The pre-requisites are;
- Apache HTTP Server 1.3 or later
- MySQL 5.0.12 or later
- PHP 5.1.2 or later
如果对系统配置不清楚的话,可以使用安装包里的orangehrm/sysinfo.php这个工具,来帮助检测。
| Component | Status |
|---|---|
| PHP version | OK (ver 5.3.3) |
| MySQL Client | OK (ver 5.0.77) |
| OrangeHRM Configuration File Writable | OK |
| Maximum Session Idle Time before Timeout | OK |
| Memory allocated for PHP script | OK |
如果所有的项目都通过了,就可以开始安装了。
3. 使用Web install的方式安装。OrangeHRM的安装功能做的还不错。我安装的时候出现过输入 database配置后,页面返回空的问题。后来发现是php-mysql的版本不太对,重新安装了.
在网上看到其他人也有这个问题,可以临时打开/etc/php.ini里的 display_errors = On来调试。
4. OrangeHRM需要使用htaccess, 简单起见,可以给orangehrm的打开所有的AllowOverride。否则会出现500(Internal Server Error)
/etc/httpd/conf.d/orangehrm.conf
<Directory "/var/www/html/orangehrm/">
AllowOverride All
</Directory>
5. 如果一切顺利,你应该可以看到orangehrm的登录界面了。
evernote真是在找死啊 一月 18th, 2012
windows 的客户端安装文件居然有69M的体积,还带广告。难道evernote不知道云笔记这块竞争有多激烈,想要自杀么?
几款开源的人事管理系统 一月 9th, 2012
收集了几款开源的人事管理系统,都是开源的:
1. OrangeHRM
http://www.orangehrm.com/
OrangeHRM is the world’s most popular Open Source Human Resource Management Software (HRMS) with over 1,000,000 users globally. Download it today.
2. WaypointHR
http://www.waypointhr.com/
WaypointHR is an Open Source human resource database, providing organisations with a free, immediate and flexible Human Resource Management System (HRIS).
3. SimpleHRM
http://sourceforge.net/projects/icehrm/
SimpleHRM is an open source human resource management solution for SMEs. It provides an easy to use, intuitive interface for HR departments, with many features including employee management, leave management, benefits, reminders and more.
4. ICeHrm
http://sourceforge.net/projects/icehrm/
Ice Hrm is a free and open source human resource management software with rich user interface developed with AJAX. Find our demo application here http://gamonoid.com:8080/icehrm/. Join our user mail group - http://groups.google.com/group/ice-hrm-users
RVM和sudo 十二月 30th, 2011
http://ruby.about.com/od/rubyversionmanager/qt/Rvm-And-Sudo.htm
RVM is great. However, there may be times where you must run Ruby scripts with RVM as root (or another user) via sudo. Your first attempt might be to do something like this.
$ rvm use 1.9.2
$ sudo ruby myscript.rb
However, this won't work at all. Remember that sudo will start a new subshell. That new subshell's environment will be completely different, and won't contain RVM, nor will it have access to your user's RVM without trying to hack in RVM's environment variables yourself.
RVM does come with a solution though, the rvmsudo command. It will pass on any environment variables that RVM set up to get you to the correct Ruby. This includes the $PATH as well has $GEM_HOME, $GEM_PATH and $BUNDLE_PATH variables.
So to run the script called asroot.rb, simply use the Ruby you want and run it with rvmsudo.
$ rvm use 1.9.2
$ ruby asroot.rb
This script must be run as root, aborting.
$ rvmsudo ruby asroot.rb
Reticulating splines... DONE
$
There are some minor security concerns using rvmsudo. Since RVM adds you gem's bin path to the environment ahead of any system paths, gems could install duplicate commands that may be harmful to your system. As always, take caution when running commands as the root user, or any other user with elevated privileges.
ruby运行环境管理和包管理 十二月 30th, 2011
python对于linux的发行版本非常重要,所以升级python的版本是一件高风险的事情。尽管有virtual python这个工具,系统中并存多个python, 依然不是一件容易的事情。
ruby就容易了很多,有一个RVM (Ruby Version Manager), 可以在系统中非常轻松的安装多个ruby的环境,以及在不同的版本之间切换。RVM自己提供一些现成的ruby版本,用户甚至不需要自己直接安装 ruby。比python强了不少。
ruby的包管理可以使用rubygems, 然后在自己程序里使用Gemfiles指定依赖的所有的包,和对应的版本。也很方便