attr_accessor vs attr_accessible (Ruby on Rails)

January 21, 2012 · Posted in Development · Comment 

The post describes what mean ‘attr_accessor’ and ‘attr_accessible’ in a Rails Model.

Read more

Regular Expressions in Ruby

January 17, 2012 · Posted in Development · Comment 

 

Ruby uses Perl-compatible regular expressions, so if you’re familiar with the preg_*functions in PHP, it will be easy to learn regular expressions in Ruby.

Read more

Installing ANSICON for colored output in Ruby on Rails tests on Windows

January 3, 2012 · Posted in Development · Comment 

Read more

Flow – What makes a life worth living

December 23, 2011 · Posted in About Life · Comment 

Mihaly Czikszentmihalyi asks, “What makes a life worth living?”

Noting that money cannot make us happy, he looks to those who find pleasure and lasting satisfaction in activities that bring about a state of “flow.”

Read more

Installing mysql2 gem on Ruby 1.9.2 and Rails 3.0.5 on Windows

December 22, 2011 · Posted in Development · 1 Comment 

When running ‘rake db:create’, you may get the following error:

>rake db:create
rake aborted!
126: The specified module could not be found. - d:/RailsInstaller/Ruby1.9.2/li
b/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-mingw32/lib/mysql2/1.9/mysql2.so

or may get these errors while installing mysql:

rake aborted !
uninitialized constant mysql2

Error ‘uninitialized constant mysql2′ comes when mysql2 installation is not done properly.

Read more

Introduction to Smarty 3

December 19, 2011 · Posted in Development · Comment 

This article shows the major changes in smarty 3.

Read more

Working with regular expressions (preg_) and UTF-8 strings in PHP

December 17, 2011 · Posted in Development · Comment 

Regular expression patterns \w, \d, \s will not work as expected for non-latin letters in a UTF-8 string when you use preg_ functions (like preg_match, preg_split, preg_replace).

First of all you must use modifier /u to work with UTF-8 strings correctly.

One of the best solutions to common tasks is to use the pattern escapes \P, \p, and \X, which refer to Unicode character properties.

Read more

SSH Authentication on Linux

December 3, 2011 · Posted in Development · 1 Comment 

Here is a step-by-step explanation how to configure Linux server to be accessible over SSH.

Read more

Tips to make a successful startup

November 26, 2011 · Posted in Startups, IT Business · Comment 

Rules of success learned from various successful people and products.

Read more

Angel Investing : useful links

November 26, 2011 · Posted in Startups, IT Business · Comment 

Read more

« Previous PageNext Page »