Pages

Monday, December 15, 2014

Re-sharper 9.

Resharper

A Productivity Tool for Visual Studio.

Hi Everyone, Today I read news that resharper 9 has been released, so thought knowing more details about it. same I am sharing here which can help you to manage your code in very effective and efficient manner.


So what is resharper?
as per http://www.jetbrains.com/
It is the one thing for .NET developers that removes fear of change. Refactoring is just so darn easy that change isn't scary.

Why should we use it?
So...Resharper having so many advantages which I m listing below will help in every dimesion of programming.

ReSharper Features:
1.      Code quality analysis
ReSharper provides continuous code quality analysis in C#, VB.NET, XAML, XML, ASP.NET, ASP.NET MVC, JavaScript, HTML, and CSS, detecting errors and problems before you even compile.
ReSharper applies over 1700 code inspections to your code at design time so you can instantly see whether your current file or even your whole solution contains any errors or problems.
1.      Eliminate errors and code smells:
ReSharper instantly detects and highlights errors as you code, right in the editor. Errors are highlighted with either red font or curly underline. If you roll the mouse pointer over an error, its description is displayed in a tooltip.

2.     Instantly traverse your entire solution:
Not only is ReSharper capable of analyzing a specific code file for errors, but it can extend its analysis skills to cover your whole solution. Suppose that you changed the visibility of a member from public to internal, assuming that it was only used inside the current assembly. At this stage, ReSharper finds no errors in the current file. Then, you switch on Solution-Wide Analysis and ReSharper discovers that something went wrong. You jump to the next error in solution and you find out that someone used this member from outside of the current assembly.

3.     Safely change your code base:
ReSharper provides Structural Search and Replace to find custom code constructs and replace them with other code constructs. What's even more exciting is that it's able to continuously monitor your solution for your search patterns, highlight code that matches them, and provide quick-fixes to replace the code according to your replace patterns.

4.     Code editing helpers:
Multiple code editing helpers including extended IntelliSense, hundreds of instant code transformations, auto-importing namespaces, rearranging code and displaying documentation.

5.     Compliance to coding standards:
Code formatting and cleanup to get rid of unused code and ensure compliance to coding standards.

7.      Code generation:
You don't have to write properties, overloads, implementations, and comparers by hand: use code generation actions to handle boilerplate code faster.


What's New in ReSharper 9?

ReSharper 9 supports Visual Studio 2015 Preview, C#6.0 and regular expressions; brings more bulk quick-fixes; vastly improves support for JavaScript & TypeScript; presents a new file layout editor and navigation actions. It is also based on a new platform, reducing memory consumption when ReSharper is installed in Visual Studioalong with dotCover, dotTrace, and/or dotMemory.


Refrences:

Facebook Search and Microsoft Bing....We are not together anymore... :(

Facebook DUMPED Bing


Facebook Users, Its a Breaking news for you.....Facebook has stopped including results from Microsoft Corp's Bing search engine on its social networking site.

The move, comes as Facebook has revamped its own search offerings, introducing a tool on Monday that allows users to quickly find past comments and other information posted by their friends on Facebook.

Facebook Chief Executive Mark Zuckerberg has flagged search as one of the company's key growth initiatives, noting in July that there were more than 1 billion search queries occurring on Facebook every day and hinting that the vast amount of information that users share within Facebook could eventually replace the need to search the Web for answers to certain questions.

Microsoft's search engine only kicked in when Facebook's own querying system failed to deliver the relevant results.
Facebook and Microsoft have a longstanding relationship dating back to Microsoft's $240 million investment in Facebook, for a 1.6 percent stake in the company, in October 2007. As part of that deal, Microsoft provided banner ads on Facebook's website in international markets.

Facebook stopped using Microsoft banner ads in 2010 as it moved to take more control of its advertising business. But Facebook, during that same time, expanded its use of Microsoft Bing search results to international versions of its service.

But, for nearly two years now, Microsoft's search function has been unable to ferret around within Facebook's social graph where the real ad money is understood to be found.
And now, as noted by Reuters, Facebook has altogether dumped Microsoft, following the launch of its rejigged search product earlier this week.


Refrences:

Thursday, December 11, 2014

How to repeat header on each page in SSRS.


1. Click anywhere on report page.
2. Click On Advanced Mode.

3. Click on Static and see in Property window.

4. Make RepeatOnNewPage = True, and you DID IT :)



Pass data to partial view in MVC


Refrence Link: link

At view:

<div>
    <table id="tableDetails">
        <tr>
            <td rowspan="6">
                @Html.Partial("RestaurentAddressPartial", new DiningTable.Models.Address{ Id = 1, Flat = "D-1033", Steet1 = "Devi Homes", Steet2 = "Near Hafeezpet petrol Pump", ZipCode = "500049", City = "Hyderabad" })
            </td>
            <td rowspan="6">
                @Html.Partial("RestaurentAddressPartial", new DiningTable.Models.Address { Id = 1, Flat = "D-1034", Steet1 = "Devi Homes", Steet2 = "Near Hafeezpet petrol Pump", ZipCode = "500049", City = "Hyderabad" })
            </td>
        </tr>       
    </table>    
</div>

At Partial view:

@model  DiningTable.Models.Address

<h4>Address:</h4>
<p>
    @Html.DisplayFor(m => m.Flat)<br />
    @Html.DisplayFor(m => m.Steet1)<br />
    @Html.DisplayFor(m => m.Steet2)<br />
    @Html.DisplayFor(m => m.City)<br />
    @Html.DisplayFor(m => m.ZipCode)<br />
</p>

OutPut: