what is ScriptResource.axd in the page load in web app?

You shouldn’t try to remove requests to those handlers without understanding why the requests are being made. A batch of ScriptResource.axd requests like that are usually due to ASP.NET controls registering includes to the scripts that they’re dependent on, especially scripts for the ASP.NET AJAX Control Toolkit controls. If you want to minimize the number … Read more

Fastest way to generate a random boolean

The first option – rand.Next(2) executes behind the scenes the following code: and for the second option – rand.NextDouble(): Since the first option contains maxValue validation, multiplication and casting, the second option is probably faster.

Is it more efficient to return a const reference

A function should never return a reference to a local object/variable since such objects go out of the scope and get destroyed when the function returns. Differently, the function can return a const or non const reference to an object whose scope is not limited by the function context. Typical example is a custom operator<<: Unfortunately, returning-by-value has … Read more

What is the best way to profile javascript execution?

Firebug Firebug provides a highly detailed profiling report. It will tell you how long each method invocation takes in a giant (detailed) table. You need to call console.profileEnd () to end your profile block. See the console API here: http://getfirebug.com/wiki/index.php/Console_API Blackbird Blackbird (official site) also has a simpler profiler (can be downloaded from here)

Java check if boolean is null

boolean can only be true or false because it’s a primitive datatype (+ a boolean variables default value is false). You can use the class Boolean instead if you want to use null values. Boolean is a reference type, that’s the reason you can assign null to a Boolean “variable”. Example:

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)