entry (748)


automation - Piping password to smbpasswd

How can I pipe the new password to smbpasswd so I can automate my installation process.…


asp classic - What is this 'Multiple-step OLE DB' error?

I'm doing a little bit of work on a horrid piece of software built by Bangalores best. It's written in mostly classic ASP/VbScript, but "ported" to ASP.NET, though most of the code is classic ASP sty…


language agnostic - Should a function have only one return statement?

Are there good reasons why it's a better practice to have only one return statement in a function? Or is it okay to return from a function as soon as it is logically correct to do so, meaning there m…


asp.net - Best practices re: LINQ To SQL for data access

Part of the web application I'm working on is an area displaying messages from management to 1...n users. I have a DataAccess project that contains the LINQ to SQL classes, and a website project that…


php - How to check if a value already exists to avoid duplicates?

I've got a table of URLs and I don't want any duplicate URLs. How do I check to see if a given URL is already in the table using PHP/MySQL?…


c# - Deleting Custom Event Log Source Without Using Code

I have an application that has created a number of custom event log sources to help filter its output. How can I delete the custom sources from the machine WITHOUT writing any code as running a quick…



What technologies do C++ programmers need to know?

C++ was the first programming language I really got into, but the majority of my work on it was academic or for game programming. Most of the programming jobs where I live require Java or.NET progra…


jQuery Datepicker with text input that doesn't allow user input

How do I use the jQuery Datepicker with a textbox input: $("#my_txtbox").datepicker({// options}); that doesn't allow the user to input random text in the textbox. I want the Datepicker to pop up…


user interface - Tcl/Tk examples?

Tcl/Tk is a simple way to script small GUIs. Can anyone give a nice example with a button and a text widget. When the button is pressed should a shell command be executed and the output piped to the…


Logging entry and exit of methods along with parameters automagically?

Is there a way for me to add logging so that entering and exiting methods gets logged along with parameters automatically somehow for tracing purposes? How would I do so? I am using Log4Net.…




how not for example from point multiple key java the