WPF in .NET

WPF stands for Windows Presentation Foundation. Microsoft stops development for windows forms. Using the WPF we can develop windows applications. A new mark up language XAML has been introduced in the WPF and it is pronounced as zammel. Using the XAML we can design the from easily. Following are the advantages using WPF over windows forms.

1) Using the new mark up language XAML we can design the form very easily. It is simply with XML tags.

2) WPF uses the vector graphics where as the windows forms uses scalar graphics so that if we increase the width or height of an image or video the quality of an image/video is reduced in the windows forms but in the WPF not like this as it is using the vector graphics.

3) In WPF built in animation classes are available for developing animation applications where as in the windows forms no built-in classes are available in the windows forms. If there is any such animation requirement in the windows forms we were achieved it through the timer control.

4) In WPF every control is a container control. So we can place one control in another control like image control can be placed inside the textbox control or dropdown control  where as in the windows forms we can't place one control in another control.

Editors and IDE's for Ruby on Rails development

You can find IDE's and Editors from the following list......

http://netbeans.org/downloads/ - Freeware

http://sourceforge.net/projects/radrails/ - Freeware

http://redcareditor.com/ - Freeware

http://macromates.com/  (For Mac OS)

http://www.e-texteditor.com/ (Text Editor)

http://www.sapphiresteel.com/ (Best IDE for those who knows .NET)

http://www.ruby-ide.com/ruby/ruby_ide_and_ruby_editor.php

http://www.jetbrains.com/ruby/index.html


Any feedback/comments/suggestions appreciate...!!!!!!!!!!
I hope this will be helpful to you.......;-)

How to display list of records in view without using any blocks or loops in RoR?

We can display list of records in a rails view file without writing any loops or blocks by using the collection object. Follow the following example.

<%= render :partial => "users/user", :collection => @users %> 

Create a partial user user the users folder in that partial we can display the results without writing any loops or blocks by simply using the user object.


<p
<strong>User Name:</strong
<%= user.name %> 
</p

<p
<strong>Location:</strong
<%= user.location %> 
</p>

What is the difference between render & redirect_to in Ruby on Rails?

The redirect_to method causes the browser to redirect from one page to the other page. This is the method in the ActionController module Base class method.

Ex:-

redirect_to :action => "index"

redirect_to :back  which redirects to the back from which page the user comes. This is the (i.e :back) short form for request.env[""HTTP_REFERER]

Render method simply renders a template without calling the specified action or redirecting to the specified action.

Ex:-

render :action => "new"