specific (5,379)


html Determine a user's timezone

html Determine a user's timezone

Is there a standard way for a web server to be able to determine a user's timezone within a web page? Perhaps from an HTTP header or part of the user-agent string?…


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…


What is the meaning of the type safety warning in certain Java generics casts?

What is the meaning of the Java warning? Type safety: The cast from Object to List is actually checking against the erased type List I get this warning when I try to cast an Object to a type with ge…


How to setup a crontab to execute at specific time

How can I set up my crontab to execute X script at 11:59PM every day without emailing me or creating any logs? Right now my crontab looks something like this @daily/path/to/script.sh…


Domain Specific Language resources

I was just listening to some older.Net Rocks! episodes, and I found#329 on DSLs to be interesting. My problem is that I can't find any good online resources for people trying to learn this technolo…


c# How to reference to multiple version assembly

I'm developing a Sharepoint application and use.NET AjaxControlToolkit library, we are adding a custom aspx page to the Sharepoint. Sharepoint 2007 run in quirks mode so I've made some modification…


.htaccess Mod-Rewrite loading files behind the DocumentRoot

I'm using.htaccess and mod_rewrite to point to files that reside behind the DocumentRoot. My folder structure looks like this: home/ webroot/ other_files/ I have a.htaccess file in webroot…



c# Generic type conversion FROM string

I have a class that I want to use to store "properties" for another class. These properties simply have a name and a value. Ideally, what I would like is to be able to add typed properties, so that th…


http How do I prevent IIS7 from dropping my cookies?

I'm using Windows Vista x64 with SP1, and I'm developing an ASP.NET app with IIS7 as the web server. I've got a problem where my cookies aren't "sticking" to the session, so I had a Google and found…


c# LINQ query on a DataTable

I'm trying to perform a LINQ query on a DataTable object and bizarrely I am finding that performing such queries on DataTables is not straightforward. For example: var results=from myRow in myDataTa…




from how get file remove example with not all and