text stringlengths 8 267k | meta dict |
|---|---|
Q: ASP.NET ObjectDataSource Binding Automatically to Repeater - Possible? I have a Question class:
class Question {
public int QuestionNumber { get; set; }
public string Question { get; set; }
public string Answer { get; set; }
}
Now I make an ICollection of these available through an ObjectDataSource, and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best way to avoid getting "Emacs Pinky"? I just started using GNU Emacs as my text editor and I am concerned about getting afflicted with "Emacs Pinky" by having to constantly press the control key with my pinky finger as is required when using Emacs. How can I avoid potentially getting this type of repe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: C++ Template Ambiguity A friend and I were discussing C++ templates. He asked me what this should do:
#include <iostream>
template <bool>
struct A {
A(bool) { std::cout << "bool\n"; }
A(void*) { std::cout << "void*\n"; }
};
int main() {
A<true> *d = 0;
const int b = 2;
const int c = 1;
new ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Are off-the-cloud desktop applications dead? Although somewhat related to this question, I have what I think is a different take on it.
Is a desktop app that has no connections to the "cloud" dead? I believe that some things are going to continue to be on the machine (operating systems obviously, browsers, some ligh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What does the comma operator , do? What does the , operator do in C?
A: It causes the evaluation of multiple statements, but uses only the last one as a resulting value (rvalue, I think).
So...
int f() { return 7; }
int g() { return 8; }
int x = (printf("assigning x"), f(), g() );
should result in x being set to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "205"
} |
Q: profile-guided optimization (C) Anyone know this compiler feature? It seems GCC support that. How does it work? What is the potential gain? In which case it's good? Inner loops?
(this question is specific, not about optimization in general, thanks)
A: PGO gives about a 5% speed boost when compiling x264, the projec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: iPhone browser tag and optimized web site What is iPhone's browser tag and how iPhone optimized web site is different from a usual mobile web site?
Thanks!
A: Apple has some excellent guidelines for iPhone web page development here:
Safari Web Content Guide for iPhone
From my brief reading of it, here are a key ele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Input type=text to fill parent container I'm trying to let an <input type="text"> (henceforth referred to as “textbox”) fill a parent container by settings its width to 100%. This works until I give the textbox a padding. This is then added to the content width and the input field overflows. Notice that in Firefox t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: SQL Server 2000 - Debugging Deadlocks I'm looking for suggestions on how to debug and chase down deadlock issues in an SQL Server 2000 database. I've had it recommended to me to use trace flags 1024 and 3605, which I have found give me the following:
1024 - this trace flag returns the type of locks participating in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best tool for synchronizing MySQL databases I'm on a little quest of merging the structure of two MySql databases. Is there a tool for this with the might of Red-Gate's SQL Compare? Are there any free alternatives?
A: I've been using SQLyog for years now. Recently they released v8.0 which includes an updated interf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: ASP.Net word count with a custom validator A requirement for an ASP.Net 2.0 project I'm working on limits a certain field to a max of 10 words (not characters). I'm currently using a CustomValidator control with the following ServerValidate method:
Protected Sub TenWordsTextBoxValidator_ServerValidate(ByVal source A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What does the PDB get me while debugging and how do I know it's working? I have to use a third-party component without source code. I have the release DLL and release PDB file. Let's call it 'CorporateComponent.dll'. My own code creates objects from this DLL and calls methods on these objects.
CorpObject o = new Cor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Using Windows XP as a SQL Server I was wondering if anyone knew of any limitations to using Windows XP as a File and SQL server. I am asking because one of the applications we sell, requires the customer to setup a server for filesharing and as a SQL Server. We already allow them to use SQL Express, but we wanted to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Automating DB Object Migrations from Source Control I'm looking for some "Best Practices" for automating the deployment of Stored Procedures/Views/Functions/Table changes from source control. I'm using StarTeam & ANT so the labeling is taken care of; what I am looking for is how some of you have approached automatin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: GridView will not update underlying data source So I'm been pounding on this problem all day. I've got a LinqDataSource that points to my model and a GridView that consumes it. When I attempt to do an update on the GridView, it does not update the underlying data source. I thought it might have to do with the LinqDa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best Practice: Legitimate Cross-Site Scripting While cross-site scripting is generally regarded as negative, I've run into several situations where it's necessary.
I was recently working within the confines of a very limiting content management system. I needed to include database code within the page, but the host... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Pretty graphs and charts in Python What are the available libraries for creating pretty charts and graphs in a Python application?
A: CairoPlot
A: I used pychart and thought it was very straightforward.
http://home.gna.org/pychart/
It's all native python and does not have a busload of dependencies. I'm sure matplo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "130"
} |
Q: How are people unit testing code that uses Linq to SQL How are people unit testing code that uses Linq to SQL?
A: 3 years late, but this is how I do it:
https://github.com/lukesampson/LinqToSQL-test-extensions/
No need to write a wrapper or do lots of plumbing, just drop the T4 template next to your .dbml and you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: ASP.NET MVC quick start - a one-stop tutorial? There are many ASP.MVC blog post bits and pieces scattered over different web sites, as well as couple of resource questions here - ASP.NET Model-view-controller (MVC) - where do I start from? and MVC Learning Resources
I wonder if there was a one-stop tutorial posted y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Simplest way to reverse the order of strings in a make variable Let's say you have a variable in a makefile fragment like the following:
MY_LIST=a b c d
How do I then reverse the order of that list? I need:
$(warning MY_LIST=${MY_LIST})
to show
MY_LIST=d c b a
Edit: the real problem is that
ld -r some_object.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Favorite Windows keyboard shortcuts I'm a keyboard junkie. I love having a key sequence to do everything. What are your favorite keyboard shortcuts?
I'll start by naming a couple of mine:
1 - Alt-Space to access the windows menu for the current window
2 - F2 to rename a file in Windows Explorer
A: To maximize a w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: BlackBerry development using IntelliJ IDEA 7.0? I know RIM has their own IDE (BlackBerry JDE) for building BlackBerry apps, but does anyone know how to configure IntelliJ IDEA to build/debug BlackBerry apps?
A: RIM's compiler (the one that builds the COD files) can be easily run from the command line. All you need ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Building Apps for Motorola Cell Phone I have an L6 phone from motorola, a usb cable to connect it to my computer, and the Tools for Phones software so I can do things like upload my own custom ringtones or download pictures from the phone's camera.
I have some ideas for programs I'd like to run on the phone, and it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SharePoint stream file for preview I am looking to stream a file housed in a SharePoint 2003 document library down to the browser. Basically the idea is to open the file as a stream and then to "write" the file stream to the reponse, specifying the content type and content disposition headers. Content disposition ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: php is_dir returns true for non-existent folder Has anyone encountered this oddity?
I'm checking for the existence of a number of directories in one of my unit tests. is_dir is reporting true (1) in spite of the folder not existing at the time it is called. The code looks like this (with a few extraneous intermediat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I discard unstaged changes in Git? How do I discard changes in my working copy that are not in the index?
A: What follows is really only a solution if you are working with a fork of a repository where you regularly synchronize (e.g. pull request) with another repo. Short answer: delete fork and refork, but r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6019"
} |
Q: What causes this SqlException: A transport-level error has occurred when receiving results from the server Here is the full error: SqlException: A transport-level error has occurred when receiving results from the server. (provider: Shared Memory Provider, error: 1 - I/O Error detected in read/write operation)
I've ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: STL vector vs map erase In the STL almost all containers have an erase function. The question I have is in a vector, the erase function returns an iterator pointing to the next element in the vector. The map container does not do this. Instead it returns a void. Anyone know why there is this inconsistancy?
A: T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What is the most efficient way to paginate my site when querying with SQL? I am trying to paginate the results of an SQL query for use on a web page. The language and the database backend are PHP and SQLite.
The code I'm using works something like this (page numbering starts at 0)
http://example.com/table?page=0
pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mirroring perforce with SVK? Anyone know of a way to use SVK with perforce? The docs seem to imply it used to be possible, but some mailing list messages claim that is no longer the case?
A: For a private repository, you should try P5
A: Why use SVK to mirror Perforce? Surely using a Perforce Proxy is the best wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Perform token replacements using VS post-build event command? I would like to "post-process" my app.config file and perform some token replacements after the project builds.
Is there an easy way to do this using a VS post-build event command?
(Yeah I know I could probably use NAnt or something, looking for something... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I dynamically create a Video object in AS2 and add it to a MovieClip? I need to dynamically create a Video object in ActionScript 2 and add it to a movie clip. In AS3 I just do this:
var videoViewComp:UIComponent; // created elsewhere
videoView = new Video();
videoView.width = 400;
videoView.height = 40... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way to infer what image format a file is, without reading the entire file? Is there a good way to see what format an image is, without having to read the entire file into memory?
Obviously this would vary from format to format (I'm particularly interested in TIFF files) but what sort of procedure would b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Should I derive custom exceptions from Exception or ApplicationException in .NET? What is best practice when creating your exception classes in a .NET solution: To derive from System.Exception or from System.ApplicationException?
A: According to Jeffery Richter in the Framework Design Guidelines book:
System.Appli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "75"
} |
Q: What determines the monitor my app runs on? I am using Windows, and I have two monitors.
Some applications will always start on my primary monitor, no matter where they were when I closed them.
Others will always start on the secondary monitor, no matter where they were when I closed them.
Is there a registry settin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "78"
} |
Q: Event handler in Qt with multithread Does any one know how the event handler manages the posted events?
In my app i have two threads (guiThread and computationThread). After an exception is thrown I call postEvent(..) to an existing dialog. The Qt-Event-Handler holds this one back until the dialog is closed.
Sorry... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you make a build that includes only one of many pending changes? In my current environment, we have a "clean" build machine, which has an exact copy of all committed changes, nothing more, nothing less.
And of course I have my own machine, with dozens of files in an "in-progress" state.
Often I need to build ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I add a div to DOM and pick it up later I think this is specific to IE 6.0 but...
In JavaScript I add a div to the DOM. I assign an id attribute. When I later try to pick up the div by the id all I get is null.
Any suggestions?
Example:
var newDiv = document.createElement("DIV");
newDiv.setAttribute("ID", "ob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Changing the Directory Structure in Subversion How do I create a branch in subversion that is deeper' than just the 'branches' directory?
I have the standard trunk, tags and branches structure and I want to create a branch that is several directories deeper than the 'branches' tag.
Using the standard svn move method... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I get the path of the assembly the code is in? Is there a way to get the path for the assembly in which the current code resides? I do not want the path of the calling assembly, just the one containing the code.
Basically my unit test needs to read some xml test files which are located relative to the dll.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "912"
} |
Q: construct a complex SQL query (or queries) As part of a larger web-app (using CakePHP), I'm putting together a simple blog system. The relationships are exceedingly simple: each User has a Blog, which has many Entries, which have many Comments.
An element I'd like to incorporate is a list of "Popular Entries." Popul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET Production Debugging I've had a Windows app in production for a while now, and have it set up to send us error reports when it throws exceptions. Most of these are fairly descriptive and help me find the problem very quickly (I use the MS Application Exception Block).
On a few occasions I have reports that are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: In LINQ to SQL how can I make it so I can add items to a collection of an entity without saving the entity first? var e1 = new E1();
e1.e2s.Add(new e2()); //e2s is null until e1 is saved, i want to save them all at the same time
context.e1s.imsertonsubmit(e1);
context.submitchanges();
A: The sub items will be save... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to import a DBF file in SQL Server How can you import a foxpro DBF file in SQL Server?
A: I was able to use the answer from jnovation but since there was something wrong with my fields, I simply selected specific fields instead of all, like:
select * into CERTDATA
from openrowset('VFPOLEDB','C:\SomePath\CERTDA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Cross-Branch merging in TFS? Is it possible to merge to a branch that is not a direct parent or child in TFS? I suspect that the answer is no as this is what I've experienced while using it. However, it seems that at certain times it would be really useful when there are different features being worked on that may... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Inform potential clients about security vulnerabilities? We have a lot of open discussions with potential clients, and they ask frequently about our level of technical expertise, including the scope of work for our current projects. The first thing I do in order to gauge the level of expertise on staff they have now... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sorting Directory.GetFiles() System.IO.Directory.GetFiles() returns a string[]. What is the default sort order for the returned values? I'm assuming by name, but if so how much does the current culture effect it? Can you change it to something like creation date?
Update: MSDN points out that the sort order is no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: Hide directories in wxGenericDirCtrl I am using a wxGenericDirCtrl, and I would like to know if there is a way to hide directories, I'd especially like to hide siblings of parent nodes.
For example if my directory structure looks like this:
+-a
|
+-b
| |
| +-whatever
|
+-c
| |
| +-d
| |
| +-e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: best technique for launching a windbg user-mode remote debugging session What is your favorite technique for launching a windbg user-mode remote debugging session?
Why is do you prefer this technique over other techniques? (pros/cons)
There are at least four different ways to do user-mode remote debug using windbg, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: CSS overflow table row positioning I have table inside a div tab. The table has 40 rows in it and the div's height is set to show 10 rows of that table. CSS's overflow:auto lets me scroll through the 40 rows. All is well there.
How can I, with JavaScript cause the table to programatically position to a given row (i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do you keep the machine awake? I have a piece of server-ish software written in Java to run on Windows and OS X. (It is not running on a server, but just a normal user's PC - something like a torrent client.) I would like the software to signal to the OS to keep the machine awake (prevent it from going into slee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Google Reader API Unread Count Does Google Reader have an API and if so, how can I get the count of the number of unread posts for a specific user knowing their username and password?
A: Here is an update to this answer
import urllib
import urllib2
username = 'username@gmail.com'
password = '******'
# Authenticat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Graph searching algorithm I'm looking for a graph algorithm with some unusual properties.
Each edge in the graph is either an "up" edge or a "down" edge.
A valid path can go an indefinite number of "up"'s followed by an indefinite number of "down"'s, or vice versa. However it cannot change direction more than once.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is the use of the square brackets [] in sql statements? I've noticed that Visual Studio 2008 is placing square brackets around column names in sql. Do the brackets offer any advantage? When I hand code T-SQL I've never bothered with them.
Example:
Visual Studio:
SELECT [column1], [column2] etc...
My own way:
S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "217"
} |
Q: How do you delete wild card cookies in Rails? How do you delete a cookie in rails that was set with a wild card domain:
cookies[:foo] = {:value => 'bar', :domain => '.acme.com'}
When, following the docs, you do:
cookies.delete :foo
the logs say
Cookie set: foo=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT
Notic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Separating CSS deployment from rest of site Where I work, the design and development departments are totally separated, however we (the design department) are responsible for managing the CSS for our sites. Typically, new CSS needs to be released to the production server far more often than new website code. Because... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Console.WriteLine and generic List I frequently find myself writing code like this:
List<int> list = new List<int> { 1, 3, 5 };
foreach (int i in list) {
Console.Write("{0}\t", i.ToString()); }
Console.WriteLine();
Better would be something like this:
List<int> list = new List<int> { 1, 3, 5 };
Console.WriteLin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Open Source Actionscript 3 or Javascript date utility classes? I was wondering if anyone could point to an Open Source date utility class that is fairly robust. I find myself rolling my own when I want to do a lot of things I take for granted in C# and Java. For instance I did find a decent example of a DateDiff() f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I modify a Work Item type to include additional information in TFS? TFS2008. I'd like to track task points on a Task work item, but there isn't anywhere (other than the description) to record this. I'd like to add a dropdown with 0, 1, 2, 3, 5, 8, etc, so these task points can be exported in reports.
A: U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to make git ignore changes in case? I'm not too sure what is going on here, but sometimes a particular file in my repository will change the case of its name. e.g.,:
before: File.h
after: file.h
I don't really care why this is happening, but this causes git to think it is a new file, and then I have to go and ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "140"
} |
Q: Detecting if an IDataReader contains a certain field before iteration So I'm using an IDataReader to hydrate some business objects, but I don't know at runtime exactly what fields will be in the reader. Any fields that aren't in the reader would be left null on the resulting object. How do you test if a reader con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I get javadoc to link to the Java API using an Ant task? Right now my ant task looks like.
<javadoc sourcepath="${source}" destdir="${doc}">
<link href="http://java.sun.com/j2se/1.5.0/docs/api/" />
</javadoc>
And I'm getting this warning:
javadoc: warning - Error fetching URL: http://java.sun.com/j2se/1.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SQL Server Random Sort What is the best way to sort the results of a sql query into a random order within a stored procedure?
A: This is a duplicate of SO# 19412. Here's the answer I gave there:
select top 1 * from mytable order by newid()
In SQL Server 2005 and up, you can use TABLESAMPLE to get a random sample t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Is business logic subjective? I have a team lead who seems to think that business logic is very subjective, to the point that if my stored procedure has a WHERE ID = @ID — he would call this “business logic”
What approach should I take to define “business logic” in a very objective way without offending my team lead... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Cannot delete from the database...? So, I have 2 database instances, one is for development in general, another was copied from development for unit tests.
Something changed in the development database that I can't figure out, and I don't know how to see what is different.
When I try to delete from a particular tabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I generate Emma code coverage reports using Ant? How do I setup an Ant task to generate Emma code coverage reports?
A: The User Guide has a good example of how to set up your build script so that you not only seperate the instrumented code from the execution, but it's also all contained in the same <target> ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Using generic classes with ObjectDataSource I have a generic Repository<T> class I want to use with an ObjectDataSource. Repository<T> lives in a separate project called DataAccess. According to this post from the MS newsgroups (relevant part copied below):
Internally, the ObjectDataSource is calling Type.GetType(s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I create tri-state checkboxes with a TreeView control in .NET? I have a treeview control in a Windows Forms project that has checkboxes turned on. Because the treeview control has nested nodes, I need the checkboxes to be able to have some sort of tri-mode selection. I can't find a way to do this (I can only ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Algorithm to decide if digital audio data is clipping? Is there an algorithm or some heuristic to decide whether digital audio data is clipping?
A: If you ever receive values at the maximum or minimum, then you are, by definition, clipping. Those values represent their particular value as well as all values beyond... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What kind of technologies are available for sending text messages? I'm looking into sending regular automated text-messages to a list of subscribed users. Having played with Windows Mobile devices, I could easily implement this using the compact .Net framework + a device hooked up to usb and send the messages throug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Best way to implement 1:1 asynchronous callbacks/events in ActionScript 3 / Flex / AIR? I've been utilizing the command pattern in my Flex projects, with asynchronous callback routes required between:
*
*whoever instantiated a given command object and the command object,
*the command object and the "data access"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to easily edit SQL XML column in SQL Management Studio I have a table with an XML column. This column is storing some values I keep for configuring my application. I created it to have a more flexible schema.
I can't find a way to update this column directly from the table view in SQL Management Studio. Other (I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: Large Python Includes I have a file that I want to include in Python but the included file is fairly long and it'd be much neater to be able to split them into several files but then I have to use several include statements.
Is there some way to group together several files and include them all at once?
A: *
*Put ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: GUIDs in a SLN file Visual Studio Solution files contain two GUID's per project entry. I figure one of them is from the AssemblyInfo.cs
Does anyone know for sure where these come from, and what they are used for?
A: According to MSDN:
[The Project] statement contains the
unique project GUID and the project
ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: linq to sql stack overflow with self-referencing entity I have an entity that contains many of itself, how do I map this in LINQ to SQl such that it does not do an infinite loop of getting e1 then all its children then their parents (e1) then its children and repeat? Now I know I can do this if I set the child prope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you get double-underscores to display in markdown? In python, there are some special variables and filenames that are surrounded by double-underscores. For example, there is the
__file__
variable. I am only able to get them to show up correctly inside of a code block. What do I need to enter to get doubl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How to add a dll to gac in vista When I drag & drop a dll to the assembly folder on vista, I get the error "Access is denied: mydll.dll". How can I bypass the error message and add my dll to gac?
A: My guess would be that you have to do it as an administrator...try either disabling UAC, or using gacutil.exe to add ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Embed asp page without iframe I want to embed an .asp page on an html page. I cannot use an iframe. I tried:
<object width="100%" height="1500" type="text/html" data="url.asp">
alt : <a href="url.asp">url</a>
</object>"
works great in ff but not ie7. Any ideas? Is it possible to use the object tag to embed .asp ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Enterprise Library Application Blocks OR Home Grown Framework? We are currently looking to adopt some type of "standard" developer framework and have looked into using the Enterprise Library. Would you recommend using these blocks as the foundation for software development, or should we do something home grown?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In SQL Server, how do I identify *all* dependencies for a specific table using system tables/views? I am writing a DDL script to drop a number of tables but need to identify all dependencies for those tables first. Those dependencies include foreign key constraints, stored procedures, views, etc. Preferably, I want ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Examples for coding against the PayPal API in .NET 2.0+? Can anyone point me to a good introduction to coding against the paypal API?
A: Found this article by Rick Strahl recently http://www.west-wind.com/presentations/PayPalIntegration/PayPalIntegration.asp.
Have not implemeted anything from it yet, Rick has qui... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: HTML meta keyword/description element, useful or not? Does filling out HTML meta description/keyword tags matter for SEO?
A: This article has some info on it.
A quick summary for keywords is:
Google and Microsoft: No
Yahoo and Ask: Yes
Edit: As noted below, the meta description is used by Google to describe your si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Can I depend on the values of GetHashCode() to be consistent? Is the return value of GetHashCode() guaranteed to be consistent assuming the same string value is being used? (C#/ASP.NET)
I uploaded my code to a server today and to my surprise I had to reindex some data because my server (win2008 64-bit) was returning... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Why does Path.Combine not properly concatenate filenames that start with Path.DirectorySeparatorChar? From the Immediate Window in Visual Studio:
> Path.Combine(@"C:\x", "y")
"C:\\x\\y"
> Path.Combine(@"C:\x", @"\y")
"\\y"
It seems that they should both be the same.
The old FileSystemObject.BuildPath() didn't wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "223"
} |
Q: Is it possible to make a recursive SQL query? I have a table similar to this:
CREATE TABLE example (
id integer primary key,
name char(200),
parentid integer,
value integer);
I can use the parentid field to arrange data into a tree structure.
Now here's the bit I can't work out. Given a parentid, is it poss... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Good Ways to Use Source Control and an IDE for Plugin Code? What are good ways of dealing with the issues surrounding plugin code that interacts with outside system?
To give a concrete and representative example, suppose I would like to use Subversion and Eclipse to develop plugins for WordPress. The main code body ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java ConnectionPool connection not closing, stuck in 'sleep' I have a webapp that uses JNDI lookups to get a connection to the database.
The connection works fine and returns the query no problems. The issue us that the connection does not close properly and is stuck in the 'sleep' mode (according to mysql administr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What registry access can you get without Administrator privileges? I know that we shouldn't being using the registry to store Application Data anymore, but in updating a Legacy application (and wanting to do the fewest changes), what Registry Hives are non-administrators allowed to use?
Can I access all of HKEY_CU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: How to find all database references In trying to figure out this problem (which is still unsolved and I still have no clue what is going on), I am wondering if maybe an external reference to the table in question is causing the problem. For example, a trigger or view or some other such thing.
Is there an easy way t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What do you use to capture webpages, diagram/pictures and code snippets for later reference? What do you use to capture webpages, diagram/pictures and code snippets for later reference?
A: Evernote http://www.evernote.com and delicious http://www.delicious.com
A: *
*Evernote
*Notepad2's clipboard feature (Notepa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find the highest order bit in C what I'm after is something I can feed a number into and it will return the highest order bit. I'm sure there's a simple way. Below is an example output (left is the input)
1 -> 1
2 -> 2
3 -> 2
4 -> 4
5 -> 4
6 -> 4
7 -> 4
8 -> 8
9 -> 8
...
63 -> 32
A: From Hacker's Delight:
int hib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: How can I do a line break (line continuation) in Python? Given:
e = 'a' + 'b' + 'c' + 'd'
How do I write the above in two lines?
e = 'a' + 'b' +
'c' + 'd'
A: The danger in using a backslash to end a line is that if whitespace is added after the backslash (which, of course, is very hard to see), the backslash ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1332"
} |
Q: Fixed vs. variable frame rates in games: what is best, and when? After working for a while developing games, I've been exposed to both variable frame rates (where you work out how much time has passed since the last tick and update actor movement accordingly) and fixed frame rates (where you work out how much time h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: On Disk Substring index I have a file (fasta file to be specific) that I would like to index, so that I can quickly locate any substring within the file and then find the location within the original fasta file.
This would be easy to do in many cases, using a Trie or substring array, unfortunately the strings I need... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Prompt for Database Connection String I would like to offer a database connection prompt to the user. I can build my own, but it would be nice if I can use something that somebody else has already built (maybe something built into Windows or a free library available on the Internet). Anybody know how to do this in .... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: HelpInsight documentation in Delphi 2007 I am using D2007 and am trying to document my source code, using the HelpInsight feature (provided since D2005). I am mainly interested in getting the HelpInsight tool-tips working. From various Web-surfing and experimentation I have found the following:
*
*Using the tri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I automatically destroy child processes in Windows? In C++ Windows app, I launch several long running child processes (currently I use CreateProcess(...) to do this.
I want the child processes to be automatically closed if my main processes crashes or is closed.
Because of the requirement that this needs to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: Is there an ASP.NET pagination control (Not MVC)? I've got a search results page that basically consists of a repeater with content in it. What I need is a way to paginate the results. Getting paginated results isn't the problem, what I'm after is a web control that will display a list of the available paged data,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Getting international characters from a web page? I want to scrape some information off a football (soccer) web page using simple python regexp's. The problem is that players such as the first chap, ÄÄRITALO, comes out as ÄÄRITALO!
That is, html uses escaped markup for the special characters, such as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do you check whether a python method is bound or not? Given a reference to a method, is there a way to check whether the method is bound to an object or not? Can you also access the instance that it's bound to?
A: def isbound(method):
return method.im_self is not None
def instance(bounded_method):
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.