Saturday, June 30, 2012

Nokogiri installation error in Rails

Building native extensions.  This could take a while... ERROR:  Error installing nokogiri:     ERROR: Failed to build gem native extension.         /Users/user/.rvm/rubies/ruby-1.8.7-p352/bin/ruby extconf.rb checking for libxml/parser.h... yes checking for libxslt/xslt.h... yes checking for libexslt/exslt.h... yes checking for iconv_open() in iconv.h... no checking for iconv_open() in -liconv... yes checking for xmlParseDoc() in -lxml2... yes checking for xsltParseStylesheetDoc() in -lxslt... yes checking...

Tuesday, June 26, 2012

Dispatcher and SynchronizationContext classes in WPF

Use the Dispatcher when your code is tightly coupled to WPF.  Use the AsyncOperationManager when you need to queue something on the 'Context' thread. This works with Windows Forms, ASP .NET and WCF applications as well.  Avoid using the SynchronizationContext yourself. The AsyncOperationManager uses this mechanism internally.  Note:SynchronizationContext.Current object is of type DispatcherSynchronizationContext which is actually just a wrapper around the Dispatcher object and the Post and Send methods just delegate to Dispatcher.BeginInvoke...

Monday, June 25, 2012

A Tour of ParallelExtensionsExtras

http://blogs.msdn.com/b/pfxteam/archive/2010/04/04/9990342.a...

Monday, June 11, 2012

Using form_tag in Ruby on Rails

In controller a "new" action creates a sample object that is just a simple object, not ActiveRecord :   def new     @item = Item.new   end "Create" action is a post action   def create   end And in the view the following code just displays Item object fields and posts back a hash with fields filled in on the client side: This will create the following markup: Relevant references: http://guides.rubyonrail...

Powered by Blogger.