current (7,426)


Class::DBI-like library for php?

Class::DBI-like library for php?

I have inherited an old crusty PHP application, and I'd like to refactor it into something a little nicer to deal with, but in a gradual manner. In perl's CPAN, there is a series of classes around Cl…


Is there a way for MS Access to grab the current Active Directory user?

I'm working on a spec for a piece of software for my company and as part of the auditing system I think it would be neat if there was a way to grab the current Active Directory user. Hopefully someth…


How do I reset an increment identity's starting value in SQL Server

I would like to have a nice template for doing this in development. How do I reset an increment identity's starting value in SQL Server?…


asp.net - Retrieving the PC Name of a Client?(Windows Auth)

I have an ASP.net Application that runs on the internal network(well, actually it's running on Sharepoint 2007). I just wonder: Can I somehow retrieve the name of the PC the Client is using? I wou…


bash - Why doesn't**find** find anything?

I'm looking for shell scripts files installed on my system, but find doesn't work: $ find/usr-name*.sh But I know there are a ton of scripts out there. For instance: $ ls/usr/local/lib/*.sh/usr…


Enumerate Windows user group members on remote system using c#

Within c#, I need to be able to Connect to a remote system, specifying username/password as appropriate List the members of a localgroup on that system Fetch the results back to the executing comput…



.NET-Get protocol, host, and port

Is there a simple way in.NET to quickly get the current protocol, host, and port? For example, if I'm on the following URL: http://www.mywebsite.com:80/pages/page1.aspx I need to return: http://www.my…


.net - XPath and Selecting a single node

I'm using XPath in.NET to parse an XML document, along the lines of: XmlNodeList lotsOStuff=doc.SelectNodes("//stuff"); foreach(XmlNode stuff in lotsOStuff){XmlNode stuffChild=stuff.Selec…


SQL Server: Get data for only the past year

I am writing a query in which I have to get the data for only the last year. What is the best way to do this? SELECT... FROM... WHERE date>'8/27/2007 12:00:00 AM'…


c# - Process Memory Size-Different Counters

I'm trying to find out how much memory my own.Net server process is using(for monitoring and logging purposes). I'm using: Process.GetCurrentProcess().PrivateMemorySize64 However, the Process objec…




get how from date example and the name not time