qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
15,979 | <p>I use solr to search for documents and when trying to search for documents using this query "<code>id:*</code>", I get this query parser exception telling that it cannot parse the query with * or ? as the first character. </p>
<pre><code>HTTP Status 400 - org.apache.lucene.queryParser.ParseException: Cannot parse '... | [
{
"answer_id": 17458,
"author": "cnu",
"author_id": 1448,
"author_profile": "https://Stackoverflow.com/users/1448",
"pm_score": 1,
"selected": false,
"text": "id:A*"
},
{
"answer_id": 23554,
"author": "dlamblin",
"author_id": 459,
"author_profile": "https://Stackoverf... | 2008/08/19 | [
"https://Stackoverflow.com/questions/15979",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1448/"
] |
15,995 | <p>Does anyone here have any useful code which uses reduce() function in python? Is there any code other than the usual + and * that we see in the examples?</p>
<p>Refer <a href="http://www.artima.com/weblogs/viewpost.jsp?thread=98196" rel="noreferrer">Fate of reduce() in Python 3000</a> by GvR</p>
| [
{
"answer_id": 16049,
"author": "Brendan",
"author_id": 199,
"author_profile": "https://Stackoverflow.com/users/199",
"pm_score": 2,
"selected": false,
"text": "reduce()"
},
{
"answer_id": 16091,
"author": "Blair Conrad",
"author_id": 1199,
"author_profile": "https://... | 2008/08/19 | [
"https://Stackoverflow.com/questions/15995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1448/"
] |
16,007 | <p>Basically I have some code to check a specific directory to see if an image is there and if so I want to assign a URL to the image to an ImageControl.</p>
<pre><code>if (System.IO.Directory.Exists(photosLocation))
{
string[] files = System.IO.Directory.GetFiles(photosLocation, "*.jpg");
if (files.Length >... | [
{
"answer_id": 16032,
"author": "Robin Robinson",
"author_id": 1629,
"author_profile": "https://Stackoverflow.com/users/1629",
"pm_score": -1,
"selected": false,
"text": "string url = Request.ApplicationPath + \"/\" + photosLocation + \"/\" + files[0];\n"
},
{
"answer_id": 16039,... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1762/"
] |
16,067 | <p>I have been mulling over writing a peak-fitting library for a while. I know Python fairly well and plan on implementing everything in Python to begin with but envisage that I may have to re-implement some core routines in a compiled language eventually.</p>
<p>IIRC, one of Python's original remits was as a prototypi... | [
{
"answer_id": 28467,
"author": "Moe",
"author_id": 3051,
"author_profile": "https://Stackoverflow.com/users/3051",
"pm_score": 3,
"selected": false,
"text": "Image* unary(boost::python::object op, Image& im)\n{\n Image* out = new Image(im.width(), im.height(), im.channels());\n fo... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/199/"
] |
16,074 | <p>Is it possible to open a project in Visual Studio 2008 without opening all the files that were previously opened last time I had the project open. I have a habit of keeping many files open as I am working on them, so next time I open the project, it (very slowly) loads up a bunch of files into the editor that I may... | [
{
"answer_id": 16251,
"author": "travis",
"author_id": 1414,
"author_profile": "https://Stackoverflow.com/users/1414",
"pm_score": 3,
"selected": false,
"text": "Options > Environment > Keyboard Window.CloseAllDocuments ALT+X"
},
{
"answer_id": 57848,
"author": "Ryan Lundy",
... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1749/"
] |
16,096 | <p>In WPF, how would I apply multiple styles to a <code>FrameworkElement</code>? For instance, I have a control which already has a style. I also have a separate style which I would like to add to it without blowing away the first one. The styles have different TargetTypes, so I can't just extend one with the other.... | [
{
"answer_id": 16108,
"author": "Arcturus",
"author_id": 900,
"author_profile": "https://Stackoverflow.com/users/900",
"pm_score": 5,
"selected": false,
"text": "<Style TargetType=\"TextBlock\">\n <Setter Property=\"Margin\" Value=\"3\" />\n</Style>\n\n<Style x:Key=\"AlwaysVerticalS... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16096",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/93/"
] |
16,097 | <p>Here is the scenario that I have. I have a cvs repository in one location (A) and I want to replicate it and keep it in sync with a repository in another location(B). This would be a single directional sync from A to B. What is the best way to do this? If it is not really feasible in CVS then which source code contr... | [
{
"answer_id": 16101,
"author": "Vincent Robert",
"author_id": 268,
"author_profile": "https://Stackoverflow.com/users/268",
"pm_score": 3,
"selected": true,
"text": "rsync xcopy robocopy"
}
] | 2008/08/19 | [
"https://Stackoverflow.com/questions/16097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1353/"
] |
16,100 | <p>What's the best way to convert a string to an enumeration value in C#?</p>
<p>I have an HTML select tag containing the values of an enumeration. When the page is posted, I want to pick up the value (which will be in the form of a string) and convert it to the corresponding enumeration value.</p>
<p>In an ideal world... | [
{
"answer_id": 16103,
"author": "DavidWhitney",
"author_id": 1297,
"author_profile": "https://Stackoverflow.com/users/1297",
"pm_score": 7,
"selected": false,
"text": "SomeEnum enum = (SomeEnum)Enum.Parse(typeof(SomeEnum), \"EnumValue\");\n"
},
{
"answer_id": 16104,
"author":... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16100",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/203/"
] |
16,110 | <p>I have a user that want to be able to select a textbox and have the current text selected so that he doesn't have to highlight it all in order to change the contents. </p>
<p>The contents need to be handle when enter is pushed. That part I think I have figured out but any suggestions would be welcome. </p>
<p>Th... | [
{
"answer_id": 16130,
"author": "Greg Hurlman",
"author_id": 35,
"author_profile": "https://Stackoverflow.com/users/35",
"pm_score": 3,
"selected": true,
"text": "TextBox1.Select(0, TextBox1.Text.Length);\n"
}
] | 2008/08/19 | [
"https://Stackoverflow.com/questions/16110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1629/"
] |
16,113 | <p>Can I get some recommendations (preferably with some reasons) for good log analysis software for Apache 2.2 access log files?</p>
<p>I have heard of <a href="http://www.webalizer.org/" rel="noreferrer">Webalizer</a> and <a href="http://awstats.sourceforge.net/" rel="noreferrer">AWStats</a>, but have never really us... | [
{
"answer_id": 677965,
"author": "cdonner",
"author_id": 58880,
"author_profile": "https://Stackoverflow.com/users/58880",
"pm_score": 2,
"selected": false,
"text": " Google Woopra Awstats\nSunday, March 1, 2009 10 11 69\nMonday, March 2, ... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/277/"
] |
16,142 | <p>I've seen these words a lot around Subversion (and I guess general repository) discussions.<br>
I have been using <strong>SVN</strong> for my projects for the last few years, but I've never grasped the complete concept of these directories.</p>
<p>What do they mean?</p>
| [
{
"answer_id": 16151,
"author": "Eric Z Beard",
"author_id": 1219,
"author_profile": "https://Stackoverflow.com/users/1219",
"pm_score": 5,
"selected": false,
"text": "branch trunk"
},
{
"answer_id": 16203,
"author": "grom",
"author_id": 486,
"author_profile": "https:... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/914/"
] |
16,155 | <p><strong>Is there a way in PHP to overwrite a method declared by one interface in an interface extending that interface?</strong></p>
<p>The Example:</p>
<p>I'm probably doing something wrong, but here is what I have:</p>
<pre><code>interface iVendor{
public function __construct($vendors_no = null);
public... | [
{
"answer_id": 16245,
"author": "Ryan Ahearn",
"author_id": 75,
"author_profile": "https://Stackoverflow.com/users/75",
"pm_score": 4,
"selected": true,
"text": "interface iVendor{\n public function getName();\n public function getVendors_no();\n public function getZip();\n p... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16155",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/58/"
] |
16,178 | <p>I need to programatically determine whether .NET 3.5 is installed. I thought it would be easy:</p>
<pre><code><% Response.Write(Environment.Version.ToString()); %>
</code></pre>
<p>Which returns "2.0.50727.1434" so no such luck...</p>
<p>In my research I have that there are some rather obscure registry keys... | [
{
"answer_id": 16187,
"author": "Nick Berardi",
"author_id": 17,
"author_profile": "https://Stackoverflow.com/users/17",
"pm_score": 2,
"selected": false,
"text": "System.Web.Extensions\n"
},
{
"answer_id": 16202,
"author": "sestocker",
"author_id": 285,
"author_profi... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/285/"
] |
16,233 | <p>The collection of fonts available to a web developer is depressingly limited. I remember reading long ago about TrueDoc, as a way of shipping fonts alongside a website - but it seems to have languished. Has anybody used this, or something similar? Is it supported by enough browsers? Am I missing a good solution?</p>... | [
{
"answer_id": 16247,
"author": "Sven Hecht",
"author_id": 1168,
"author_profile": "https://Stackoverflow.com/users/1168",
"pm_score": 1,
"selected": false,
"text": "@font-face {\n font-family: Garamond;\n src: url(garamond.eot), url(garamond.pfr);\n}\n"
},
{
"answer_id": 1... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1000/"
] |
16,248 | <p>I'd like to implement a way of recording the version of a project within code, so that it can be used when testing and to help track bugs.
It seems the best version number to use would just be the current revision number from Subversion. Is there an easy way to hook this number into a (C++ in my case) header file o... | [
{
"answer_id": 16264,
"author": "Vincent Robert",
"author_id": 268,
"author_profile": "https://Stackoverflow.com/users/268",
"pm_score": 3,
"selected": false,
"text": "svn:keywords Rev $Rev$ $Rev: 256 $"
},
{
"answer_id": 16276,
"author": "jmanning2k",
"author_id": 1480,
... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16248",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1169/"
] |
16,265 | <p>I'm working with LINQ for the first time and wanted to get the Mapping to work when I have a money type in SQL, but my domain object property is of type double. How can I express this in the XML file, or in code so that the mapping does not throw the usual "invalid cast" exception?</p>
| [
{
"answer_id": 16335,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 2,
"selected": true,
"text": " <Column Name=\"Table1.Amount\" DbType=\"smallint\" Type=\"System.Int32\" \n Expression=\"CAST(Table1.Amount as in... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
16,298 | <p>I have 2 hosts and I would like to point a subdomain on host one to a subdomain on host two:</p>
<pre><code>subdomain.hostone.com --> subdomain.hosttwo.com
</code></pre>
<p>I added a CNAME record to host one that points to subdomain.hosttwo.com but all I get is a '<strong>400 Bad Request</strong>' Error.</p>
<... | [
{
"answer_id": 16311,
"author": "Eric Z Beard",
"author_id": 1219,
"author_profile": "https://Stackoverflow.com/users/1219",
"pm_score": 5,
"selected": true,
"text": "CNAME CNAME"
},
{
"answer_id": 16630,
"author": "Brian G Swanson",
"author_id": 1795,
"author_profile... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/117/"
] |
16,306 | <p>What would be the easiest way to separate the directory name from the file name when dealing with <code>SaveFileDialog.FileName</code> in C#?</p>
| [
{
"answer_id": 16313,
"author": "rjzii",
"author_id": 1185,
"author_profile": "https://Stackoverflow.com/users/1185",
"pm_score": 0,
"selected": false,
"text": "string filename = dialog.Filename;\nstring path = filename.Substring(0, filename.LastIndexOf(\"\\\"));\nstring file = filename.... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41/"
] |
16,320 | <p>I've seen projects where the classes in the DB layer have just static functions in them and other projects where those classes need to be instantiated to get access to the member functions. </p>
<blockquote>
<p>Which is "better" and why?</p>
</blockquote>
| [
{
"answer_id": 16342,
"author": "lomaxx",
"author_id": 493,
"author_profile": "https://Stackoverflow.com/users/493",
"pm_score": 1,
"selected": false,
"text": "DbController acrhive = new DbController(\"dev\");\nDbController prod = new DbController(\"prod\");\n"
},
{
"answer_id": ... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
16,330 | <p>If you had to provide a wizard like form entry experience in mvc how would you abstract the page flow?</p>
| [
{
"answer_id": 41878,
"author": "Ben Scheirman",
"author_id": 3381,
"author_profile": "https://Stackoverflow.com/users/3381",
"pm_score": 0,
"selected": false,
"text": "public class CreateAccountWizardController : Controller\n{\n public ActionRresult Step1()\n {\n }\n\n\n public ... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1946/"
] |
16,340 | <p>Say I have an object that stores a byte array and I want to be able to efficiently generate a hashcode for it. I've used the cryptographic hash functions for this in the past because they are easy to implement, but they are doing a lot more work than they should to be cryptographically oneway, and I don't care about... | [
{
"answer_id": 16381,
"author": "Keith",
"author_id": 905,
"author_profile": "https://Stackoverflow.com/users/905",
"pm_score": 6,
"selected": false,
"text": "Equals GetHashCode HashTable Dictionary<> GetHashCode Equals"
},
{
"answer_id": 425184,
"author": "Community",
"a... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1948/"
] |
16,363 | <p>Starting with 2005, VS started this behavior of when starting debugging session it spawns up a webserver for every project in a solution. I have a solution with 15 projects so it takes a while and is a waste of resources. Is there a way to configure it differently besides just using IIS?</p>
| [
{
"answer_id": 5235353,
"author": "EBarr",
"author_id": 215068,
"author_profile": "https://Stackoverflow.com/users/215068",
"pm_score": 2,
"selected": false,
"text": "Always Start When Debugging"
}
] | 2008/08/19 | [
"https://Stackoverflow.com/questions/16363",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1940/"
] |
16,402 | <p>I have a bunch of files that I need to be able to <em>transport</em> and <em>install</em> quickly. My current method for doing so is moving a flash drive with a readme file of where stuff goes whenever I need to move stuff, which is rather inelegant and cumbersome.</p>
<p>My idea for a solution would be to write up... | [
{
"answer_id": 16416,
"author": "Martin",
"author_id": 770,
"author_profile": "https://Stackoverflow.com/users/770",
"pm_score": 3,
"selected": true,
"text": "robocopy robocopy"
}
] | 2008/08/19 | [
"https://Stackoverflow.com/questions/16402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/652/"
] |
16,413 | <p>Problem: I have an address field from an Access database which has been converted to SQL Server 2005. This field has everything all in one field. I need to parse out the address's individual sections into their appropriate fields in a normalized table. I need to do this for approximately 4,000 records, and it needs ... | [
{
"answer_id": 16819,
"author": "Rob Allen",
"author_id": 149,
"author_profile": "https://Stackoverflow.com/users/149",
"pm_score": 4,
"selected": false,
"text": "Public Function parseAddress(ByVal input As String) As Collection\n input = input.Replace(\",\", \"\")\n input = input.... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/149/"
] |
16,432 | <p>Let's say that you want to output or concat strings. Which of the following styles do you prefer?</p>
<ul>
<li><p><code>var p = new { FirstName = "Bill", LastName = "Gates" };</code></p></li>
<li><p><code>Console.WriteLine("{0} {1}", p.FirstName, p.LastName);</code></p></li>
<li><p><code>Console.WriteLine(p.FirstNa... | [
{
"answer_id": 16449,
"author": "samjudson",
"author_id": 1908,
"author_profile": "https://Stackoverflow.com/users/1908",
"pm_score": 3,
"selected": false,
"text": "Console.Write String.Format String.Format"
},
{
"answer_id": 16452,
"author": "Mike",
"author_id": 1573,
... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/920/"
] |
16,443 | <p>Is it possible (in Vb.Net 2005), without manually parsing the dataset table properties, to create the table and add it to the database?</p>
<p>We have old versions of our program on some machines, which obviously has our old database, and we are looking for a way to detect if there is a missing table and then gener... | [
{
"answer_id": 16840,
"author": "Yaakov Ellis",
"author_id": 51,
"author_profile": "https://Stackoverflow.com/users/51",
"pm_score": 3,
"selected": false,
"text": "SqlCommand.ExecuteNonQuery()"
},
{
"answer_id": 13625295,
"author": "Prahalad Gaggar",
"author_id": 1841054,... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1936/"
] |
16,447 | <p>I am trying to generate a report by querying 2 databases (Sybase) in classic ASP.</p>
<p>I have created 2 connection strings:<br></p>
<blockquote>
<p>connA for databaseA<br>
connB for databaseB</p>
</blockquote>
<p>Both databases are present on the same server (don't know if this matters)<br></p>
<p>Queries:</p>
<p>... | [
{
"answer_id": 16474,
"author": "Forgotten Semicolon",
"author_id": 1960,
"author_profile": "https://Stackoverflow.com/users/1960",
"pm_score": 2,
"selected": false,
"text": "\nSELECT a.columnA, a.columnB,..., a.columnZ\nFROM table2 a\nINNER JOIN (SELECT databaseA..table1.column1 \n ... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16447",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1311/"
] |
16,451 | <p>I need to call a web service written in .NET from Java. The web service implements the WS-Security stack (either WSE 2 or WSE 3, it's not clear from the information I have). </p>
<p>The information that I received from the service provider included WSDL, a policyCache.config file, some sample C# code, and a sampl... | [
{
"answer_id": 16979,
"author": "ScArcher2",
"author_id": 1310,
"author_profile": "https://Stackoverflow.com/users/1310",
"pm_score": 2,
"selected": false,
"text": "import java.io.IOException;\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport javax.security.auth.callback.Callba... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16451",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1958/"
] |
16,458 | <p>I'm using <code>ColdFusion</code> to return a result set from a SQL database and turn it into a list.</p>
<p>I need some way to generate an alphabetical navigation bar for that list. I have ColdFusion and the jQuery library available.</p>
<p>I'm looking to generate something like this:</p>
<pre><code>A | B | C |... | [
{
"answer_id": 16555,
"author": "Patrick McElhaney",
"author_id": 437,
"author_profile": "https://Stackoverflow.com/users/437",
"pm_score": 3,
"selected": false,
"text": "<cfoutput>\n<cfloop from=\"#asc('A')#\" to=\"#asc('Z')#\" index=\"i\">\n <a href=\"###chr(i)#\">#chr(i)#</a>\n ... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/666/"
] |
16,460 | <p>I was writing some <strong>ASP.NET</strong> control when I came to the scenario where I needed to remove items from a list, only when they matched a certain condition.</p>
<p>The <code>RemoveAll</code> method of the generic <code>List</code> class does a good job, but removes <em>all</em> items that match the condi... | [
{
"answer_id": 16466,
"author": "Serhat Ozgel",
"author_id": 31505,
"author_profile": "https://Stackoverflow.com/users/31505",
"pm_score": 1,
"selected": false,
"text": "list.RemoveAll(item => ShouldIRemoveThis(item));\n"
},
{
"answer_id": 16493,
"author": "Adam Wright",
... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16460",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1801/"
] |
16,473 | <p>Say we have the following method:</p>
<pre><code>private MyObject foo = new MyObject();
// and later in the class
public void PotentialMemoryLeaker(){
int firedCount = 0;
foo.AnEvent += (o,e) => { firedCount++;Console.Write(firedCount);};
foo.MethodThatFiresAnEvent();
}
</code></pre>
<p>If the class wit... | [
{
"answer_id": 16484,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 5,
"selected": true,
"text": "DelegateType evt = (o, e) => { firedCount++; Console.Write(firedCount); };\nfoo.AnEvent += evt;\nfoo.MethodThatFiresAnE... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16473",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
16,487 | <p>I am using SourceForge for some Open Source projects and I want to automate the deployment of releases to the SourceForge File Release System. I use Maven for my builds and the standard SFTP deployment mechanism doesn't seem to work unless you do some manual preparation work. I have come across some old postings on ... | [
{
"answer_id": 1449595,
"author": "Rich Seller",
"author_id": 123582,
"author_profile": "https://Stackoverflow.com/users/123582",
"pm_score": 4,
"selected": true,
"text": "SourceForge username: foo\nSourceForge user password: secret\nSourceForge project name: bar\nPath: /home/frs/project... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1969/"
] |
16,491 | <p>How do you restore a database backup using SQL Server 2005 over the network? I recall doing this before but there was something odd about the way you had to do it.</p>
| [
{
"answer_id": 10236311,
"author": "RSOLY777",
"author_id": 1345056,
"author_profile": "https://Stackoverflow.com/users/1345056",
"pm_score": 3,
"selected": false,
"text": "SQL services \"Services.msc\" \"Domain User\""
},
{
"answer_id": 14894743,
"author": "coussej",
"au... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1545/"
] |
16,501 | <p>For a person without a comp-sci background, what is a lambda in the world of Computer Science?</p>
| [
{
"answer_id": 16504,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 6,
"selected": false,
"text": "λ : λ → λ (lambda (x y) (* x y)) \n ((lambda (x y) (* x y)) 5 10)\n"
},
{
"answer_id": 16509,
"author": "mk."... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16501",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1344/"
] |
16,529 | <p>I've been developing a "Form Builder" in Javascript, and coming up to the part where I'll be sending the spec for the form back to the server to be stored. The builder maintains an internal data structure that represents the fields, label, options (for select/checkbox/radio), mandatory status, and the general sortin... | [
{
"answer_id": 16535,
"author": "juan",
"author_id": 1782,
"author_profile": "https://Stackoverflow.com/users/1782",
"pm_score": 0,
"selected": false,
"text": "text serialization"
},
{
"answer_id": 16547,
"author": "t3rse",
"author_id": 64,
"author_profile": "https://... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1951/"
] |
16,550 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/476163">NAnt or MSBuild, which one to choose and when?</a> </p>
</blockquote>
<p>What is the best build tool for <a href="http://en.wikipedia.org/wiki/.NET_Framework" rel="nofollow noreferrer">.NET</a>?</p>
<p... | [
{
"answer_id": 17316,
"author": "Lee",
"author_id": 1954,
"author_profile": "https://Stackoverflow.com/users/1954",
"pm_score": 3,
"selected": false,
"text": "<Project xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\" DefaultTargets=\"Build\">\n <UsingTask AssemblyFile=\"$(M... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16550",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1464/"
] |
16,557 | <p>I have always thought that the .equals() method in java should be overridden to be made specific to the class you have created. In other words to look for equivalence of two different instances rather than two references to the same instance. However I have encountered other programmers who seem to think that the de... | [
{
"answer_id": 16574,
"author": "Michael Sharek",
"author_id": 1958,
"author_profile": "https://Stackoverflow.com/users/1958",
"pm_score": 0,
"selected": false,
"text": "equals() SortedSet hashCode()"
},
{
"answer_id": 16922,
"author": "James A. Rosen",
"author_id": 1190,... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1104/"
] |
16,563 | <p>So I'm working on a project that will allow users to enter <strong>poker hand histories</strong> from sites like PokerStars and then display the hand to them.</p>
<p>It seems that regex would be a great tool for this, however I rank my regex knowledge at "slim to none".</p>
<p>So I'm using PHP and looping through ... | [
{
"answer_id": 16583,
"author": "Brian Warshaw",
"author_id": 1344,
"author_profile": "https://Stackoverflow.com/users/1344",
"pm_score": 2,
"selected": false,
"text": "/Seat (\\d+): ([^ ]+) \\((\\d+)/\n _ _"
},
{
"answer_id": 16592,
"author": "Kibbee",
"author_id": 1862,... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/428190/"
] |
16,568 | <p>I'm interested in learning some (ideally) database agnostic ways of selecting the <em>n</em>th row from a database table. It would also be interesting to see how this can be achieved using the native functionality of the following databases: </p>
<ul>
<li>SQL Server</li>
<li>MySQL</li>
<li>PostgreSQL</li>
<li>SQLit... | [
{
"answer_id": 16570,
"author": "Andrew G. Johnson",
"author_id": 428190,
"author_profile": "https://Stackoverflow.com/users/428190",
"pm_score": 2,
"selected": false,
"text": "LIMIT n,1\n"
},
{
"answer_id": 16584,
"author": "Greg Hurlman",
"author_id": 35,
"author_pr... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16568",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1944/"
] |
16,610 | <p>Every now and then in a high volume .NET application, you might see this exception when you try to execute a query:</p>
<blockquote>
<p>System.Data.SqlClient.SqlException: A transport-level error has
occurred when sending the request to the server.</p>
</blockquote>
<p>According to my research, this is someth... | [
{
"answer_id": 156388,
"author": "Daniel Fortunov",
"author_id": 5975,
"author_profile": "https://Stackoverflow.com/users/5975",
"pm_score": 2,
"selected": false,
"text": "Number SqlException SqlError Errors"
},
{
"answer_id": 22389658,
"author": "Phillip Deneka",
"author... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16610",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1219/"
] |
16,615 | <p>I'm new to windows programming and I'm trying to get notified of all changes to the file system (similar to the information that FileMon from SysInternals displays, but via an API). Is a FindFirstChangeNotification for each (non-network, non-substed) drive my best bet or are there other more suitable C/C++ APIs?</p>... | [
{
"answer_id": 22910,
"author": "Mat Noguchi",
"author_id": 1799,
"author_profile": "https://Stackoverflow.com/users/1799",
"pm_score": 6,
"selected": true,
"text": "FindFirstChangeNotification ReadDirectoryChangesW."
}
] | 2008/08/19 | [
"https://Stackoverflow.com/questions/16615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1849/"
] |
16,616 | <p>In .NET, is it more appropriate to throw an argument null exception for an Integer if the value is Integer.MinValue or Integer = 0 (assuming that 0 is not a valid value)?</p>
| [
{
"answer_id": 16627,
"author": "bradtgmurray",
"author_id": 1546,
"author_profile": "https://Stackoverflow.com/users/1546",
"pm_score": 0,
"selected": false,
"text": "ArgumentNullException ArgumentException ArgumentOutOfRangeException"
}
] | 2008/08/19 | [
"https://Stackoverflow.com/questions/16616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1989/"
] |
16,634 | <p>We used the "undocumented" xp_fileexist stored procedure for years in SQL Server 2000 and had no trouble with it. In 2005, it seems that they modified the behavior slightly to always return a 0 if the executing user account is not a sysadmin. It also seems to return a zero if the SQL Server service is running under ... | [
{
"answer_id": 18000,
"author": "Paul G",
"author_id": 162,
"author_profile": "https://Stackoverflow.com/users/162",
"pm_score": 2,
"selected": false,
"text": "using System;\nusing System.Data;\nusing System.Data.SqlClient;\nusing System.Data.SqlTypes;\nusing Microsoft.SqlServer.Server;\... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16634",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/162/"
] |
16,638 | <p>I am having some trouble with the <a href="http://code.google.com/apis/maps/documentation/reference.html" rel="nofollow noreferrer">Google Maps API</a>. I have an array which holds a ojbect I created to store points.</p>
<p>My array and class:</p>
<pre><code>var tPoints = [];
function tPoint(name) {
va... | [
{
"answer_id": 18000,
"author": "Paul G",
"author_id": 162,
"author_profile": "https://Stackoverflow.com/users/162",
"pm_score": 2,
"selected": false,
"text": "using System;\nusing System.Data;\nusing System.Data.SqlClient;\nusing System.Data.SqlTypes;\nusing Microsoft.SqlServer.Server;\... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1992/"
] |
16,656 | <p>I am working on a program that needs to create a multiple temporary folders for the application. These will not be seen by the user. The app is written in VB.net. I can think of a few ways to do it such as incremental folder name or random numbered folder names, but I was wondering, how other people solve this probl... | [
{
"answer_id": 16672,
"author": "juan",
"author_id": 1782,
"author_profile": "https://Stackoverflow.com/users/1782",
"pm_score": 4,
"selected": false,
"text": "System.IO.Path.GetTempFileName() System.IO.Path.GetDirectoryName(System.IO.Path.GetTempFileName())"
},
{
"answer_id": 16... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1632/"
] |
16,727 | <p>In GWT I have to specify what locales are supported in my application. The code get compiled in various files, one for each locale (beside other versions), but I have to give my clients one only URL. This URL is supposed to be a page that should be displayed according to the locale preferred by the browser.
I dont't... | [
{
"answer_id": 40521,
"author": "Lloyd Meinholz",
"author_id": 4229,
"author_profile": "https://Stackoverflow.com/users/4229",
"pm_score": 3,
"selected": false,
"text": "<inherits name=\"com.google.gwt.i18n.I18N\"/>\n errorMessage=Invalid Entry!\n import com.google.gwt.i18n.client.Consta... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
16,747 | <p>I am building a public website using ASP.NET, as part of the deliverable I need to do an Admin Site for data entry of the stuff shown in the public site, I was wondering what techniques or procedures are people using to validate entries using ASP.NET MVC.</p>
| [
{
"answer_id": 25606,
"author": "Daniel Pollard",
"author_id": 2758,
"author_profile": "https://Stackoverflow.com/users/2758",
"pm_score": 6,
"selected": true,
"text": "public JsonResult CheckUserName(string username)\n{\n return Json(CheckValidUsername(username));\n}\n"
},
{
... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1549/"
] |
16,762 | <p>I have a couple CSS files with overlapping CSS selectors that I'd like to programmatically merge (as in not just appending one file to the end of the other). Is there any tool to do this online? or a Firefox extension perhaps?</p>
| [
{
"answer_id": 11005246,
"author": "Ben23",
"author_id": 1452316,
"author_profile": "https://Stackoverflow.com/users/1452316",
"pm_score": 1,
"selected": false,
"text": "font font-size font-weight a a a:hover a.extlink a#mylink .foo a #bar a p a pre > a a + p a img a #a .a"
}
] | 2008/08/19 | [
"https://Stackoverflow.com/questions/16762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2007/"
] |
16,770 | <p>I'm trying to fully understand all of Haskell's concepts.</p>
<p>In what ways are algebraic data types similar to generic types, e.g., in C# and Java? And how are they different? What's so algebraic about them anyway? </p>
<p>I'm familiar with universal algebra and its rings and fields, but I only have a vague ide... | [
{
"answer_id": 16810,
"author": "olliej",
"author_id": 784,
"author_profile": "https://Stackoverflow.com/users/784",
"pm_score": 6,
"selected": true,
"text": " data List a = Cons a (List a) | Nil\n class List<a> {\n class Cons : List<a> {\n a head;\n List<a> tail;\n ... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1659/"
] |
16,792 | <p>Came across this error today. Wondering if anyone can tell me what it means:</p>
<blockquote>
<blockquote>
<p>Cannot sort a row of size 9522, which is greater than the allowable maximum of 8094.</p>
</blockquote>
</blockquote>
<p>Is that 8094 bytes? Characters? Fields? Is this a problem joining multiple ta... | [
{
"answer_id": 2547872,
"author": "Kevin Albrecht",
"author_id": 10475,
"author_profile": "https://Stackoverflow.com/users/10475",
"pm_score": 2,
"selected": false,
"text": "DBCC CLEANTABLE (0,[dbo.TableName])\n"
}
] | 2008/08/19 | [
"https://Stackoverflow.com/questions/16792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1975282/"
] |
16,795 | <p>PHP has a great function called <a href="http://us2.php.net/manual/en/function.htmlspecialchars.php" rel="noreferrer">htmlspecialcharacters()</a> where you pass it a string and it replaces all of HTML's special characters with their safe equivalents, it's <em>almost</em> a one stop shop for sanitizing input. Very ni... | [
{
"answer_id": 16802,
"author": "Nick Berardi",
"author_id": 17,
"author_profile": "https://Stackoverflow.com/users/17",
"pm_score": 5,
"selected": true,
"text": "var encodedHtml = HttpContext.Current.Server.HtmlEncode(...);\n"
},
{
"answer_id": 16807,
"author": "Jason Should... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16795",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1366/"
] |
16,804 | <p>What options are there in the industry for enterprise reporting? I'm currently using SSRS 2005, and know that there is another version coming out with the new release of MSSQL.</p>
<p>But, it seems like it might also be a good time to investigate the market to see what else is out there.</p>
<p>What have you enco... | [
{
"answer_id": 144531,
"author": "Peter Wone",
"author_id": 1715673,
"author_profile": "https://Stackoverflow.com/users/1715673",
"pm_score": 5,
"selected": false,
"text": "SELECT COUNT(*) FROM sometable WHERE 1=0\n"
}
] | 2008/08/19 | [
"https://Stackoverflow.com/questions/16804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/733/"
] |
16,815 | <p>I'm trying to do a simple test php script for sessions. Basically it increments a counter (stored in <code>$_SESSION</code>) every time you refresh that page. That works, but I'm trying to have a link to destroy the session which reloads the page with the <code>?destroy=1</code> parameter. I've tried a couple of if ... | [
{
"answer_id": 16818,
"author": "Andrew G. Johnson",
"author_id": 428190,
"author_profile": "https://Stackoverflow.com/users/428190",
"pm_score": 4,
"selected": true,
"text": "$_POST['destroy']\n $_GET['destroy']\n"
},
{
"answer_id": 16826,
"author": "ftdysa",
"author_id"... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16815",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1912/"
] |
16,828 | <p>It seems like the only way to do this is to pass the -i parameter in when you initially run less. Does anyone know of some secret hack to make something like this work</p>
<pre><code>/something to search for/i
</code></pre>
| [
{
"answer_id": 16837,
"author": "Juha Syrjälä",
"author_id": 1431,
"author_profile": "https://Stackoverflow.com/users/1431",
"pm_score": 10,
"selected": true,
"text": "-I"
},
{
"answer_id": 26069,
"author": "sanmiguel",
"author_id": 24,
"author_profile": "https://Stac... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1797/"
] |
16,829 | <p>I know there are at least 10 different ways to structure project in version control. I'm curious what some methods being used are and which ones work for you. I've worked with SVN, TFS, and currently/unfortunately VSS. I've seen version control implemented very poorly and just OK, but never great.</p>
<p>Just to ... | [
{
"answer_id": 16915,
"author": "Boris Terzic",
"author_id": 1996,
"author_profile": "https://Stackoverflow.com/users/1996",
"pm_score": 3,
"selected": false,
"text": "svnrepo/\n trunk/\n modules/\n m1/ --> will result in jar file\n m2/\n ...\n assemblies/\n a1... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2017/"
] |
16,832 | <p>I am looking for a lightweight source control system for use on "hobby" projects with only one person (myself) working on the project. Does anyone have any suggestions? Ideally it should interface with Visual Studio either naively or through another plug-in, outside of that, anything that works would be nice to be r... | [
{
"answer_id": 16835,
"author": "prakash",
"author_id": 123,
"author_profile": "https://Stackoverflow.com/users/123",
"pm_score": 3,
"selected": false,
"text": "Svn1ClickSetup-1.3.3.exe"
},
{
"answer_id": 16844,
"author": "Greg Hewgill",
"author_id": 893,
"author_prof... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1185/"
] |
16,833 | <p>I need to periodically download, extract and save the contents of <a href="http://data.dot.state.mn.us/dds/det_sample.xml.gz" rel="noreferrer">http://data.dot.state.mn.us/dds/det_sample.xml.gz</a> to disk. Anyone have experience downloading gzipped files with C#?</p>
| [
{
"answer_id": 16852,
"author": "Adam Haile",
"author_id": 194,
"author_profile": "https://Stackoverflow.com/users/194",
"pm_score": 3,
"selected": false,
"text": "WebClient Client = new WebClient ();\nClient.DownloadFile(\"http://data.dot.state.mn.us/dds/det_sample.xml.gz\", \" C:\\mygz... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1786/"
] |
16,861 | <p>What is the best way to sanitize user input for a Python-based web application? Is there a single function to remove HTML characters and any other necessary characters combinations to prevent an <a href="http://en.wikipedia.org/wiki/Cross-site_scripting" rel="noreferrer">XSS</a> or SQL injection attack?</p>
| [
{
"answer_id": 25136,
"author": "tghw",
"author_id": 2363,
"author_profile": "https://Stackoverflow.com/users/2363",
"pm_score": 5,
"selected": false,
"text": "onclick href=\"javascript:...\" <a href=\"ja	vascript:alert('hi')\"> <a href=\"ja vascript:alert('hi')\"> import re\nfrom ... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2019/"
] |
16,891 | <p>As you may know, in <code>VS 2008</code> <kbd>ctrl</kbd>+<kbd>tab</kbd> brings up a nifty navigator window with a thumbnail of each file. I love it, but there is one tiny thing that is annoying to me about this feature: <em>the window stays around after releasing the <kbd>ctrl</kbd> key</em>. When doing an <kbd>alt<... | [
{
"answer_id": 6413653,
"author": "SliverNinja - MSFT",
"author_id": 175679,
"author_profile": "https://Stackoverflow.com/users/175679",
"pm_score": 2,
"selected": false,
"text": "Window.NextDocumentWindow Window.NextDocumentWindowNav"
}
] | 2008/08/19 | [
"https://Stackoverflow.com/questions/16891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1789/"
] |
16,926 | <p>My HTML is all marked up, ready to make it rain CSS. The problem is that I have to go back and find out what all my id and class names are so I can get started. What I need is a tool that parses my HTML and spits out a stylesheet with all the possible elements ready to be styled (maybe even with some defaults). D... | [
{
"answer_id": 16989,
"author": "danb",
"author_id": 2031,
"author_profile": "https://Stackoverflow.com/users/2031",
"pm_score": 3,
"selected": false,
"text": "<script type=\"text/javascript\">\n $(document).ready(function() {\n\n $('*[@id]').each(function() {\n cons... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/744/"
] |
16,935 | <p>I'm trying to compile over 100 java classes from different packages from a clean
directory (no incremental compiles) using the following ant tasks:</p>
<pre><code><target name="-main-src-depend">
<depend srcdir="${src.dir}"
destdir="${bin.dir}"
cache="${cache.dir}"
... | [
{
"answer_id": 16955,
"author": "jmanning2k",
"author_id": 1480,
"author_profile": "https://Stackoverflow.com/users/1480",
"pm_score": 1,
"selected": false,
"text": "javac memoryinitialsize=\"256M\" memorymaximumsize=\"1024M\"\n fork=\"true\" javac fork=\"true\""
},
{
"answer_id"... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16935",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2024/"
] |
16,939 | <p>I am reading a binary file into a parsing program. I will need to iterate through the file and look for certain markers so I can split the file up and pass those parts into their respective object’s constructors.</p>
<p>Is there an advantage to holding the file as a stream, either MemoryStream or FileStream, or sh... | [
{
"answer_id": 16967,
"author": "denis phillips",
"author_id": 748,
"author_profile": "https://Stackoverflow.com/users/748",
"pm_score": 6,
"selected": true,
"text": "byte[] MemoryStream MemoryStream FileStream BinaryReader BinaryWriter"
}
] | 2008/08/19 | [
"https://Stackoverflow.com/questions/16939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1048/"
] |
16,945 | <p>I would like to rename files and folders recursively by applying a string replacement operation.</p>
<p>E.g. The word "shark" in files and folders should be replaced by the word "orca".</p>
<p><code>C:\Program Files\Shark Tools\Wire Shark\Sharky 10\Shark.exe</code> </p>
<p>should be moved to:</p>
<p><code>C:\Pro... | [
{
"answer_id": 17028,
"author": "EBGreen",
"author_id": 1358,
"author_profile": "https://Stackoverflow.com/users/1358",
"pm_score": 1,
"selected": false,
"text": "function Move-Stuff($folder)\n{\n foreach($sub in [System.IO.Directory]::GetDirectories($folder))\n {\n Move-S... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
16,963 | <p>Curious if others feel the same as me. To me, controls such as datagrid/gridview/formview/etc. are great for presentations or demo's only. To take the time and tweak this controls, override their default behavior (hooking into their silly events etc.) is a big headache. The only control that I use is the repeater,... | [
{
"answer_id": 16978,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 2,
"selected": false,
"text": "<asp:GridView ...>\n <Columns>\n <my:AutoField HeaderText=\"Type\" \n DataField=\"TypeId\"\n ... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16963",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1368/"
] |
16,964 | <p>I'm trying to implement something like this:</p>
<pre><code><div>
<table>
<thead>
<tr>
<td>Port name</td>
<td>Current port version</td>
<td>New port version</td>
<td... | [
{
"answer_id": 594544,
"author": "Spoike",
"author_id": 3713,
"author_profile": "https://Stackoverflow.com/users/3713",
"pm_score": 1,
"selected": false,
"text": "HtmlHelper ViewPage <% using(Html.BeginForm(\"Update\", \"Ip\", new {portName = ip.PortName} )) { %>\n\n ....\n <input ... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/614/"
] |
16,971 | <p>I would like to have a nice template for doing this in development. How do I reset an increment identity's starting value in SQL Server?</p>
| [
{
"answer_id": 16977,
"author": "Ryan Sampson",
"author_id": 1375,
"author_profile": "https://Stackoverflow.com/users/1375",
"pm_score": 8,
"selected": true,
"text": "DBCC CHECKIDENT('TableName', RESEED, 0)\n"
},
{
"answer_id": 16983,
"author": "Keith",
"author_id": 905,
... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16971",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1976/"
] |
16,991 | <p>I've been using Eclipse with RDT (not RadRails) a lot lately, and I'm quite happy with it, but I'm wondering if you guys know any decent alternatives. I know NetBeans also supports Ruby these days, but I'm not sure what it has to offer over Eclipse.</p>
<p>Please, list any features you think are brilliant or useful... | [
{
"answer_id": 4040692,
"author": "so_mv",
"author_id": 186858,
"author_profile": "https://Stackoverflow.com/users/186858",
"pm_score": 3,
"selected": false,
"text": "code completion debugging code navigation Relying on code completion and code navigation is anti-ruby/rails"
},
{
... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2018/"
] |
16,998 | <p>I'm having trouble reading a "chunked" response when using a StreamReader to read the stream returned by GetResponseStream() of a HttpWebResponse:</p>
<pre><code>// response is an HttpWebResponse
StreamReader reader = new StreamReader(response.GetResponseStream());
string output = reader.ReadToEnd(); // throws exce... | [
{
"answer_id": 17236,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "StringBuilder sb = new StringBuilder();\nByte[] buf = new byte[8192];\nStream resStream = response.GetResponseStream();\nstring ... | 2008/08/19 | [
"https://Stackoverflow.com/questions/16998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2047/"
] |
17,017 | <p>How do I convert a DateTime structure to its equivalent <a href="http://www.ietf.org/rfc/rfc3339.txt" rel="noreferrer">RFC 3339</a> formatted string representation and/or parse this string representation back to a <a href="http://msdn.microsoft.com/en-us/library/system.datetime.aspx" rel="noreferrer">DateTime</a> st... | [
{
"answer_id": 17021,
"author": "Oppositional",
"author_id": 2029,
"author_profile": "https://Stackoverflow.com/users/2029",
"pm_score": 6,
"selected": true,
"text": "using System;\nusing System.Globalization;\n\nnamespace DateTimeConsoleApplication\n{\n /// <summary>\n /// Provide... | 2008/08/19 | [
"https://Stackoverflow.com/questions/17017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2029/"
] |
17,020 | <p>I have a new 1 TB drive coming in tomorrow. What is the best way to divide this space for a development workstation?</p>
<p>The biggest problem I think I'm going to have is that some partitions (probably /usr) will become to small after a bit of use. Other partitions are probably to huge. The swap drive for example... | [
{
"answer_id": 30415,
"author": "palm3D",
"author_id": 2686,
"author_profile": "https://Stackoverflow.com/users/2686",
"pm_score": 2,
"selected": false,
"text": "quota"
},
{
"answer_id": 30419,
"author": "palm3D",
"author_id": 2686,
"author_profile": "https://Stackove... | 2008/08/19 | [
"https://Stackoverflow.com/questions/17020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1633/"
] |
17,032 | <p><a href="http://resharper.blogspot.com/2008/03/varification-using-implicitly-typed.html" rel="noreferrer">Resharper</a> certainly thinks so, and out of the box it will nag you to convert</p>
<pre><code>Dooberry dooberry = new Dooberry();
</code></pre>
<p>to</p>
<pre><code>var dooberry = new Dooberry();
</code></p... | [
{
"answer_id": 17042,
"author": "Jon Galloway",
"author_id": 5,
"author_profile": "https://Stackoverflow.com/users/5",
"pm_score": 6,
"selected": true,
"text": "var result = GetUserID();\n"
},
{
"answer_id": 17044,
"author": "Mark Cidade",
"author_id": 1659,
"author_p... | 2008/08/19 | [
"https://Stackoverflow.com/questions/17032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1853/"
] |
17,054 | <p>How do you use network sockets in Pascal?
</p>
| [
{
"answer_id": 17062,
"author": "Mickey",
"author_id": 1494,
"author_profile": "https://Stackoverflow.com/users/1494",
"pm_score": 4,
"selected": true,
"text": "program daytime;\n\n{ Simple client program }\n\nuses\n sockets, inetaux, myerror;\n\nconst\n RemotePort : Word = 13;\n\nva... | 2008/08/19 | [
"https://Stackoverflow.com/questions/17054",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/868/"
] |
17,056 | <p>I'm currently working on an application where we have a SQL-Server database and I need to get a full text search working that allows us to search people's names.</p>
<p>Currently the user can enter a into a name field that searches 3 different varchar cols. First, Last, Middle names</p>
<p>So say I have 3 rows wit... | [
{
"answer_id": 18072,
"author": "Biri",
"author_id": 968,
"author_profile": "https://Stackoverflow.com/users/968",
"pm_score": 2,
"selected": false,
"text": "INNER JOIN FREETEXTTABLE(Person, (LastName, Firstname, MiddleName), @SearchString) \n"
},
{
"answer_id": 18226,
"autho... | 2008/08/19 | [
"https://Stackoverflow.com/questions/17056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1925/"
] |
17,085 | <p>I have a simple CAML query like</p>
<pre><code><Where><Eq><Field="FieldName"><Value Type="Text">Value text</Value></Field></Eq></Where>
</code></pre>
<p>And I have a variable to substitute for <code>Value text</code>. What's the best way to validate/escape the text t... | [
{
"answer_id": 17093,
"author": "Darren Kopp",
"author_id": 77,
"author_profile": "https://Stackoverflow.com/users/77",
"pm_score": 0,
"selected": false,
"text": "System.Xml.Linq.XElement SetValue"
},
{
"answer_id": 17137,
"author": "Dale Ragan",
"author_id": 1117,
"a... | 2008/08/19 | [
"https://Stackoverflow.com/questions/17085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/578/"
] |
17,106 | <p>We are developing an application that involves a substantial amount of XML transformations. We do not have any proper input test data per se, only DTD or XSD files. We'd like to generate our test data ourselves from these files. Is there an easy/free way to do that?</p>
<p><strong>Edit</strong></p>
<p>There are ap... | [
{
"answer_id": 374256,
"author": "falko",
"author_id": 47010,
"author_profile": "https://Stackoverflow.com/users/47010",
"pm_score": 3,
"selected": false,
"text": "xmlgen.zip java -jar xmlgen.jar -help"
},
{
"answer_id": 6209865,
"author": "Michal Rames",
"author_id": 780... | 2008/08/19 | [
"https://Stackoverflow.com/questions/17106",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1428/"
] |
17,117 | <p>Is Boost the only way for VS2005 users experience TR2? Also is there a idiot proof way of downloading only the TR2 related packages?</p>
<p>I was looking at the boost installer provided by BoostPro Consulting. If I select the options for all the threading options with all the packages for MSVC8 it requires 1.1GB. W... | [
{
"answer_id": 38226,
"author": "Ferruccio",
"author_id": 4086,
"author_profile": "https://Stackoverflow.com/users/4086",
"pm_score": 0,
"selected": false,
"text": "bjam --help bjam --build-type=complete --toolset=msvc --build-dir=c:\\boost\\build install\n"
}
] | 2008/08/19 | [
"https://Stackoverflow.com/questions/17117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/342/"
] |
17,125 | <p>I know what <code>yield</code> does, and I've seen a few examples, but I can't think of real life applications, have you used it to solve some specific problem?</p>
<p>(Ideally some problem that cannot be solved some other way)</p>
| [
{
"answer_id": 17133,
"author": "Nick Berardi",
"author_id": 17,
"author_profile": "https://Stackoverflow.com/users/17",
"pm_score": 3,
"selected": false,
"text": "public override IEnumerator<T> GetEnumerator()\n{\n // goes through the collection and only returns the ones that are vis... | 2008/08/19 | [
"https://Stackoverflow.com/questions/17125",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1782/"
] |
17,140 | <p>How do you run an external program and pass it command line parameters using C? If you have to use operating system API, include a solution for Windows, Mac, and Linux.</p>
| [
{
"answer_id": 17148,
"author": "wilhelmtell",
"author_id": 456,
"author_profile": "https://Stackoverflow.com/users/456",
"pm_score": 4,
"selected": false,
"text": "#include <stdlib.h>\n\nint main()\n{\n system(\"echo HAI\");\n\n return 0;\n}\n"
},
{
"answer_id": 17150,
... | 2008/08/19 | [
"https://Stackoverflow.com/questions/17140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/432/"
] |
17,170 | <p>I know that IList is the interface and List is the concrete type but I still don't know when to use each one. What I'm doing now is if I don't need the Sort or FindAll methods I use the interface. Am I right? Is there a better way to decide when to use the interface or the concrete type?</p>
| [
{
"answer_id": 17177,
"author": "swilliams",
"author_id": 736,
"author_profile": "https://Stackoverflow.com/users/736",
"pm_score": 2,
"selected": false,
"text": "Person Group Group Group IList<Person> List public class Group {\n private IList<Person> people;\n\n public Group() {\n ... | 2008/08/19 | [
"https://Stackoverflow.com/questions/17170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1560/"
] |
17,172 | <p>I've tried to do this several times with no luck. After reading <a href="https://stackoverflow.com/questions/1451/what-is-the-best-way-to-handle-multiple-permission-types#1477">this post</a>, it made me interested in doing this again. So can anyone tell me why the following doesn't work?</p>
<pre><code><?php
... | [
{
"answer_id": 17173,
"author": "Espen Herseth Halvorsen",
"author_id": 1542,
"author_profile": "https://Stackoverflow.com/users/1542",
"pm_score": 2,
"selected": false,
"text": "<?php\n\n $guest = 1;\n $editor = 2;\n $admin = 4;\n\n $user = $editor;\n\n if( ($user == $edi... | 2008/08/19 | [
"https://Stackoverflow.com/questions/17172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40/"
] |
17,175 | <p>I'll take away the obvious one here: mic and webcam support. Other than that, if you ran the Silverlight team, what would your highest priority be for Silverlight v.Next?</p>
<p>Disclaimer: If we get some good responses, I'll pass them along to folks I know on the Silverlight team.</p>
<p><strong>UPDATE</strong>: ... | [
{
"answer_id": 33962,
"author": "Orion Edwards",
"author_id": 234,
"author_profile": "https://Stackoverflow.com/users/234",
"pm_score": 1,
"selected": false,
"text": "*"
}
] | 2008/08/19 | [
"https://Stackoverflow.com/questions/17175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5/"
] |
17,181 | <p>In my most C++ project I heavily used ASSERTION statement as following:</p>
<pre><code>int doWonderfulThings(const int* fantasticData)
{
ASSERT(fantasticData);
if(!fantasticData)
return -1;
// ,,,
return WOW_VALUE;
}
</code></pre>
<p>But TDD community seems like to enjoy doing something lik... | [
{
"answer_id": 17229,
"author": "Huppie",
"author_id": 1830,
"author_profile": "https://Stackoverflow.com/users/1830",
"pm_score": 2,
"selected": false,
"text": "int doWonderfulThings(const int* fantasticData)\n{\n ASSERT(fantasticData);\n ASSERTNOTEQUAL(0, fantasticData)\n\n re... | 2008/08/19 | [
"https://Stackoverflow.com/questions/17181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1556/"
] |
17,194 | <p>I have a Monthly Status database view I need to build a report based on. The data in the view looks something like this:</p>
<pre><code>Category | Revenue | Yearh | Month
Bikes 10 000 2008 1
Bikes 12 000 2008 2
Bikes 12 000 2008 3
Bikes 15 000 2008 ... | [
{
"answer_id": 17277,
"author": "Jonas Follesø",
"author_id": 1199387,
"author_profile": "https://Stackoverflow.com/users/1199387",
"pm_score": 1,
"selected": false,
"text": "SELECT \n SP1.Program,\n SP1.Year,\n SP1.Month,\n SP1.TotalRevenue AS ThisYearRevenue,\n SP2.Total... | 2008/08/19 | [
"https://Stackoverflow.com/questions/17194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1199387/"
] |
17,225 | <p>In Perl, you can execute system commands using system() or `` (backticks). You can even capture the output of the command into a variable. However, this hides the program execution in the background so that the person executing your script can't see it. </p>
<p>Normally this is useful but sometimes I want to see wh... | [
{
"answer_id": 17245,
"author": "mk.",
"author_id": 1797,
"author_profile": "https://Stackoverflow.com/users/1797",
"pm_score": 3,
"selected": false,
"text": "open(LS,\"|ls\");\nprint LS;\n"
},
{
"answer_id": 17293,
"author": "Daniel Fone",
"author_id": 1848,
"author_... | 2008/08/19 | [
"https://Stackoverflow.com/questions/17225",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/432/"
] |
17,228 | <p>I develop C++ applications in a Linux environment. The tools I use every day include Eclipse with the CDT plugin, gdb and valgrind.<br>
What tools do other people use? Is there anything out there for Linux that rivals the slickness of Microsoft Visual Studio?</p>
| [
{
"answer_id": 563490,
"author": "Zan Lynx",
"author_id": 13422,
"author_profile": "https://Stackoverflow.com/users/13422",
"pm_score": 6,
"selected": false,
"text": "strace time(0) poll() read() read() objdump -d __builtin_prefetch"
},
{
"answer_id": 1955392,
"author": "Comm... | 2008/08/19 | [
"https://Stackoverflow.com/questions/17228",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1449/"
] |
17,231 | <p>I was looking at <a href="http://tldp.org/LDP/abs/html/why-shell.html" rel="nofollow noreferrer">http://tldp.org/LDP/abs/html/why-shell.html</a> and was struck by:</p>
<blockquote>
<p>When not to use shell scripts</p>
<p>...</p>
<ul>
<li>Mission-critical applications upon which you are betting the fut... | [
{
"answer_id": 92305,
"author": "David Webb",
"author_id": 3171,
"author_profile": "https://Stackoverflow.com/users/3171",
"pm_score": 2,
"selected": false,
"text": "critical-business-logic.sh"
}
] | 2008/08/19 | [
"https://Stackoverflow.com/questions/17231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1438/"
] |
17,250 | <p>I am creating an ZIP file with <code>ZipFile</code> in Python 2.5, it works OK so far:</p>
<pre><code>import zipfile, os
locfile = "test.txt"
loczip = os.path.splitext (locfile)[0] + ".zip"
zip = zipfile.ZipFile (loczip, "w")
zip.write (locfile)
zip.close()
</code></pre>
<p>But I could... | [
{
"answer_id": 17287,
"author": "Harley Holcombe",
"author_id": 1057,
"author_profile": "https://Stackoverflow.com/users/1057",
"pm_score": -1,
"selected": false,
"text": "import chilkat\n\n# Demonstrates how to create a WinZip-compatible 128-bit AES strong encrypted zip\nzip = chilkat.C... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/394/"
] |
17,274 | <p>Although I've done programming, I'm not a programmer. I've recently agreed to coordinate getting a Website up for a club. The resources are--me, who has done Web content maintenance (putting content into HTML and ColdFusion templates via a gatekeeper to the site itself; doing simple HTML and XML coding); a serious W... | [
{
"answer_id": 18385,
"author": "Kevin",
"author_id": 40,
"author_profile": "https://Stackoverflow.com/users/40",
"pm_score": 1,
"selected": false,
"text": "<!--#include virtual=\"navigation.html\" -->\n"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/17274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1110/"
] |
17,299 | <p>I am trying to build a function in C/C++ to sort an array and replace each value with its "score" or rank. It takes in a double pointer array to an array of ints, and sorts the double pointers based on the dereferenced value of the integers. I have tried quite a few times to make it work, but can't get it down. O... | [
{
"answer_id": 17312,
"author": "OJ.",
"author_id": 611,
"author_profile": "https://Stackoverflow.com/users/611",
"pm_score": 4,
"selected": true,
"text": "void SortArray( int ** pArray, int ArrayLength )\n{\n int i, j, flag = 1; // set flag to 1 to begin initial pass\n int * te... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17299",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/522/"
] |
17,333 | <p>What would be the most efficient way to compare two <code>double</code> or two <code>float</code> values?</p>
<p>Simply doing this is not correct:</p>
<pre><code>bool CompareDoubles1 (double A, double B)
{
return A == B;
}
</code></pre>
<p>But something like:</p>
<pre><code>bool CompareDoubles2 (double A, dou... | [
{
"answer_id": 17341,
"author": "OJ.",
"author_id": 611,
"author_profile": "https://Stackoverflow.com/users/611",
"pm_score": 8,
"selected": false,
"text": "bool AreSame(double a, double b)\n{\n return fabs(a - b) < EPSILON;\n}\n"
},
{
"answer_id": 17412,
"author": "fulmic... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2057/"
] |
17,352 | <p>In relation to this question on <a href="https://stackoverflow.com/questions/14413/using-opengl-extensions-on-windows">Using OpenGL extensions</a>, what's the purpose of these extension functions? Why would I want to use them? Further, are there any tradeoffs or gotchas associated with using them?</p>
| [
{
"answer_id": 23908,
"author": "spate",
"author_id": 2276,
"author_profile": "https://Stackoverflow.com/users/2276",
"pm_score": 3,
"selected": false,
"text": "NV_vertex_program EXT_vertex_program ARB_vertex_program ARB_vertex_program ARB_vertex_shader ARB_matrix_palette ARB_vertex_buff... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17352",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/803/"
] |
17,359 | <p>I've created a script that runs every night on my Linux server that uses <code>mysqldump</code> to back up each of my MySQL databases to .sql files and packages them together as a compressed .tar file. The next step I want to accomplish is to send that tar file through email to a remote email server for safekeeping.... | [
{
"answer_id": 17365,
"author": "Chris N",
"author_id": 1653,
"author_profile": "https://Stackoverflow.com/users/1653",
"pm_score": 5,
"selected": false,
"text": "man mailx echo \"This is the message body\" | mutt -a file.to.attach -s \"subject of message\" recipient@example.com\n mutt -... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1339/"
] |
17,370 | <p>I've been using OpenGL extensions on Windows the <a href="https://stackoverflow.com/questions/14413/using-opengl-extensions-on-windows">painful way</a>. Is GLEW the easier way to go? How do I get started with it?</p>
| [
{
"answer_id": 17371,
"author": "Ashwin Nanjappa",
"author_id": 1630,
"author_profile": "https://Stackoverflow.com/users/1630",
"pm_score": 6,
"selected": true,
"text": "#pragma comment(lib, \"glew32.lib\")\n #include <GL/glew.h> glew.h glewInit() if (GLEW_OK != glewInit())\n{\n // GL... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1630/"
] |
17,373 | <p>How do I open the default mail program with a Subject and Body in a cross-platform way?</p>
<p>Unfortunately, this is for a a client app written in Java, not a website.</p>
<p>I would like this to work in a cross-platform way (which means Windows and Mac, sorry Linux). I am happy to execute a VBScript in Windows, ... | [
{
"answer_id": 17389,
"author": "Dhaust",
"author_id": 242,
"author_profile": "https://Stackoverflow.com/users/242",
"pm_score": 2,
"selected": false,
"text": "<a href=\"mailto:someone@yoursite.com?subject=Mail from Our Site\">Email Us</a> \n <a href=\"mailto:someone@yoursite.com?cc=some... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/338/"
] |
17,376 | <p>I have a PHP script that runs as a CGI program and the HTTP <code>Authenticate</code> header gets eaten and spit out. So I would like to implement some kind of FORM based authentication. As an added constraint, there is no database so no session data can be stored.</p>
<p>I am very open to having a master username ... | [
{
"answer_id": 31869,
"author": "John Douthat",
"author_id": 2774,
"author_profile": "https://Stackoverflow.com/users/2774",
"pm_score": 1,
"selected": false,
"text": "// At the top of your 'private' page(s):\nif($_SESSION['authenticated'] !== TRUE) {\n header('Location: /login.php');... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/338/"
] |
17,387 | <p>I have a blogengine.net install that requires privatization.</p>
<p>I'm doing research work at the moment, but I have to keep my blog/journal private until certain conditions are met.</p>
<p>How can I privatize my blogEngine.net install so that readers must log in to read my posts?</p>
| [
{
"answer_id": 17392,
"author": "lomaxx",
"author_id": 493,
"author_profile": "https://Stackoverflow.com/users/493",
"pm_score": 0,
"selected": false,
"text": "<system.web>\n <authorization>\n <allow roles=\"Admin\" />\n <deny users=\"*\" />\n </authorization>\n</system.w... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/209/"
] |
17,411 | <p>How can you make the display frames per second be independent from the game logic? That is so the game logic runs the same speed no matter how fast the video card can render. </p>
| [
{
"answer_id": 17415,
"author": "Jesse Beder",
"author_id": 112,
"author_profile": "https://Stackoverflow.com/users/112",
"pm_score": 2,
"selected": false,
"text": "int lastTime = GetCurrentTime();\nwhile(1) {\n // how long is it since we last updated?\n int currentTime = GetCurren... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
17,434 | <p>I have been reading through the <a href="http://yosefk.com/c++fqa/" rel="noreferrer">C++ FAQ</a> and was curious about the <a href="http://yosefk.com/c++fqa/friend.html" rel="noreferrer"><code>friend</code></a> declaration. I personally have never used it, however I am interested in exploring the language. </p>
<p>... | [
{
"answer_id": 17443,
"author": "Andrew Grant",
"author_id": 1043,
"author_profile": "https://Stackoverflow.com/users/1043",
"pm_score": 9,
"selected": true,
"text": "friend friend class Child\n{\n//Mother class members can access the private parts of class Child.\nfriend class Mother;\n... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/716/"
] |
17,483 | <p>Is anyone aware of a language feature or technique in C++ to prevent a child class from over riding a particular method in the parent class?</p>
<pre><code>class Base {
public:
bool someGuaranteedResult() { return true; }
};
class Child : public Base {
public:
bool someGuaranteedResult() { return false; /*... | [
{
"answer_id": 17485,
"author": "Ryan Fox",
"author_id": 55,
"author_profile": "https://Stackoverflow.com/users/55",
"pm_score": 0,
"selected": false,
"text": "Parent* obj = new Child();\n"
},
{
"answer_id": 17487,
"author": "Frank Krueger",
"author_id": 338,
"author_... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1366/"
] |
17,500 | <p>The <code>System.Windows.Threading.DispatcherObject</code> class (which <code>DependencyObject</code> is based on) contains a useful function, called <code>CheckAccess()</code>, that determines whether or not the code is running on the UI thread.</p>
<p>When I wanted to use it yesterday, I was puzzled to find out t... | [
{
"answer_id": 17507,
"author": "Eric Haskins",
"author_id": 100,
"author_profile": "https://Stackoverflow.com/users/100",
"pm_score": 0,
"selected": false,
"text": "[EditorBrowsable(EditorBrowsableState.Never)]\npublic bool CheckAccess()\n{\n//CODE\n}\n"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/17500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2074/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.