two (11,758) #2


c# - When to use an extension method with lambda over LINQtoObjects to filter a collection?

c# - When to use an extension method with lambda over LINQtoObjects to filter a collection?

I am prototyping some C# 3 collection filters and came across this. I have a collection of products: public class MyProduct{public string Name{get; set;}public Double Price{get; set;…


asp.net - How to specify javascript to run when ModalPopupExtender is shown

The ASP.NET AJAX ModalPopupExtender has OnCancelScript and OnOkScript properties, but it doesn't seem to have an OnShowScript property. I'd like to specify a javascript function to run each time the…


Multiple foreign keys?

I've got a table that is supposed to track days and costs for shipping product from one vendor to another. We(brilliantly:p) stored both the shipping vendors(FedEx, UPS) with the product handling…


algorithm - Two marbles and a 100 story building

One of those classic programming interview questions... You are given two marbles, and told that they will break when dropped from some certain height(and presumably suffer no damage if dropped from…


How to create a SQL Server function to “join” multiple rows from a subquery into a single delimited field?

This question already has answers here:How to concatenate text from multiple rows into a single text string in SQL server?(47 answers) Closed 2 years ago.…


Visual Studio and dual/multiple monitors: how do I get optimized use out of my monitors?

Ultramon is a great program for dual monitors(stretching screen across monitors), but I was wondering if there is any way do to something in Visual Studio like have one tab of code open on one monit…


What is the difference between String and string in C#?

Example(note the case): string s="Hello world!"; String s="Hello world!"; What are the guidelines for the use of each? And what are the differences ?…



algorithm - Merge Sort a Linked List

I was recently brushing up on some fundamentals and found merge sorting a linked list to be a pretty good challenge. If you have a good implementation then show it off here.…


linux - Keep Remote Directory Up-to-date

I absolutely love the Keep Remote Directory Up-to-date feature in Winscp. Unfortunately, I can't find anything as simple to use in OS X or Linux. I know the same thing can theoretically be accomplishe…


SQL, Auxiliary table of numbers

For certain types of sql queries, an auxiliary table of numbers can be very useful. It may be created as a table with as many rows as you need for a particular task or as a user defined function that…




how multiple between with and from java example compare one