<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1770001802890288716</id><updated>2012-01-19T01:01:41.088+06:00</updated><category term='PHP'/><category term='Web Development'/><category term='Mailer'/><category term='TDD'/><category term='Css'/><category term='scrum'/><category term='Git'/><category term='General'/><category term='Agile'/><category term='Resources'/><category term='log'/><category term='Server'/><category term='MySql'/><category term='Error'/><category term='.htaccess'/><category term='Ruby on Rails'/><category term='Security'/><category term='JavaScript'/><category term='Html'/><category term='Facebook'/><title type='text'>Morshed Alam</title><subtitle type='html'>My activities, thoughts, inspiration, ideas, and everything else on Rails and PHP</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>47</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-3510707024727806912</id><published>2012-01-10T14:07:00.000+06:00</published><updated>2012-01-10T14:07:00.037+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Multiple login in google talk</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Most of us have multiple google talk IDs and used third party software to login at a time. But, anyone can do multiple login to gtalk by using a simple trick below:&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Right click gtalk icon and select properties&lt;/li&gt;&lt;li&gt;Add &lt;b&gt;/nomutex&lt;/b&gt; at the end of target property like following way&lt;pre class="brush: js; toolbar: true;"&gt;"C:\Users\Morshed\AppData\Roaming\Google\Google Talk\googletalk.exe" /startmenu /nomutex&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Click to &lt;b&gt;Apply&lt;/b&gt; and Ok&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Done! Now click on gtalk icon and open as many as gtalk windows you want. Cheers!!&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-3510707024727806912?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/3510707024727806912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2012/01/multiple-login-in-google-talk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/3510707024727806912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/3510707024727806912'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2012/01/multiple-login-in-google-talk.html' title='Multiple login in google talk'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-7818507623597112343</id><published>2011-12-31T14:18:00.000+06:00</published><updated>2011-12-31T15:20:49.956+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Security'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Development'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><title type='text'>HTTP basic authentication using email address</title><content type='html'>In my previous article, I have written about &lt;a href="http://www.morshed-alam.com/2011/12/http-basic-authentication-in-rails-to.html"&gt;HTTP basic authentication in rails&lt;/a&gt; using a plain user access YML.&lt;br /&gt;&lt;br /&gt;Last few days ago, I have modified the logic to log-in using email address and password. So that anyone don't need to remember another new password. Hope it might help you...&lt;br /&gt;&lt;br /&gt;Written a news private method&lt;pre class="brush: js; toolbar: true; highlight: [3];"&gt;def login_by_email(user_name, password)&lt;br /&gt;    is_logged_in = false&lt;br /&gt;    if (user_name.match(/.+\b@yourdomain.com$\b/i))&lt;br /&gt;      require 'net/imap'&lt;br /&gt;      require 'openssl'&lt;br /&gt;      client = Net::IMAP.new(host, port, true, nil, false)&lt;br /&gt;      begin&lt;br /&gt;        client.login(user_name, password)&lt;br /&gt;        client.logout&lt;br /&gt;        is_logged_in = true&lt;br /&gt;      rescue Exception =&gt; error&lt;br /&gt;        logger.error "Unable to log-in :: #{error.message}"&lt;br /&gt;      end&lt;br /&gt;      client.disconnect&lt;br /&gt;    end&lt;br /&gt;    return is_logged_in&lt;br /&gt;  end&lt;/pre&gt;On line#3 I have checked the domain name to provide access for a specific domain. After that modified the authentication method following way:&lt;pre class="brush: js; toolbar: true; highlight: [3]"&gt;def authenticate_for_staging_server&lt;br /&gt;    authenticate_or_request_with_http_basic do |user_name, password|&lt;br /&gt;      login_by_email(user_name, password) == true&lt;br /&gt;    end&lt;br /&gt;  end&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-7818507623597112343?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/7818507623597112343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2011/12/http-basic-authentication-using-email.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/7818507623597112343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/7818507623597112343'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2011/12/http-basic-authentication-using-email.html' title='HTTP basic authentication using email address'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-482204149357130000</id><published>2011-12-04T10:59:00.001+06:00</published><updated>2011-12-30T01:30:04.036+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Server'/><category scheme='http://www.blogger.com/atom/ns#' term='Security'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Development'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><title type='text'>HTTP basic authentication in rails to protect staging server</title><content type='html'>Sometimes, you may need to protect your staging server from outside world. It can be done easily by using http basic authentication in rails3.&lt;br /&gt;&lt;br /&gt;I did following things to use HTTP basic authentication to protect my staging server:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;YML file with username and password pair:&lt;/b&gt; &lt;pre class="brush: js; toolbar: true;"&gt;devuser: devpass&lt;br /&gt;testuser: testuserpass&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;Loaded YML data from application initializer:&lt;/b&gt; &lt;pre class="brush: js; toolbar: true;"&gt;HTTP_AUTH_USERS = YAML.load_file("#{Rails.root.to_s}/config/staging_server_users.yml")&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;Callback and authentication in the application controller:&lt;/b&gt;&lt;pre class="brush: js; toolbar: true;"&gt;before_filter :authenticate_for_staging_server, :if =&gt; lambda { Rails.env.development? }&lt;br /&gt;&lt;br /&gt;private&lt;br /&gt;def authenticate_for_staging_server&lt;br /&gt;  authenticate_or_request_with_http_basic do |user_name, password|&lt;br /&gt;    password == HTTP_AUTH_USERS[user_name]&lt;br /&gt;  end&lt;br /&gt;end&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Hope it will help a lot who wants to protect their staging server.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-482204149357130000?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/482204149357130000/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2011/12/http-basic-authentication-in-rails-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/482204149357130000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/482204149357130000'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2011/12/http-basic-authentication-in-rails-to.html' title='HTTP basic authentication in rails to protect staging server'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-7693387473795475864</id><published>2011-11-20T00:00:00.000+06:00</published><updated>2011-11-20T00:00:04.742+06:00</updated><title type='text'>XForms in PHP</title><content type='html'>The next generation of HTML form is XForms which is more flexible than the HTML forms and saves a lot of time and effort. It enables the separation of data and logic from presentation as well. &lt;br /&gt;&lt;br /&gt;In the XForms, XML used to define forms data, stores and transports data in the XML documents and has two different parts:&lt;ul&gt;&lt;li&gt;&lt;b&gt;XForm model&lt;/b&gt; - defines the form, what it should do, what data it contains&lt;/li&gt;&lt;li&gt;&lt;b&gt;XForm user interface&lt;/b&gt; - defines the input fields and how it will displayed&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;You can see a basic hello world example here - &lt;a href="http://en.wikibooks.org/wiki/XForms/HelloWorld"&gt;XForms/HelloWorld&lt;/a&gt;. You must have to install XForms extension for your Firefox version.&lt;br /&gt;&lt;br /&gt;Some more resources are given below:&lt;ul&gt;&lt;li&gt;&lt;a href="http://webdevelopment.bzupages.com/xforms/default.asp.htm"&gt;XForms Tutorial&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikibooks.org/wiki/XForms"&gt;XForms - Wiki&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.w3.org/MarkUp/Forms/2010/xforms11-for-html-authors/"&gt;XForms for HTML Authors (DRAFT)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.ibm.com/developerworks/xml/library/x-xformstipphp/"&gt;Accepting XForms data in PHP&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.phpclasses.org/package/3378-PHP-Validate-XML-documents-using-XML-Schema.html"&gt;Class: PHP Xforms&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-7693387473795475864?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/7693387473795475864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2011/11/xforms-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/7693387473795475864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/7693387473795475864'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2011/11/xforms-in-php.html' title='XForms in PHP'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-1142930183821648265</id><published>2011-11-19T18:57:00.001+06:00</published><updated>2011-11-19T20:14:27.244+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Security'/><category scheme='http://www.blogger.com/atom/ns#' term='Facebook'/><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>How to deactivate facebook account</title><content type='html'>Now a days &lt;a href="http://facebook.com"&gt;Facebook&lt;/a&gt; became part of our busy life and couldn't think without it. But, if you need to deactivate your account then can do that by following steps below:&lt;br /&gt;&lt;br /&gt;Once, you deactivate your account, your profile and information will be instantly inactivated. But, information will not be lost however, and will be available to recover whenever you want within 14 days.&lt;br /&gt;&lt;br /&gt;Steps are given below to deactivate the Facebook account:&lt;ul&gt;&lt;li&gt;Go to &lt;b&gt;Account&lt;/b&gt; menu on top right corner of the page and select &lt;a href="http://www.facebook.com/settings"&gt;&lt;b&gt;Account Settings&lt;/b&gt;&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Click to &lt;a href="https://www.facebook.com/settings?tab=security"&gt;&lt;b&gt;Security&lt;/b&gt;&lt;/a&gt; from right side menu&lt;/li&gt;&lt;li&gt;Click to &lt;a href="https://www.facebook.com/deactivate.php"&gt;&lt;b&gt;Deactivate your account&lt;/b&gt;&lt;/a&gt; link from bottom&lt;/li&gt;&lt;li&gt;And, then select reason and click to &lt;b&gt;Confirm&lt;/b&gt; button&lt;/li&gt;&lt;li&gt;System will open a pop-up box for your password and captcha text. Enter those and click on the confirm button.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;After confirmation system will redirect to Facebook's home page, where you will see a message confirming that your account has been deactivated.&lt;br /&gt;&lt;br /&gt;To cancel deactivation, log-in again and choose cancel deactivation within 14 days.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-1142930183821648265?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/1142930183821648265/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2011/11/how-to-deactivate-facebook-account.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/1142930183821648265'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/1142930183821648265'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2011/11/how-to-deactivate-facebook-account.html' title='How to deactivate facebook account'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-3754675634425971970</id><published>2011-10-31T12:51:00.000+06:00</published><updated>2011-12-30T01:43:45.536+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Server'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><category scheme='http://www.blogger.com/atom/ns#' term='Resources'/><title type='text'>Rails application deployment using shell script</title><content type='html'>I have used following shell script to deploy one of my Ruby on Rails applications:&lt;pre class="brush: js; toolbar: true;"&gt;DATES=`date +%Y%m%d%H%I%S`&lt;br /&gt;service apache2 stop &amp;&amp;&lt;br /&gt;mysqldump -u[user] -p[pass] [yourdbname] &gt; "your backup directory"[yourdbname]_${DATES}.sql&lt;br /&gt;git pull &amp;&amp;&lt;br /&gt;bundle install --path [your bundle path] &amp;&amp;&lt;br /&gt;bundle exec rake db:migrate RAILS_ENV=production &amp;&amp;&lt;br /&gt;mv [your application's production log file] [your application's production log backup path]/production_${DATES}.log &amp;&amp;&lt;br /&gt;touch [your application's production log path]/production.log &amp;&amp;&lt;br /&gt;chown [user]:[group] [your application's production log file] &amp;&amp;&lt;br /&gt;service apache2 start&lt;/pre&gt;In the above code snippet,&lt;ul style="font-size:90%"&gt;&lt;li&gt;&lt;b&gt;Line 01:&lt;/b&gt; Used to get the current date time&lt;/li&gt;&lt;li&gt;&lt;b&gt;Line 02:&lt;/b&gt; Stopped the Apache server&lt;/li&gt;&lt;li&gt;&lt;b&gt;Line 03:&lt;/b&gt; Used to take database backup in the backup directory&lt;/li&gt;&lt;li&gt;&lt;b&gt;Line 04:&lt;/b&gt; Getting update source from repository&lt;/li&gt;&lt;li&gt;&lt;b&gt;Line 05:&lt;/b&gt; Bundle install to update gem list&lt;/li&gt;&lt;li&gt;&lt;b&gt;Line 06:&lt;/b&gt; Run database migration to migrate latest script if any&lt;/li&gt;&lt;li&gt;&lt;b&gt;Line 07:&lt;/b&gt; Rotating log in every deployment&lt;/li&gt;&lt;li&gt;&lt;b&gt;Line 08:&lt;/b&gt; Creating new production log file&lt;/li&gt;&lt;li&gt;&lt;b&gt;Line 09:&lt;/b&gt; Providing proper user access to write log&lt;/li&gt;&lt;li&gt;&lt;b&gt;Line 10:&lt;/b&gt; And, then start the server again&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;That's all. Your application should run without any issue if you configure third bracket's([]) information perfectly.&lt;br /&gt;&lt;br /&gt;But, now a days - Capistrano allows you to deploy a Rails applications easily. You can try that and can customize if you need to.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-3754675634425971970?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/3754675634425971970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2011/10/rails-application-deployment-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/3754675634425971970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/3754675634425971970'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2011/10/rails-application-deployment-using.html' title='Rails application deployment using shell script'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-5421742029897455552</id><published>2011-10-17T10:48:00.001+06:00</published><updated>2011-12-30T01:44:53.457+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><category scheme='http://www.blogger.com/atom/ns#' term='Mailer'/><title type='text'>Using helper method from action mailer views</title><content type='html'>Action Mailer of Ruby on Rails(RoR) allows you to send emails from application using a mailer model and views. Sometimes you may need to use any helper method though it does not allow by default. In that case you have to include helper(module) in the Mailer class.&lt;br /&gt;&lt;br /&gt;Say, you may need to use method(s) from ProductsHelper module, then you need to write following line in the Mailer file which will provide accessibility to use all methods written in  ProductsHelper&lt;pre class="brush: js; toolbar: false;"&gt;add_template_helper(ProductsHelper)&lt;/pre&gt;&lt;br /&gt;Cheers!!&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-5421742029897455552?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/5421742029897455552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2011/10/using-helper-method-from-action-mailer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/5421742029897455552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/5421742029897455552'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2011/10/using-helper-method-from-action-mailer.html' title='Using helper method from action mailer views'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-3782510218435721325</id><published>2011-09-29T12:46:00.000+06:00</published><updated>2011-12-30T01:49:27.237+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Server'/><category scheme='http://www.blogger.com/atom/ns#' term='Security'/><title type='text'>Disable a user account in Linux</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;There are some different approaches to do that. The easy way to disable a user account is to alter stored password which is stored to /etc/shadow. In that case password will be lost unless you save save the password in different file.&lt;br /&gt;&lt;br /&gt;You can alter the password by using following command:&lt;br /&gt;&lt;pre class="brush: js; toolbar: false;"&gt;passwd {username} {new password}&lt;/pre&gt;&lt;br /&gt;It might better to lock a account rather than change password if you need to re-activate again. By following command a user account can be lock easily:&lt;br /&gt;&lt;pre class="brush: js; toolbar: false;"&gt;passwd {username} -l&lt;/pre&gt;&lt;br /&gt;If you will ever need to re-enable the account just unlock using following command:&lt;br /&gt;&lt;pre class="brush: js; toolbar: false;"&gt;passwd {username} -u&lt;/pre&gt;&lt;br /&gt;If you don't need to keep the account anymore then use following command to delete a user permanently.&lt;br /&gt;&lt;pre class="brush: js; toolbar: false;"&gt;userdel {username}&lt;/pre&gt;&lt;br /&gt;The above operation will keep his home directory, mails, etc.&amp;nbsp; Use following command to delete all his files on the system.&lt;br /&gt;&lt;pre class="brush: js; toolbar: false;"&gt;userdel -r {username}&lt;/pre&gt;&lt;br /&gt;&lt;div style="color: #e69138;"&gt;&lt;i&gt;Be careful to do that, your mistake may destroy all files of the server&lt;/i&gt;.&lt;/div&gt;&lt;br /&gt;Note: User still will be able to connect using ssh via key-based auth on changing the user password or locking. If this is used, then the user’s authorized_keys must me moved to a different location.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-3782510218435721325?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/3782510218435721325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2011/09/disable-user-account-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/3782510218435721325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/3782510218435721325'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2011/09/disable-user-account-in-linux.html' title='Disable a user account in Linux'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-5747288424985027596</id><published>2011-09-26T12:54:00.000+06:00</published><updated>2011-12-30T01:49:48.776+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Facebook'/><category scheme='http://www.blogger.com/atom/ns#' term='Resources'/><title type='text'>How to resize Facebook UI dialog</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Once, I had to re-size the facebook UI dialog while working on friends invitation widget for greenarrow.com The widget was loaded under a popup which was wrapped up by an iframe as well. In this case it was not showing properly, the widget was not accommodate in that popup. That's why had to re-size the widget.I did that by following way..&lt;br /&gt;&lt;pre class="brush: js; toolbar: false;"&gt;var old_size = FB.UIServer.Methods["apprequests"].size;&lt;br /&gt;FB.UIServer.Methods["apprequests"].size = {&lt;br /&gt; width:320,&lt;br /&gt; height:430&lt;br /&gt;};&lt;br /&gt;FB.ui({&lt;br /&gt; method: 'apprequests',&lt;br /&gt; message: 'A nice customizable first page application, visit - http://www.greearrow.com'&lt;br /&gt;}, function() { });&lt;br /&gt;FB.UIServer.Methods["apprequests"].size = old_size;&lt;br /&gt;&lt;/pre&gt;I have stored the old size first and then assign the size which i was needed. After that re-assign the old size again so that it does not broke my another UI dialog. Because in other case i have used default size.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-5747288424985027596?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/5747288424985027596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2011/09/how-to-resize-facebook-ui-dialog.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/5747288424985027596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/5747288424985027596'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2011/09/how-to-resize-facebook-ui-dialog.html' title='How to resize Facebook UI dialog'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-9219056432278520636</id><published>2011-09-24T09:27:00.002+06:00</published><updated>2011-09-29T12:12:55.535+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><title type='text'>Ruby interpreter has stopped working</title><content type='html'>From last couple of days, I was facing a problem with my ruby interpreter. It was crashing continuously after few page requests and getting message:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Ruby interpreter (CUI) 1.9.2p180 [i386-mingw32] has stopped working&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;I have tried to find out the reason and frequency to stopped but couldn't find the actual reason. After googling got a suggestion about css media link. But it does not solved the problem as well.&lt;br /&gt;&lt;br /&gt;Finally, I have identified that it happens for missing file. The ruby interpreter was crashed after two request for me if the file missing exists, it may differ for others.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-9219056432278520636?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/9219056432278520636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2011/09/ruby-interpreter-has-stopped-working.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/9219056432278520636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/9219056432278520636'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2011/09/ruby-interpreter-has-stopped-working.html' title='Ruby interpreter has stopped working'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-6921817504089879012</id><published>2011-07-26T20:22:00.007+06:00</published><updated>2011-12-30T01:53:31.136+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySql'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><title type='text'>Install mysql2 gem on Windows 7</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Last couple of days ago, I was stuck to install mysql2 gem on windows7 for rails3 and tried lots of instructions by googling. Unfortunately, those were not worked for me.&lt;br /&gt;&lt;br /&gt;Finally, I have specified a older version of mysql2 during installation which worked for me. Following are the steps which i did:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Install Mysql 5.5&lt;/li&gt;&lt;li&gt;Open command prompt and run following command &lt;pre class="brush: js; toolbar: true;"&gt;gem install mysql2 --version=0.2.6 --platform=ruby -- '--with-mysql-include="C:\Program Files\MySQL\MySQL Server 5.5\include" --with-mysql-lib="C:\Program Files\MySQL\MySQL Server 5.5\lib"'&lt;/pre&gt;&lt;/li&gt;&lt;li&gt; Copy &lt;span style="font-weight: bold;"&gt;libmysql.dll&lt;/span&gt; from &lt;span style="font-style: italic;"&gt;C:\Program Files\MySQL\MySQL Server 5.5\lib&lt;/span&gt;  to &lt;span style="font-style: italic;"&gt;[Ruby Installation Directory]\bin\&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Specify mysql2 version to you gem file&lt;/li&gt;&lt;li&gt;Run bundle install&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-6921817504089879012?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/6921817504089879012/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2011/07/mysql2-gem-on-windows-7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/6921817504089879012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/6921817504089879012'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2011/07/mysql2-gem-on-windows-7.html' title='Install mysql2 gem on Windows 7'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-8479622843454151834</id><published>2011-02-24T22:34:00.000+06:00</published><updated>2011-12-30T01:57:29.860+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='log'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><title type='text'>How to disable logging in Rails application</title><content type='html'>It's not a good practice to do though depends on your needs. It can be done by two ways, one is to disable for whole application and another is to disable for specific environments. You're probably looking for some or all of the following settings:&lt;pre class="brush: js; toolbar: true;"&gt;config.logger&lt;br /&gt;config.active_record.logger&lt;br /&gt;config.action_controller.logger&lt;br /&gt;config.action_view.logger&lt;br /&gt;config.action_mailer.logger&lt;br /&gt;config.active_resource.logger&lt;br /&gt;&lt;/pre&gt;If you set any of them to &lt;b&gt;nil&lt;/b&gt; like following way:&lt;pre class="brush: js; toolbar: true;"&gt;config.active_record.logger = nil&lt;/pre&gt;It should disable logging for that specific component. You can experiment with these to disable logging for specific components or set all of them to nil to get no logging.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-8479622843454151834?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/8479622843454151834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2011/02/how-to-disable-logging-in-rails.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/8479622843454151834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/8479622843454151834'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2011/02/how-to-disable-logging-in-rails.html' title='How to disable logging in Rails application'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-835914007074892273</id><published>2011-02-14T17:00:00.008+06:00</published><updated>2011-12-30T02:00:43.331+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><category scheme='http://www.blogger.com/atom/ns#' term='Resources'/><title type='text'>How to use mutliple ruby version on windows</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;I have found a nice ruby version manager for windows named pik. It's pretty easy to install and manage multiple ruby versions. &lt;br /&gt;&lt;br /&gt;First install the pik gem:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;gem install pik&lt;/pre&gt;&lt;br /&gt;After installing the pik, you have to use pik_install script to install the pik executable. You must install pik in a different directory other than your ruby\bin directory. &lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;pik_install C:\Windows\System32&lt;/pre&gt;&lt;br /&gt;If the installation gone smooth, you should see like ..&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;pik is installed&lt;br /&gt;&lt;br /&gt;if you want to use pik with git bash, add the following line to your ~/.bashrc:&lt;br /&gt;&lt;br /&gt;  [[ -s $USERPROFILE/.pik/.pikrc ]] &amp;amp;&amp;amp; source $USERPROFILE/.pik/.pikrc&lt;/pre&gt;&lt;br /&gt;Now you can see the list of available ruby versions by using following commands:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;pik list&lt;/pre&gt;&lt;br /&gt;Add, you can install a ruby version and add to version manager using below command:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;pik add C:\Ruby192\bin&lt;/pre&gt;&lt;br /&gt;To switch the ruby version use command:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;pik switch [Version Name]&lt;/pre&gt;&lt;br /&gt;That's all to use multiple version of ruby on windows machine.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://github.com/vertiginous/pik"&gt;Click here to know more about pik&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-835914007074892273?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/835914007074892273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2011/02/how-to-use-mutliple-ruby-version-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/835914007074892273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/835914007074892273'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2011/02/how-to-use-mutliple-ruby-version-on.html' title='How to use mutliple ruby version on windows'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-4880357537368034581</id><published>2011-01-31T16:01:00.000+06:00</published><updated>2011-12-30T01:59:06.826+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error'/><category scheme='http://www.blogger.com/atom/ns#' term='Git'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><title type='text'>LF will be replaced by CRLF</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;I was getting following message while trying to add files to GIT index:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Warning: LF will be replaced by CRLF ....&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;By google search I found that - whenever tried to add files to the repository, git thinks that, the file is a text file and all files automatically will have their LF line endings converted to CRLF endings. &lt;br /&gt;&lt;br /&gt;It's an important warning for a binary file because git incorrectly assesses a binary file to be a text file but it's OK for text file.&lt;br /&gt;&lt;br /&gt;The line-ending conversion can be prevent by setting false of core.autocrlf attribute. By default it remains true.&lt;br /&gt;&lt;br /&gt;The command is as follows(in Bash mode):&lt;br /&gt;&lt;pre class="brush: js; toolbar: true; highlight: [1];"&gt;git config core.autocrlf false&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-4880357537368034581?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/4880357537368034581/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2011/01/lf-will-be-replaced-by-crlf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/4880357537368034581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/4880357537368034581'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2011/01/lf-will-be-replaced-by-crlf.html' title='LF will be replaced by CRLF'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-8022263935772058394</id><published>2011-01-22T12:43:00.000+06:00</published><updated>2011-12-30T01:55:23.071+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><title type='text'>Unpacked gem has no specification file</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;I started working on a new rails project and in every time from command line operation getting this type of irritating message:&lt;br /&gt;&lt;br /&gt;config.gem: Unpacked gem ..... in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.&lt;br /&gt;&lt;br /&gt;I run rake gems:refresh_specs but the problem isn't fixed. Moreover, tried by creating specification file as well.&lt;br /&gt;&lt;br /&gt;After that, removed the irritating message by a single line of code to place in the environment file:&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: js; toolbar: true; highlight: [4];"&gt;# Bootstrap the Rails environment, frameworks, and default configuration&lt;br /&gt;require File.join(File.dirname(__FILE__), 'boot')&lt;br /&gt;&lt;br /&gt;Rails::VendorGemSourceIndex.silence_spec_warnings = true&lt;br /&gt;&lt;br /&gt;Rails::Initializer.run do |config|&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-8022263935772058394?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/8022263935772058394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2011/01/unpacked-gem-has-no-specification-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/8022263935772058394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/8022263935772058394'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2011/01/unpacked-gem-has-no-specification-file.html' title='Unpacked gem has no specification file'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-1043553292392728233</id><published>2011-01-20T11:55:00.000+06:00</published><updated>2011-12-30T01:55:30.668+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><title type='text'>’rails’ is not recognized as an internal or external command, operable program or batch file</title><content type='html'>You might experience the problem due to the following reasons:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;You haven’t installed Rails&lt;/li&gt;&lt;li&gt;Rails path cannot be found&lt;/li&gt;&lt;li&gt;Installed Rails using a ‘special’ installer&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;To resolve the issue, uninstall rails installation from your PC and try a normal installation through command prompt by using following command:&lt;pre class="brush: js; toolbar: true;"&gt;gem install rails –include-dependencies&lt;/pre&gt;&lt;br /&gt;&lt;i&gt;Note: Be sure, you are connected with internet&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-1043553292392728233?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/1043553292392728233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2011/01/rails-is-not-recognized-as-internal-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/1043553292392728233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/1043553292392728233'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2011/01/rails-is-not-recognized-as-internal-or.html' title='’rails’ is not recognized as an internal or external command, operable program or batch file'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-5939583825218661166</id><published>2011-01-18T17:34:00.001+06:00</published><updated>2011-12-30T01:55:41.365+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySql'/><title type='text'>Remote mysql backups on windows</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;In our day to day job needs to backup remote mysql database and sometimes may needs to synchronize with another one.&lt;br /&gt;&lt;br /&gt;It can be done by using following code snippet, no matter the remote server is windows or Linux.&lt;br /&gt;&lt;br /&gt;Save the following code snippet as a batch(.bat) file and setup a task scheduler.&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;set DATET=%date:~-4%_%date:~7,2%&lt;br /&gt;"your mysql bin directory\mysqldump" --host="remote-host" --user="remote-database-user" --password="remote database password" remote-database-name &amp;gt; "backup-directory"backup_%DATET%_csv.sql&lt;br /&gt;"your mysql bin directory\mysql" -uuser -ppassword -t csv &amp;lt; "backup-directory"backup_%DATET%_csv.sql&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-5939583825218661166?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/5939583825218661166/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2011/01/remote-mysql-backups-on-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/5939583825218661166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/5939583825218661166'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2011/01/remote-mysql-backups-on-windows.html' title='Remote mysql backups on windows'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-8277624025164455757</id><published>2011-01-11T11:32:00.000+06:00</published><updated>2011-10-19T12:27:23.447+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><title type='text'>‘nmake’ is not recognized as an internal or external command, operable program or batch file</title><content type='html'>I have experienced the problem due to the version difference of rubygems installed on my developer PC with gems. &lt;br /&gt;&lt;br /&gt;I have downgraded the rubygems, to choose the right versions and solved the problem. After completing the installations, updated all of my gems which did not generate any errors.&lt;br /&gt;&lt;br /&gt;If you still experience the problem then try the link below to resolve the problem:&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.question-defense.com/2009/03/27/nmake-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file"&gt;‘nmake’ is not recognized as an internal or external command, operable program or batch file&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-8277624025164455757?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/8277624025164455757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2011/01/nmake-is-not-recognized-as-internal-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/8277624025164455757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/8277624025164455757'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2011/01/nmake-is-not-recognized-as-internal-or.html' title='‘nmake’ is not recognized as an internal or external command, operable program or batch file'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-2983708791797834400</id><published>2010-10-12T18:45:00.000+06:00</published><updated>2011-12-30T23:50:56.330+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySql'/><title type='text'>Mysql backup on linux using ssh and cron</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Sometimes, we may need to backup and synchronize mysql on linux as a background process. Linux has a great program for this called cron. It allows tasks to be automatically run in the background at regular intervals.&lt;br /&gt;&lt;br /&gt;Create a script file(.sh) using following code snippet to backup and restore database in to another database:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;ssh user@remote-host "mysqldump -u my-remote-db-username --password=my-remote-db-password my-remote-db-name" | mysql -udb-username --password=db-password --host=host-name -C db-name&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Open a terminal and run:&lt;br /&gt;&lt;code&gt;sudo crontab -l&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;To edit the list of cronjobs you can run following code which will open default editor to let us the crontab:&lt;br /&gt;&lt;code&gt;sudo crontab -e&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;You can configure your script in to crontab by following code:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;* * * * * /bin/execute/this/script.sh&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;The above five stars represent different date parts in the following order:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;minute (from 0 to 59)&lt;/li&gt;&lt;li&gt;hour (from 0 to 23)&lt;/li&gt;&lt;li&gt;day of month (from 1 to 31)&lt;/li&gt;&lt;li&gt;month (from 1 to 12)&lt;/li&gt;&lt;li&gt;day of week (from 0 to 6) (0=Sunday)&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-2983708791797834400?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/2983708791797834400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2010/10/mysql-backup-on-linux-using-ssh-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/2983708791797834400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/2983708791797834400'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2010/10/mysql-backup-on-linux-using-ssh-and.html' title='Mysql backup on linux using ssh and cron'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-8389587593899201624</id><published>2010-06-22T23:35:00.000+06:00</published><updated>2011-12-30T23:50:21.700+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.htaccess'/><title type='text'>How to do custom redirection of a website</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Usually the redirection needs when a website changed/move to different location though it may use for lots of other purposes. In this post, I have explain how you can do it by using .htaccess&lt;br /&gt;&lt;br /&gt;Say, your site has lots of URL and you want to redirect some of those which query string has a parameter name “option” and the value is “redirect”. &lt;br /&gt;&lt;br /&gt;Below are the codes to redirect into new URL:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;RewriteEngine on&lt;br /&gt;RewriteCond %{QUERY_STRING} option=redirect&lt;br /&gt;RewriteRule (.*) http://newsite.com/index.php?%{QUERY_STRING} [R=301,L]&lt;/pre&gt;&lt;br /&gt;Just copy above lines into .htaccess file and place it to root directory in your application.&lt;br /&gt;&lt;br /&gt;Some helpful posts:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://morshed-alam.blogspot.com/2009/05/htaccess-tips-and-tricks.html"&gt;Most useful htaccess tips and tricks&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://morshed-alam.blogspot.com/2010/06/hide-fact-that-web-pages-are-written-in.html"&gt;Hide the fact that web pages are written in PHP&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://morshed-alam.blogspot.com/2010/06/change-file-extension-in-url.html"&gt;Change file extension in the URL&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-8389587593899201624?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/8389587593899201624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2010/06/how-to-do-custom-redirection-of-website_22.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/8389587593899201624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/8389587593899201624'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2010/06/how-to-do-custom-redirection-of-website_22.html' title='How to do custom redirection of a website'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-1852426690064095377</id><published>2010-06-20T23:04:00.000+06:00</published><updated>2011-12-30T23:49:51.019+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.htaccess'/><title type='text'>Change file extension in URL</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;In my previous article I have shown how you can use different extension of a file instead of .php explicitly but in this post I have explain how to rewrite the URL instead of renaming the file extension explicitly.&lt;br /&gt;&lt;br /&gt;To rewrite the URL you must add following lines in a .htaccess file and place it to root directory of your application.&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;Options +FollowSymlinks&lt;br /&gt;RewriteEngine on&lt;br /&gt;RewriteRule ^(.*)\.htm$ $1.php [nc]&lt;/pre&gt;&lt;br /&gt;The above code will rewrite the product.php to product.html. &lt;br /&gt;&lt;br /&gt;And following is the code to pass parameters with URL&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;Options +FollowSymlinks&lt;br /&gt;RewriteEngine on&lt;br /&gt;RewriteRule ^(.*)\.html(.*)$ $1.php$2&lt;/pre&gt;&lt;br /&gt;Some related posts:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://morshed-alam.blogspot.com/2009/05/htaccess-tips-and-tricks.html"&gt;Most useful htaccess tips and tricks&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://morshed-alam.blogspot.com/2010/06/hide-fact-that-web-pages-are-written-in.html"&gt;Hide the fact that web pages are written in PHP&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-1852426690064095377?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/1852426690064095377/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2010/06/change-file-extension-in-url.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/1852426690064095377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/1852426690064095377'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2010/06/change-file-extension-in-url.html' title='Change file extension in URL'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-7052827498994242257</id><published>2010-06-20T01:52:00.000+06:00</published><updated>2011-12-30T23:49:20.266+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='.htaccess'/><title type='text'>Hide the fact that web pages are written in PHP</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Sometimes you may want to hide the fact of your web site’s written language to visitors then you can do it easily by using .htaccess Say, you have developed your site by using PHP and wanted to show it as ASP then you can do it by using following tricks:&lt;br /&gt;&lt;br /&gt;Just add following line in the .htaccess file and place it to application root directory.&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;AddType application/x-httpd-php .asp&lt;/pre&gt;Now everyone have to use all files of the application by using .asp though the application was written in PHP.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-7052827498994242257?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/7052827498994242257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2010/06/hide-fact-that-web-pages-are-written-in.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/7052827498994242257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/7052827498994242257'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2010/06/hide-fact-that-web-pages-are-written-in.html' title='Hide the fact that web pages are written in PHP'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-8055738313794316613</id><published>2010-03-21T22:56:00.000+06:00</published><updated>2011-12-30T02:02:23.398+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySql'/><category scheme='http://www.blogger.com/atom/ns#' term='Error'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><title type='text'>The bundled mysql.rb driver has been removed from Rails 2.2</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;After two months, I have started working on rails again and upgraded Rails to 2.3.2 on my laptop.  After upgraded when I have tried to run a sample rails application and got following errors:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;&lt;br /&gt;=&amp;gt; Booting WEBrick&lt;br /&gt;=&amp;gt; Rails 2.3.2 application starting on http://0.0.0.0:3000&lt;br /&gt;!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.&lt;br /&gt;=&amp;gt; Call with -d to detach&lt;br /&gt;[2010-03-21 04:39:09] INFO  WEBrick 1.3.1&lt;br /&gt;[2010-03-21 04:39:09] INFO  ruby 1.8.6 (2007-09-24) [i386-mswin32]&lt;br /&gt;[2010-03-21 04:39:09] INFO  WEBrick::HTTPServer#start: pid=5032 port=3000&lt;br /&gt;=&amp;gt; Ctrl-C to shutdown server&lt;/pre&gt;After getting the above error I have installed newer version of mysql gem but problem was not solved. Then just copy the MySQL dll from &lt;span style="font-weight: bold;"&gt;mysql/bin/libmysql.dll&lt;/span&gt; to &lt;span style="font-weight: bold;"&gt;ruby/bin/libmysql.dll&lt;/span&gt;. And it worked perfectly.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-8055738313794316613?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/8055738313794316613/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2010/03/bundled-mysqlrb-driver-has-been-removed.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/8055738313794316613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/8055738313794316613'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2010/03/bundled-mysqlrb-driver-has-been-removed.html' title='The bundled mysql.rb driver has been removed from Rails 2.2'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-6417331240262428875</id><published>2010-02-16T00:19:00.000+06:00</published><updated>2011-12-30T02:03:03.615+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Html'/><title type='text'>Specify rendering engine of IE</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Internet Explorer 8 supports different document compatibility to ensure that your web pages have a consistent appearance in future versions.&lt;br /&gt;&lt;br /&gt;If you are having trouble on a site in different IE, you can use specific rendering mode to display your web pages by using simple META tag. Below is the META tag to use IE7 rending in IE8:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;&lt;br /&gt;&amp;lt;meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /&amp;gt;&lt;/pre&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/cc288325%28VS.85%29.aspx" target="_blank"&gt;Details of defining rendering engine in IE&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Related link:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://morshed-alam.blogspot.com/2009/05/htaccess-tips-and-tricks.html" target="_blank"&gt;Most useful htaccess tips and tricks&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-6417331240262428875?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/6417331240262428875/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2010/02/specify-rendering-engine-of-ie.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/6417331240262428875'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/6417331240262428875'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2010/02/specify-rendering-engine-of-ie.html' title='Specify rendering engine of IE'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-3817916197602478696</id><published>2010-02-12T04:51:00.000+06:00</published><updated>2011-09-29T13:45:37.470+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Html'/><title type='text'>HTML coding guidelines</title><content type='html'>This is my third article about coding guidelines. In this article I wanted to give you some general guidelines for HTML coding that will help to improve readability, maintainability and code reuse. It will reduce browser related problem. Following are some guidelines:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Must be use doctype in your web page.&lt;/li&gt;&lt;li&gt;Everyone should be write well-formed HTML code. &lt;/li&gt;&lt;li&gt;Indent HTML code constantly&lt;/li&gt;&lt;li&gt;Use small letter constantly. It will increase readability.&lt;/li&gt;&lt;li&gt;ID should be unique in a page and pick a meaningful name for this. Should be follow a standard constantly. Can use underscore (_) to separate meaningful words.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Name tag can follow a same standard like ID. It will be easier to read.&lt;/li&gt;&lt;li&gt;Should be use ID for dynamic element.&lt;/li&gt;&lt;li&gt;Avoid inline CSS. Use separate file for CSS stylesheet.&lt;/li&gt;&lt;li&gt;Avoid longer line. Break the line when a statement will not fit on a single line.&lt;/li&gt;&lt;li&gt;Use commenting as less as possible but use sensibly.&lt;/li&gt;&lt;li&gt;All nested attributes must be properly nested.&lt;/li&gt;&lt;li&gt;Attributes must be quoted.&lt;/li&gt;&lt;li&gt;Validate HTML code using W3C validation service at - &lt;a href="http://validator.w3.org" target="_blank"&gt;http://validator.w3.org&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Some related posts:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://morshed-alam.blogspot.com/2010/01/css-coding-guidelinesconventions.html"&gt;CSS coding guidelines/conventions&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://morshed-alam.blogspot.com/2010/02/javascript-coding-standardsconventions.html"&gt;JavaScript coding standards/conventions&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.w3.org/TR/WCAG10-CSS-TECHS/"&gt;CSS Techniques for Web Content Accessibility Guidelines 1.0&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://morshed-alam.blogspot.com/2008/10/liquid-design-importance-and.html"&gt;Liquid design : Importance and Considerations&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-3817916197602478696?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/3817916197602478696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2010/02/html-coding-guidelines.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/3817916197602478696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/3817916197602478696'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2010/02/html-coding-guidelines.html' title='HTML coding guidelines'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-7422094420043699471</id><published>2010-02-05T22:14:00.000+06:00</published><updated>2011-12-30T02:03:41.348+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>JavaScript coding standards/conventions</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;The long-term value of software is depended of the quality of codebase and it helps to reducing the weakness of programs. That’s why we should follow standards while writing Js code which will increase the code quality. I am trying here to give you some idea/suggestion to write better Js code.&lt;br /&gt;&lt;br /&gt;Below are some suggestions which should follow everyone:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Try to avoid embedded JavaScript code in HTML files. It will decrease page loading time and increase caching and compression opportunity.&lt;/li&gt;&lt;li&gt;Avoid longer line. Break the line when a statement will not fit on a single line.&lt;/li&gt;&lt;li&gt;All JavaScript programs should be stored in a separate Js file and should be placed as late in the body as possible. This reduces the effects of delays.&lt;/li&gt;&lt;li&gt;Indenting should be followed constantly. Now a day’s space is not a matter because you can eliminate by using minification.&lt;/li&gt;&lt;li&gt;Function name should start with small letter and all meaningful word should be capital letter. &lt;/li&gt;&lt;li&gt;Should not use space between the name of a function and left parenthesis and separate parameters by a space.&lt;pre class="brush: js; toolbar: true;"&gt;function showFlashMessage(message, message_type){&lt;br /&gt;&lt;br /&gt;}&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Global variable should be all caps, local Variable in small letter and all meaningful word should be separate by underscore (_)&lt;/li&gt;&lt;li&gt;All variables should be declared before using though JavaScript does not require this. The variable declaration statement should be the first statement of a function. It will make your code easier to read.&lt;/li&gt;&lt;li&gt;Must be use semicolon (;) at the end of the every statement and each line should contain only a statement. &lt;/li&gt;&lt;li&gt;Use left curly braces in the same line of the function or a statement and a line break for curly braces.&lt;pre class="brush: js; toolbar: true;"&gt;for(){&lt;br /&gt;if(condition){&lt;br /&gt; statements;&lt;br /&gt;}&lt;br /&gt;}&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Try to avoid comma operator except for disciplined use.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Some related posts:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://morshed-alam.blogspot.com/2010/02/html-coding-guidelines.html"&gt;HTML coding guidelines&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://morshed-alam.blogspot.com/2010/01/css-coding-guidelinesconventions.html"&gt;CSS coding guidelines/conventions&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.w3.org/TR/WCAG10-CSS-TECHS/" target="_blank"&gt;CSS Techniques for Web Content Accessibility Guidelines 1.0&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-7422094420043699471?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/7422094420043699471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2010/02/javascript-coding-standardsconventions.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/7422094420043699471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/7422094420043699471'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2010/02/javascript-coding-standardsconventions.html' title='JavaScript coding standards/conventions'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-7231134896235945848</id><published>2010-01-03T00:27:00.001+06:00</published><updated>2011-09-29T13:45:58.254+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Css'/><title type='text'>CSS coding guidelines/conventions</title><content type='html'>While writing CSS code, everyone should be follow a standard or convention. It is not important to remember a convention what should be follow. &lt;span style="font-weight: bold;"&gt;Important is to follow any style constantly&lt;/span&gt;, actually it is a common sense though it is not common sense to everybody. I am just writing it to provide others with one point of view and a starting point of their own style sheet coding standards.&lt;br /&gt;&lt;br /&gt;Below are some ideas for writing CSS code:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Must be placed CSS code in a separate file as much as possible instead of in-line CSS.&lt;/li&gt;&lt;li&gt;Give the descriptive and meaningful name of CSS files&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Use class instead of ID as CSS identifier. IDs to be used if there is only one instance of that element on a page and classes must be use to style several elements in the same way.&lt;/li&gt;&lt;li&gt;Write meaningful class name instead of short one and use a dash (-) as a separator of a CSS class name.&lt;/li&gt;&lt;li&gt;Always use lowercase while writing a CSS class name Otherwise it may occur browser problems.&lt;/li&gt;&lt;li&gt;Add opening curly bracket on the same line as the selector identifier.&lt;/li&gt;&lt;li&gt;Should write a common design for Input, Button, form and other html elements for whole application at the top of the stylesheet&lt;/li&gt;&lt;li&gt;Group the rules for same type of elements and its pseudo-elements together.&lt;/li&gt;&lt;li&gt;Use spacing while describing attribute of a class to improve readability.&lt;/li&gt;&lt;li&gt;Can use empty line between different CSS class to improve readability.&lt;/li&gt;&lt;li&gt;For visual emphasis use space to separate property and value.&lt;/li&gt;&lt;li&gt;Try to use shorthand property instead of long property because it will increase readability. Use background-color, background-position, background-image, and background-repeat etc. instead of background&lt;/li&gt;&lt;li&gt;Use em instead of pix for sizing, line heights etc to allow visitors to use the built-in browser text sizing. See the &lt;a target="_blank" href="http://www.w3.org/TR/WCAG10-CSS-TECHS/#units"&gt;CSS Techniques for Web Content Accessibility Guidelines 1.0&lt;/a&gt; for more details.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Must be use semicolon at the end of the line/statement.&lt;/li&gt;&lt;li&gt;Try to avoid presentation specific words as identifier, like black, green etc.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;There are lots of benefits to follow a standard some of those are given below:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;It makes your code more predictable and understandable.&lt;/li&gt;&lt;li&gt;Anyone can change/debug and pick a design easily.&lt;/li&gt;&lt;li&gt;Reduce time for design/development, update and maintenance&lt;/li&gt;&lt;li&gt;Increased accessibility&lt;/li&gt;&lt;li&gt;Adhere to W3C recommendations, improving interoperability and ensuring&lt;br /&gt;greater longevity etc.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;I am just trying to give you some ideas and inspire to adopt a CSS coding standard. Hopefully it will be very helpful to all of you.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Some related posts:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://morshed-alam.blogspot.com/2010/02/html-coding-guidelines.html"&gt;HTML coding guidelines&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://morshed-alam.blogspot.com/2010/02/javascript-coding-standardsconventions.html"&gt;JavaScript coding standards/conventions&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.w3.org/TR/WCAG10-CSS-TECHS/"&gt;CSS Techniques for Web Content Accessibility Guidelines 1.0&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://morshed-alam.blogspot.com/2008/10/liquid-design-importance-and.html"&gt;Liquid design : Importance and Considerations&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-7231134896235945848?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/7231134896235945848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2010/01/css-coding-guidelinesconventions.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/7231134896235945848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/7231134896235945848'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2010/01/css-coding-guidelinesconventions.html' title='CSS coding guidelines/conventions'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-5642504576272870081</id><published>2009-11-10T00:36:00.000+07:00</published><updated>2011-12-30T02:06:42.456+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Html'/><category scheme='http://www.blogger.com/atom/ns#' term='Css'/><title type='text'>Implementation of fly-out flash message in your application</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Now a days usability is one of the major issues for web application. Many web applications with good functionality did not get enough popularity because lack of usability. Flash message is one of the most important things of any application which may improve usability of an application.&lt;br /&gt;&lt;br /&gt;Here, I have explain steps for implementing fly-out style flash message like as &lt;a href="http://twitter.com/" target="_blank"&gt;Twitter&lt;/a&gt;, &lt;a href="http://www.gmail.com/" target="_blank"&gt;Gmail&lt;/a&gt; and &lt;a href="http://www.scrumpad.com/" target="_blank"&gt;Scrumpad&lt;/a&gt; etc.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 1:&lt;/b&gt; Add following JavaScript in your application which is for showing/hiding a message:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true; highlight: [11,12,20]; "&gt;function showFlashMessage(message, message_type)&lt;br /&gt;{&lt;br /&gt; var FMD = document.getElementById('flash_message_div');&lt;br /&gt; message_type = (typeof(message_type) != 'undefined' &amp;amp;&amp;amp; message_type != '') ? message_type : 'success';&lt;br /&gt; message = message.replace(/^\s+/,""); //remove blank space from left&lt;br /&gt; message = message.replace(/^\s+|\s+$/g,"");//remove blank space from right&lt;br /&gt;&lt;br /&gt; if(message != '')&lt;br /&gt; {&lt;br /&gt;   FMD.childNodes[1].innerHTML = message;&lt;br /&gt;   FMD.className = message_type;&lt;br /&gt;   //FMD.slideDown();&lt;br /&gt;   FMD.style.display = 'block';&lt;br /&gt;   window.setTimeout("hideFlashMessage()", 6000);&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function hideFlashMessage()&lt;br /&gt;{&lt;br /&gt; var FMD = document.getElementById('flash_message_div');&lt;br /&gt; //FMD.fade();&lt;br /&gt; FMD.style.display = 'none';&lt;br /&gt;}&lt;/pre&gt;In the above code,&lt;br /&gt;Line 11 is used to set css className for success and failure message to show different type message.&lt;br /&gt;Line 12 and 20 used to add visual effect during show/hiding a message by Prototype library.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 2:&lt;/b&gt; Add following Css style in your application:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true; highlight: [17,21,27,32];"&gt;#flash_message_div&lt;br /&gt;{&lt;br /&gt; left: 0;&lt;br /&gt; z-index: 999;&lt;br /&gt; position: absolute;&lt;br /&gt; width: 100%;&lt;br /&gt; text-align: center;&lt;br /&gt; vertical-align: middle;&lt;br /&gt; font-size: 16px;&lt;br /&gt; font-weight: bold;&lt;br /&gt; display: none;&lt;br /&gt;&lt;br /&gt; filter: alpha(opacity=90);&lt;br /&gt; filter: progid:DXImageTransform.Microsoft.Alpha(opacity=90);&lt;br /&gt; -moz-opacity: 0.9;&lt;br /&gt; opacity:0.9;&lt;br /&gt;}&lt;br /&gt;div#flash_message_div&lt;br /&gt;{&lt;br /&gt; top: expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );&lt;br /&gt;}&lt;br /&gt;div &amp;gt; div#flash_message_div&lt;br /&gt;{&lt;br /&gt; position: fixed;&lt;br /&gt; top: 0px;&lt;br /&gt; vertical-align:middle;&lt;br /&gt;}&lt;br /&gt;div.success&lt;br /&gt;{&lt;br /&gt; background-color: #709397;&lt;br /&gt; color: #FFFFFF;&lt;br /&gt;}&lt;br /&gt;div.failure&lt;br /&gt;{&lt;br /&gt; background-color: #709397;&lt;br /&gt; color: red;&lt;br /&gt;}&lt;br /&gt;div#flash_message_div div&lt;br /&gt;{&lt;br /&gt; padding:10px;&lt;br /&gt;}&lt;/pre&gt;In the above css,&lt;br /&gt;Line 17-26 is used to adjust flash message in any resolution.&lt;br /&gt;&lt;b&gt;.success&lt;/b&gt; and &lt;b&gt;.error&lt;/b&gt; class is used to show different type message for success and failure.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 3:&lt;/b&gt; Now add given Html code under top of the body section for flash message:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true; highlight: [2,6];"&gt;&amp;lt;div id="flash_message_div" class="success"&amp;gt;&lt;br /&gt; &amp;lt;div&amp;gt;&lt;br /&gt;   &amp;lt;!-- Call showFlashMessage(); method from here by app language(PHP, .Net etc) --&amp;gt;&lt;br /&gt; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/pre&gt;&lt;br /&gt;To use it during Ajax request just call showFlashMessage() method with parameters.&lt;br /&gt;Hopefully it will be very helpful for all to improve usability of your application. Enjoy!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-5642504576272870081?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/5642504576272870081/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2009/11/implementation-of-fly-out-flash-message.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/5642504576272870081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/5642504576272870081'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2009/11/implementation-of-fly-out-flash-message.html' title='Implementation of fly-out flash message in your application'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-3506990323257740544</id><published>2009-10-31T10:09:00.000+07:00</published><updated>2009-12-04T18:34:58.372+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Ruby on Rails in Bangladesh</title><content type='html'>&lt;a target="_blank" href="http://rubyonrails.org/"&gt;Ruby on Rails&lt;/a&gt; has created a buzz in the web development though everything is changing continuously in all over the world. It is open-source, free and highly productive technology which is creating a new highway to connect WEB.&lt;br /&gt;&lt;br /&gt;It facilitates web-developers to write good code and providing a beautiful atmosphere with the considerable decrease in the code length and volume. Also capable to challenge big caps like &lt;a target="_blank" href="http://www.asp.net/"&gt;Microsoft ASP.Net&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Currently, we did not have enough RoR developers in Bangladesh but growing day by day. &lt;a target="_blank" href="http://www.code71.com/AboutCode71/OurTeam/tabid/57/Default.aspx"&gt;Code71&lt;/a&gt; are working on RoR from three years ago (from the very beginning of Bangladesh). I am one of them and feel proud to work on RoR in Code71.&lt;br /&gt;&lt;br /&gt;One of our best applications is &lt;a target="_blank" href="http://www.scrumpad.com/"&gt;Scrumpad.com&lt;/a&gt; (Agile project management and collaboration tool) which was built on RoR. We have a good number of paid clients who takes the service and manages their project using &lt;a target="_blank" href="http://www.scrumpad.com/"&gt;Scrumpad&lt;/a&gt;. Also we are providing efficient service in Ruby on Rails.&lt;br /&gt;&lt;br /&gt;Hopefully, in near future Ruby on Rails community will be the largest one in Bangladesh!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-3506990323257740544?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/3506990323257740544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2009/10/ruby-on-rails-in-bangladesh.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/3506990323257740544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/3506990323257740544'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2009/10/ruby-on-rails-in-bangladesh.html' title='Ruby on Rails in Bangladesh'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-6205596878677272762</id><published>2009-09-04T16:31:00.000+07:00</published><updated>2011-12-30T02:10:36.946+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Html'/><category scheme='http://www.blogger.com/atom/ns#' term='Css'/><title type='text'>How to print a hidden block of an HTML page?</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;One of my previous blog I have written "&lt;a href="http://morshed-alam.blogspot.com/2009/04/how-to-prevent-print-block-of-html-page.html"&gt;How to prevent printing a block of an HTML page?&lt;/a&gt;" then some of my blog readers wanted to know how he/she can print a hidden block? That's why I have written this one. Anyone can do it by using simple css which is described below:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;First&lt;/span&gt;, Have to write a css class by which you can hide a block from an Html page.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Second&lt;/span&gt;, Override that one in your 'print block css' to show it during printing.&lt;br /&gt;&lt;br /&gt;Let's have a look at the css example:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true; highlight: [2,6];"&gt;&lt;br /&gt;  &amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;    .print_this{display:none;}&lt;br /&gt;&lt;br /&gt;    @media print {&lt;br /&gt;     .noprint{display: none;}&lt;br /&gt;     .print_this {&lt;br /&gt;       display: block;&lt;br /&gt;     }&lt;br /&gt;    }&lt;br /&gt;  &amp;lt;/style&amp;gt;  &lt;/pre&gt;&lt;br /&gt;In the above css, &lt;br /&gt;2nd line is used to hide a block from Html page which is overriden in 6th, 7th and 8th line.&lt;br /&gt;5th line is used to prevent printing of a block which class name is noprint.&lt;br /&gt;&lt;br /&gt;Now let's take an Html source example:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true; highlight: [5,9,20];"&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt; &amp;lt;head&amp;gt;&lt;br /&gt;  &amp;lt;title&amp;gt;Print controll of an Html page&amp;lt;/title&amp;gt;&lt;br /&gt;  &amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;    .print_this{display:none;}&lt;br /&gt;&lt;br /&gt;    @media print {&lt;br /&gt;     .noprint{display: none;}&lt;br /&gt;     .print_this {&lt;br /&gt;       display: block;&lt;br /&gt;     }&lt;br /&gt;    }&lt;br /&gt;  &amp;lt;/style&amp;gt;&lt;br /&gt; &amp;lt;/head&amp;gt;&lt;br /&gt; &amp;lt;body&amp;gt;&lt;br /&gt;  &amp;lt;div&amp;gt;&lt;br /&gt;   &amp;lt;div class="noprint"&amp;gt;Sample text block which will not print...&amp;lt;/div&amp;gt;&lt;br /&gt;   &amp;lt;div&amp;gt;&amp;lt;h3&amp;gt;Sample text block which will print normally&amp;lt;/div&amp;gt;&lt;br /&gt;   &amp;lt;div class="noprint"&amp;gt;Another text block which will not print...&amp;lt;/div&amp;gt;&lt;br /&gt;   &amp;lt;div class="print_this"&amp;gt;Hidden text block to print&amp;lt;/div&amp;gt;&lt;br /&gt;  &amp;lt;/div&amp;gt;&lt;br /&gt; &amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;br /&gt;In the above HTML will print following lines when print this page from File &amp;gt; Print&lt;br /&gt;&lt;pre class="brush: js; toolbar: true; highlight: [1];"&gt;&lt;br /&gt;Sample text block which will print normally&lt;br /&gt;Hidden text block to print&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-6205596878677272762?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/6205596878677272762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2009/12/how-to-print-hidden-block-of-html-page.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/6205596878677272762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/6205596878677272762'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2009/12/how-to-print-hidden-block-of-html-page.html' title='How to print a hidden block of an HTML page?'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-5103041935557057100</id><published>2009-08-28T05:17:00.000+07:00</published><updated>2011-10-19T12:02:48.987+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySql'/><category scheme='http://www.blogger.com/atom/ns#' term='Error'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>Out of range value adjusted for column error</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;This is a known bug of MySql5 which I got while customizing one of my PHP projects. In the older version of MySql offered lots of freedom to  developers. Previously anything can insert/modify into its tables but it does not seem to be practical anymore.&lt;br /&gt;&lt;br /&gt;No need to worry about the error. You can fix it easily. Below are the reason and solutions for this error...&lt;br /&gt;&lt;br /&gt;&lt;span class="subtitle"&gt;Reason:&lt;/span&gt;&lt;br /&gt;Let's see an example query:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;Insert into users(id, name, country) values(‘’, ‘Morshed Alam’,’Bangladesh’);&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;In the above query “id” is an integer field and trying to insert empty string into it. That’s why MySql encountered the error.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="subtitle"&gt;Solutions:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Rewrite the query correctly. Below is the example to write above query correctly.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;Insert into users(id, name, country) values(‘1’, ‘Morshed Alam’,’Bangladesh’);&lt;/code&gt;&lt;br /&gt;or&lt;br /&gt;&lt;code&gt;Insert into users(id, name, country) values(1, ‘Morshed Alam’,’Bangladesh’);&lt;/code&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Login to mysql shell and off sql_mode by following command:&lt;br /&gt;&lt;code&gt;SET GLOBAL SQL_MODE=”;&lt;/code&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Revert your MySql into older version(ex. MySql 4)&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Related link:&lt;br /&gt;&lt;a href="http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html" target="_blank"&gt;http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-5103041935557057100?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/5103041935557057100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2009/08/out-of-range-value-adjusted-for-column.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/5103041935557057100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/5103041935557057100'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2009/08/out-of-range-value-adjusted-for-column.html' title='Out of range value adjusted for column error'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-1326408889935198371</id><published>2009-07-10T17:55:00.000+07:00</published><updated>2010-01-18T23:53:29.484+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Agile'/><category scheme='http://www.blogger.com/atom/ns#' term='scrum'/><title type='text'>Sprint review meeting is very helpful in Agile/Scrum process for project development</title><content type='html'>From April 2007 I am working for &lt;a href="http://www.code71.com/" target="_blank"&gt;Code71&lt;/a&gt;  and developed all projects by using Agile/Scrum software development process.  Also we have developed &lt;a target="_blank" href="http://www.scrumpad.com/"&gt;Agile project management and collaboration tool&lt;/a&gt; during this time.&lt;br /&gt;&lt;br /&gt;Our sprint review meeting is very helpful in my point of view which is held on the test release day though agile suggest it on the last day of sprint. During this meeting we shows what works are accomplished in the sprint to make sure that all the works are enclosed correctly. It is type of demo of new features and not spend more than two hours.&lt;br /&gt;&lt;br /&gt;At that time we sit together and use projector to review our sprint works and discusses state of our works. Also recommend about the implementation if needed. Most of time we got many early feedbacks/recommendations from team members/product owner though we perform following things during implementation:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Design discussion&lt;/li&gt;&lt;li&gt;Write Unit/Functional/Integration test codes&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Also this session needs for the following reasons:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;To reduce risk.&lt;/li&gt;&lt;li&gt;To determine the overall project is on track?&lt;/li&gt;&lt;li&gt;For evaluating the delivered functionality.&lt;/li&gt;&lt;li&gt;Determining the sprint goal is achieve or not?&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;To know the details about Agile/Scrum project development process click to following links:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a target="_blank" href="http://en.wikipedia.org/wiki/Scrum_%28development%29"&gt;Scrum (development)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.mountaingoatsoftware.com/scrum"&gt;Introduction of Scrum Agile Process - Development&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.ibm.com/developerworks/websphere/techjournal/0907_hines/0907_hines.html"&gt;Implementing agile development in a waterfall project&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-1326408889935198371?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/1326408889935198371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2009/07/sprint-review-meeting-is-very-helpful.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/1326408889935198371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/1326408889935198371'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2009/07/sprint-review-meeting-is-very-helpful.html' title='Sprint review meeting is very helpful in Agile/Scrum process for project development'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-7255593037236918063</id><published>2009-06-06T01:12:00.000+06:00</published><updated>2010-01-18T23:48:18.925+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Resources'/><title type='text'>Import contacts from Address Book</title><content type='html'>For one of my PHP project, I have written a class to import contacts from yahoo address book and at the same time search in web for others email provider such as Gmail, Hotmail etc. to save my time. Then I found an excellent open source plugins to import contacts (address book) named &lt;a target="_blank" href="http://openinviter.com/"&gt;OpenInviter&lt;sup&gt;TM&lt;/sup&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;It is written in PHP5 and free for all. Anyone can customize and use it easily. Also it has ‘Tell a friend’ features. Currently it supports:&lt;ul&gt;&lt;li&gt;57 Email Providers&lt;/li&gt;&lt;li&gt;21 CMS&lt;/li&gt;&lt;li&gt;45 Social Network Applications&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://openinviter.com/download.php" target="_blank"&gt;Click here&lt;/a&gt; to download the plugins.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-7255593037236918063?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/7255593037236918063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2009/06/import-contacts-from-address-book.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/7255593037236918063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/7255593037236918063'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2009/06/import-contacts-from-address-book.html' title='Import contacts from Address Book'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-2750784880060144234</id><published>2009-06-01T19:27:00.000+06:00</published><updated>2011-12-30T02:12:10.354+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Security'/><category scheme='http://www.blogger.com/atom/ns#' term='Html'/><title type='text'>Disable text selection on website by using javascript</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Sometimes you may need to disable text selection of an HTML page. It is very easy way how you can do it. Below is the source codes: &lt;br /&gt;&lt;pre class="brush: js; toolbar: true; first-line: 1;"&gt;&amp;lt;script type="text/javascript" language="JavaScript"&amp;gt;&lt;br /&gt;function disableText(e){&lt;br /&gt;  return false&lt;br /&gt;}&lt;br /&gt;function reEnable(){&lt;br /&gt;  return true&lt;br /&gt;}&lt;br /&gt;//For browser IE4+&lt;br /&gt;document.onselectstart = new Function ("return false")&lt;br /&gt;&lt;br /&gt;//For browser NS6&lt;br /&gt;if (window.sidebar){&lt;br /&gt;  document.onmousedown = disableText&lt;br /&gt;  document.onclick = reEnable&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;Just copy the above JavaScript codes into your page under head section. Then whatever you write in your page everything will show in read-only mode.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-2750784880060144234?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/2750784880060144234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2009/05/disable-text-selection-in-your-web-page.html#comment-form' title='16 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/2750784880060144234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/2750784880060144234'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2009/05/disable-text-selection-in-your-web-page.html' title='Disable text selection on website by using javascript'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>16</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-7215575373036444616</id><published>2009-05-17T02:36:00.000+06:00</published><updated>2011-12-30T02:12:29.910+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='.htaccess'/><title type='text'>Most useful htaccess tips and tricks</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;An .htaccess is a simple file which is being detected and executed by Apache Web Server. You may need to CHMOD the .htaccess file to 644. This makes the file usable by the server, but prevents it from being read by a browser, which can seriously compromise your security. Always you have to place .htaccess file to the root directory from where you want apply any tricks. It is widely known to use improve access control, implementing custom error page, hide actual URL, password protection and URL redirection etc. Below are some .htaccess tricks:&lt;br /&gt;&lt;br /&gt;&lt;span class="subtitle"&gt;Change URL:&lt;/span&gt;&lt;br /&gt;Sometimes you may need to hide actual URL from visitors. Say you have a page index.php which takes a parameter category_id but you want access it by category1.html, category2.html and category3.html etc where 1, 2 and 3 is the value of category_id. Below is the some sample code for this type of things.&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;RewriteEngine on&lt;br /&gt;RewriteRule ^category(.*).html$ index.php?category_id=$1 [L]&lt;br /&gt;RewriteRule ^page_(.*).html$ index.php?pagedb=$1 [L]&lt;br /&gt;RewriteRule ^index.html$ index.php&lt;/pre&gt;&lt;br /&gt;&lt;span class="subtitle"&gt;Show user friendly error page for different types of errors:&lt;/span&gt;&lt;br /&gt;A web application may occurred different types of error such as 404 – File Not Found’ etc. It is very easy and useful way to show user friendly error page for different types of error. Below is the example code to show custom page for error:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;RewriteEngine on&lt;br /&gt;ErrorDocument 400 /errors/badrequest.html&lt;br /&gt;ErrorDocument 401 /errors/unauthorized.html&lt;br /&gt;ErrorDocument 403 /errors/forbidden.html&lt;br /&gt;ErrorDocument 404 /errors/pagenotfound.html&lt;br /&gt;ErrorDocument 500 /errors/internalservererror.html&lt;/pre&gt;&lt;br /&gt;&lt;span class="subtitle"&gt;Change Directory Index:&lt;/span&gt;&lt;br /&gt;When any user request an URL or directory apache serve default directory index(which is loaded as your default page whenever a directory or url requested) page which is configured in httpd.conf but you can specify it easily. You can also specify multiple files. Apache will look from first to last file if found then will run that file:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;DirectoryIndex myfile.php main.php&lt;/pre&gt;In this case when a user request an URL/Directory then your site first look for myfile.php in your root directory if not found then look for main.php&lt;br /&gt;&lt;br /&gt;&lt;span class="subtitle"&gt;Redirects&lt;/span&gt;&lt;br /&gt;Sometimes you may need to redirect from old location to new one. You can do it in many ways but by .htaccess you can do it easily by following way:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;Redirect /oldloccation/index.html http://morshed-alam.blogspot.com&lt;/pre&gt;&lt;br /&gt;&lt;span class="subtitle"&gt;Deny/Allow IP&lt;/span&gt;&lt;br /&gt;Sometimes you may need prevent access your site from IP of allow only for specific IP address. You can do it easily by .htaccess. Below is the sample code to deny an IP address:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;order allow,deny&lt;br /&gt;deny from 192.168.0.1&lt;br /&gt;allow from all&lt;/pre&gt;Below is the sample code to access for specific IP address:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;&lt;br /&gt;order allow, deny&lt;br /&gt;deny from all&lt;br /&gt;allow from 192.168.0.1&lt;/pre&gt;&lt;br /&gt;&lt;span class="subtitle"&gt;Control Directory Access:&lt;/span&gt;&lt;br /&gt;If any DirectoryIndex file is not define in any directory and user request that directory browser shows all files of that directory. So sometimes you may need to restrict to access those file directly. You can restrict it easily by following sample code:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;IndexIgnore *&lt;/pre&gt;You can also restrict direct file access by extension. Below is the sample code to restrict all gif, pdf file from a directory&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;IndexIgnore *.gif *.pdf&lt;/pre&gt;&lt;br /&gt;&lt;span class="subtitle"&gt;Enabling SSI:&lt;/span&gt;&lt;br /&gt;You can esily enable and use SSI by htaccess. Sometimes hosting provider not support for SSI so before using this ask for permission to hosting provider. Below is the sample code to enable and use SSI:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;AddType text/html .shtml&lt;br /&gt;AddHandler server-parsed .shtml&lt;br /&gt;Options Indexes FollowSymLinks Includes&lt;/pre&gt;To use SSI no need to rename all of your pages to .shtml, just add below line between first and seconfd line which will force the server to parse every page names .html for SSI, even if they have no SSI commands:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;AddHandler server-parsed .html&lt;/pre&gt;&lt;br /&gt;&lt;span class="subtitle"&gt;Prevent viewing of .htaccess&lt;/span&gt;&lt;br /&gt;Below is the sample code to prevent viewing of .htaccess file:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;&amp;lt;Files .htaccess&amp;gt;&lt;br /&gt;order allow,deny&lt;br /&gt;deny from all&lt;br /&gt;&amp;lt;/Files&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;span class="subtitle"&gt;Prevent Delete&lt;/span&gt;&lt;br /&gt;Below is the sample code to prevent to delete:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;&amp;lt;Limit PUT DELETE&amp;gt;&lt;br /&gt;order deny,allow&lt;br /&gt;deny from all&lt;br /&gt;&amp;lt;/Limit&amp;gt;&lt;/pre&gt;You can do lots of other things by using .htaccess such as Login, Adding Mime Type etc.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-7215575373036444616?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/7215575373036444616/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2009/05/htaccess-tips-and-tricks.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/7215575373036444616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/7215575373036444616'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2009/05/htaccess-tips-and-tricks.html' title='Most useful htaccess tips and tricks'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-5594218139128638726</id><published>2009-05-12T18:31:00.000+06:00</published><updated>2009-07-31T01:11:19.609+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>What should be your approach to establish in your life?</title><content type='html'>&lt;span class="subtitle"&gt;In my professional life I have seen people having said following things:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;    I feel frustrated about my status.&lt;/li&gt;&lt;li&gt;I am confused what should I learn?&lt;/li&gt;&lt;li&gt;    How should I learn?&lt;/li&gt;&lt;li&gt;How can I learn?&lt;/li&gt;&lt;li&gt;I am not interested in subject "Database" or "Design" etc.&lt;/li&gt;&lt;li&gt;I Know enough!!!&lt;/li&gt;&lt;li&gt;I have not enough time to learn.&lt;/li&gt;&lt;li&gt;I don't know my goal etc.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span class="subtitle"&gt;I want to say the following things for them:&lt;/span&gt;&lt;ul&gt;&lt;li&gt;    Don't feel you have learnt enough because nothing is enough. So Learn, Learn and Learn....&lt;/li&gt;&lt;li&gt;    See what other people are doing who is established in professional life and think about them.&lt;/li&gt;&lt;li&gt;    Try to find, what they did and what they didn't do?&lt;/li&gt;&lt;li&gt;    Think about you, what are you doing? Are you doing the right things?&lt;/li&gt;&lt;li&gt;    If not then why you are not doing this?&lt;/li&gt;&lt;li&gt;    Define and prepare your goal...&lt;/li&gt;&lt;li&gt;    Determination the plan to achieve that goal.&lt;/li&gt;&lt;li&gt;    Now prepare the steps to achieve your goal.&lt;/li&gt;&lt;li&gt;    Don't try to achieve it at once. Start from first step...&lt;/li&gt;&lt;li&gt;    Always think what are you doing? Are you doing in the best way?&lt;/li&gt;&lt;li&gt;    Try to find the best approach if you are not following the best way.&lt;/li&gt;&lt;li&gt;    Put your experience in your work.&lt;/li&gt;&lt;li&gt;    Always try to learn anything you are feeling uncomfortable.&lt;/li&gt;&lt;li&gt;    Never stop your learning....&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Once upon a time one of my &lt;a target="_blank" href="http://www.linkedin.com/in/thisisshubho"&gt;favorite person&lt;/a&gt; told me that "&lt;span style="font-weight: bold;"&gt;If I read one hour, I deposit money to bank&lt;/span&gt;". &lt;a target="_blank" href="http://shubho-bd.blogspot.com/2009/03/what-do-you-need-to-learn.html"&gt;Click here&lt;/a&gt; to see his relative post.&lt;br /&gt;&lt;br /&gt;Keep in your mind that, learning is a type of investment. You will surely get return for your investment. Take a look at the &lt;a target="_blank" href="http://docs.google.com/fileview?id=0B5Xhvym8cJW2MmFiYzkyNWEtNDcyNC00YWYwLTk0MWMtMjc2NGY3Njk1ZmNm&amp;hl=en"&gt;biography of our governor Atiur Rahman&lt;/a&gt; to get inspiration.&lt;br /&gt;&lt;br /&gt;By reading the biography of our governor you will believe that, if you really want to achieve something in your life, you can…..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-5594218139128638726?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/5594218139128638726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2009/05/what-should-be-your-approach-to.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/5594218139128638726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/5594218139128638726'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2009/05/what-should-be-your-approach-to.html' title='What should be your approach to establish in your life?'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-5540703757191921677</id><published>2009-04-13T00:10:00.000+06:00</published><updated>2011-12-30T02:13:26.993+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Security'/><category scheme='http://www.blogger.com/atom/ns#' term='Html'/><category scheme='http://www.blogger.com/atom/ns#' term='Css'/><title type='text'>How to prevent print a block of an HTML page?</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Sometimes you may need to prevent printing a block of an html page. You can do it easily. Create a CSS class by following way and add it to your header section:&lt;br /&gt;&lt;pre class="brush: css; highlight: [2]; toolbar: true;"&gt;&amp;lt;style type="text/css" media = "print"&amp;gt;&lt;br /&gt;.noprint{display: none;}&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;/pre&gt;&lt;br /&gt;Note that the media of the css script will be print. Now simply add the css class noprint to any elements in your HTML which you do not want to printed.&lt;br /&gt;&lt;br /&gt;Below is the sample example to prevent printing a block:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true; highlight: [4,5,6, 10,12];"&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;Prevent to printing a block of an html&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;style type="text/css" media = "print"&amp;gt;&lt;br /&gt;.noprint{display: none;}&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;div&amp;gt;&lt;br /&gt;  &amp;lt;div class="noprint"&amp;gt;This is the sample block which will not print...&amp;lt;/div&amp;gt;&lt;br /&gt;  &amp;lt;div&amp;gt;&amp;lt;h3&amp;gt;This is the sample text which will print when print this page from File &amp;gt; Print&amp;lt;/h3&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;  &amp;lt;div class="noprint"&amp;gt;This is another block which will not print...&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;br /&gt;Just make a html page by above code and print it from &lt;b&gt;File &amp;gt; Print&lt;/b&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-5540703757191921677?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/5540703757191921677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2009/04/how-to-prevent-print-block-of-html-page.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/5540703757191921677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/5540703757191921677'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2009/04/how-to-prevent-print-block-of-html-page.html' title='How to prevent print a block of an HTML page?'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-8558692404089188467</id><published>2009-03-13T14:05:00.000+06:00</published><updated>2011-12-30T02:15:13.808+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Html'/><category scheme='http://www.blogger.com/atom/ns#' term='Css'/><title type='text'>Background color or image problem of an iFrame in IE</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Few days ago I have faced background image problem for iFrame in IE and search in web for the solution but i did not get any help. Then I have tried to solve it and finally I have solved this by using following two attributes &lt;code&gt;background: transparent;&lt;/code&gt; and &lt;code&gt;background-color: transparent;&lt;/code&gt; &lt;br /&gt;Below is the source HTML of main page from where iFrame has been included which is used frame.html: &lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: js; toolbar: true; highlight: [6,7]"&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt; &lt;br /&gt;&amp;lt;title&amp;gt;iFrame&amp;lt;/title&amp;gt; &lt;br /&gt;&amp;lt;style type="text/css"&amp;gt; &lt;br /&gt;.iframe { &lt;br /&gt; background: transparent; &lt;br /&gt; background-image: url('sample.jpg'); &lt;br /&gt;} &lt;br /&gt;&amp;lt;/style&amp;gt; &lt;br /&gt;&amp;lt;/head&amp;gt; &lt;br /&gt;&amp;lt;body&amp;gt; &lt;br /&gt;&amp;lt;iframe src="frame.html" height="100%" width="100%" allowtransparency="true" class="iframe"&amp;gt;&amp;lt;/iframe&amp;gt; &lt;br /&gt;&amp;lt;/body&amp;gt; &lt;br /&gt;&amp;lt;/html&amp;gt; &lt;/pre&gt;&lt;br /&gt;Below is the source code of frame.html:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true; highlight: [5]"&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt; &lt;br /&gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt; &lt;br /&gt;&amp;lt;/head&amp;gt; &lt;br /&gt;&amp;lt;body style="background-color: transparent;"&amp;gt; &lt;br /&gt;&amp;lt;table&amp;gt; &lt;br /&gt;&amp;lt;tr&amp;gt; &lt;br /&gt; &amp;lt;td height="200" width="300" valign="middle" align="center"&amp;gt; &lt;br /&gt;  Sample Text Sample Text Sample Text Sample Text Sample Text &lt;br /&gt;  Sample Text Sample Text Sample Text Sample Text Sample Text &lt;br /&gt;  Sample Text Sample Text Sample Text Sample Text Sample Text &lt;br /&gt;  Sample Text Sample Text Sample Text Sample Text Sample Text &lt;br /&gt;  Sample Text Sample Text Sample Text Sample Text Sample Text &lt;br /&gt; &amp;lt;/td&amp;gt; &lt;br /&gt;&amp;lt;/tr&amp;gt; &lt;br /&gt;&amp;lt;/table&amp;gt; &lt;br /&gt;&amp;lt;/body&amp;gt; &lt;br /&gt;&amp;lt;/html&amp;gt; &lt;/pre&gt;Though I have solved the background problem in IE by above code but i am suggesting to use color in place of image for following two reasons:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;It may create problem to load bulky file by Ajax request.&lt;/li&gt;&lt;li&gt;Sometimes it may flicker white color before loading file.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-8558692404089188467?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/8558692404089188467/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2009/05/background-color-or-image-problem-of.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/8558692404089188467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/8558692404089188467'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2009/05/background-color-or-image-problem-of.html' title='Background color or image problem of an iFrame in IE'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-8924065840442763436</id><published>2009-02-04T02:38:00.000+06:00</published><updated>2011-12-30T02:15:34.399+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><category scheme='http://www.blogger.com/atom/ns#' term='Resources'/><title type='text'>Ruby on Rails Plugins and uses</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Plugins is type of programming scripts by which either you can extend existing functionality or add new feature in your application. Plugins generally have well-defined boundary to their possible set of actions. There are many reason to use plug-ins, some of the main reasons are:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;To reuse the code/functionality so that developer can avoid to built any feature from scratch.&lt;/li&gt;&lt;li&gt;To separate source code from existing code.&lt;/li&gt;&lt;li&gt;To reduce the size of application.&lt;/li&gt;&lt;li&gt;To give other developer to create capabilities to extend application.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;The installation process of plugins are very easy. By following command you can install your plugins in your application from command prompt easily:&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;&amp;lt;your project path&amp;gt; ruby script/plugin install protocol://host.com/path/to/plugin/repository&lt;/pre&gt;&lt;br /&gt;There are lots of plugins for Ruby on Rails which you can use easily. Following is the link where you will get lots of plug-ins link.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://agilewebdevelopment.com/plugins" target="_blank"&gt;Agile Web Development plugins&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.railslodge.com/plugins" target="_blank"&gt;Rails Lodge&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;You can write a plugins and publish too. Following are the link by where you can you can learn how to write a plugins:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://railsforum.com/viewtopic.php?id=682" target="_blank"&gt;HOWTO: Make A Rails Plugin From Scratch&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://guides.rubyonrails.org/plugins.html" target="_blank"&gt;The Basics of Creating Rails Plugins&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-8924065840442763436?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/8924065840442763436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2009/02/ruby-on-rails-plugins-and-uses.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/8924065840442763436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/8924065840442763436'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2009/02/ruby-on-rails-plugins-and-uses.html' title='Ruby on Rails Plugins and uses'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-4408771170250612878</id><published>2009-01-11T04:13:00.000+06:00</published><updated>2011-12-30T02:16:22.809+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><category scheme='http://www.blogger.com/atom/ns#' term='TDD'/><title type='text'>Implementation of CruiseControl.rb and RCov</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;a href="http://cruisecontrolrb.thoughtworks.com/" target="_blank"&gt;CruiseControl.rb&lt;/a&gt; is Ruby based continuous integration tool which is used for continuous build process including testing, email notification. Also provide the details of all build.&lt;br /&gt;&lt;br /&gt;On the other hand, &lt;a href="http://eigenclass.org/hiki.rb?rcov" target="_blank"&gt;RCov&lt;/a&gt; is very well known code coverage tool for Ruby. It is used to get the information of test coverage.&lt;br /&gt;&lt;br /&gt;These two tools are so good together and their implementation is incredibly simple which is describe below:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Download:&lt;/b&gt; &lt;a href="http://rubyforge.org/frs/?group_id=2918" target="_blank"&gt;Click here&lt;/a&gt; to download. After completing the download unpack it.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Add project:&lt;/b&gt; Go to the unpacked directory from command prompt and execute following command:&lt;br /&gt;&lt;i&gt;&lt;code&gt;cruise add &amp;lt;project-name&amp;gt; --url &amp;lt;project-url&amp;gt;&lt;/code&gt;&lt;/i&gt;.&lt;br /&gt;This will create a directory under cruise data, then checks out your project to ./cruise/projects/&amp;lt;project name&amp;gt;/work/&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Start Cruise:&lt;/b&gt; Execute command: &lt;code&gt;&lt;i&gt;cruise start&lt;/i&gt;&lt;/code&gt;. It will run your CrouiseControl on port 3333. Browse - http://localhost:3333/. If everything is going well, you will see the the CruiseControl dashboard with project list. You can build your project and see the build report.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Create database:&lt;/b&gt; You have to create test database and edit database.yml to connect with database, performing rake RAILS_ENV=test db:migrate, running rake test and making sure that it passes.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Install rails_rcov:&lt;/b&gt; Install RCov gem to CruiseControl server by using &lt;code&gt;&lt;i&gt;gem install RCov&lt;/i&gt;&lt;/code&gt; and plugin to project folder by using following command: &lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt; ruby script/plugin install http://svn.codahale.com/rails_rcov&lt;/pre&gt;&lt;b&gt;Add rake task:&lt;/b&gt; If you installed the plugin into your project you have some useful rake tasks. Now you have to add “cruise.rake” task to the “lib/tasks” directory of your Ruby on Rails project with following:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;desc 'Continuous build target'&lt;br /&gt;task :cruise do&lt;br /&gt;out = ENV['CC_BUILD_ARTIFACTS']&lt;br /&gt;mkdir_p out unless File.directory? out if out&lt;br /&gt;&lt;br /&gt;ENV['SHOW_ONLY'] = 'models,lib,helpers'&lt;br /&gt;Rake::Task["test:units:rcov"].invoke&lt;br /&gt;mv 'coverage/units', "#{out}/unit test coverage" if out&lt;br /&gt;&lt;br /&gt;ENV['SHOW_ONLY'] = 'controllers'&lt;br /&gt;Rake::Task["test:functionals:rcov"].invoke&lt;br /&gt;mv 'coverage/functionals',"#{out}/functional test coverage" if out&lt;br /&gt;&lt;br /&gt;Rake::Task["test:integration"].invoke&lt;br /&gt;end&lt;/pre&gt;That’s all, now your project has code coverage. You can browse the source within the browser from dashboard and see which lines are covered and which are not. Enjoy!!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-4408771170250612878?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/4408771170250612878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2008/09/implementation-of-cruisecontrolrb-and.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/4408771170250612878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/4408771170250612878'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2008/09/implementation-of-cruisecontrolrb-and.html' title='Implementation of CruiseControl.rb and RCov'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-6518307519686211603</id><published>2008-12-03T03:43:00.000+06:00</published><updated>2009-05-09T23:11:46.297+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><category scheme='http://www.blogger.com/atom/ns#' term='Resources'/><title type='text'>Most useful tutorials to develop web application using Ruby on Rails</title><content type='html'>Some of my friends asked me how he/she can develop web application using Ruby on Rails. So I have written following two articles about web development using Ruby on Rails:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://morshed-alam.blogspot.com/2008/10/developing-web-application-using-ruby.html"&gt;Developing Web Application using Ruby on Rails&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://morshed-alam.blogspot.com/2008/11/how-can-i-create-sample-application.html"&gt;How can I create sample application using Ruby on Rails?&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Also, I am sharing some tutorials that I found most useful to develop web application using Ruby on Rails which is listed below:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a target="_blank" href="http://node1.nirvanix.com/bFVgfirL%7EwD2xcWLh_E%7EKgWruhQw%7ED_kdJjomHI%7Ew1RPJGo/FreeDrive/fd_37243/ruby%20on%20rails/Agile_Web_Development_With_Rails-Beta.pdf?disposition=attachment"&gt;Agile Web Development with Rails&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://books.google.com/books?id=BaWayIR0CvkC&amp;amp;pg=PA166&amp;amp;lpg=PA166&amp;amp;dq=how+can+i+secure+database.yml+%2B+RoR&amp;amp;source=bl&amp;amp;ots=Ju7EADJ5G3&amp;amp;sig=2T-mAeuSAWfcMyEImNJ2rWJC_3k&amp;amp;hl=en&amp;amp;ei=lbUFSr6hIM_DsgbDwsGnCA&amp;amp;sa=X&amp;amp;oi=book_result&amp;amp;ct=result&amp;amp;resnum=5#PPA185,M1"&gt;Beginning Ruby on Rails&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://books.google.com/books?id=QBp2qSknzRIC&amp;amp;printsec=frontcover"&gt;Ruby on Rails for PHP and Java Developer&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://peepcode.com/system/previews/peepcode-code-review-draft-preview.pdf"&gt;Ruby on Rails code Review&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.drivehq.com/file/df.aspx?isGallary=true&amp;amp;shareID=43383&amp;amp;fileID=5978853&amp;amp;forcedDownload=true"&gt;Four Days on Rails&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://poignantguide.net/ruby/whys-poignant-guide-to-ruby.pdf"&gt;Why's(poignant) guide to &lt;b&gt;ruby&lt;/b&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.slash7.com/presentations/ajax_on_rails.pdf"&gt;Ajax on Rails&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://media.pragprog.com/titles/fr_rr/Tagging.pdf"&gt;Rails Recipes&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.testingeducation.org/conference/wtst3_pettichord_rm2.pdf"&gt;Programming in Ruby&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.blainekendall.com/uploads/RubyOnRails-Cheatsheet-BlaineKendall.pdf"&gt;Ruby On Rails – A Cheatsheet&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://maximilien.org/tutorials/2006/ws_on_rails/Web_Services_on_Rails_1_slide_per_page.pdf"&gt;Web Services on Rails&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://api.rubyonrails.org/"&gt;Rails Framework Documentation&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://corelib.rubyonrails.org/"&gt;Ruby Core&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://stdlib.rubyonrails.org/"&gt;Ruby Standard Library Documentation&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://guides.rubyonrails.org/"&gt;Rails Guide&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://developer.apple.com/tools/rubyonrails.html"&gt;Web Development on Mac OS X using Ruby on Rails&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://keithpitty.org/presentations/capistrano/GettingStartedWithCapistrano.pdf"&gt;Getting Started with Capistrano in Ten Easy Steps&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Hopefully above articles and tutorial will be very helpful for anyone to develop web application using Ruby on Rails. For any other help contact with me, I will be pleased to help you.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-6518307519686211603?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/6518307519686211603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2008/12/most-useful-tutorial-to-develop-web.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/6518307519686211603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/6518307519686211603'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2008/12/most-useful-tutorial-to-develop-web.html' title='Most useful tutorials to develop web application using Ruby on Rails'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-6440841325281536711</id><published>2008-11-30T14:36:00.000+06:00</published><updated>2011-12-30T02:19:54.742+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><title type='text'>How can I create sample application using Ruby on Rails?</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;To create a sample web application using Ruby on Rails needs to setup environment first which I explain in my &lt;a href="http://morshed-alam.blogspot.com/2008/10/developing-web-application-using-ruby.html"&gt;previous blog&lt;/a&gt;. Now we will create a sample application to manage (CRUD) user information by using &lt;a href="http://www.netbeans.org/downloads/index.html" target="_blank"&gt;NetBeans&lt;/a&gt; IDE.&lt;br /&gt;&lt;br /&gt;&lt;span class="subtitle"&gt;Below are the steps to create a sample application:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;In the &lt;span style="font-weight: bold;"&gt;NetBeans&lt;/span&gt; IDE, choose &lt;span style="font-weight: bold;"&gt;File&lt;/span&gt; &amp;gt; &lt;span style="font-weight: bold;"&gt;New Project&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;Select Ruby in the Categories field and Ruby on Rails Application in the Projects field. Click Next.&lt;/li&gt;&lt;li&gt;Type &lt;span style="font-weight: bold;"&gt;sampleapplication&lt;/span&gt; in the Project Name field.&lt;/li&gt;&lt;li&gt;Select Ruby as a platform in place of JRuby in Ruby Platform field. Accept all the other default settings.&lt;/li&gt;&lt;li&gt;Click Finish to create the new project. You will see a list of files in the project directory and &lt;span style="font-weight: bold;"&gt;database.yml&lt;/span&gt; file in the editing area.&lt;/li&gt;&lt;li&gt;Create a sample database and edit the database.yml by providing the database information in the development configuration.&lt;/li&gt;&lt;li&gt;Save the database.yml file.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span class="subtitle"&gt;Creating Model, View, Controller and migration script for user management:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Go to the project folder from command prompt and run following command:&lt;pre class="brush: js; toolbar: true;"&gt;ruby script/generate scaffold user name:string email:string address:text phone:string&lt;/pre&gt;It will create model, views, controller and migration script in respective directory in your project and below is the output for the command:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true; highlight: [1]"&gt;exists  app/models/&lt;br /&gt;exists  app/controllers/&lt;br /&gt;exists  app/helpers/&lt;br /&gt;create  app/views/users&lt;br /&gt;exists  app/views/layouts/&lt;br /&gt;exists  test/functional/&lt;br /&gt;exists  test/unit/&lt;br /&gt;create  test/unit/helpers/&lt;br /&gt;exists  public/stylesheets/&lt;br /&gt;create  app/views/users/index.html.erb&lt;br /&gt;create  app/views/users/show.html.erb&lt;br /&gt;create  app/views/users/new.html.erb&lt;br /&gt;create  app/views/users/edit.html.erb&lt;br /&gt;create  app/views/layouts/users.html.erb&lt;br /&gt;create  public/stylesheets/scaffold.css&lt;br /&gt;create  app/controllers/users_controller.rb&lt;br /&gt;create  test/functional/users_controller_test.rb&lt;br /&gt;create  app/helpers/users_helper.rb&lt;br /&gt;create  test/unit/helpers/users_helper_test.rb&lt;br /&gt;route  map.resources :users&lt;br /&gt;dependency  model&lt;br /&gt;exists    app/models/&lt;br /&gt;exists    test/unit/&lt;br /&gt;exists    test/fixtures/&lt;br /&gt;create    app/models/user.rb&lt;br /&gt;create    test/unit/user_test.rb&lt;br /&gt;create    test/fixtures/users.yml&lt;br /&gt;create    db/migrate&lt;br /&gt;create    db/migrate/20090504184109_create_users.rb&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;In the Projects window, right-click the sampleapplication node and choose&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Migrate Database &amp;gt; To Current Version&lt;/span&gt;.&lt;br /&gt;&lt;small&gt;&lt;span style="font-weight: bold;"&gt;Notes:&lt;/span&gt;&lt;i&gt; If it generates error then run &lt;span style="font-weight: bold;"&gt;gem install mysql&lt;/span&gt; command from command prompt and copy &lt;span style="font-weight: bold;"&gt;libmySQL.dll&lt;/span&gt; from C:\Program Files\MySQL\MySQL Server 5.0\bin to C:\ruby\bin.&lt;/i&gt;&lt;/small&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span class="subtitle"&gt;Run and test the Application:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Open routes.rb under configuration node of project folder.&lt;/li&gt;&lt;li&gt;Edit following line by removing # and change welcome to users.&lt;pre class="brush: js; toolbar: true;"&gt;# map.connect '', :controller =&amp;gt; "welcome" or&lt;br /&gt;# map.root :controller =&amp;gt; "welcome"&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Delete index.html under public node which is used to show default welcome page. Rails first look to this file then look to routes.rb to figure out what page to display.&lt;/li&gt;&lt;li&gt;In the Projects window, right-click the sampleapplication node and click to Run or you can run project from command prompt by following command under project:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true;"&gt;ruby script\server&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Project creation has been completed and you can browse it in &lt;span style="font-weight: bold;"&gt;http://127.0.0.1:3000&lt;/span&gt;&lt;br /&gt;Now you can create, edit, show and delete user by clicking respective link.&lt;br /&gt;&lt;br /&gt;&lt;span class="subtitle"&gt;Validating inputs:&lt;/span&gt;&lt;br /&gt;If you want to ensure users must provide values for both name and email fields, add following lines to User class under app/model folder of your project:&lt;br /&gt;&lt;pre class="brush: js; toolbar: true; highlight: [1]"&gt;class User &amp;lt; ActiveRecord::Base&lt;br /&gt;  validates_presence_of     :name, :email&lt;br /&gt;  validates_format_of       :email, :with =&amp;gt; /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/, :message =&amp;gt; "Invalid"&lt;br /&gt;end&lt;/pre&gt;&lt;br /&gt;Now system will give error message if you try to create user without name and email.&lt;br /&gt;&lt;br /&gt;OK, Finally we have completed the sample application with data validation. To continue development using Ruby on Rails and skills up you will get lots of resources in web.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://morshed-alam.blogspot.com/2008/12/most-useful-tutorial-to-develop-web.html"&gt;Click here for some good resources for Web development in Ruby on Rails&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-6440841325281536711?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/6440841325281536711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2008/11/how-can-i-create-sample-application.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/6440841325281536711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/6440841325281536711'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2008/11/how-can-i-create-sample-application.html' title='How can I create sample application using Ruby on Rails?'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-4316501641763022991</id><published>2008-10-08T23:24:00.000+06:00</published><updated>2010-02-06T12:47:14.400+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Memory overflow issue</title><content type='html'>I am writing this one to share my experience to you. In the very beginning of my professional career, I have developed an web application for Shylhet Chamber of Commerce using LAMP and delivered it successfully. Almost three months(Couldn't remind exactly) later we have notified from client that they couldn't log into the application. Then i had gone there and investigate the problem. First I was very confused because..&lt;br /&gt;&lt;ul&gt;&lt;li&gt;System not given any types of error message while trying to  log-in.&lt;/li&gt;&lt;li&gt;There is no error message in logger&lt;/li&gt;&lt;li&gt;There is no problem in code&lt;/li&gt;&lt;li&gt;Even though, tried to run a sample script in server but I didn't&lt;/li&gt;&lt;/ul&gt;Think about that, What was the condition that time!!!&lt;br /&gt;&lt;br /&gt;Then tried to narrow down the error scope by checking PHP, Apache, Mysql settings and check the application storage and got that "There is no space in document root." which was the culprit for this problem. Even though application couldn't flash a single message because there was no space to show a message.&lt;br /&gt;&lt;br /&gt;That's it.  So, I think anyone should keep it in mind about storage.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-4316501641763022991?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/4316501641763022991/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2008/10/memory-overflow-issue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/4316501641763022991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/4316501641763022991'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2008/10/memory-overflow-issue.html' title='Memory overflow issue'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-7303397092240285179</id><published>2008-10-04T13:30:00.000+06:00</published><updated>2011-12-30T02:21:15.380+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><title type='text'>Developing Web Application using Ruby on Rails</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Rails uses the MVC pattern to organize application programming. Its provides scaffolding which can automatically construct some of the models and views for website and intended to emphasize &lt;a href="http://en.wikipedia.org/wiki/Convention_over_Configuration" target="_blank"&gt;Convention over Configuration&lt;/a&gt;, and the rapid development principle(DRY) and it has various packages, namely &lt;a href="http://ar.rubyonrails.org/" target="_blank"&gt;ActiveRecord&lt;/a&gt;(for database access), &lt;a href="http://api.rubyonrails.org/classes/ActiveResource/Base.html" target="_blank"&gt;ActiveResource&lt;/a&gt;(web service), &lt;a href="http://ap.rubyonrails.org/" target="_blank"&gt;ActionPack&lt;/a&gt;, &lt;a href="http://as.rubyonrails.org/" target="_blank"&gt;ActiveSupport&lt;/a&gt; and &lt;a href="http://am.rubyonrails.org/" target="_blank"&gt;ActionMailer&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Developer can make plugins to extend existing packages. It is highly time consuming portion for a developer is the writing of reusable packages of codes that are often called during the main application – frame works.&lt;br /&gt;&lt;br /&gt;It’s built in web server &lt;a href="http://www.webrick.org/" target="_blank"&gt;WEBrick&lt;/a&gt; by default, but they do use Apache or Lighttpd. Has excellent potentiality in loading the extension libraries dynamically with less maintenance. Ruby creates an environment that makes the programmers to work more clearly, faster and be more meticulous and highly imaginative.&lt;br /&gt;&lt;br /&gt;Below are the steps to install Ruby on Rails on Windows:&lt;br /&gt;&lt;ul&gt;&lt;li&gt; Download ruby from ruby site or click here to download the ruby installation package.&lt;/li&gt;&lt;li&gt; Run the executable file with default setting unless you have specific needs.&lt;/li&gt;&lt;li&gt; Open command prompt and run following command: &lt;pre class="brush: js; toolbar: true;"&gt;gem install rails --include-dependencies&lt;/pre&gt;It will take some times to install all dependencies. Make sure that you are connected to internet.&lt;/li&gt;&lt;li&gt; Download the latest &lt;a href="http://dev.mysql.com/downloads/mysql/5.0.html#downloads" target="_blank"&gt;MySql&lt;/a&gt; and install with detailed configuration.&lt;/li&gt;&lt;li&gt; Run following command to update ruby gem: &lt;pre class="brush: js; toolbar: true;"&gt;gem update --system&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;Congratulation! The Ruby on Rails development environment setup has been completed. Now you can start developing web application using Ruby on Rails.&lt;br /&gt;&lt;br /&gt;You can see my another blog where I explain &lt;a href="http://morshed-alam.blogspot.com/2008/11/how-can-i-create-sample-application.html"&gt;how you can create a sample application using Ruby on Rails&lt;/a&gt;.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-7303397092240285179?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/7303397092240285179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2008/10/developing-web-application-using-ruby.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/7303397092240285179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/7303397092240285179'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2008/10/developing-web-application-using-ruby.html' title='Developing Web Application using Ruby on Rails'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-1563807446011765249</id><published>2008-09-11T10:15:00.000+06:00</published><updated>2011-09-29T13:49:21.002+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Html'/><category scheme='http://www.blogger.com/atom/ns#' term='Css'/><title type='text'>Liquid design : Importance and Considerations</title><content type='html'>The term "liquid" implies that a Website should flow smoothly into whatever space it is given. If you use a high resolution monitor, this may mean that you need to re-size your browser a little, which most people in that situation do. If you have a low resolution monitor, you will still see the information, it will just be a little more compact.&lt;br /&gt;&lt;br /&gt;If you do Liquid Design right, you should be able to make your pages display on almost anything and still make sense to the user.&lt;br /&gt;&lt;br /&gt;Not everyone has perfect vision, and many of your potential customers may indeed be blind. If you build your site using relative font units and percentage based widths for common elements, you'll already be making life a lot easier for a portion of your visitors. Maybe even many of them.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Importance of 'liquid design' in creating web design&lt;/b&gt;&lt;br /&gt;The goal of liquid design is providing similar experience to people and eliminate possible irritating design flaws such as too much white space, disappearance of certain sectors of information due to lack of space etc.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Resolution statistics and interpretation&lt;/b&gt;&lt;br /&gt;A web designer's task is to predict the available space the web site can use to display. One must consider first of all what the web site's target audience is. For example, people who work with computers every day (programmers, other designers etc) often like to have a "bigger picture" of things hence they are more likely to have high resolutions - 1024x768 or even higher. People who access the Internet from universities or educational institutes are likely to use older computers and may use 480x640 or 600x800 resolutions.&lt;br /&gt;&lt;br /&gt;Recent statistics show that most people use 1024x768 resolutions (nearly 44%) and 600x800 resolutions (50%). Until recently, the number of those who used 1024x768 resolutions was much lower, while 480x640 resolution was the preferred resolution by users. As technology evolves, the percentages change. Nowadays, web designers have started designing for the 600x800 and above.&lt;br /&gt;&lt;br /&gt;The effective screen space is smaller than the actual number of pixels (e.g. width of 800 pixels and height of 600 pixels for 600x800 resolutions). The reason is that people use up space by adding toolbars and different additional buttons to their browser window. For example, when designing for a 600x800 resolution the web designer should in fact design for 409x741 (width of 741 pixels and height of 409 pixels) although this is not fail-proof for every situation.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The secret of liquid layouts &lt;/b&gt;&lt;ul&gt;&lt;li&gt;work out a basic layout grid before you begin coding&lt;/li&gt;&lt;li&gt;include gutters so that your columns will not spread too wide&lt;/li&gt;&lt;li&gt;use percentage units for widths of all containers and gutters&lt;/li&gt;&lt;li&gt;do not define containers that use the full width of a page - allow for browser rendering issues (such as percentage rounding)&lt;/li&gt;&lt;/ul&gt; &lt;br /&gt;&lt;b&gt;Liquid Design: Can it be Done?&lt;/b&gt;&lt;br /&gt;Yes, without a doubt! Fixed layouts are slowly becoming a thing of the past. And the principles and considerations involved in creating a liquid layout (rather than a fixed layout) are very easy to implement on your site.&lt;br /&gt;&lt;br /&gt;However, the whole liquid idea does require a shift of focus. Stop thinking of the Web as a medium you can control, stop thinking for your users, and you'll be happier, your visitors will be happier, and the Web will be just a little more pleasant for everyone.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Is liquid design adequate for any web site?&lt;/b&gt;&lt;br /&gt;In order to make a decision whether liquid design is suitable for a web site, factors such as type of content, structure, amount of information must be taken in consideration. Liquid design is ideal for sites with a lot of information. The elasticity of such sites increases readability.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Pros and Cons of Liquid design..&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Pros:&lt;/b&gt; The major benefit of a liquid design is that the layout will adjust to fill a variety of resolutions. You can create a site that will work well at both low and high resolutions without all the empty space outside of the design. A liquid layout with it’s use of ‘em’ or percents instead of pixels will be more accessible to viewers with poor eyesight as they can more easily resize the text. It can also be easier to fit all of your content into the design for those viewers with higher resolution monitors.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Cons:&lt;/b&gt; A liquid design does have it’s drawbacks though .... It is time consuming. You do lose a certain amount of control over how everything will look and some of the empty space of a fixed design will work it’s way internally into the liquid design. There is also the issue of line length growing to wide which will make you text difficult to read. Using max-width is an option for browsers outside of Internet Explorer. IE will need it’s own workaround to keep your lines of text from becoming too wide. A liquid layout can often be more difficult and time consuming to develop and test.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://docs.google.com/leaf?id=0B5Xhvym8cJW2MTJiMTc1ZWUtMzM1MC00ODM1LTkyYjYtZTUwM2ViMDE4MjMy&amp;hl=en"&gt;Click here&lt;/a&gt; to download sample application on liquid design.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-1563807446011765249?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/1563807446011765249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2008/10/liquid-design-importance-and.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/1563807446011765249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/1563807446011765249'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2008/10/liquid-design-importance-and.html' title='Liquid design : Importance and Considerations'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-5633523082810647137</id><published>2008-08-21T14:46:00.000+06:00</published><updated>2011-09-29T13:49:29.853+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Html'/><title type='text'>Importance and considerations to make a user friendly web application</title><content type='html'>&lt;div class="MsoNormal"&gt;From my 4+ year’s professional experience I realized some important things to build user friendly website. Actually this will help to increase users of your website. These things are not big deal. Users first want a stable and easy application which is easy to use. After this they compare features with another application.&lt;/div&gt;&lt;div style="margin: 0px; padding: 3px;"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Always assume that a web user have a short attention spans. Remember that the user will use your site is interested in your contents, not the capabilities of design software. They will think usability in place of your internal architecture. So before building any web application, you need to consider who will access your site and how they use the features.&lt;/div&gt;&lt;div style="margin: 0px; padding: 3px;"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;I don’t think start-ups usually realize that it’s not only important to have a functioning site, but a &lt;i&gt;functional&lt;/i&gt; site as well.&lt;/div&gt;&lt;div style="margin: 0px; padding: 4px;"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;Check for errors regularly:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Every stable/unstable web application needs to be checked at least once a month for any broken links. Also you can get help some tools to check link; such as &lt;a href="http://www.webposition.com/product/webpositionpro/features.asp"&gt;Link Defender&lt;/a&gt;. Make sure that your site is stable and reliable in different browser and avoid any unnecessary downtime. Add details explanation for any failure.&lt;/div&gt;&lt;div style="margin: 0px; padding: 3px;"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Never assume that the viewers have the latest browser. If you have to include anything that will only work with the latest version, try to make sure that it is not crucial to the workings of your site&lt;/div&gt;&lt;div style="margin: 0px; padding: 3px;"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Other important things are to check spelling or grammatical mistakes. If needed, you can consult with trusted ones who can help you in this regards.&lt;/div&gt;&lt;div style="margin: 0px; padding: 4px;"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;Site working properly:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;This is the main thing for any application. Ensure that all things are working well which you provided. If any feature is not working well then you should not provide that feature.&lt;/div&gt;&lt;div style="margin: 0px; padding: 4px;"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;Consistent design layout:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;It is the most important thing for a web application. Try to keep your site consistent. Don't use too many fonts, especially special fonts that may not be available on the computer of the person viewing your site. Make sure to use a consistent design and layout for each page on your site. Ensure the same general text color scheme, logo, consistent navigation menu, button, list style, entry form and header and footer in the&lt;/div&gt;&lt;div class="MsoNormal"&gt;same place with consistent attributes. You should use template based design which will help u to create consistent design.&lt;/div&gt;&lt;div style="margin: 0px; padding: 4px;"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;Navigation structure:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Display meaningful navigation menus, logical headings, link descriptions and logical breadcrumbs (e.g. Home ? Products ? HDD) which will help users to know current browsing place and guide visitors. Add easy and meaningful links for next task and add help texts if needed. Use a text-based navigation menu instead of a graphical or drop-down JavaScript menu.&lt;/div&gt;&lt;div style="margin: 0px; padding: 4px;"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;Site map:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;You should include a text and image based site map with a link of every page, and add short details of every page. If you use good site map then you don’t have to add links to every page from your home page. Many sites use site maps, but does not update regularly and keep these well descriptive to find pages.&lt;/div&gt;&lt;div style="margin: 0px; padding: 4px;"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;Search tools and search engine:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;To build intuitive applications you need to provide search facility in the site. It will be helpful for users.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Ensure that your site is search engine compatible. If possible use texts in place of graphics. Avoid frames, flash and graphical text. Use logical title and META tags for each page and include meaningful keywords to META tag.&lt;/div&gt;&lt;div style="margin: 0px; padding: 4px;"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;Other things:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;To build an intuitive web application you should consider following things too:&lt;/div&gt;&lt;ul style="margin-top: 0in;" type="disc"&gt;&lt;li class="MsoNormal"&gt;Include      contact details. If you don’t provide the way to contact, then people will      hesitate to trust you. &lt;/li&gt;&lt;li class="MsoNormal"&gt;Add      feedback form so that anyone can give feedback which will help to build      excellent application.&lt;/li&gt;&lt;li class="MsoNormal"&gt;Use      simple language to understand which is helpful for all type of user’s      (regional users). Minimize texts as far as possible. You need to prioritize      user’s interest most. &lt;/li&gt;&lt;li class="MsoNormal"&gt;Make user      friendly URLs. A user friendly URL must be short, lowercase, plain      language and conventional. URLs are often the single barrier that prevents      millions of users from visiting a site.&lt;/li&gt;&lt;li class="MsoNormal"&gt;Always      try to minimize fancy stuffs.&lt;/li&gt;&lt;li class="MsoNormal"&gt;Remove      unnecessary image which will help to load your page quickly. &lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-5633523082810647137?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/5633523082810647137/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2008/08/importance-and-considerations-to-make.html#comment-form' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/5633523082810647137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/5633523082810647137'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2008/08/importance-and-considerations-to-make.html' title='Importance and considerations to make a user friendly web application'/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1770001802890288716.post-4038571287716553047</id><published>2008-07-25T23:33:00.000+06:00</published><updated>2009-08-15T00:36:37.471+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'></title><content type='html'>&lt;iframe src="http://spreadsheets.google.com/embeddedform?key=0ApXhvym8cJW2dG5qbHozbW1YcEFMcXkyS2E0QVZZUWc" width="747" height="715" frameborder="0" marginheight="0" marginwidth="0"&gt;Contact with me&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1770001802890288716-4038571287716553047?l=www.morshed-alam.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.morshed-alam.com/feeds/4038571287716553047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.morshed-alam.com/2008/07/contact-with-me.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/4038571287716553047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1770001802890288716/posts/default/4038571287716553047'/><link rel='alternate' type='text/html' href='http://www.morshed-alam.com/2008/07/contact-with-me.html' title=''/><author><name>Morshed Alam</name><uri>http://www.blogger.com/profile/09544532915489105337</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ob8TYbCmWUw/SflcVWb2qoI/AAAAAAAABLw/1Iu3GPYNVew/S220/iEoPk7TFZ3ywUMWSddqL4SxuD22qZajKORFOK2CG7ZKjyDIe71nOB0LBBiX_Bl-a.jpg'/></author><thr:total>0</thr:total></entry></feed>
