internet explorer - IE6-can't load a normal JPG

internet explorer - IE6-can't load a normal JPG

Try loading this normal.jpg file in Internet Explorer 6.0. I get an error saying the picture won't load. Try it in any other browser and it works fine. What's wrong? The.jpg file is just a normal p…


sql - Which is better: Ad hoc queries, or stored procedures?

Assuming you can't use Linq for whatever reason, is it a better practice to place your queries in stored procedures, or is it just as good a practice to execute ad hoc queries against the database(sa…


What is a good open source B-tree implementation in C?

I am looking for a lean and well constructed open source implementation of a B-tree library written in C. It needs to be under a non-GPL license so that it can be used in a commercial application. Ide…


functional programming - What is a 'Closure'?

I asked a question about Currying and closures were mentioned. What is a closure? How does it relate to currying?…


java - What are advantages of bytecode over native code?

It seems like anything you can do with bytecode you can do just as easily and much faster in native code. In theory, you could even retain platform and language independence by distributing programs…


What are the performance characteristics of 'is' reflection in C#?

This question already has an answer here: C# 'is' operator performance 8 answers It's shown that 'as' casting is much faster than prefix casting, but what…


Mocking Static Blocks in Java

My motto for Java is "just because Java has static blocks, it doesn't mean that you should be using them." Jokes aside, there are a lot of tricks in Java that make testing a nightmare. Two of the mos…


c++ - Advantage of switch over if-else statement

What's the best practice for using a switch statement vs using an if statement for 30 unsigned enumerations where about 10 have an expected action(that presently is the same action). Performance and…


OO Javascript:Definitive explanation of variable scope

Can someone provide an explanation of variable scope in JS as it applies to objects, functions and closures?…



How do JavaScript closures work?

How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of(for example functions, variables and the like), but does not understand closures themselves? I ha…




use and how example what java javascript why with the