<?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-359659886549045799</id><updated>2011-11-28T05:55:41.199+06:00</updated><category term='Ruby on rails'/><category term='Microsoft Developer Guidance'/><category term='WEBrick server'/><category term='Ruby on rails 3'/><category term='mysql'/><category term='Sharepoint 2010'/><category term='asp.net'/><category term='mysql2'/><category term='ferret'/><category term='Internet Explorer 9'/><category term='windows phone 7 series'/><category term='ASP.NET MVC 3'/><category term='HTML 5'/><category term='Microsoft Office for mac'/><title type='text'>Second Thoughts</title><subtitle type='html'>Life is an infinite loop...need to figure out the break conditions...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>23</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-2714475237935168851</id><published>2011-07-24T16:50:00.000+06:00</published><updated>2011-07-24T16:50:38.909+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows phone 7 series'/><title type='text'>installing windows phone developers tools on windows server 2008 R2</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Many of us using Windows Server 2008 R2 as development workstations. But if you want to develop for windows phone 7 then you are out of luck as Windows Phone Developer tools does not allow you to install it on &amp;nbsp;Windows Server 2008 or later. It stops while bootstrapping. Luckily you can bypass the bootstrap error. Thanks to&amp;nbsp;Aaron Stebner for his blog post about this &lt;a href="http://blogs.msdn.com/b/astebner/archive/2010/05/02/10005980.aspx"&gt;here&lt;/a&gt;. Follow this steps to install it:&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Download the developers tools in ISO format from &lt;a href="http://go.microsoft.com/fwlink/?LinkId=201927"&gt;this location&lt;/a&gt; and mount it using your favorite virtual CD/DVD image loader&lt;/li&gt;&lt;li&gt;Now copy all the contents from the mounted drive to any folder you want say C:\wpd&lt;/li&gt;&lt;li&gt;Now edit the baseline.dat file using any text editing tool&lt;/li&gt;&lt;li&gt;Go to the&amp;nbsp;&lt;b&gt;[gencomp7788]&lt;/b&gt; section&lt;/li&gt;&lt;li&gt;Under this section find out&amp;nbsp;&lt;b&gt;InstallOnLHS&lt;/b&gt;&amp;nbsp;and change the value from 1 to 0&lt;/li&gt;&lt;li&gt;Again find out&amp;nbsp;&lt;b&gt;InstallOnWin7Server&lt;/b&gt;&amp;nbsp;within the same section and change the value from 1 to 0&lt;/li&gt;&lt;li&gt;Save the baseline.dat file and close it&lt;/li&gt;&lt;li&gt;Now run setup.exe&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;Now it won't check for the server edition and will be installed successfully...&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/359659886549045799-2714475237935168851?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/2714475237935168851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2011/07/installing-windows-phone-developers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/2714475237935168851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/2714475237935168851'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2011/07/installing-windows-phone-developers.html' title='installing windows phone developers tools on windows server 2008 R2'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-4564401274336115274</id><published>2011-07-24T16:21:00.000+06:00</published><updated>2011-07-24T16:21:05.869+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql2'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on rails 3'/><title type='text'>Install mysql2 gem on windows</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;If you are trying out the Rails 3 and you are stuck at not being able to install mysql2 gem on your windows pc. Just follow this steps to install it successfully (I used MySQL 5.5.9 version):&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Install MySQL 5.5.9&lt;/li&gt;&lt;li&gt;Copy&amp;nbsp;libmysql.dll from&amp;nbsp;C:\Program Files (x86)\MySQL\MySQL Server 5.5\lib [Mine was 64 bit windows, in 32 bit it must be Program Files only] to bin directory of your Ruby installation&lt;/li&gt;&lt;li&gt;Now open command prompt and run the following command: gem install mysql2 -- '--with-mysql-include="C:\Program Files (x86)\MySQL\MySQL Server 5.5\include" --with-mysql-lib="C:\Program Files (x86)\MySQL\MySQL Server 5.5\lib"'&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-leab2pjYWIo/TivxhJfHXiI/AAAAAAAAAIo/e-DG6QdDJ8g/s1600/mysql2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="91" src="http://2.bp.blogspot.com/-leab2pjYWIo/TivxhJfHXiI/AAAAAAAAAIo/e-DG6QdDJ8g/s400/mysql2.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Now its installed on windows...it was only about the extra config options and a bit of string escaping issue on windows command prompt...happy coding... &amp;nbsp;:)&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/359659886549045799-4564401274336115274?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/4564401274336115274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2011/07/install-mysql2-gem-on-windows.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/4564401274336115274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/4564401274336115274'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2011/07/install-mysql2-gem-on-windows.html' title='Install mysql2 gem on windows'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-leab2pjYWIo/TivxhJfHXiI/AAAAAAAAAIo/e-DG6QdDJ8g/s72-c/mysql2.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-3478051015951045839</id><published>2011-02-09T20:50:00.000+06:00</published><updated>2011-02-09T20:50:48.551+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on rails'/><title type='text'>Netbeans support for Ruby on rails is discontinued from Netbeans 7</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Recently Netbeans team announced that going forward from its IDE version 7 it will discontinue its support for Ruby on rails. That's disappointing news for all the existing users of Netbeans IDE. Here is the announcement:&amp;nbsp;&lt;a href="http://netbeans.org/community/news/show/1507.html"&gt;http://netbeans.org/community/news/show/1507.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/359659886549045799-3478051015951045839?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/3478051015951045839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2011/02/netbeans-support-for-ruby-on-rails-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/3478051015951045839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/3478051015951045839'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2011/02/netbeans-support-for-ruby-on-rails-is.html' title='Netbeans support for Ruby on rails is discontinued from Netbeans 7'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-7428190685693836559</id><published>2010-12-01T12:38:00.002+06:00</published><updated>2010-12-01T12:40:09.301+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on rails 3'/><title type='text'>Rubymine 3.0 ships with ruby 1.9.2+ debugging support on windows</title><content type='html'>On 29 November Jetbrain's latest Ruby on Rails IDE Rubymine 3.0 version shipped. I downloaded the trial version and installed it on my windows 7 and it was a nice experience.&lt;br /&gt;&lt;br /&gt;To say really I have been a fan of Netbeans IDE for my Rails application development. But I think this time Rubymine 3.0 will give a tough fight for Netbeans in terms of Rails IDE choice as Netbeans is more and more geared towards development of PHP and Java and very view updates are coming through for Ruby development in recent months.&amp;nbsp;As of Ruby 1.9+ debugging has been a pain on Netbeans on windows platforms. Rubymine has taken the initiative to solve the bugs of ruby-debug-ide gem and the recent 3.0 version is working great without any trouble debugging Rails applications.&lt;br /&gt;&lt;br /&gt;However, I hope that similar improvements will be coming through from Netbeans in near future as the progress in ruby world has a leap in recent times and if netbeans plans to hold the developers using netbeans as their Rails IDE then it's better to hurry!!! :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/359659886549045799-7428190685693836559?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/7428190685693836559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2010/12/rubymine-30-ships-with-ruby-192.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/7428190685693836559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/7428190685693836559'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2010/12/rubymine-30-ships-with-ruby-192.html' title='Rubymine 3.0 ships with ruby 1.9.2+ debugging support on windows'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-5649693227900985063</id><published>2010-10-07T18:27:00.000+06:00</published><updated>2010-10-07T18:27:43.502+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sharepoint 2010'/><title type='text'>The contents of the feature's solution requires the Solution Sandbox service to be running</title><content type='html'>If you are developing any Sandbox solution for Sharepoint 2010, then you may have faced an error while deploying any solution to your development server. The error in Visual Studio 2010 output window looks like this generally:&lt;br /&gt;&lt;span style="color: #cc0000;"&gt;Error occurred in deployment step 'Activate Features': This feature cannot be activated at this time. The contents of the feature's solution requires the Solution Sandbox service to be running.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The fix is simple. You must make sure that your "&lt;b&gt;Sharepoint 2010 User Code Host&lt;/b&gt;" service is running. It is disabled by default installation. So, you have enable and run it. If you want to deploy the solution, then again you see the same error output. Actually, you have to make sure that this service's status is active in Central Administration Site. To see the status go to your Sharepoint 2010 Central Administration Application. Under &lt;b&gt;System Settings &amp;gt; Manage services on server&lt;/b&gt; make sure that "Microsoft SharePoint Foundation Sandboxed Code Service" service is started. If it is stop start it. Now, you can package and deploy sandbox solutions right from Visual Studio.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/359659886549045799-5649693227900985063?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/5649693227900985063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2010/10/contents-of-features-solution-requires.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/5649693227900985063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/5649693227900985063'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2010/10/contents-of-features-solution-requires.html' title='The contents of the feature&apos;s solution requires the Solution Sandbox service to be running'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-8512319017259506534</id><published>2010-10-07T17:23:00.004+06:00</published><updated>2010-10-12T11:44:22.086+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET MVC 3'/><title type='text'>A first look at Microsoft ASP.NET MVC 3 Beta</title><content type='html'>First beta version of Microsoft &lt;b&gt;&lt;span style="color: #660000;"&gt;ASP.NET MVC framework 3&lt;/span&gt;&lt;/b&gt; is ready to be downloaded from here and announcement from &lt;a href="http://weblogs.asp.net/scottgu/archive/2010/10/06/announcing-nupack-asp-net-mvc-3-beta-and-webmatrix-beta-2.aspx"&gt;Scott Guthrie's blog&lt;/a&gt;.&amp;nbsp;Significant changes have already been made to this version.&amp;nbsp;You can&amp;nbsp;go through the release documentation to&amp;nbsp;have detail information on the&amp;nbsp;new changes that&amp;nbsp;are available with this release.&lt;br /&gt;&lt;br /&gt;One of the newest edition is the &lt;b style="color: #660000;"&gt;"&lt;/b&gt;&lt;b style="color: #660000;"&gt;NuPack Package Manager&lt;/b&gt;&lt;b style="color: #660000;"&gt;"&lt;/b&gt;. If&amp;nbsp;you are a ruby developer, then it will not be a real&amp;nbsp;ground-breaking idea as you are already using RubyGem from the first day of your ruby development career. For .NET platform it's comparatively newer concept. There are few other open source project already available for the same purpose. But there is always a better expectation associated with something from Microsoft itself from developers point of view. To read more on NuPack refere to the &lt;a href="http://www.hanselman.com/blog/IntroducingNuPackPackageManagementforNETAnotherpieceoftheWebStack.aspx"&gt;this article from Scott Hanselman&lt;/a&gt;. With this release Microsoft is going to make integration of third party libraries with .NET easier.&lt;br /&gt;&lt;br /&gt;The new view engine &lt;b style="color: #660000;"&gt;"Razor"&lt;/b&gt; is really cool!! Syntax is much cleaner now for view. Though the C# syntax was available from first preview version, now VB support is also in built. However, previously it was possible to use VB code but had to activate it manually. I am pretty excited with this view engine. But unfortunately the intellisense support is not yet ready for "Razor". Waiting for it...:) If you want to read more on this I will recommend &lt;a href="http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx"&gt;Scott Guthrie's blog post on Razor&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;There is an interesting new support for running code before views run for any particular view folder. If you want to set something default to all views, its extremely useful. The file that will be used for this purpose is named _viewstart.cshtml (C# code) or _viewstart.vbhtml (VB code). For example if you want to set the default layout for all views for a particular directory and its sub-directories you can set the layout code here. And it will run before running any view file within that directory.&lt;br /&gt;&lt;br /&gt;There are bunch of other improvements including new helper methods, better dependency injection support, unobtrusive javascript support and many more.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/359659886549045799-8512319017259506534?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/8512319017259506534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2010/10/first-look-at-microsoft-aspnet-mvc-3.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/8512319017259506534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/8512319017259506534'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2010/10/first-look-at-microsoft-aspnet-mvc-3.html' title='A first look at Microsoft ASP.NET MVC 3 Beta'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-3386022579282930803</id><published>2010-09-27T11:08:00.002+06:00</published><updated>2010-09-27T11:26:51.651+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft Developer Guidance'/><title type='text'>Microsoft developer guidance maps published</title><content type='html'>At work or even as a starter of any new technology we frequently try to search for the articles published for a particular portion of that technology, right? Specially if you are a Microsoft development platform enthusiast, then it gets really big in terms of documentation or tutorials. Microsoft recently published a new project about centralizing all the links and resources grouped by technologies. Its not huge, but it surely helps if you want to search for best articles for any particular technology. Its called &lt;a href="http://innovation.connect.microsoft.com/devguidancemaps"&gt;Microsoft Developer Guidance Maps&lt;/a&gt;. You can read more on this on &lt;a href="http://blogs.msdn.com/b/jmeier/archive/2010/09/27/microsoft-developer-guidance-maps.aspx"&gt;J. D. Meier's blog&lt;/a&gt;.&lt;br /&gt;&lt;h1 style="color: #f3f3f3;"&gt;&lt;span style="font-size: small;"&gt;J.D.  Meier's Blog&lt;/span&gt;&lt;/h1&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/359659886549045799-3386022579282930803?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/3386022579282930803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2010/09/microsoft-developer-guidance-maps.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/3386022579282930803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/3386022579282930803'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2010/09/microsoft-developer-guidance-maps.html' title='Microsoft developer guidance maps published'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-3785548813271684185</id><published>2010-09-18T21:38:00.000+06:00</published><updated>2010-09-18T21:38:57.760+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows phone 7 series'/><title type='text'>Windows Phone Developer Tools RTW is ready to be downloaded!</title><content type='html'>Windows phone developer tools finally ships. You can download this from &lt;a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=04704acf-a63a-4f97-952c-8b51b34b00ce&amp;amp;displaylang=en"&gt;here&lt;/a&gt;. If you don't like the web installer, you can download directly using this &lt;a href="http://download.microsoft.com/download/6/0/9/6092A6EA-8638-4F4B-BD49-4A8FF77B2E99/WPDT_RTM_en1.iso"&gt;link&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/359659886549045799-3785548813271684185?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/3785548813271684185/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2010/09/windows-phone-developer-tools-rtw-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/3785548813271684185'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/3785548813271684185'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2010/09/windows-phone-developer-tools-rtw-is.html' title='Windows Phone Developer Tools RTW is ready to be downloaded!'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-3089773118740577714</id><published>2010-09-17T17:14:00.001+06:00</published><updated>2010-09-17T17:16:54.256+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft Office for mac'/><title type='text'>A funny release video of Microsoft Office for mac 2011 RTM!!</title><content type='html'>Microsoft Office for mac 2011 hits RTM!! Here is an interesting funny video on releasing this version. Check this out &lt;a href="http://blog.officeformac.com/office-for-mac-2011-hits-rtm/"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/359659886549045799-3089773118740577714?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/3089773118740577714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2010/09/funny-release-video-of-microsoft-office.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/3089773118740577714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/3089773118740577714'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2010/09/funny-release-video-of-microsoft-office.html' title='A funny release video of Microsoft Office for mac 2011 RTM!!'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-3713640920425546232</id><published>2010-09-17T16:41:00.001+06:00</published><updated>2010-10-22T15:37:08.565+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Internet Explorer 9'/><title type='text'>Internet Explorer 9 beta is out!!</title><content type='html'>Its been so many talks about IE9 platform preview and the examples of HTML 5 out there. But finally the first beta of Internet Explorer 9 is out to try from &lt;a href="http://ie.microsoft.com/testdrive/"&gt;here&lt;/a&gt;. However, extra caution should be taken not to install it on a production environment as it will not reside side by side as the platform preview version rather replace the existing one. So, you better not to install it on your office pc. Finally I got it installed and really I was impressed with the rendering. And anyone seeking some real life examples of future HTML 5 native supports you should visit &lt;a href="http://www.beautyoftheweb.com/"&gt;www.beautyoftheweb.com&lt;/a&gt; definitely and the site links it provides to experience some of the best HTML 5 based web sites available until now. The web is going beautiful!!! Check this out and who knows you might be next one to produce another beautiful site based on HTML 5 specifications implemented until now....have fun...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/359659886549045799-3713640920425546232?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/3713640920425546232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2010/09/internet-explorer-9-beta-is-out.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/3713640920425546232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/3713640920425546232'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2010/09/internet-explorer-9-beta-is-out.html' title='Internet Explorer 9 beta is out!!'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-7943281300037950010</id><published>2010-08-31T14:41:00.007+06:00</published><updated>2010-10-22T15:37:33.947+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on rails 3'/><title type='text'>Can not install Devise gem with Ruby 1.9.2 on windows</title><content type='html'>&lt;div style="text-align: left;"&gt;I was having a try out of devise gem with one of my Rails 3 pet project just yesterday. I installed Ruby 1.9.2 with the one-click installer from &lt;a href="http://rubyinstaller.org/downloads/"&gt;rubyinstaller.org&lt;/a&gt; and the latest Rails 3.0. But I faced installation problem as usual on windows. The problem was that it was not being able to build its native extensions.&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;After some research I found out the solution at &lt;a href="http://github.com/oneclick/rubyinstaller/wiki/development-kit"&gt;http://github.com/oneclick/rubyinstaller/wiki/development-kit&lt;/a&gt;. What I was missing is development kit. I just followed the instruction and it was solved and installed devise with my Ruby 1.9.2 correctly.&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;But I am not sure whether it will work with Rails 3's &lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;bundle install&lt;/span&gt;&lt;/span&gt; command or not. I installed the gem from command line using the command &lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;gem install devise --platform=ruby&lt;/span&gt;&lt;/span&gt; before installing all the required gems with &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;"&gt;bundle install&lt;/span&gt; command&amp;nbsp;. The last parameter &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;"&gt;platform&lt;/span&gt; is a must as it will temporarily use the DevKit to build native extensions. That's it.&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: left;"&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/359659886549045799-7943281300037950010?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/7943281300037950010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2010/08/can-not-install-devise-gem-with-ruby.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/7943281300037950010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/7943281300037950010'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2010/08/can-not-install-devise-gem-with-ruby.html' title='Can not install Devise gem with Ruby 1.9.2 on windows'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-6666725656591040925</id><published>2010-08-30T11:35:00.002+06:00</published><updated>2010-08-31T19:03:01.368+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on rails'/><title type='text'>Finally Rails 3.0 ships!!!</title><content type='html'>Its been few busy months and did not get chance to blog during this time. But I was following the rails 3.0 builds and now finally Rails 3.0 is released. Here is the release announcement:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://weblog.rubyonrails.org/2010/8/29/rails-3-0-it-s-done"&gt;http://weblog.rubyonrails.org/2010/8/29/rails-3-0-it-s-done&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It has been the biggest and greatest release of all Rails versions. Looking forward to have a bite on this one eagerly...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/359659886549045799-6666725656591040925?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/6666725656591040925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2010/08/finally-rails-30-ships.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/6666725656591040925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/6666725656591040925'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2010/08/finally-rails-30-ships.html' title='Finally Rails 3.0 ships!!!'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-2232949193154212436</id><published>2010-03-27T10:49:00.001+06:00</published><updated>2010-10-22T15:37:54.693+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows phone 7 series'/><title type='text'>Two new draft preview of visual studio 2010 and programming windows phone 7 series ebooks now downloadable!!</title><content type='html'>There are two new ebook of visual studio 2010 and programming windows phone 7 series are in draft preview and you can download it from the following links:&lt;br /&gt;&lt;a href="http://blogs.msdn.com/microsoft_press/archive/2010/03/26/free-ebook-moving-to-microsoft-visual-studio-2010-draft-preview.aspx"&gt;&lt;br /&gt;http://blogs.msdn.com/microsoft_press/archive/2010/03/26/free-ebook-moving-to-microsoft-visual-studio-2010-draft-preview.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Have fun!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/359659886549045799-2232949193154212436?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/2232949193154212436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2010/03/two-new-draft-preview-of-visual-studio.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/2232949193154212436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/2232949193154212436'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2010/03/two-new-draft-preview-of-visual-studio.html' title='Two new draft preview of visual studio 2010 and programming windows phone 7 series ebooks now downloadable!!'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-8737832946406427414</id><published>2010-03-23T17:05:00.000+06:00</published><updated>2010-03-23T17:11:09.847+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><title type='text'>Error while starting ASP.net Web Site Administration Tool</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_P1DgrECTtCQ/S6ig4Na567I/AAAAAAAAAGM/ZkR8yDw7pAw/s1600-h/WAT+error.jpg"&gt;&lt;img style="float: right; margin: 0pt 0pt 10px 10px; cursor: pointer; width: 320px; height: 235px;" src="http://4.bp.blogspot.com/_P1DgrECTtCQ/S6ig4Na567I/AAAAAAAAAGM/ZkR8yDw7pAw/s320/WAT+error.jpg" alt="" id="BLOGGER_PHOTO_ID_5451784236467612594" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Have you ever run into problem like when you want to start your ASP.NET configuration application (WAT) on a browser and it shows something like the figure on the right side?&lt;br /&gt;&lt;br /&gt;The solution is simple...:-) Just don't get bothered about the error message. Why in the world Microsoft does not support any white space...it will remain a bit foolish mystery!! However folks just keep the project folder in a location which does not have any white space on its path. That's it!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/359659886549045799-8737832946406427414?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/8737832946406427414/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2010/03/error-while-starting-aspnet-web-site.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/8737832946406427414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/8737832946406427414'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2010/03/error-while-starting-aspnet-web-site.html' title='Error while starting ASP.net Web Site Administration Tool'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_P1DgrECTtCQ/S6ig4Na567I/AAAAAAAAAGM/ZkR8yDw7pAw/s72-c/WAT+error.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-7155273448715928055</id><published>2010-02-09T18:14:00.000+06:00</published><updated>2010-02-09T18:33:37.244+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on rails'/><title type='text'>Some links for starting off Rails 3 beta application development</title><content type='html'>Last 5 Feb, 2010 the rails 3 first public beta release was out. It is the most anticipated version from the view of developers as performance improvement will be significant. Refer to the release notes here at &lt;a href="http://guides.rails.info/3_0_release_notes.html"&gt;http://guides.rails.info/3_0_release_notes.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ryan has given a starting screencast at &lt;a href="http://railscasts.com/episodes/200-rails-3-beta-and-rvm"&gt;http://railscasts.com/episodes/200-rails-3-beta-and-rvm&lt;/a&gt;.&lt;br /&gt;Here at &lt;a href="http://www.rubyinside.com/rails-3-0-beta-links-2966.html"&gt;http://www.rubyinside.com/rails-3-0-beta-links-2966.html&lt;/a&gt; you will find some starting materials.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/359659886549045799-7155273448715928055?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/7155273448715928055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2010/02/some-links-for-starting-off-rails-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/7155273448715928055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/7155273448715928055'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2010/02/some-links-for-starting-off-rails-3.html' title='Some links for starting off Rails 3 beta application development'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-204543084618324793</id><published>2010-02-03T17:59:00.000+06:00</published><updated>2010-02-03T18:07:29.101+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on rails'/><title type='text'>An useful method for date formatting in rails</title><content type='html'>In our everyday developer life, we often need the date formatting in our web application. In rails there are some useful methods available. One of them strftime(). You can see the documentation here at &lt;a href="http://www.ruby.ch/ProgrammingRuby/htmlC/ref_c_time.html#strftime"&gt;http://www.ruby.ch/ProgrammingRuby/htmlC/ref_c_time.html#strftime&lt;/a&gt;&lt;div&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/359659886549045799-204543084618324793?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/204543084618324793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2010/02/useful-method-for-date-formatting-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/204543084618324793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/204543084618324793'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2010/02/useful-method-for-date-formatting-in.html' title='An useful method for date formatting in rails'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-5405408575855977259</id><published>2010-01-30T12:55:00.001+06:00</published><updated>2010-10-22T15:38:08.417+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML 5'/><title type='text'>Some useful resources for HTML 5 and CSS 3</title><content type='html'>I am feeling a kind of restlessness to try out some of the HTML 5 and CSS 3 features. I found couple of good links that I would like to share with you if you are starting to try out those features. I think some of tutorials are great for having a fine start. Happy coding guys....:-)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/"&gt;http://www.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://net.tutsplus.com/tutorials/html-css-techniques/html-5-and-css-3-the-techniques-youll-soon-be-using/"&gt;http://net.tutsplus.com/tutorials/html-css-techniques/html-5-and-css-3-the-techniques-youll-soon-be-using/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://html5tutorial.net/news/websites-using-html-5.html"&gt;http://html5tutorial.net/news/websites-using-html-5.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/359659886549045799-5405408575855977259?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/5405408575855977259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2010/01/some-useful-resources-for-html-5-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/5405408575855977259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/5405408575855977259'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2010/01/some-useful-resources-for-html-5-and.html' title='Some useful resources for HTML 5 and CSS 3'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-5546397640509262126</id><published>2010-01-30T12:35:00.001+06:00</published><updated>2010-10-22T15:38:20.042+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on rails'/><title type='text'>Searchable offline version of rdoc for Ruby 1.9 and Rails 2.3.5</title><content type='html'>If you are searching for an offline version of searchable rdoc for ruby on rails, then you can download it from &lt;a href="http://railsapi.com/"&gt;here&lt;/a&gt; at http://railsapi.com. Though it's on its beta period, but still it's kind of cool.  Whenever I want to search anything I can do this instantly without waiting for the page to load specially in this part of the world where internet speed is not that fast... :-( Also, &lt;a href="http://www.railsbrain.com/"&gt;here&lt;/a&gt; is another offline version at http://www.railsbrain.com. Choose what suits your needs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/359659886549045799-5546397640509262126?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/5546397640509262126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2010/01/searchable-offline-version-of-rdoc-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/5546397640509262126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/5546397640509262126'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2010/01/searchable-offline-version-of-rdoc-for.html' title='Searchable offline version of rdoc for Ruby 1.9 and Rails 2.3.5'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-4841293322767058178</id><published>2010-01-12T14:13:00.000+06:00</published><updated>2010-01-13T22:59:46.467+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on rails'/><title type='text'>A basic scaffolding in your rails application</title><content type='html'>&lt;div style="text-align: justify;"&gt;Hello folks, I am starting to build my own personal website. In the process, I have to build an application from scratch. I am choosing ruby 1.9.1 p243 and rails 2.3.5 as a starter. This is starting point for the application. I will be sharing my learning with you all as I go along. In this post I am starting off with creating basic scaffolding. Many of you have already done this I guess.  I know there are some better approaches, but building from scratch will help me a lot and also some of you who are new to rails framework. So, let us begin.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);"&gt;Scaffolding&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;Scaffolding is a nice approach if you are trying to get a grip on ROR projects. It creates all the basic pieces of model, controller, views and migration scripts for you. It will create basic set of functionalities for CRUD operations. If you are trying to introduce a new model Post with two fields title and body to your project, you then just have to run the script like this:&lt;br /&gt;&lt;/div&gt;&lt;pre class="brush:rails"&gt;ruby {YOUR_RAILS_APP_DIR}/script/generate scaffold post title:string body:text&lt;/pre&gt;&lt;div style="text-align: justify;"&gt;One thing to remember that when you are trying to use scaffolding, the migration script automatically generated will include the timestamp with it. If you don’t want that, you can turn it off. You can do this by adding &lt;/div&gt;&lt;pre class="brush:rails"&gt;config.active_record.timestamped_migrations = false&lt;/pre&gt;&lt;div style="text-align: justify;"&gt;to your config/environment.rb file. This will add incremental number instead of timestamp.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;What if you want to delete the files automatically generated with scaffolding and regenerate for some reason? You can do that just by running the following command:&lt;br /&gt;&lt;/div&gt;&lt;pre class="brush:rails"&gt;ruby {YOUR_RAILS_APP_DIR}/script/destroy scaffold post&lt;/pre&gt;&lt;div style="text-align: justify;"&gt;Now, migrate your database using rake db:migrate command and start the server. Now type on the address bar http://localhost:3000/posts. Yah!! you guessed it right. It now supports all the CRUD operation on this model. That’s pretty easy, right? Though in real life application you will hardly use the view created by scaffolding, yet you can start off with it and change it the way you need.&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/359659886549045799-4841293322767058178?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/4841293322767058178/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2010/01/basic-scaffolding-in-your-rails.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/4841293322767058178'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/4841293322767058178'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2010/01/basic-scaffolding-in-your-rails.html' title='A basic scaffolding in your rails application'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-1481576720191533001</id><published>2010-01-12T11:36:00.001+06:00</published><updated>2010-10-22T15:38:35.775+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WEBrick server'/><title type='text'>ActionMailer invalid multibyte character error while starting WEBrick server</title><content type='html'>&lt;div style="text-align: justify;"&gt;If you are using  Netbeans for your Rails application development and you are using ruby 1.9, then when you want to run the WEBrick server you may get this error:&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: #660000; font-weight: bold;"&gt;C:/Ruby19/lib/ruby/gems/1.9.1/gems/actionmailer-2.3.5/lib/action_mailer/vendor/tmail-1.2.3/tmail/utils.rb:117:in '&lt;module:textutils&gt;': invalid multibyte character (ArgumentError)&lt;/module:textutils&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;Well this is not happening for your rails installation rather for a &lt;a href="http://netbeans.org/bugzilla/show_bug.cgi?id=158794"&gt;bug&lt;/a&gt; that exists in netbeans. The workaround is simple. You just have to add and set the variable &lt;span style="font-weight: bold;"&gt;J-Druby.no.kcode&lt;/span&gt; to &lt;span style="font-weight: bold;"&gt;true&lt;/span&gt; in your &lt;span style="font-weight: bold;"&gt;&lt;netbeans&gt;{Netbe&lt;/netbeans&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;ans in&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;st&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;all&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;ation dir&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;netbeans&gt;}/etc/netbeans.conf&lt;/netbeans&gt;&lt;/span&gt; file just like this:&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: black; font-weight: bold;"&gt;netbeans_default_options = "-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true -J-Druby.no.kcode=true"&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;You have to restart your netbeans to see the effect.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/359659886549045799-1481576720191533001?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/1481576720191533001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2010/01/actionmailer-invalid-multibyte.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/1481576720191533001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/1481576720191533001'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2010/01/actionmailer-invalid-multibyte.html' title='ActionMailer invalid multibyte character error while starting WEBrick server'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-2105642342943203371</id><published>2010-01-01T23:44:00.002+06:00</published><updated>2010-10-22T15:39:14.011+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on rails'/><category scheme='http://www.blogger.com/atom/ns#' term='ferret'/><title type='text'>Running ferret server with mongrel and shared index folder</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span style="color: black;"&gt;If you are using acts_as_ferret plugin for searching in your rails application then you must have faced some issues with indexing or running ferret server on your production server. In this post, I will share with you some tips about running and maintaining ferret server:&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li style="color: black;"&gt;Running ferret server on production&lt;/li&gt;&lt;li style="color: black;"&gt;Sharing your ferret index folder&lt;/li&gt;&lt;li&gt;&lt;span style="color: black;"&gt;Write a simple script to re-index all your data&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="color: #993300; font-weight: bold;"&gt;Running your ferret server&lt;/span&gt;&lt;br /&gt;&lt;div style="color: black; text-align: justify;"&gt;If you have multiple instances of mongrel running in your production, then you must need to run the ferret server to handle situations when multiple processes are updating ferret index at the same time. If you want to run ferret server in your production server, then at first you have to open the port you set in ferret_server.yml of your config directory on the server you want to run it.  acts_as_ferret comes with a built-in drb server which uses &lt;a href="http://ruby-doc.org/stdlib/libdoc/drb/rdoc/index.html"&gt;dRuby&lt;/a&gt; protocol. So, you should remember to open the port with other protocol (not http or something else). One very important thing is to change the following section of your /vendor/plugins/acts_as_ferret/lib/server_manager.rb as follows:&lt;/div&gt;&lt;pre class="brush:rails"&gt;require(File.join(File.dirname(__FILE__), '../../../../config/environment'))&lt;br /&gt;#require(File.join(File.dirname(ENV['_']), '../config/environment'))&lt;/pre&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: black;"&gt;Make sure you run the ferret server before running mongrel or apache. Now you can start the ferret server with the following command:&lt;/span&gt;&lt;/div&gt;&lt;pre class="brush:rails"&gt;ruby /{YOUR_APP_DIRECTORY}/script/ferret_server -e production start&lt;/pre&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;Also, the you can stop your ferret server with the following command:&lt;/span&gt;&lt;br /&gt;&lt;pre class="brush:rails"&gt;ruby /{YOUR_APP_DIRECTORY}/script/ferret_server -e production stop&lt;/pre&gt;&lt;br /&gt;&lt;div style="color: black; text-align: justify;"&gt;After you have started you ferret server you can start your mongrel and apache server. When mongrel is being started it checks for index folder in your app directory. If it does not find one it creates one. So, it’s possible that you will have different index folder with each deployment which is costly and re-indexing every time after your deployment is not at all a good solution.&lt;/div&gt;&lt;br /&gt;&lt;span style="color: #993300; font-weight: bold;"&gt;Sharing your ferret index folder&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: black;"&gt;You can set a default index folder in your production server which will be shared. To do this create a folder with read/write permission and create symlink to this folder each time you deploy and before starting the server. If you are using Capistrano for your deployment then make sure to run the symlink creation script before starting mongrel/apache.  Otherwise the index folder will be created with the start of mongrel. A sample script could be like this:&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;run "ln -s /mnt/app/shared/ferret/ /mnt/app/current/index"&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #993300; font-weight: bold;"&gt;A simple script for ferret re-indexing&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;Here is a sample rake task for re-indexing your application data:&lt;/span&gt;&lt;br /&gt;&lt;pre class="brush:rails"&gt;desc "Updates the ferret index for the application."&lt;br /&gt;task :ferret_index =&amp;gt; [ :environment ] do | t |&lt;br /&gt;Model1.rebuild_index&lt;br /&gt;puts "Completed Index Rebuild of Model1 model"&lt;br /&gt;Model2.rebuild_index&lt;br /&gt;puts "Completed Index Rebuild of Model2 model"&lt;br /&gt;Model3.rebuild_index&lt;br /&gt;puts "Completed Index Rebuild of Model3 model"&lt;br /&gt;end&lt;/pre&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;To run rake task use the command:&lt;/span&gt;&lt;br /&gt;&lt;pre class="brush:rails"&gt;rake ferret_index RAILS_ENV=environment&lt;/pre&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;Make sure to restart your mongrel and apache server to point to the newer version of the index folder created within the directory you set after re-indexing is completed.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/359659886549045799-2105642342943203371?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/2105642342943203371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2010/01/running-ferret-server-with-mongrel-and.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/2105642342943203371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/2105642342943203371'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2010/01/running-ferret-server-with-mongrel-and.html' title='Running ferret server with mongrel and shared index folder'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-739731677096977161</id><published>2009-06-20T20:44:00.002+07:00</published><updated>2010-10-22T15:38:58.910+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on rails'/><category scheme='http://www.blogger.com/atom/ns#' term='ferret'/><title type='text'>Free-text search using acts_as_ferret plugin in ROR - Part I</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span style="color: #333399; font-size: 100%;"&gt; &lt;span style="color: black;"&gt;Recently I had to implement free-text searching module in one of my rails application project. There are some plugins available on web for free-text searching in rails. Among them acts_as_ferret is recommended by most developers. I decided to give it a try. After I had got it running it was really a pleasant experience. Though you could also end up scratching your head if you don't get it up and running on your production server. I will share you my experiences during deployment in a production environment using Apache and Mongrel in follow up tutorials on ferret. In this tutorial I will give a little introduction to acts_as_ferret plugin and show you the power of ferret. There is a great tutorial for &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #333399; font-size: 100%;"&gt;&lt;span style="color: black;"&gt;acts_as_ferret on&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #333399; font-size: 100%;"&gt;&lt;span style="color: black;"&gt; &lt;a href="http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial"&gt;rails envy tutorial&lt;/a&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: #333399; font-size: 100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #333399; font-size: 130%;"&gt;&lt;span style="color: #993300;"&gt;What is &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #993300; font-size: 130%;"&gt;acts_as_ferret?&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: black;"&gt;Acts_as_ferret is a free-text search plugin for rails application. It is based on ferret(a high-performance ruby text search engine library based on &lt;a href="http://en.wikipedia.org/wiki/Lucene"&gt;Apache Lucene&lt;/a&gt;). This gives you the power of file based indexing cutting off the overhead of database hits during searching. &lt;/span&gt;&lt;span style="color: black;"&gt;You can implement model based searching on your application on the fly using this. Cutting off the introduction, let us start adding the functionality of ferret based search on our application. What say you??&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: #333399; font-size: 130%;"&gt;&lt;span style="color: #993300;"&gt;Installing ferret and acts_as_ferret&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;Install gem of ferret using command:&lt;/span&gt;&lt;br /&gt;&lt;pre class="brush:rails"&gt;gem install ferret&lt;br /&gt;&lt;/pre&gt;&lt;span style="color: black;"&gt;Install acts_as_ferret plugin using command:&lt;/span&gt;&lt;br /&gt;&lt;pre class="brush:rails"&gt;script/plugin install svn://code.jkraemer.net/acts_as_ferret/tags/stable/acts_as_ferret&lt;br /&gt;&lt;/pre&gt;&lt;span style="color: black;"&gt;Update acts_as_ferret plugin using command:&lt;/span&gt;&lt;br /&gt;&lt;pre class="brush:rails"&gt;gem update acts_as_ferret&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style="color: #333399; font-size: 130%;"&gt;&lt;span style="color: #993300;"&gt;How to enable ferret for indexing your model fields?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;The first thing that you need to do is to decide which models and corresponding fields that you want to index for searching. Say, you have a model named Book and you want to search for books according to title, author_name or publisher_name attributes. You need to index those three fields to enable you to do just that. You can do that by just adding the following line to your model's source code:&lt;/div&gt;&lt;pre class="brush:rails"&gt;acts_as_ferret({:fields =&amp;gt; {&lt;br /&gt;:title =&amp;gt; {:store =&amp;gt; :yes, :boost =&amp;gt; 5},&lt;br /&gt;:author_name =&amp;gt; {:store =&amp;gt; :yes, :boost =&amp;gt; 2},&lt;br /&gt;:publisher_name =&amp;gt; {:store =&amp;gt; :yes, :boost =&amp;gt; 2}&lt;br /&gt;},:store_class_name =&amp;gt; true },:remote =&amp;gt; true )&lt;/pre&gt;&lt;div style="text-align: justify;"&gt;I will let you understand all the attributes of acts_as_ferret definition. As you can see that &lt;span style="color: #006600;"&gt;:fields&lt;/span&gt; holds all the field names needed to be indexed. During searching only these fields will be searched and returned. Also for each of the fields I have defined two values for &lt;span style="color: #006600;"&gt;:store&lt;/span&gt; and &lt;span style="color: #006600;"&gt;:boost&lt;/span&gt; attributes.&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;The &lt;span style="color: #006600;"&gt;:store&lt;/span&gt; attribute is needed if you want to store the field value to the index files. You might be wondering why?? The beauty of storing any field value is that you don't need to hit the database if you want something like highlighting search keywords in your field value. It will not generate any new query against database as the action will be performed on the stored value.&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;The &lt;span style="color: #006600;"&gt;:boost&lt;/span&gt; attribute is for giving boost to the score value for a indexed field which will enable the field to get higher priority in search results. Say, you might want to see the books with the title matches first and then with the author_name or publisher_name.&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;The &lt;span style="color: #006600;"&gt;:store_class_name&lt;/span&gt; attribute is needed for enabling multi-model searching if you want to search in more than one model. To enable multi-model searching you have to define acts_as_ferret on each of the models you want to search for as above.&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;The &lt;span style="color: #006600;"&gt;:remote&lt;/span&gt; attribute is needed if you want to use DRb server. You can find information about DRb server &lt;a href="http://github.com/jkraemer/acts_as_ferret/wiki/drbserver"&gt;here&lt;/a&gt;.&lt;/div&gt;&lt;span style="color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #333399; font-size: 130%;"&gt;&lt;span style="color: #993300;"&gt;How to do a basic search?&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;To searc&lt;/span&gt;h within a single model you need to call find_with_ferret() method like this:&lt;br /&gt;&lt;pre class="brush:rails"&gt;search_result = Book.find_with_ferret(query_string, ferret_options_hash, ar_options_hash)&lt;/pre&gt;&lt;div style="text-align: justify;"&gt;Here, search_result will hold the result returned by the find_with_ferret which is an array of objects. This is of type ActsAsFerret::SearchResults. query_string is the string to search for, ferret_options_hash is the ferret search options and finally ar_options_hash is the option hash for active record filter option.&lt;/div&gt;&lt;br /&gt;An example of single model searching could be like this:&lt;br /&gt;&lt;pre class="brush:rails"&gt;result = Book.find_with_ferret('adventure', {:page =&amp;gt; 1, :per_page =&amp;gt; 25}, {:conditions =&amp;gt; ['library_id = ?', library.id]})&lt;/pre&gt;&lt;div style="text-align: justify;"&gt;Here in this example, the search keyword is 'adventure' and the ferret options are :page which is indicating the first page and :per_page which is indicating the search result items per page is 25. And the active record condition is used for filtering the result returned by ferret to get more specific results needed.&lt;/div&gt;&lt;br /&gt;An example multi-model searching could be like this:&lt;br /&gt;&lt;pre class="brush:rails"&gt;result = Book.find_with_ferret('adventure', {:page =&amp;gt; 1, :per_page =&amp;gt; 25, :multi =&amp;gt; [Library]}, {:conditions =&amp;gt; ['library_id = ?', library.id]})&lt;/pre&gt;&lt;div style="text-align: justify;"&gt;To enable multi-model searching we need to add :multi attribute to the ferret_options_hash which will contain an array of model names separated by comma.  The result will hold an array of objects returned by the search method. We can manipulate the result using index as we do for arrays.&lt;/div&gt;&lt;br /&gt;&lt;span style="color: #333399; font-size: 130%;"&gt;&lt;span style="color: #993300;"&gt;Sorting&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;The default sorting option is ferret_score which is returned as part of the result. But in real world often we need to sort result according to some other attributes. Say, we need to sort result according to date of publication. To do that we need to convert the publication_date to integer. We can do that by writing a method in model and add that method to be indexed. We are not only able to add fields to be indexed, we can add methods to be indexed as well. For example,&lt;br /&gt;&lt;pre class="brush:rails"&gt;acts_as_ferret({:fields =&amp;gt; { :title =&amp;gt; {:store =&amp;gt; :yes, :boost =&amp;gt; 5},&lt;br /&gt;:author_name =&amp;gt; {:store =&amp;gt; :yes, :boost =&amp;gt; 2},&lt;br /&gt;:publisher_name =&amp;gt; {:store =&amp;gt; :yes, :boost =&amp;gt; 2},&lt;br /&gt;:publication_date_for_sort =&amp;gt; {:index =&amp;gt; :untokenized_omit_norms},&lt;br /&gt;},:store_class_name =&amp;gt; true },:remote =&amp;gt; true )&lt;br /&gt;&lt;br /&gt;def publication_date_for_sort&lt;br /&gt;return publication_date.to_i&lt;br /&gt;end&lt;/pre&gt;Now we can write something like this which will return the results sorted by publication date:&lt;br /&gt;&lt;pre class="brush:rails"&gt;@sort_field = Ferret::Search::SortField.new(&lt;br /&gt;:publication_date_for_sort, :reverse =&amp;gt; true)&lt;br /&gt;result = Book.find_with_ferret('adventure', {:page =&amp;gt; 1, :per_page =&amp;gt; 25, :sort =&amp;gt; @sort_field}, {:conditions =&amp;gt; ['library_id = ?', library.id]})&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The :reverse attribute is used to specify whether you want your result in ASC or DESC order.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/359659886549045799-739731677096977161?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/739731677096977161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2009/06/free-text-search-using-actsasferret.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/739731677096977161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/739731677096977161'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2009/06/free-text-search-using-actsasferret.html' title='Free-text search using acts_as_ferret plugin in ROR - Part I'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-359659886549045799.post-362214475735742088</id><published>2009-05-24T12:00:00.000+06:00</published><updated>2010-01-01T22:01:42.373+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>Mysql::Error: BLOB/TEXT column 'any_column_name' can't have a default value</title><content type='html'>Recently I downgraded my mysql version from 5.1.30 to 5.0.27. But while running database migrations for my rails application it was showing message like '&lt;span style="font-family:times new roman;"&gt;Mysql::Error: BLOB/TEXT column 'any_column_name' can't have a default value&lt;/span&gt;' which was not showing previously. After searching through mysql community blogs finally I got the solution for it. It was not a bug rather it was a feature for type BLOB/TEXT not to have any default value in strict mode, not even empty string. So, the workaround was to just change my my.ini file a little. It should be located in your mysql installation directory. You just need to comment out the line&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"&lt;/span&gt;&lt;br /&gt;This solved my problem. Hopefully this will fix your problem too.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/359659886549045799-362214475735742088?l=ashif-manjur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashif-manjur.blogspot.com/feeds/362214475735742088/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashif-manjur.blogspot.com/2009/05/mysqlerror-blobtext-column.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/362214475735742088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359659886549045799/posts/default/362214475735742088'/><link rel='alternate' type='text/html' href='http://ashif-manjur.blogspot.com/2009/05/mysqlerror-blobtext-column.html' title='Mysql::Error: BLOB/TEXT column &apos;any_column_name&apos; can&apos;t have a default value'/><author><name>Ashif Manjur</name><uri>http://www.blogger.com/profile/10701938265816804326</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='22' src='http://4.bp.blogspot.com/_P1DgrECTtCQ/TQ9tE9176ZI/AAAAAAAAAHA/A6-9FPpPD-8/S220/DSC_0027.2.jpg'/></author><thr:total>1</thr:total></entry></feed>
