In Windows, where is the most appropriate place to store an executable that will be ran as a scheduled task on a server?
A file share?
"C:"?
"C:\Windows"?
Others?
I read somewhere the you can't remove response headers once they've been added. Given that, I'm wondering where in a standard ASP.NET web forms application do response headers get added initially. For example, these:
Date Fri, 23 Apr 2010 16:25:56 GMT
Server Microsoft-IIS/6.0
X-Powered-By ASP.NET
Cache-Control private
And can I stop it from…
Hello,
I've noticed that Notepad++ is clearing the undo buffer when I save a file. This just started happening when I updated the editor to version 5.6.8. (previous version was pretty old... 5.3.? perhaps...)
I've seen one reference out there (look at last bullet of answer) that this might be a setting I can change. But for the life of me, I…
I'm having real difficulty with a query involving 3 tables. I need to get the 3 newest users per department grouped by department names. The groups should be sorted by the users.dateadded so the department with the newest activity is first. The users can exist in multiple departments so Im using a lookup table that just contains the userID…
I have two checkboxes (Recommended and Others) which have peoples names (concatenated, i.e. John Smith is one item). I want to alphabetize the selected members of each list into one. How can I do this?
Hi,
I have an Indian company data set and need to extract the City and Zip from the address field:
Address Field Example:
Gowripuram West, Sengunthapuram Post, Near L.G.B., Karur, Tamilnadu, Karur - 639 002, India
As you can see the City is Karur and the zip is followed after the - (hyphen).
I need the PHP code to match [city] - [zip]
…
I have a very odd problem.
A class property is mysteriously reset between method calls.
The following code is executed so the constructor is called, then the parseConfiguration method is called. Finally, processData is called.
The parseConfiguration method sets the "recursive" property to "true". However, as soon as it enters…
Hi,
I'm using Hibernate and I need to find a way of retrieving the relations for an object dynamically at run-time. I can't find this in the API.
Can anyone point me in the right direction please?
Thanks
So, I've been working on this for far longer than I should be and I'm quite thoroughly perplexed and lost. I apologize if this turns out to be a facile question, but I'm entirely befuddled and very much in need of some guidance.
Earlier today I registered a cheap .info domain on NameCheap just to play around with as I learn…
I was wondering when I read the famous "Programmer Habits" thread, I was wondering: Is there any way to tell if somebody is a programmer without actually asking them?
Clarification: I am asking for things that you can use to recognise a programmer from "afar" or without knowing them well. To identify habits, you need to be…
In other words, why can't I do this:
<a id="projectsButton"
visible=<%= someFunctionWhichEvalsToFalse() ? false : true %>>
</a>
It seems to do nothing. I checked this by switching the false and true.
What can I do about this?
I have a PHP script that compiles LaTeX documents with the use of:
exec('cd /path/to/doc && /usr/bin/latexmk -pdf filename.tex');
This is working for some of my LaTeX documents but my latest document doesn't compile and a look at the log reveals:
!pdfTeX error: pdflatex (file ecrm1000): Font ecrm1000 at 600 not…
Hi,
I'd like to allow users the option to register using their Twitter account. Basically, I'll present them with a standard signup form (name, login, email, pwd, pwd_confirm) as well as a "Signup with Twitter" link.
If a user chooses to signup with Twitter creds, then I'll create a user record in db. Then I'd like…
Having programmed for a while now I have noticed that I am becoming more and more reliant on the internet and intellisense to do my job. But I was wondering how much that has effected my knowledge over the past year or so. But does this matter?
For example I am more likely now to remember that when I need to program…
Hi,
I am working with a fileReference, however I'm having issues running on Safari on a MAC...
EDIT
The below example also doesnt work on Safari on a MAC...
http://www.permadi.com/blog/2010/06/flash-as3-using-filereference-to-load-files-example-for-flash-cs4-and-above/
#
The workflow on a PC runs as such:
1)…
I have a webservice that I want to call from the browser every few seconds to see if there are any notification messages in the database that should be displayed on the screen. We have the JSON code working to display the messages in a JavaScript function after an Async Postback, but this only executes after a page…
I keep hearing all these things about how awesome jQuery is and how the AjaxControlToolkit sucks. Unfortunately, I only heard about this after I built my entire WebForms site using the toolkit.
Now I am considering switching, if not entirely, mostly to jQuery. This is partially for the experience (having never…
Hello, I am getting a compile error, saying that the copy constructor of the scoped_ptr is private with the following code snippet:
class a {};
struct s
{
boost::scoped_ptr<a> p;
};
BOOST_PYTHON_MODULE( module )
{
class_<s>( "s" );
}
This example works with a shared_ptr though. It would be…
I've got a bug in my PHP code that's been terrorizing me for several days now.
I'm trying to clasp in a new module to an existing Magento (v1.4) site, though I'm very new to the Magento framework. I think I am pretty close to getting to "Hello, World" on a block that I want displayed in the backend, but I'm…
Hi there.
I'm using a very simple CSS dropdown menu which works well in most modern browsers. Unfortunately it must also work in IE6 and 7, which it currently does not. Can anyone please check it out very quickly and tell me if it can be easily fixed?
I'm not adverse to using JavaScript if required.
The…
I've got a table in a div, with a vertical scrollbar on the div to allow the table to be longer than the div can hold. Works fine. But I'd like to allow the user to resize the div vertically if they want to be able to view more of the table. I've been playing with the jQueryUI resizable interaction, but it…
Related question: http://stackoverflow.com/questions/340567/what-is-the-best-webdav-client-for-windows
The pain point for me with Windows Explorer as a WebDAV client (or as an FTP client) is that downloading large amounts of files usually results in Windows calculating transfer times and Explorer…
I have a swf object embedded into a web page. Without having access to the source code of the swf file, how can I find the methods/properties that are exposed?
For example...
alert(document.getElementById('swfObject').id);
...returns a pop-up of "swfObject". And this...
…