<< < 153 154 155 156 157 158 159 160 161 162 163 > >>   Sort: Date

What is a good way to check for ``close enough'' floating-point equality?
What is a good way to check for ``close enough'' floating-point equality? Since the absolute accuracy of floating point values varies, by definition, with their magnitude, the best way of comparing two floating point values is to use an accuracy threshold which is relative to the magnitude of the nu...
2015-06-26, 1967👍, 0💬

What base class do all Web Forms inherit from?
What base class do all Web Forms inherit from? System.Web.UI.Page
2014-01-30, 1967👍, 0💬

Should validation (did the user enter a real date) occur server-side or client-side? Why?
Should validation (did the user enter a real date) occur server-side or client-side? Why? Client-side validation because there is no need to request a server side date when you could obtain a date from the client machine.
2014-01-16, 1966👍, 0💬

I am constantly writing the drawing procedures with System.Drawing.Graphics, but having to use the try and dispose blocks is to
I am constantly writing the drawing procedures with System.Drawing.Graphics, but having to use the try and dispose blocks is too time-consuming with Graphics objects. Can I automate this? Yes, the code System.Drawing.Graphics canvas = new System.Drawing.Graphics(); try { //some code } finally canvas...
2013-11-20, 1965👍, 0💬

What is the difference between a Local temporary table and a Global temporary table? How is each one used?
What is the difference between a Local temporary table and a Global temporary table? How is each one used? Answer1: Local templrary table will have a single # (#tablename) appended with the table name.Global templrary table will have Double # (##tablename) appended with the table name. Ex:create tab...
2014-10-15, 1964👍, 0💬

Can you explain what inheritance is and an example of when you might use it?
Can you explain what inheritance is and an example of when you might use it? Inheritance is a fundamental feature of an object oriented system and it is simply the ability to inherit data and functionality from a parent object. Rather than developing new objects from scratch, new code can be based o...
2014-01-22, 1963👍, 0💬

How can I read one character at a time, without waiting for the RETURN key
How can I read one character at a time, without waiting for the RETURN key Alas, there is no standard or portable way to do these things in C. Concepts such as screens and keyboards are not even mentioned in the Standard, which deals only with simple I/O ``streams'' of characters. Input to a compute...
2015-11-11, 1961👍, 0💬

What is the difference between calloc and malloc? ....
What's the difference between calloc and malloc? Which should I use? Is it safe to take advantage of calloc's zero-filling? Does free work on memory allocated with calloc, or do you need a cfree? calloc(m, n) is essentially equivalent to p = malloc(m * n); memset(p, 0, m * n); There is no important ...
2016-03-16, 1960👍, 0💬

I am allocating structures which contain pointers to other dynamically ....
I'm allocating structures which contain pointers to other dynamically-allocated objects. When I free a structure, do I also have to free each subsidiary pointer? Yes. malloc knows nothing about structure declarations or about the contents of allocated memory; it especially does not know whether allo...
2016-03-31, 1959👍, 0💬

Explain differences between framework 1.0 and framework 1.1
Explain differences between framework 1.0 and framework 1.1 1. Native Support for Developing Mobile Web Applications 2. Unified Programming Model for Smart Client Application Development 3. Enable Code Access Security for ASP.NET Applications 4. Native Support for Communicating with ODBC and Oracle ...
2014-11-07, 1958👍, 0💬

What is the comment syntax for C#’s XML-based documentation?
What is the comment syntax for C#’s XML-based documentation? What is the comment syntax for C#’s XML-based documentation? * /** and **/ * //# * /// * //* ///
2014-08-04, 1957👍, 0💬

What are the consideration in deciding to use .NET Remoting or ASP.NET Web Services?
What are the consideration in deciding to use .NET Remoting or ASP.NET Web Services? Remoting is a more efficient communication exchange when you can control both ends of the application involved in the communication process. Web Services provide an open-protocol-based exchange of informaion. Web Se...
2013-11-11, 1956👍, 0💬

How can you assign an RGB color to a System.Drawing.Color object?
How can you assign an RGB color to a System.Drawing.Color object? Call the static method FromArgb of this class and pass it the RGB values.
2013-11-22, 1955👍, 0💬

I have seen function declarations that look like this
I've seen function declarations that look like this: extern int func __((int, int)); What are those extra parentheses and underscores for? They're part of a trick which allows the prototype part of the function declaration to be turned off for a pre-ANSI compiler. Somewhere else is a conditional def...
2015-05-23, 1953👍, 0💬

The Equivalent Html Control for the &lt;select> tag is ...
The Equivalent Html Control for the &lt;select> tag is ... The Equivalent Html Control for the &lt;select> tag is * &lt;HtmlSelectInput> * &lt;HtmlSelect> * &lt;HtmlInputSelect> * &lt;HtmlSelectControl> &lt;HtmlSelect>
2014-06-25, 1953👍, 0💬

What security measures exist for .NET Remoting in System.Runtime.Remoting?
What security measures exist for .NET Remoting in System.Runtime.Remoting? None. Security should be taken care of at the application level. Cryptography and other security techniques can be applied at application or server level.
2013-11-13, 1953👍, 0💬

What method(s) must be used with the Application object to ensure that only one process accesses a variable at a time?
What method(s) must be used with the Application object to ensure that only one process accesses a variable at a time? What method(s) must be used with the Application object to ensure that only one process accesses a variable at a time? * Synchronize() * Lock() and UnLock() * Lock() * Asynchroize()...
2014-08-11, 1951👍, 0💬

Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?
Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines? The Application_Start event is guaranteed to occur only once throughout the lifetime of the application. It’s a good place to initialize global variables. For example, you might w...
2014-01-21, 1951👍, 0💬

Describe session handling in webform. How does it work and what are the limits?
Describe session handling in webform. How does it work and what are the limits? Session management in ASP.NET can be done in two ways: Using Cookies Encoding of URLs with Session ID
2014-11-05, 1949👍, 0💬

webFarm Vs webGardens
webFarm Vs webGardens A web farm is a multi-server scenario. So we may have a server in each state of US. If the load on one server is in excess then the other servers step in to bear the brunt. How they bear it is based on various models. 1. RoundRobin. (All servers share load equally) 2. NLB (econ...
2013-11-06, 1949👍, 0💬

What is the difference between ASP and ASP.NET?
What is the difference between ASP and ASP.NET? ASP is interpreted. ASP.NET Compiled event base programming. Control events for text button can be handled at client javascript only. Since we have server controls events can handle at server side. More error handling. ASP .NET has better language supp...
2013-11-04, 1949👍, 0💬

What is the base class of .NET?
What is the base class of .NET? Base class provides a base set of methods that all derived classes can use
2013-12-09, 1948👍, 0💬

NET is Compile Time OR RunTime Environment?
NET is Compile Time OR RunTime Environment? .Net’s framework has CLS,CTS and CLR.CTS checks declartion of types at the time when u write code and CLS defines some rules and restrictions.and CLR comile everything at runtime with following benefits: Vastly simplified development Seamless integratio...
2014-03-03, 1946👍, 0💬

What are channels in .NET Remoting?
What are channels in .NET Remoting? Channels represent the objects that transfer the other serialized objects from one application domain to another and from one computer to another, as well as one process to another on the same box. A channel must exist before an object can be transferred.
2013-11-12, 1946👍, 0💬

<< < 153 154 155 156 157 158 159 160 161 162 163 > >>   Sort: Date