Tuesday, March 10, 2009

Ruby on Rails Linux Installation

Here is a script that would be useful in installing Ruby on Rails in a linux platform.

The script will be used directly for RedHat or CentOS distribution which used 'yum' for package management. Non-RH/CentOS users could simply modify the first line to use his own package manager.

NOTE: This is used by a root/admin user.

Install needed developer tools first.
yum install httpd-devel \
openssl-devel \
zlib-devel \
gcc \
gcc-c++ \
curl-devel \
expat-devel \
gettext-devel \
mysql-server \
mysql-devel


Then download,compile and install ruby. This used 1.8.7-p2. You could use newer version but good luck with it.
mkdir /usr/local/src
cd /usr/local/src
curl -O ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.gz
tar xzvf ruby-1.8.7-p72.tar.gz
cd ruby-1.8.7-p72
./configure --enable-shared --enable-pthread
make
make install


Setup gems
cd ext/zlib
ruby extconf.rb --with-zlib-include=/usr/include --with-zlib-lib=/usr/lib
cd ../../
make
make installcd /usr/local/src
curl -O http://rubyforge.iasi.roedu.net/files/rubygems/rubygems-1.3.1.tgz
tar xzvf rubygems-1.3.1.tgz
cd rubygems-1.3.1
ruby setup.rb


Check version of ruby
ruby --version


Install needed gems (rails/passenger/sinatra)
gem install rails passenger sinatra


Then install/configure 'passenger' for apache. Follow thru the script.
passenger-install-apache2-module

Wednesday, March 4, 2009

warcraft 3 map collider


Yay! I'm blogging for the first time.

Before anything gets to waste, I'll just share this warcraft stuff here.

Warcraft 3 has a way of identifying maps thru hash. But those hash is possible for collision. So these came up with the idea of creating modified maps (ex. Semi-MH, rune-detector for Dota, etc.).

So I created a program to easily make a modified map to obtain a collided hash from original map.

It's up to the users how broad their mind could come up of some features to put up in a collided map.


--------------
kerruben[a t]gmail.com

Instructions:
-- Put original map together with collider.exe.
-- modified jass script will be put in 'changes/Scripts' folder.
Run:
collider.exe
(ex. collider.exe "dota allstars v6.52e.w3x" )
Output:
-- collided map output is in ./result/ folder.
Happy jass exploring!
Goodluck.
--------------