using (29,595)

Given a specific DateTime value, how do I display relative time, like: 2 hours ago 3 days ago a month ago…
c# - Filling a DataSet or DataTable from a LINQ query result set
How do you expose a LINQ query as an ASMX web service? Usually, from the business tier, I can return a typed DataSet or DataTable which can be serialized for transport over ASMX. How can I do the same…
c# - How do I get a distinct, ordered list of names from a DataTable using LINQ?
I have a DataTable with a Name column. I want to generate a collection of the unique names ordered alphabetically. The following query ignores the order by clause. var names=(from DataRow dr in dataTa…
How do you page through a collection in LINQ given that you have a startIndex and a count ?…
c# - Compressing/Decompressing Folders & Files
Does anyone know of a good way to compress or decompress files and folders in C# quickly? Handling large files might be necessary.…
c# - How do I print an HTML document from a web service?
I want to print HTML from a C# web service. The web browser control is overkill, and does not function well in a service environment, nor does it function well on a system with very tight security con…
php - What's the best way to generate a tag cloud from an array using h1 through h6 for sizing?
I have the following arrays: $artist=array("the roots", "michael jackson", "billy idol", "more", "and more", "and_YET_MORE"); $count=array(5, 3, 9, 1, 1, 3); I want to generate a tag cloud that will h…
language agnostic - When to use unsigned values over signed ones?
When is it appropriate to use an unsigned variable over a signed one? What about in a for loop? I hear a lot of opinions about this and I wanted to see if there was anything resembling a consensus. fo…
Deploying SQL Server Databases from Test to Live
I wonder how you guys manage deployment of a database between 2 SQL Servers, specifically SQL Server 2005. Now, there is a development and a live one. As this should be part of a buildscript(standar…
I was wondering if there is any good and clean oo implementation of Bayesian filtering for spam and text classification? This is just for learning purposes.…