Sai Stuff to Developers

January 10, 2012

Visual Studio 2010 Debugging Web Application Loading Symbols takes too long?

Filed under: DotNet — tosaik @ 8:47 am

Recently I started a new web Application and after coding when I am trying to run the application through Visual Studio 2010 it’s taking me nearly 5 – 10 minutes depending on the size of the application. I thought too many files are loading when started but when I started researching I came to know that it is due to the downloading symbol files to the temporary location.

For this I found two solutions first solution is silly and recommended but I will mention why.

Solution 1: As my default browser is Internet Explorer, uncheck “Delete Browsing History on Exit” in the Internet Options window as shown below

 

 

 

 

 

 

 

 

 

 

For the first time the symbols are loaded by the browser will be used for next debug of the same application.

The problem with this solution is if you have any changes in the script or css files then it won’t refresh with the latest one instead it will use same old one which it stored at the time of loading symbols.

Solution 2: This is the best solution and simple solution. Open visual studio 2010

Go to Tools -> Options-> Debugging->General and check “Enable Just My Code(Managed only)”

 

 

 

 

 

 

That’s it your problem solved and no need to wait all the time for every Run.

 

Happy Coding :)

 

December 16, 2011

With Visual Studio 2010, How To Add a Second Project To a Solution

Filed under: DotNet — tosaik @ 11:01 am
Tags:

Say you are creating new Windows Application Project using Visual Studio 2010, the project created successfully but I am unable to see the solution created in the solution explorer window due to this I am unable to add another project to the existing solution. 

 

 

 

 

 

 

 

Finally I got the Solution and fix the issue, please follow the steps to fix this issue…

Step1: Open Visual Studio 2010, and select Menu Tools -> Options 
 

 

 

 

 

 

 

 

 

 

Step 2: Now go to Projects and Solutions -> General section in the tree view on left side of options window and check the checkbox “Always show solution” as shown below

  

 

 

 

 

 

 

That’s it now again try to create the project you will be shown by the solution so that you can add as many projects you can….

 

 

 

 

 

 

 

Happy Coding… :)

July 17, 2011

What is CoffeeScript?

Filed under: DotNet — tosaik @ 2:03 pm
Tags:

CoffeeScript is a little language that compiles into JavaScript. Underneath all of those embarrassing braces and semicolons, JavaScript has always had a gorgeous object model at its heart. CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way.

The golden rule of CoffeeScript is: “It’s just JavaScript”. The code compiles one-to-one into the equivalent JS, and there is no interpretation at runtime. You can use any existing JavaScript library seamlessly (and vice-versa). The compiled output is readable and pretty-printed, passes through JavaScript Lint without warnings, will work in every JavaScript implementation, and tends to run as fast or faster than the equivalent handwritten JavaScript.

The official website for CoffeeScript is a great place to start

Now Visual Studio includes all the capabilities you need to start writing CoffeeScript………………….

Happy Coding…. :)

July 14, 2011

Launching New Technology Script# or S#

Filed under: DotNet — tosaik @ 5:55 pm
Tags:

A good news for the script writing lovers, as soonly Microsoft is going to launch a new concept called script#(S#) recently i came to know about this and really its amazing…

let me explain some points about this plugin. If there is a need to write a complex script and it should also need to includes JSON and JQury technology is too diffcult to maintain. But it getting simplier for us using script# compiler. As we are familiar and comfortable with c# coding so this script# allows us to write all our scripting stuff to write in c#, when you compile the same our script# compiler converts all the c# code to the respective script file generally .js file so you can directly use those files for your other server applications.

So dont worry  do visiting my blog  as i don’t have enough time currently so soonly i  will provide how we can achive this briefly and a sample application..

Do follow me on twitter……..

Thanks….

Happy Coding :)

August 17, 2010

Problem of Date using Culture

Filed under: DotNet — tosaik @ 6:29 pm
Tags:

Hi, I want to share my problem and its solution i found..

Problem : I have developed one client Application in which iam getting data from database in to DataView Object, Now my task is to show the records on the Grid which are greater than or equal to current system date.

To do so i used following code

(overview not exactly)

string today = DateTime.Now.ToString();

