text stringlengths 8 267k | meta dict |
|---|---|
Q: prevent mime faking on php uploads Is there a way to prevent someone from faking a mime type on a file upload and then running a php/exe/etc...
I have to make the file upload directory writeable and executable so that the files can be stored, but this allows anyone to run a script after. One thing I can do is add r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to retrieve the call stack programmatically in VB6? When an error occurs in a function, I'd like to know the sequence of events that lead up to it, especially when that function is called from a dozen different places. Is there any way to retrieve the call stack in VB6, or do I have to do it the hard... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Change the Catalog property of a Crystal Report in VS 2005 I'm working on an existing report and I would like to test it with the database. The problem is that the catalog set during the initial report creation no longer exists. I just need to change the catalog parameter to a new database. The report is using a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Debug XP application on Vista computer I am building an MFC application for both XP and Vista. I have Visual Studio 2008 installed on the XP machine but I need to debug the application on Vista. How can I do that? Do I really have to install Visual Studio on a Vista machine?
When using remote debugging I assume that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sync File Modification Time Across Multiple Directories I have a computer A with two directory trees. The first directory contains the original mod dates that span back several years. The second directory is a copy of the first with a few additional files. There is a second computer be which contains a directory ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: View grants in MySQL How do I view the grants (access rights) for a given user in MySQL?
A: You could try this:
SELECT GRANTEE, PRIVILEGE_TYPE FROM information_schema.user_privileges;
SELECT User,Host,Db FROM mysql.db;
A: You might want to check out mk-show-grants from Maatkit, which will output the current set o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Disabling client cache from Jetty server for REST requests I have a REST Java server implemented with Jersey running on Jetty. It seems that certain browsers (IE7) internally caches all requests made to the server.
What I would like to do is to send a certain HTTP header in the response from the REST server indicat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Favorite .NET Unit Testing framework I've been using NUnit for a few years. I've tried MBUnit for a short while as well as Zenebug and XUnit but I keep coming back to NUnit.
What is your favorite/most used Unit test Framework? Can you explain why you're using it?
A: MbUnit
I like the way it handles reports, and I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: SVN performance after many revisions My project is currently using a svn repository which gains several hundred new revisions per day.
The repository resides on a Win2k3-server and is served through Apache/mod_dav_svn.
I now fear that over time the performance will degrade due to too many revisions.
Is this fear r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: Firefox XPCOM component - Permission denied to call method UnnamedClass Can a firefox XPCOM component read and write page content across multiple pages?
Scenario:
A bunch of local HTML and javascript files. A "Main.html" file opens a window "pluginWindow", and creates a plugin using:
netscape.security.PrivilegeMan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What can you do with SharePoint on Intranet? We have had SharePoint where I work for a little while now, but we've not done a lot with it. We have an intranet with hundreds of ASP/ASP.Net applications and I'm wondering what kind of things can be done to integrate with SharePoint to make a more seamless environment? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Algorithm to return all combinations of k elements from n I want to write a function that takes an array of letters as an argument and a number of those letters to select.
Say you provide an array of 8 letters and want to select 3 letters from that. Then you should get:
8! / ((8 - 3)! * 3!) = 56
Arrays (or words) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "640"
} |
Q: Catching Exceptions in a Spawned Process I'm using VS2008 to debug an application that starts a new process. I believe that the spawned process is suffering (and handling) some kind of CLR exception during its start-up, but it is not being caught by turning on CLR Exception Notification in Debug -> Exceptions. Any s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does "piping" a CharBuffer hang? Why does the following method hang?
public void pipe(Reader in, Writer out) {
CharBuffer buf = CharBuffer.allocate(DEFAULT_BUFFER_SIZE);
while( in.read(buf) >= 0 ) {
out.append(buf.flip());
}
}
A: Answering my own question: you have to call buf.clear() betwee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I validate that a list box is not empty (client side) I'm working with ASP.NET 3.5.
I have a list box that users must add items to (I've written the code for this). My requirement is that at least one item must be added to the listbox or they cannot submit the form. I have several other validators on the page... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to implement a Decorator with non-local equality? Greetings, currently I am refactoring one of my programs, and I found an interesting problem.
I have Transitions in an automata. Transitions always have a start-state and an end-state. Some Transitions have a label, which encodes a certain Action that must be per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can anyone explain this PHP code using json_encode and json_decode? $a = '{ "tag": "<b></b>" }';
echo json_encode( json_decode($a) );
This outputs:
{"tag":"<b><\/b>"}
when you would think it would output exactly the input. For some reason json_encode adds an extra slash.
A: use this:
echo json_encode($a,JSON... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java idiom for "piping" Is there a more concise/standard idiom (e.g., a JDK method) for "piping" an input to an output in Java than the following?
public void pipe(Reader in, Writer out) {
CharBuffer buf = CharBuffer.allocate(DEFAULT_BUFFER_SIZE);
while (in.read(buf) >= 0 ) {
out.append(buf.flip());
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Php debugging with Aptana Studio and Xdebug or Zend debugger on OS X Have you managed to get Aptana Studio debugging to work? I tried following this, but I don't see Windows -> Preferences -> Aptana -> Editors -> PHP -> PHP Interpreters in my menu (I have PHP plugin installed) and any attempt to set up the servers m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you pre allocate memory to a process in solaris? My problem is:
I have a perl script which uses lot of memory (expected behaviour because of caching). But, I noticed that the more I do caching, slower it gets and the process spends most of the time in sleep mode.
I thought pre-allocating memory to the process... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where can you find the C# Language Specifications? Where can I find the specifications for the various C# languages?
(EDIT: it appears people voted down because you could 'google' this, however, my original intent was to put an answer with information not found on google. I've accepted the answer with the best googl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Is every DDL SQL command reversible? [database version control] I want to setup a mechanism for tracking DB schema changes, such the one described in this answer:
For every change you make to the
database, you write a new migration.
Migrations typically have two methods:
an "up" method in which the changes
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Child Control Initialization in Custom Composite in ASP.NET Part of the series of controls I am working on obviously involves me lumping some of them together in to composites. I am rapidly starting to learn that this takes consideration (this is all new to me!) :)
I basically have a StyledWindow control, which is e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I parse an ISO 8601-formatted date? I need to parse RFC 3339 strings like "2008-09-03T20:56:35.450686Z" into Python's datetime type.
I have found strptime in the Python standard library, but it is not very convenient.
What is the best way to do this?
A: I've coded up a parser for the ISO 8601 standard and pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "876"
} |
Q: What does a scrum master do all day? To quote wikipedia:
Scrum is facilitated by a ScrumMaster, whose primary job is to remove impediments to the ability of the team to deliver the sprint goal. The ScrumMaster is not the leader of the team (as they are self-organizing) but acts as a buffer between the team and any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: C# 3.0 - Object initializer I'm having a little problem and I don't see why, it's easy to go around it, but still I want to understand.
I have the following class :
public class AccountStatement : IAccountStatement
{
public IList<IAccountStatementCharge> StatementCharges { get; set; }
public AccountStatem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I bind an ASP.net ajax AccordionPane to an XMLDatasource? I've got an angry boss that will beat me down if I waste another day on this :-P Many karma points to the ajax guru who can solve my dilemma.
But more detail: I want to have an AccordionPane that grabs a bunch of links from an XML source and populate ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET Ajax - Asynch request has separate session? We are writing a search application that saves the search criteria to session state and executes the search inside of an asp.net updatepanel. Sometimes when we execute multiple searches successively the 2nd or 3rd search will sometimes return results from the firs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using Blitz implementation of JavaSpaces I have great doubts about this forum, but I am willing to be pleasantly surprised ;) Kudos and great karma to those who get me back on track.
I am attempting to use the blitz implementation of JavaSpaces (http://www.dancres.org/blitz/blitz_js.html) to implement the ComputeFar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SAX vs XmlTextReader - SAX in C# I am attempting to read a large XML document and I wanted to do it in chunks vs XmlDocument's way of reading the entire file into memory. I know I can use XmlTextReader to do this but I was wondering if anyone has used SAX for .NET? I know Java developers swear by it and I was wonder... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Source Safe 6.0d and Visual Studio 2005 project tree problems Whenever I try to add a new project to my SourceSafe repository it creates 3 folders with the same name nested within each other. There is only one folder on my drive yet in Sourcesafe there are 3??
Can anyone suggest what may be causing this?
Thanks
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to add Announcement list/webpart to Publishing Portal I have a Publishing Portal site and I need to add some announcements to some of the pages. I've read an article which says that i have to create an announcement list to be able add an announcement web part but i can't seem to find any resources on how i can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What should the view file/directory structure be in ASP.NET MVC? I'm confused with how views are organized, and it is important to understand this as ASP.NET MVC uses conventions to get everything working right.
Under the views directory, there are subdirectories. Inside these subdirectories are views. I'm assumin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Which design patterns are underutilized? Is there a specfic Gang Of Four Design Pattern that you frequently use, yet hardly see used in other peoples designs? If possible, please describe a simple example where this pattern can be useful. It doesn't have to necessarily be a Gang Of Four pattern, but please include... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Multiple ModificationForms in Sharepoint Workflow i am working on a Sharepoint Server 2007 Statemachine Workflow. Until now i have a few states and an custom Association/InitiationForm which i created with InfoPath 2007.
At the moment i have a Problem with Modification forms. The modification link in the state page ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to register js for modularity in User Control i have a control that is organized like this
and i want to have the javascript registered on the calling master pages, etc, so that anywhere this control folder is dropped and then registered, it will know how to find the URL to the js.
Here is what i have so f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create reverse index for full text search in Common Lisp? What is the best way to create reverse index for full text search in Common Lisp ? Is there any proven and (relatively) bug-free open library for SBCL or LispWorks ?
I managed to create my own library on top of AllegroCache - it was fairly easy to crea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to use win32api from IronPython Writing some test scripts in IronPython, I want to verify whether a window is displayed or not. I have the pid of the main app's process, and want to get a list of window titles that are related to the pid.
I was trying to avoid using win32api calls, such as FindWindowEx, since... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Compact Framework : any Finger Friendly GUI? i m developing a little tool on my Pocket PC using WM6 SDK but i would like to implement a finger friendly user interface (iphone-like).
So i m looking for a free .NET framework that offers the possibility to easily integrate a finger friendly interface for Windows Mobi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: ASP .Net server control events order Which are the events of an ASP .Net server control and how does their order relate to the containing page's events?
The concrete problem is that I am looking for an event inside the server control that fires before the Page_Load event of the containing page.
A: With regards to h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why Aren't All My WinForm Controls and Forms Localizing? Greetings all,
I'm trying to localize a .NET/C# project. I'm using string resource files and setting the "Localizable" property on all my forms to 'True'. The assembly culture is empty. The resx/resource files are successfully passed through Lingobit, resgen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Working copy XXX locked and cleanup failed in SVN I get this error when I do an svn update:
Working copy XXXXXXXX locked Please
execute "Cleanup" command
When I run cleanup, I get
Cleanup failed to process the
following paths: XXXXXXXX
How do I get out of this loop?
A: I had this problem because external fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "597"
} |
Q: 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 program using System.Diagnostics.EventLog.Delete is not possible.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Is it worth swapping Ctrl and Caps Lock for windows users that don't use Emacs I've been aware of Steve Yegge's advice to swap Ctrl and Caps Lock for a while now, although I don't use Emacs. I've just tried swapping them over as an experiment and I'm finding it difficult to adjust. There are several shortcuts that a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Nested SELECT Statement SQL is not my forte, but I'm working on it - thank you for the replies.
I am working on a report that will return the completion percent of services for indiviudals in our contracts. There is a master table "Contracts," each individual Contract can have multiple services from the "services" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: When using a HashMap are values and keys guaranteed to be in the same order when iterating? When I iterate over the values or keys are they going to correlate? Will the second key map to the second value?
A: to use the entrySet that @Cuchullain mentioned:
Map<String, String> map = new HashMap<String, String>();
/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Add dismiss control to session-flash() output in CakePHP In a CakePHP 1.2 app, I'm using
<?php $session->flash();?>
to output messages like "Record edited". It's working great.
However, I want to add a link called "Dismiss" that will fade out the message. I know how to construct the link, but I don't know how to i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Variable UITableCellView height with subview I want to create a UITableView with varying row heights, and I'm trying to accomplish this by creating UILabels inside the UITableViewCells.
Here's my code so far:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Make OSX application respond to first mouse click when not focused Normal OSX applications eat the first mouse click when not focused to first focus the application. Then future clicks are processed by the application. iTunes play/pause button and Finder behave differently, the first click is acted on even when no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Java, Swing: how do I set the maximum width of a JTextField? I'm writing a custom file selection component. In my UI, first the user clicks a button, which pops a JFileChooser; when it is closed, the absolute path of the selected file is written to a JTextField.
The problem is, absolute paths are usually long, which... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Best way to safely read query string parameters? We have a project that generates a code snippet that can be used on various other projects. The purpose of the code is to read two parameters from the query string and assign them to the "src" attribute of an iframe.
For example, the page at the URL http://oursite/Pag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why should I use Flex? In a recent conversation, I mentioned that I was using JavaScript for a web application. That comment prompted a response: "You should use Flex instead. It will cut your development time down and JavaScript is too hard to debug and maintain. You need to use the right tool for the right job." N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do I pull from a Git repository through an HTTP proxy? Note: while the use-case described is about using submodules within a project, the same applies to a normal git clone of a repository over HTTP.
I have a project under Git control. I'd like to add a submodule:
git submodule add http://github.com/jscruggs/me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "529"
} |
Q: How can I lock a file using java (if possible) I have a Java process that opens a file using a FileReader. How can I prevent another (Java) process from opening this file, or at least notify that second process that the file is already opened? Does this automatically make the second process get an exception if the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "131"
} |
Q: What to do with null fields in compare()? In Java, I use a class in which some fields can be null. For example:
class Foo {
String bar;
//....
}
I want to write a BarComparator for this class,
private static class BarComparator
implements Comparator<Foo> {
public int compare( final F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Algorithm for merging large files I have several log files of events (one event per line). The logs can possibly overlap. The logs are generated on separate client machines from possibly multiple time zones (but I assume I know the time zone). Each event has a timestamp that was normalized into a common time (by ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: In which cases do you test against an In-Memory Database instead of a Development Database? When do you test against an In-Memory Database vs. a Development Database?
Also, as a related side question, when you do use a Development Database, do you use an Individual Development Database, an Integration Development D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What are the benefits of functional programming? What do you think the benefits of functional programming are? And how do they apply to programmers today?
What are the greatest differences between functional programming and OOP?
A: The style of functional programming is to describe what you want, rather than how t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "110"
} |
Q: Dynamically adding controls in ASP.NET Repeater I find my self having a repeater control which is being databound to an xml document. My client is now requesting that the Textbox's which are being repeater can be either a Textbox or a Checkbox.
I cannot seem to find an easyway to essentially do the following:
if ((S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I write a unit test for a controller class that uses winforms for views? Has anyone been able to successfully unit test methods that are, by necessity, coupled to the System.Windows.Forms.Form class?
I've recently been working on a C# winforms application, trying to build it with an MVC structure. This is d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Determining the index of an Item on a Form (J2ME) Given an Item that has been appended to a Form, whats the best way to find out what index that item is at on the Form?
Form.append(Item) will give me the index its initially added at, but if I later insert items before that the index will be out of sync.
A: This was... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you find Leapyear in VBA? What is a good implementation of a IsLeapYear function in VBA?
Edit: I ran the if-then and the DateSerial implementation with iterations wrapped in a timer, and the DateSerial was quicker on the average by 1-2 ms (5 runs of 300 iterations, with 1 average cell worksheet formula also... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Assembler file as input for a driver build with the WDK tools How to get an assembler file to be compiled and linked into a driver build.
To clarify a bit
The SOURCES file :
TARGETTYPE=DRIVER
DRIVERTYPE=WDM
TARGETPATH=obj
TARGETNAME=bla
INCLUDES=$(DDK_INC_PATH)
TARGETLIBS=$(DDK_LIB_PATH)\ks.lib
SOURCES=x.cpp y.cp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What does "Create Statistics" do in SQL Server 2005? The Database Tuning Advisor is recommending that I create a bunch of statistics in my Database. I'm something of a SQL n00b, so this was the first time I'd ever come across such a creature. The entry in MSDN was a little obtuse - could someone explain what exact... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Unicode in PDF My program generates relatively simple PDF documents on request, but I'm having trouble with unicode characters, like kanji or odd math symbols. To write a normal string in PDF, you place it in brackets:
(something)
There is also the option to escape a character with octal codes:
(\527)
but this onl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Retrieve Error text from SQL Server 2000 error I need help logging errors from T-SQL in SQL Server 2000. We need to log errors that we trap, but are having trouble getting the same information we would have had sitting in front of SQL Server Management Studio.
I can get a message without any argument substitution l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Embedding non-edit widgets in a DataGridView Is there any way to embed a widget in a data-bound DataGridViewCell when it is not in editing mode?
For example, we are wanting to display an existing calendar widget in a cell. That cell contains a comma separated list of dates. We want to show the calendar instead of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Debugging with Events in Windows If I create an event using CreateEvent in Windows, how can I check if that event is signaled or not using the debugger in Visual Studio? CreateEvent returns back a handle, which doesn't give me access to much information. Before I call WaitForSingleObject(), I want to check to see ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to define persistent variable in SQL*PLUS I am trying to do the following in SQL*PLUS in ORACLE.
*
*Create a variable
*Pass it as output variable to my method invocation
*Print the value from output variable
I get
undeclared variable
error. I am trying to create a variable that persists in the session t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dynamically change an image in a Crystal Report at runtime I'm using the Crystal Reports included with VisualStudio 2005. I would like to change the image that is displayed on the report at runtime ideally by building a path to the image file and then have that image displayed on the report.
Has anyone been able to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Seeking CSS Browser compatibility information for setting width using left and right Here's a question that's been haunting me for a year now. The root question is how do I set the size of an element relative to its parent so that it is inset by N pixels from every edge? Setting the width would be nice, but you don'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UI Performance with custom border I am creating a user control in C# and I am adding my own border and background. Currently the background is 16 small images that I change depending on the status of the object. Performance wise, would I be better off using GDI+ instead of the images?
A: I doubt it will make a diff... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Displaying tabular type data in .net winforms I want to display tabular type data, but it will not be coming from a single datasource. I am currently using a label, but the alignment doesn't look that great.
Any ideas?
Again, the data is not being loaded from a datagrid or anything, each row is basically a label an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best way to store set data in Python? I have a list of data in the following form:
[(id\__1_, description, id\_type), (id\__2_, description, id\_type), ... , (id\__n_, description, id\_type))
The data are loaded from files that belong to the same group. In each group there could be multiples of the same ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you determine a valid SoapAction? I'm calling a webservice using the NuSoap PHP library. The webservice appears to use .NET; every time I call it I get an error about using an invalid SoapAction header. The header being sent is an empty string. How can I find the SoapAction that the server is expecting?
A: Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Unconditionally execute a task in ant? I'm trying to define a task that emits (using echo) a message when a target completes execution, regardless of whether that target was successful or not. Specifically, the target executes a task to run some unit tests, and I want to emit a message indicating where the results... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Incorrectly set up APC for PHP? I decided to install APC to speed up the site that I work for. Sadly, I found out that it was already installed and enabled(The developer who first worked on the servers has moved on).
Then I decided to check the usage of it to see if it needs more memory allocated to it or not. This ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: LINQ: custom column names UPDATE
I'm basically binding the query to a WinForms DataGridView. I want the column headers to be appropriate and have spaces when needed. For example, I would want a column header to be First Name instead of FirstName.
How do you create your own custom column names in LINQ?
For example... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How best to define a custom action in WiX? I have a WiX installer and a single custom action (plus undo and rollback) for it which uses a property from the installer. The custom action has to happen after all the files are on the hard disk. It seems that you need 16 entries in the WXS file for this; eight within the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do you call an Asynchronous Web Request in VB.NET? I am currently using the following code to create a web request:
Dim myRequest As WebRequest = WebRequest.Create("http://foo.com/bar")
Dim myResponse As WebResponse = myRequest.GetResponse()
The problem is that this "locks" up the program until the request is c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best framework for Unit Testing in JavaME? What is currently the best tool for JavaME unit testing? I´ve never really used unit testing before (shame on me!), so learning curve is important. I would appreciate some pros and cons with your answer. :)
A: I think it will depend on what kind of tests are yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What do I need in order to create 64 bit .NET applications If I want to compile my .NET applications for a 64 bit environment. Do I need
*
*64 bit OS version
or
*64 bit Visual Studio version
Or both?
A: You actually need neither of those for building the application. A pure .NET 2.0+ application will -- ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tag images in the image itself? HOW-TO How to tag images in the image itself in a web page?
I know Taggify, but... is there other options?
Orkut also does it to tag people faces... How is it done?
Anyone knows any public framework that is able to do it?
See a sample bellow from Taggify:
A: I know this isn't javas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Rich Text Editing in Silverlight 2 We've looked in Silverlight 2 recently and found no way to edit formatted text there. Is this really true, and are there any (maybe commercial) external rich text editors available?
A: Vectorlight has a rich text box.
A: I haven't tried it myself yet but this is one I know of.
ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Display DIV at Cursor Position in Textarea For a project of mine I would love to provide auto completion for a specific textarea. Similar to how intellisense/omnicomplete works. For that however I have to find out the absolute cursor position so that I know where the DIV should appear.
Turns out: that's (nearly I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: Is there a better way to initialize a Hastable in .NET without using Add method? I am currently initializing a Hashtable in the following way:
Hashtable filter = new Hashtable();
filter.Add("building", "A-51");
filter.Add("apartment", "210");
I am looking for a nicer way to do this.
I tried something like
Hashtabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How do I find the center of a number of geographic points? If I have a series of points as longitude and latitude, how would I calculate the center of all of those points?
A: Several people have answered to take the mean of the latitudes and longitudes. This is sort of the right idea, but means are more complicated... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: String Format Date - C# or VB.NET Date coming out of a database, need to format as "mm/dd/yy"
For Each dr as DataRow in ds.Tables(0).Rows
Response.Write(dr("CreateDate"))
Next
A: Convert.ToDateTime(dr("CreateDate")).ToShortDate()
See the MSDN docs for other functions available from the DateTime datatype, includi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: PHP: using preg_replace with htmlentities I'm writing an RSS to JSON parser and as a part of that, I need to use htmlentities() on any tag found inside the description tag. Currently, I'm trying to use preg_replace(), but I'm struggling a little with it. My current (non-working) code looks like:
$pattern[0] = "/\<de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: When developing, do you turn off UAC in Vista? I didn't upgrade to Vista until May or so and one of the things I've always heard developers I know in real life say is "first thing you should do is turn off that UAC crap"
Well, I've left it on this whole time for a few reasons. First, just as a failsafe in case I do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Count number of occurrences of token in a file I have a server access log, with timestamps of each http request, I'd like to obtain a count of the number of requests at each second. Using sed, and cut -c, so far I've managed to cut the file down to just the timestamps, such as:
22-Sep-2008 20:00:21 +0000
22-Sep-2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: View SVG using Silverlight or Flash Is there a way to view a SVG from either a file or webpage dynamically using Silver light or flash?
Edit: I am currently converting them on the server using inkscape. The only trouble with this is the time it takes to make all 60+ pages of the catalog is a little slow. It take ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the 'best' way to do distributed transactions across multiple databases using Spring and Hibernate I have an application - more like a utility - that sits in a corner and updates two different databases periodically.
It is a little standalone app that has been built with a Spring Application Context. The co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Upload photo to arbitrary FTP with iPhone app I'd like to upload a photo from my iphone to an arbitrary ftp. How can I do this with Cocoa / Xcode ?
Thanks!
A: You'll want to look into CFFTPStream in regard to the iPhone
A: There's a nice framework out there called ConnectionKit. I haven't used it personally, but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Including many rewrite directives in lighttpd I have a bunch of projects in parallel subdirectories that all have etc/lighttpd.conf files. The files are very simple; they just include a directive that looks like this:
url.rewrite-once = ("^/project(.*)$"=>"project/router.php?args=$1")
Unfortunately, I just discove... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What are XML namespaces for? This is something that I always find a bit hard to explain to others:
Why do XML namespaces exist?
When should we use them and when should we not?
What are the common pitfalls when working with namespaces in XML?
Also, how do they relate to XML schemas? Should XSD schemas always be as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "78"
} |
Q: SQL query - Select * from view or Select col1, col2, ... colN from view We are using SQL Server 2005, but this question can be for any RDBMS.
Which of the following is more efficient, when selecting all columns from a view?
Select * from view
or
Select col1, col2, ..., colN from view
A: NEVER, EVER USE "SELECT ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Is DataGrid a necessity in WPF? I have seen a lot of discussions going on and people asking about DataGrid for WPF and complaining about Microsoft for not having one with their WPF framework till date. We know that WPF is a great UI technology and have the Concept of ItemsControl,DataTemplate, etc,etc to make great ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Reverse-projection 2D points into 3D Suppose we have a 3D Space with a plane on it with an arbitrary equation: ax+by+cz+d=0
now suppose that we pick 3 random points on that plane: (x0, y0, z0) (x1, y1, z1) (x1, y1, z1)
now I have a different point of view(camera) for this plane. I mean I have a different camera that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Run Amazon EC2 AMI in Windows Is there a way to run an Amazon EC2 AMI image in Windows? I'd like to be able to do some testing and configuration locally. I'm looking for something like Virtual PC.
A: If you build your images from scratch you can do it with VMware (or insert your favorite VM software here).
Build ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/128431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.