text stringlengths 8 267k | meta dict |
|---|---|
Q: Are foreign keys really necessary in a database design? As far as I know, foreign keys (FK) are used to aid the programmer to manipulate data in the correct way. Suppose a programmer is actually doing this in the right manner already, then do we really need the concept of foreign keys?
Are there any other uses for f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "134"
} |
Q: How can I prevent a server from becoming locked after a Remote Desktop session As part of our databuild run a 3rd party program (3D Studio Max) to export a number of assets. Unfortunately if a user is not currently logged in, or the machine is locked, then Max does not run correctly.
This can be solved for freshly b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How can I convert Markdown documents to HTML en masse? I'm writing some documentation in Markdown, and creating a separate file for each section of the doc. I would like to be able to convert all the files to HTML in one go, but I can't find anyone else who has tried the same thing. I'm on a Mac, so I would think ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Using ASP.NET MVC, how to best avoid writing both the Add View and Edit View? The Add view and the Edit view are often incredibly similar that it is unwarranted to write 2 views. As the app evolves you would be making the same changes to both.
However, there are usually subtle differences. For instance, a field migh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What's the difference between a Table Scan and a Clustered Index Scan? Since both a Table Scan and a Clustered Index Scan essentially scan all records in the table, why is a Clustered Index Scan supposedly better?
As an example - what's the performance difference between the following when there are many records?:
d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: Importing C++ enumerations into C# I'm currently working on creating a new C# project that needs to interact with an older C++ application. There is an error enumeration that already exists in the C++ app that I need to use in the C# app.
I don't want to just re declare the enumeration in C# because that could cause... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How to create a new instance of Sql Server 2005 I forgot my password for Sql Server 2005. Windows Authentication is not enabled so I cannot login. How can I remove the current instance and create a new db instance? Or is there a better solution exists?
A: Assuming you are a member of the Windows Admininstrator grou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Favourite performance tuning tricks When you have a query or stored procedure that needs performance tuning, what are some of the first things you try?
A: CREATE INDEX
Assure there are indexes available for your WHERE and JOIN clauses. This will speed data access greatly.
If your environment is a data mart or ware... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "129"
} |
Q: Asp.net MVC User Control ViewData When a controller renders a view based on a model you can get the properties from the ViewData collection using the indexer (ie. ViewData["Property"]). However, I have a shared user control that I tried to call using the following:
return View("Message", new { DisplayMessage = "Thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is UML practical? In college I've had numerous design and UML oriented courses, and I recognize that UML can be used to benefit a software project, especially use-case mapping, but is it really practical? I've done a few co-op work terms, and it appears that UML is not used heavily in the industry. Is it worth the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "126"
} |
Q: 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/local/lib/tclConfig.sh
/usr/local/lib/tkConfig.sh
Why doesn't find work?
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Batch code indenters and beautifiers Does anyone here know of good batch file code indenters or beautifiers?
Specifically for PHP, JS and SGML-languages.
Preferably with options as to style.
A: The following page has code on it to tidy Javascript (written in javascript as well):
http://www.howtocreate.co.uk/tutoria... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What did I do wrong here? [Javascript Regex] So I am writing a registration form and I need the display name to be only numbers, letters and underscores.
Have a look at my code and tell me what I'm doing wrong.
<form method="post" action="/" onsubmit="return check_form()">
<input type="text" id="display-name" n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to install a plugin for QtWebKit I am running a Qt 4.5 commercial snapshot and want to use a plugin that I downloaded (it's a .so file) in my QWebView. Is there a specific location where I need to place this file? Can I grab it using the QWebPluginFactory?
A: I am assuming the plugin here is the NPAPI plugin ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: SQL 2008 Dialect Support for NHibernate Is anyone working on or know if there exists a SQL 2k8 Dialect for NHibernate?
A: This was asked on the NHibernate Google Group recently - apparently the SQL 2005 dialect should work against SQL 2008.
Definitive location of the dialects - source control is here, binary down... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I find the keys of an object? I know in JavaScript, objects double as hashes, but I have been unable to find a built-in function to get the keys:
var h = {a:'b', c:'d'};
I want something like
var k = h.keys() ; // k = ['a', 'c'];
It is simple to write a function myself to iterate over the items and add the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "203"
} |
Q: Can I access ASP.NET Development server in an intranet? Im testing an ASP.NEt site. When I execute it, it starts the ASP.NET Development Server and opens up a page.
Now I want to test it in the intranet I have.
*
*Can I use this server or I need to configure IIS in this machine?
*Do I need to configure someth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Can you set, or where is, the local document root? When opening a file from your hard drive into your browser, where is the document root? To illustrate, given the following HTML code, if the page is opened from the local machine (file:///) then where should the css file be for the browser to find it?
<link href="/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How can I remove duplicate rows? I need to remove duplicate rows from a fairly large SQL Server table (i.e. 300,000+ rows).
The rows, of course, will not be perfect duplicates because of the existence of the RowID identity field.
MyTable
RowID int not null identity(1,1) primary key,
Col1 varchar(20) not null,
Col2 v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1366"
} |
Q: Obscuring network proxy password in plain text files on Linux/UNIX-likes Typically in a large network a computer needs to operate behind an authenticated proxy - any connections to the outside world require a username/password which is often the password a user uses to log into email, workstation etc.
This means hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: What is your reporting tool of choice? Every project invariably needs some type of reporting functionality. From a foreach loop in your language of choice to a full blow BI platform.
To get the job done what tools, widgets, platforms has the group used with success, frustration and failure?
A: For most reports... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Disabling multi-line fields in MS Access Is there a way to disable entering multi-line entries in a Text Box (i.e., I'd like to stop my users from doing ctrl-enter to get a newline)?
A: I was able to do it on using KeyPress event.
Here's the code example:
Private Sub SingleLineTextBox_ KeyPress(ByRef KeyAscii As In... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to match linux device path to windows drive name? I'm writing an application that on some stage performs low-level disk operations in Linux environment. The app actually consists of 2 parts, one runs on Windows and interacts with a user and another is a linux part that runs from a LiveCD. User makes a choice of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What do you think of developing for the command line first? What are your opinions on developing for the command line first, then adding a GUI on after the fact by simply calling the command line methods?
eg.
W:\ todo AddTask "meeting with John, re: login peer review" "John's office" "2008-08-22" "14:00"
loads ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How can I beautify JavaScript code using Command Line? I am writing a batch script in order to beautify JavaScript code. It needs to work on both Windows and Linux.
How can I beautify JavaScript code using the command line tools?
A: First, pick your favorite Javascript based Pretty Print/Beautifier. I prefer the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "131"
} |
Q: Best practice for storing large amounts of data with J2ME I am developing a J2ME application that has a large amount of data to store on the device (in the region of 1MB but variable). I can't rely on the file system so I'm stuck the Record Management System (RMS), which allows multiple record stores but each have a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Using Lucene to search for email addresses I want to use Lucene (in particular, Lucene.NET) to search for email address domains.
E.g. I want to search for "@gmail.com" to find all emails sent to a gmail address.
Running a Lucene query for "*@gmail.com" results in an error, asterisks cannot be at the start of queries... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to check set of files conform to a naming scheme I have a bunch of files (TV episodes, although that is fairly arbitrary) that I want to check match a specific naming/organisation scheme..
Currently: I have three arrays of regex, one for valid filenames, one for files missing an episode name, and one for valid p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: JavaScript Load Order I am working with both amq.js (ActiveMQ) and Google Maps. I load my scripts in this order
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title>AMQ & Maps Demo</title>
<!-- Stylesheet -->
<link rel="stylesheet" type="text/css" href="style.css"></lin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: TortoiseSVN side-by-side configuration is incorrect After upgrading to the latest version of TortoiseSVN (1.5.2.13595), it's context menu is no longer available.
When attempting to run it manually, I get this error:
The application has failed to start because its side-by-side configuration is incorrect.
Please see t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What is the difference between oracle's 'yy' and 'rr' date mask? Example:
select ename from emp where hiredate = todate('01/05/81','dd/mm/yy')
and
select ename from emp where hiredate = todate('01/05/81','dd/mm/rr')
return different results
A: y2k compatibility. rr assumes 01 to be 2001, yy assumes 01 to be 1901... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How do I do an Upsert Into Table? I have a view that has a list of jobs in it, with data like who they're assigned to and the stage they are in. I need to write a stored procedure that returns how many jobs each person has at each stage.
So far I have this (simplified):
DECLARE @ResultTable table
(
StaffName nvar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What .NET Mime Parsing libraries are available? I have a project that utilizes the javax.mail.internet.MimeMessage and other related classes that does mime parsing for emails that we receive. This needs to be ported to .NET.
What .Net 3rd party or built in library can I use to replace the Java classes that I'm using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Should menu items always be enabled? And how do you tell the user? One of the things that has been talked about a few times on the podcast is whether menu items should always be enabled to prevent "WHY ISN'T THIS AVAILABLE!" frustration for the end user.
This strikes me as a good idea, but then there's the issue of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Bash Pipe Handling Does anyone know how bash handles sending data through pipes?
cat file.txt | tail -20
Does this command print all the contents of file.txt into a buffer, which is then read by tail? Or does this command, say, print the contents of file.txt line by line, and then pause at each line for tail to pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Best way to fix CSS/JS drop-down in IE7 when page includes Google Map I have a page using <ul> lists for navigation (Javascript changes the styling to display or not on mouseover).
This is working fine for me except in IE6 and IE7 when I have a Google Map on the page.
In this case the drop-down simply does not work.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Expression Versus Statement I'm asking with regards to c#, but I assume its the same in most other languages.
Does anyone have a good definition of expressions and statements and what the differences are?
A: For an explanation of important differences in composability (chainability) of expressions vs statements, my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "470"
} |
Q: What is the correct way to create a single-instance WPF application? Using C# and WPF under .NET (rather than Windows Forms or console), what is the correct way to create an application that can only be run as a single instance?
I know it has something to do with some mythical thing called a mutex, rarely can I find... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "732"
} |
Q: How to build a basic iterator? How would one create an iterative function (or iterator object) in python?
A: If you looking for something short and simple, maybe it will be enough for you:
class A(object):
def __init__(self, l):
self.data = l
def __iter__(self):
return iter(self.data)
exam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "672"
} |
Q: PHP Script to populate MySQL tables Is anyone aware of a script/class (preferably in PHP) that would parse a given MySQL table's structure and then fill it with x number of rows of random test data based on the field types?
I have never seen or heard of something like this and thought I would check before writing o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Are there reasons not to use JSONP for AJA~X requests? If you're building an AJA~Xy app, are there any downsides to using JSONP requests/responses even if you're not planning on any cross-domain requests?
The only thing I can think of is that there are a couple extra bytes for the callback wrapper...
Edit:
I found... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is there a way to check to see if the user is currently idle? There is some documentation on the internet that shows that Windows changes the behavior of the NotifyIcon.BalloonTipShown command if the user is currently idle and this is detected by checking for keyboard and mouse events. I am currently working on an a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to make a tree in C++? How do I make a tree data structure in C++ that uses iterators instead of pointers? I couldn't find anything in the STL that can do this. What I would like to do is to be able to create and manipulate trees like this:
#include <iostream>
#include <tree>
using namespace std;
int main()
{... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Accurev SCM Does anyone use Accurev for Source Control Management? We are switching (eventually) from StarTeam to Accurev.
My initial impression is that the GUI tool is severely lacking, however the underlying engine, and the branches as streams concept is incredible.
The biggest difficulty we are facing is assessin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Forms Authentication across Applications I'm working on a internal web based tool for my company. Part of this tool is another application (The Cruise Control Dashboard) that runs in its own Virtual Directory under my root application.
I wanted to limit access to this internal application by setting up Forms Authent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: IIS 6/COM+ hangs I have a web application that sometimes just hangs over heavy load. To make it come back I have to kill the "dllhost.exe" process. Does someone know what to do?
This is an Classic ASP (VBScript) app with lots of COM+ objects.
The server has the following configuration:
*
*Intel Core 2 Duo 2.2 GHz... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Code to ask yes/no question in javascript I could only find the function confirm() that gives OK/Cancel buttons. Is there any way to give Yes/No buttons?
A: Javascript offers 3 modal boxes. prompt, confirm and alert. None of those satisfy your request.
There are a plethora of js modal popup solutions. Here's a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Calling base Methods When Overriding Page Level Events In my code behind I wire up my events like so:
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
btnUpdateUser.Click += btnUpateUserClick;
}
I've done it this way because that's what I've seen in examples.
*
*Does the base.OnInit() metho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Database backed i18n for java web-app I'd like to use a database to store i18n key/value pairs so we can modify / reload the i18n data at runtime. Has anyone done this? Or does anyone have an idea of how to implement this? I've read several threads on this, but I haven't seen a workable solution.
I'm specifically re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Alternatives to Windows Workflow Foundation? I've been using WWF for a while as part of an internal call center application (ASP.NET), and while learning it was a good practice in understanding how a state machine based workflow system should work, I am definitely not in love with WWF itself. In my opinion it is:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Calling ASP.NET web service from ASP using SOAPClient I have an ASP.NET webservice with along the lines of:
[WebService(Namespace = "http://internalservice.net/messageprocessing")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ToolboxItem(false)]
public class ProvisioningService : WebService
{
[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Transpose/Unzip Function (inverse of zip)? I have a list of 2-item tuples and I'd like to convert them to 2 lists where the first contains the first item in each tuple and the second list holds the second item.
For example:
original = [('a', 1), ('b', 2), ('c', 3), ('d', 4)]
# and I want to become...
result = (['a',... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "585"
} |
Q: What is the best way to go from Java/C# to C++? At my university most of my classes have been in Java. I have also recently learned C# (and the Visual Studio environment) at a summer internship. Now I'm taking an Intro to Computer Graphics class and the grad student teaching the class prefers us to use C++ to acce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: "Data Execution Prevention" kills (VS2008) local ASP.Net Development Server (aka Cassini) on Vista 64 Occasionally, I find that while debugging an ASP.Net application (written in visual studio 2008, running on Vista 64-bit) the local ASP.Net development server (i.e. 'Cassini') stops responding.
A message often comes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Detecting audio silence in WAV files using C# I'm tasked with building a .NET client app to detect silence in a WAV files.
Is this possible with the built-in Windows APIs? Or alternately, any good libraries out there to help with this?
A: Here a nice variant to detect threshold alternatings:
static class AudioFileR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: How to manage Configuration Settings for each Developer In a .NET project, say you have a configuration setting - like a connection string - stored in a app.config file, which is different for each developer on your team (they may be using a local SQL Server, or a specific server instance, or using a remote server, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Experience documentation about Shared Nothing Architecture Do you have any experience of designing a Real Shared-Nothing Architecture?
Would you have some readings to recommend me?
A: Building Scalable Web Sites by Flickr architect Cal Henderson is pretty much the holy book for scalable web architectures.
The prese... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rich GUI OS X Frameworks? What would you recommend for OS X development of a graphical application like those possible in WPF?
My specific background is in Smalltalk & Java, but I currently work mostly in DHTML/.NET (ASP.NET/C#).
A: Aside from Interface Builder which is included as part of the Xcode tools, you can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: GOTO command in PHP? I've heard rumors that PHP is planning on introducing a "goto" command. What is it supposed to be doing?
I've tried searching a bit, but haven't found anything awfully descriptive. I understand that it won't be a "GOTO 10"-like command...
A: They are not adding a real GOTO, but extending the BR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Anyway to stop Windows bringing app to front when displaying a context menu on tray icon? We are experiencing this annoying problem where we have a context menu on our tray icon, if we display this context menu we have to SetForegroundWindow and bring it to the front. This is really annoying and not at all what we w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Incrementing from 0 to 100 in assembly language This is kinda oddball, but I was poking around with the GNU assembler today (I want to be able to at least read the syntax), and was trying to get this little contrived example of mine to work. Namely I just want to go from 0 to 100, printing out numbers all the while.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to request a random row in SQL? How can I request a random row (or as close to truly random as is possible) in pure SQL?
A: See this post: SQL to Select a random row from a database table. It goes through methods for doing this in MySQL, PostgreSQL, Microsoft SQL Server, IBM DB2 and Oracle (the following is cop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "588"
} |
Q: What is a good free library for editing MP3s/FLACs? What is a good free library for editing MP3s/FLACs.
By editing I mean:
*
*Cutting audio file into multiple parts
*Joining multiple audio files together
*Increase playback speed of file without affecting the pitch (eg. podcasts up to 1.3x)
*Re-encoding audio ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Delete Datalist row with multiple primary keys I have a datalist with a OnDeleteCommand="Delete_Command".
I want the delete a record with multiple primary Keys but I do not know how to access it from the Delete_Command event.
If I use DataKeyField I'm limited to only one key.
Any workarounds for this?
A: You can ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Custom font in SQL Server 2005 Reporting Services I'm having issues with my SQL Reporting Services reports. I'm using a custom font for report headers, and when deployed to the server it does not render correctly when I print or export to PDF/TIFF. I have installed the font on the server. Is there anything else I ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: how to allow files starting with period and no extension in windows 2003 server? How can I create this file in a directory in windows 2003 SP2:
.hgignore
I get error: You must type a file name.
A: By the way Raymond Chen had a blog post about this topic a while back:
Why doesn't Explorer let you create a file whos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Content Management system recommendations Management is thinking of changing out Content Management Systems. What do you use/recommend?
*
*What UCM solution is your company using?
*How big is your company?
*Are you happy with the implementation?
Current setup:
*
*The company I work for uses Oracle ECM (for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In a DDS file can you detect textures with 0/1 alpha bits? In my engine I have a need to be able to detect DXT1 textures that have texels with 0 alpha (e.g. a cutout for a window frame). This is easy for textures I compress myself, but I'm not sure about textures that are already compressed.
Is there an easy way to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Enforce Attribute Decoration of Classes/Methods Following on from my recent question on Large, Complex Objects as a Web Service Result. I have been thinking about how I can ensure all future child classes are serializable to XML.
Now, obviously I could implement the IXmlSerializable interface and then chuck a reader... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Which RDBMS should I use? I have developed a high speed transactional server for transfering data over the internet so I do not need to rely upon a database implementation like MySQL to provide this. That opens up the question of which SQL version to use?
I really like SQLite, but I am not convinced it is industrial... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Click an image, get coordinates I have a standard HTML image tag with an image in it, 100 by 100 pixels in size. I want people to be able to click the image and for that to pass the X and Y that they click into a function.
The coordinates need to be relative to the image top and left.
A: I think you're talking abou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Check file permissions How can I check file permissions, without having to run operating system specific command via passthru() or exec()?
A: Real coders use bitwise operations, not strings ;) This is much more elegant way of handling permissions:
function checkPerms($path)
{
clearstatcache(null, $path);
re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Weird yellow bar pops-up: 'Microsoft Data Access - Remote Data Services When I access my site from any computer, I see this warning popping up:
"This web site wants to run the following add-on: 'Microsoft Data
Access - Remote Data Services Dat...' from 'Microsoft Corporation'. If
you trust the web site and the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is data binding a bad idea? Another discussion (we've been having a lot of them these days!) in our work is whether data binding is a bad idea or not.
Personally, I think it is a Bad Thing™.
My reasons are thrice:
*
*It circumvents my well architectured MVP framework - with databinding, the view communicates bi-d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: What's the best way to go from a Photoshop mockup to semantic HTML and CSS? I generally use a manual process:
*
*Look at the page, figure out the semantic elements, and build the HTML
*Slice up the images I think I'll need
*Start writing CSS
*Tweak and repeat different steps as necessary
Got a better approac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: mod_rewrite rule to redirect all requests except for one specific path I'm trying to redirect all requests to my domain to another domain using mod_rewrite in an Apache 2.2 VirtualHost declaration. There is one exception to this -- I'd like all requests to the /audio path not to be redirected.
I've written a Rewrit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: SQL2005: Linking a table to multiple tables and retaining Ref Integrity? Here is a simplification of my database:
Table: Property
Fields: ID, Address
Table: Quote
Fields: ID, PropertyID, BespokeQuoteFields...
Table: Job
Fields: ID, PropertyID, BespokeJobFields...
Then we have other tables that relate to the Quote ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is anybody using the Specter BDD Framework? I was reading the example chapter from the book by Ayende and on the website of the Boo language I saw a reference to the Specter BDD Framework.
I am wondering if anybody is using it in their project, how that works out and if there are more examples and/or suggested readi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Do you use virtualized desktops for legacy/seldom used applications? I wondered if anyone uses virtualized desktop PCs (running WinXP Pro or older) to have some old applications that are seldom used available for some ongoing tasks.
Say you have a really old project that every once in a while needs a document update... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Enforcing required function call I have a "Status" class in C#, used like this:
Status MyFunction()
{
if(...) // something bad
return new Status(false, "Something went wrong")
else
return new Status(true, "OK");
}
You get the idea.
All callers of MyFunction should check the returned Status:
Status m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Loading System.ServiceModel configuration section using ConfigurationManager Using C# .NET 3.5 and WCF, I'm trying to write out some of the WCF configuration in a client application (the name of the server the client is connecting to).
The obvious way is to use ConfigurationManager to load the configuration section ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: Best TinyMce editor Image Manager / File upload for Asp.net Mvc What is the best Image Manager to integrate in TinyMce editor apart the official Moxiecode commercial ones?
I'm looking to integrate a light texteditor in an asp.net mvc application and I choosed the Tinymce solution (and not the classic FCKEditor as th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How to patch on Windows? Given a (source) patch file, what's the easiest way to apply this patch on the source files under Windows?
A GUI tool where I can visually compare the unchanged-changed source lines would be great.
A: Not that since Git 2.3.3 (March 2015), you can use git apply --unsafe-paths to use git app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Is Visual C++ memory managed by the Dot Net framework Recently, I've been dealing with an error with accessing MAPI via the .NET framework (as described in this article). I am now left with a series of memory access violation errors.
To get past the issues, I have been trying to use this 3rd party component, which h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Introducing Python The company I used to work with has two developers working fulltime, and a handful of freelancers. They're in the process of hiring a new lead developer to try to bring order and management to the development.
But, currently, one of the developers has seen the light of Django (the company has only... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to find an implementation of a C# interface in the current assembly with a specific name? I have an Interface called IStep that can do some computation (See "Execution in the Kingdom of Nouns"). At runtime, I want to select the appropriate implementation by class name.
// use like this:
IStep step = GetStep(sNa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Fast(er) way to get file inode using PHP To grab the inode of a file in PHP, you can use this:
$fs = stat($file);
echo $fs['ino'];
The problem with this is EVERYWHERE says it's slow and you should avoid it. So the question becomes what's the fast(er) way to do it?
A: You could use fileinode() but you should run b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Interlocked.Exchange, but not for booleans? Is there an equivalent for Interlocked.Exchange for boolean?
Such as an atomic exchange of values that returns the previous value and doesn't require locks?
A: No; use integers instead of booleans.
In principle such a thing could be written (cmpxchg, the underlying proc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do I secure my new web server (Server 2008)? I've just put my new server up on an IP address with a domain pointing to it. I need to be able to remote admin it. I've opened the firewall for Remote Desktop and HTTP traffic. Is this going to be secure enough? I guess I should probably rename the administrator user... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I unregister COM dlls initially added with RegSvr32 when the /u arg doesn't work? Right, initially ran:
c:\regsvr32 Amazing.dll
then, (accidentally - I might add) I must have run it again, and (indeed) again when new versions of 'Amazing.dll' were released. Yes - I know now I should've run:
c:\regsvr32 /u Am... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What is the best strategy for retainment of large data sets? I'm leading a project where we'll be recording metrics data. I'd like to retain the data for years. However, I'd also like to keep the primary table from becoming bloated with data that, while necessary for long term trending, isn't required for short term... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Trigger without a transaction? Is it possible to create a trigger that will not be in a transaction?
I want to update data on a linked server with a trigger but due to firewall issues we can't create a distributed transaction between the two servers.
A: What you probably want is a combination of a queue that conta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Views in separate assemblies in ASP.NET MVC I'm trying to create a webapplication where I want to be able to plug-in separate assemblies. I'm using MVC preview 4 combined with Unity for dependency injection, which I use to create the controllers from my plugin assemblies. I'm using WebForms (default aspx) as my view... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: How do I make a list with checkboxes in Java Swing? What would be the best way to have a list of items with a checkbox each in Java Swing?
I.e. a JList with items that have some text and a checkbox each?
A: Better solution for Java 7 and newer
I stumbled upon this question and realized that some of the answers are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: CMD.exe replacement Does anyone know of a good Command Prompt replacement? I've tried bash/Cygwin, but that does not really meet my needs at work because it's too heavy. I'd like a function-for-function identical wrapper on cmd.exe, but with highlighting, intellisense, and (critically) a tabbed interface. Powersh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "90"
} |
Q: Huge Web App With Memory Leak in IE 6 I have a huge web app that is having issues with memory leak in IE 6.
Fixing a memory leak in a 5 line code sample that demonstrates the problem is easy.
But if I have a very huge application, where should a start from?
A: Check out Drip. That usually takes the guesswork out ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Local Currency String conversion I am maintaining an app for a client that is used in two locations. One in England and one in Poland.
The database is stored in England and uses the format £1000.00 for currency, but the information is being gathered locally in Poland where 1000,00 is the format.
My question is, in V... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How Do I Find a File in a Subversion Repository History? Is it possible to look back through the history of a Subversion repository for files of a certain name (even better would be for them to have a wildcard search)?
I want to see if a .bat file has been committed to the repository at some point in the past but ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Display rows in multiple columns in Asp.net Gridview By default each row of a Gridview maps to each row in a datatable or dataset attached to its datasource. But what if I want to display these rows in multiple columns. For example if it has 10 rows, 5 rows each should be displayed in 2 columns side by side. Also ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Profiling/Optimizing (Sharepoint 2007) Web Parts I just wonder what options there are to properly measure/profile/optimize ASP.net 2.0 Web Parts, especially the ones for Sharepoint 2007?
As Web Parts are a layer on another layer of technology, getting resource usage, open handles and stuff only for the web part seem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.