dv.RowFilter = string.Format(“TODATE >=#{0}#”, today);

Its working fine on some systems and raising exceptions on some other systems.

Solution : the exact problem is culture the system. When the culture is different what we expecting then its getting execption to fix this problem i coded the above code as follows:

CultureInfo culture = new CultureInfo(“en-US”);

string today = DateTime.Now.ToString(“d”,culture);

dv.RowFilter = string.Format(“TODATE >=#{0}#”, today);

Now this code perfectly works on any ssytem with any culture.

Happy to Share Code :)

Problem of Date with Culture

Filed under: DotNet — tosaik @ 1:55 pm

Hi, I want to share my problem and its solution i found..
Problem : I have developed one client Application in which iam getting data from database in to DataView Object, Now my task is to show the records on the Grid which are greater than or equal to current system date.
To do so i used following code

(overview not exactly)
 string today = DateTime.Now.ToString();
 dv.RowFilter = string.Format(“TODATE >=#{0}#”, today);

Its working fine on some systems and raising exceptions on some other systems.

Solution : the exact problem is culture the system. When the culture is different what we expecting then its getting execption to fix this problem i coded the above code as follows:

        CultureInfo culture = new CultureInfo(“en-US”);     
         string today = DateTime.Now.ToString(“d”,culture);
         dv.RowFilter = string.Format(“TODATE >=#{0}#”, today);

Now this code perfectly works on any ssytem with any culture.

Happy to Share Code :)

June 23, 2010

Querry to Deleting Duplicate Records

Filed under: DataBase — tosaik @ 12:36 pm
Tags:

Hi,

  Many people will struct with their  work when comming to delete duplicate records in a table with single querry.
I want to make it easy your job by following Querry.

Note: this Querry works in Sql Server 7.0 and above versions
;WITH T
AS
(
SELECT *,ROW_NUMBER() OVER(PARTITION BY <Fieldname>  ORDER BY <PrimaryKeyFieldName>) AS RANK1 FROM <TableName>
) Delete  FROM T WHERE RANK1 > 1

February 14, 2010

Introducing New Forums

Filed under: DotNet — tosaik @ 3:57 pm
Tags:

Hi Friends,

  I Introducing a new Software Elite Forums and i Invite one and all to visit my forums and participate in it.

http://forums.santoshtechnologies.com

Thanks,

March 1, 2009

Spring and Hidernate By Mr.Santosh.

Filed under: Java — tosaik @ 7:45 am
Tags:
Spring and hibernate by Mr.Santosh

Spring and Hibernate by Mr.Santosh

February 18, 2009

Oslo : A new Product From Microsoft

Filed under: DotNet — tosaik @ 7:35 am
Tags:

Making a new class of model-driven applications mainstream

About “Oslo”

”Oslo” is the codename for Microsoft’s forthcoming modeling platform. Modeling is used across a wide range of domains and allows more people to participate in application design and allows developers to write applications at a much higher level of abstraction. “Oslo” consists of:

  • A tool that helps people define and interact with models in a rich and visual manner
  • A language that helps people create and use textual domain-specific languages and data models
  • A relational repository that makes models available to both tools and platform components

“Oslo” was first announced by Robert Wahbe (Corporate Vice President of the Connected Systems Division) in October 2007.

“Oslo” and a Mainstream Approach to Modeling

Modeling has often been heralded as a means to break down technology and role silos in application development to assist IT departments in delivering more effective business strategies. However, while the promise of modeling has existed for decades, it has failed to have a mainstream impact on the way organizations develop and manage their core applications. Microsoft believes that models must evolve to be more than static diagrams that define a software system; they are a core part of daily business discussions, from organizational charts to cash flow diagrams. Implementing models as part of the design, deployment and management process would give organizations a deeper way to define and communicate across all participants and aspects involved in the application lifecycle.

In order to make model-driven development a reality, Microsoft is focused on providing a model-driven platform and visual modeling tools that make it easy for all “mainstream” users, including information workers, developers, database architects, software architects business analysts and IT Professionals, to collaborate throughout the application development lifecycle. By putting model-driven innovation directly into the .NET platform, organizations will gain visibility and control over applications from end-to-end, ensuring they are building systems based on the right requirements, simplifying iterative development and re-use, and enabling them to resolve potential issues at a high level before they start committing resources.

Modeling is a core focus of Microsoft’s Dynamic IT strategy, the company’s long-term approach to provide customers with technology, services and best practices to enable IT and development organizations to be more strategic to the business. “Oslo” is a core piece of delivering on this strategy.

“The benefits of modeling have always been clear, but traditionally only large enterprises have been able to take advantage of it and on a limited scale. We are making great strides in extending these benefits to a broader audience by focusing on three areas. First, we are deeply integrating modeling into our core .NET platform; second, on top of the platform, we then build a very rich set of perspectives that help specific personas in the lifecycle get involved; and finally, we are collaborating with partners and organizations like OMG to ensure we are offering customers the level of choice and flexibility they need.”

Bob Muglia, Senior Vice President, Microsoft Server & Tools Business

“Oslo” and the Future of Application Development

At TechEd United States 2008 (June 2008), Chairman Bill Gates discussed in his keynote the ways in which modeling would transform the future of application development, and the role that “Oslo” plays in these efforts. He also disclosed that a community technology preview (CTP) will be released at the Professional Developers Conference in October 2008.

“I think one of the biggest trends in application development that I talked about… is modeling, and we’re making a big investment in that. We have what’s been code named Oslo, and talked a little bit about it on our Web sites and our blogs, which is this model-driven development platform. It’s actually taking the kind of models that you’re seeing arising in specific domains, like software management in System Center, or your data design over in SQL, or your process activities over in BizTalk and saying, we need to take all these domains and be able to put them into one model space. In fact, we need to let people create their own domains that aren’t just isolated, but that exist in this one modeling space. And that’s what Oslo is about.”

Bill Gates, Chairman, Microsoft

Next Page »

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.