tigefa4u Writing posts from repostories Github

Deploy Bugzilla on Openshift With SSH

How to get Bugzilla Bugzilla and all of its source code are available for download below. Bugzilla is licensed under the Mozilla Public License, and is thus both free and open source software. Be sure to see the Installation and Configuration section of the Bugzilla Guide (there's also a copy...

deploy redmine on openshift with ssh

frist sign in on openshift.redhat.com or sign up new one its free with 1GB storeage. if existing member openshift know for start, using rhc setup Creating new app rhc app create redmine ruby-1.9 mysql-5.1 cron-1.4 phpmyadmin-4 Sign SSH rhc ssh redmine Change directory website root index cd ~/app-root/runtime/repo Get redmine...

Rails url_for weaknesses

Rails helper link_to is the most famous and used any Rails developer. Usually the first argument is a link name and the second is a parameters which are used to build url. You are able to pass 4 types of these parameters: helper which is generated by routes, string, hash...

Agnostic Application Generators

Agnostic Application Generators (padrino-gen) Overview Padrino comes preloaded with flexible code generators powered in part by the excellent Thor gem (incidentally also used in the Rails 3 generators). These generators are intended to allow for easy code generation both in creating new applications and building on existing ones. The generators...

Create Own Calepin site

Quickstart Source jokull/calepin $ git clone https://github.com/jokull/calepin.git or svn co https://github.com/jokull/calepin/trunk calepin $ cd calepin $ virtualenv --distribute venv $ source venv/bin/activate $ pip install -r requirements $ pwd > venv/lib/python2.7/site-packages/app.pth Environment Now add .env with the development environment and source it. It should include values for the following values:...

Make irreversible migration work on change of migration

In Rails 2 in migrations there were only 2 methods: up and down. They are called on running migrations up and down respectively with rake tasks rake db:migrate and rake db:rollback. In up method of migration definition you had to write code which is called only on running migration forward...

A side effect of boolean parameters in Ruby

In this post I will show you how it can be confusing to have method which accepts boolean variables. This approach which is a little bit complicated but much robust and can be acceptable in applications with high requirements of security. The problem Say we have a method destroy which...
cc