qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
352,474 | <p>I have an interface A, for which I have to supply a few different
implementations. However, those implementations share some helper methods, so
I moved those methods to an abstract base class.</p>
<pre><code>Interface A {
void doX();
}
abstract Class B implements A {
protected void commonY() {
// .... | [
{
"answer_id": 352486,
"author": "Joachim Sauer",
"author_id": 40342,
"author_profile": "https://Stackoverflow.com/users/40342",
"pm_score": 0,
"selected": false,
"text": "doX()"
},
{
"answer_id": 352488,
"author": "kgiannakakis",
"author_id": 24054,
"author_profile":... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29549/"
] |
352,478 | <p>Does anyone know of a really simple way of capitalizing just the first letter of a string, regardless of the capitalization of the rest of the string?</p>
<p>For example:</p>
<pre><code>asimpletest -> Asimpletest
aSimpleTest -> ASimpleTest
</code></pre>
<p>I would like to be able to do all string lengths as... | [
{
"answer_id": 352494,
"author": "Joachim Sauer",
"author_id": 40342,
"author_profile": "https://Stackoverflow.com/users/40342",
"pm_score": 3,
"selected": false,
"text": "s = s[0].upper() + s[1:]\n"
},
{
"answer_id": 352513,
"author": "Blair Conrad",
"author_id": 1199,
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18909/"
] |
352,479 | <p>When I compile my application under Delphi 2006 I get the following warning
[Pascal Warning]- W1002 Symbol 'FileSetDate' is specific to a platform</p>
<p>What must I do to suppress this warning?</p>
<p>The code </p>
<pre><code>MyLastError:= FileSetDate( Files[ i ].Handle, DateTimeToFileDate( arcDate ) );
</code>... | [
{
"answer_id": 352498,
"author": "Daniel Rikowski",
"author_id": 23368,
"author_profile": "https://Stackoverflow.com/users/23368",
"pm_score": 5,
"selected": false,
"text": "{$WARN SYMBOL_PLATFORM OFF}\n// Your code\n{$WARN SYMBOL_PLATFORM ON}\n"
},
{
"answer_id": 352584,
"au... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17560/"
] |
352,503 | <p>Master table contains ID and PersonName.<br>
Course table contains ID, CourseName.<br>
Detail table contains ID, MasterID, CourseID, StartDate,EndDate</p>
<p>I want to create report that shows list of persons (PersonName) and the only last course they took (so every person is listed only once):</p>
<p>PersonName -... | [
{
"answer_id": 352526,
"author": "Tony Andrews",
"author_id": 18747,
"author_profile": "https://Stackoverflow.com/users/18747",
"pm_score": 3,
"selected": true,
"text": "select m.PersonName, c.CourseName\nfrom Master m\njoin Detail d on d.MasterID = m.ID\njoin Course c on c.ID = d.... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11744/"
] |
352,527 | <p>I am adventuring into some AOP and it seems with .NET PostSharp is the way to go. </p>
<p>I want to do some simple logging to the db when an exception occurs. However I am finding it difficult to find any real solid examples of using PostSharp beyond the basics. I tried the following:</p>
<pre><code>[Serializable]... | [
{
"answer_id": 353889,
"author": "Ryan Cook",
"author_id": 43029,
"author_profile": "https://Stackoverflow.com/users/43029",
"pm_score": 3,
"selected": true,
"text": "OnExceptionAspect"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3193/"
] |
352,532 | <p><strong>Questions</strong>:</p>
<ul>
<li>What does the kernel do if you stick a shell-script into the shebang line? </li>
<li>How does the Kernel know which interpreter to launch?</li>
</ul>
<p><strong>Explanation</strong>:</p>
<p>I recently wanted to write a wrapper around <em>/usr/bin/env</em> because my CGI En... | [
{
"answer_id": 352830,
"author": "Piotr Lesnicki",
"author_id": 38796,
"author_profile": "https://Stackoverflow.com/users/38796",
"pm_score": 2,
"selected": false,
"text": "execve"
},
{
"answer_id": 358537,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_pro... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15274/"
] |
352,535 | <p>Aloha</p>
<p>I have a VS2008 solution to which I want to add a webservice reference. I enter an url like '<a href="http://192.168.100.87:7001/wsdl/IMySOAPWebService" rel="nofollow noreferrer">http://192.168.100.87:7001/wsdl/IMySOAPWebService</a>'. The Add Web Reference dialog starts looking then throws me this erro... | [
{
"answer_id": 352830,
"author": "Piotr Lesnicki",
"author_id": 38796,
"author_profile": "https://Stackoverflow.com/users/38796",
"pm_score": 2,
"selected": false,
"text": "execve"
},
{
"answer_id": 358537,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_pro... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6399/"
] |
352,537 | <p>How can I extend a builtin class in python?
I would like to add a method to the str class.<br />
I've done some searching but all I'm finding is older posts, I'm hoping someone knows of something newer.</p>
| [
{
"answer_id": 352546,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 6,
"selected": true,
"text": ">>> class X(str):\n... def my_method(self):\n... return int(self)\n...\n>>> s = X(\"Hi Mom\")\n>>> s.lower()\n'h... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/115/"
] |
352,538 | <p>I want the IIS server to return <code>HTTP 304 (Not Modified)</code> when a particular file is accessed. </p>
<p>How can I set this up? </p>
| [
{
"answer_id": 352546,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 6,
"selected": true,
"text": ">>> class X(str):\n... def my_method(self):\n... return int(self)\n...\n>>> s = X(\"Hi Mom\")\n>>> s.lower()\n'h... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38212/"
] |
352,540 | <p>I'd like to create an XPS document for storing and printing.</p>
<p>What is the easiest way to create an XPS document (for example with a simple grid with some data inside) in my program, and to pass it around?</p>
| [
{
"answer_id": 352551,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 5,
"selected": true,
"text": "public static byte[] ToXpsDocument(IEnumerable<FixedPage> pages)\n{\n // XPS DOCUMENTS MUST BE CREATED ON STA THREADS!!!\n ... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7021/"
] |
352,543 | <p>This is a bit of a long question, but here we go. There is a version of FormatDateTime that is said to be thread safe in that you use </p>
<pre><code>GetLocaleFormatSettings(3081, FormatSettings);
</code></pre>
<p>to get a value and then you can use it like so; </p>
<pre><code>FormatDateTime('yyyy', 0, FormatSet... | [
{
"answer_id": 353304,
"author": "Rob Kennedy",
"author_id": 33732,
"author_profile": "https://Stackoverflow.com/users/33732",
"pm_score": 1,
"selected": false,
"text": "FormatDateTime"
},
{
"answer_id": 354847,
"author": "Bruce",
"author_id": 44574,
"author_profile":... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352543",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44574/"
] |
352,544 | <p>I need a thread to wait until a file is exist or created.
I have the following code so far:</p>
<pre><code>while(!receivedDataFile.isFileExists("receiveddata.txt"))
{
try {
Thead.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
return null;
}
}
</code></pre>
... | [
{
"answer_id": 352603,
"author": "Nick Holt",
"author_id": 41423,
"author_profile": "https://Stackoverflow.com/users/41423",
"pm_score": 2,
"selected": false,
"text": "interrupt"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
352,552 | <p>My table has a large number of columns. I have a command to copy some data - think of it as cloning a product - but as the columns may change in the future, I would like to only select everything from the table and only change the value of one column without having to refer to the rest.</p>
<p>Eg instead of:</p>
<... | [
{
"answer_id": 352558,
"author": "berlindev",
"author_id": 44276,
"author_profile": "https://Stackoverflow.com/users/44276",
"pm_score": 1,
"selected": false,
"text": "\nINSERT INTO MYTABLE\n(id, col1, col2)\nSELECT new_id,col1, col2\nFROM TABLE2\nWHERE ...;\n"
},
{
"answer_id": ... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352552",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23447/"
] |
352,569 | <p>I have four tables containing exactly the same columns, and want to create a view over all four so I can query them together.</p>
<p>Is this possible?</p>
<p>(for tedious reasons I cannot/am not permitted to combine them, which would make this irrelevant!)</p>
| [
{
"answer_id": 352574,
"author": "terjetyl",
"author_id": 29519,
"author_profile": "https://Stackoverflow.com/users/29519",
"pm_score": 2,
"selected": false,
"text": "select * from table1\nunion \nselect * from table2\nunion\nselect * from table3\n"
},
{
"answer_id": 352577,
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23447/"
] |
352,586 | <p>I have an existing database of a film rental system. Each film has a has a rating attribute. In SQL they used a constraint to limit the allowed values of this attribute.</p>
<pre><code>CONSTRAINT film_rating_check CHECK
((((((((rating)::text = ''::text) OR
((rating)::text = 'G'::text)) OR
... | [
{
"answer_id": 352680,
"author": "Andreas Petersson",
"author_id": 16542,
"author_profile": "https://Stackoverflow.com/users/16542",
"pm_score": 2,
"selected": false,
"text": "public enum Rating {\n\n UNRATED,\n G, \n PG,\n PG_13 ,\n R ,\n NC_17 ;\n\n public String g... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44002/"
] |
352,592 | <p>I use <a href="http://msdn.microsoft.com/en-us/library/system.web.services.webmethodattribute.aspx" rel="nofollow noreferrer">System.Web.Services.WebMethodAttribute</a> to make a public static method of an ASP.NET page callable from a client-side script:</p>
<p><strong><em>test.aspx.cs</em></strong></p>
<pre><code... | [
{
"answer_id": 352680,
"author": "Andreas Petersson",
"author_id": 16542,
"author_profile": "https://Stackoverflow.com/users/16542",
"pm_score": 2,
"selected": false,
"text": "public enum Rating {\n\n UNRATED,\n G, \n PG,\n PG_13 ,\n R ,\n NC_17 ;\n\n public String g... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11256/"
] |
352,599 | <p>i remember there being a way of marking a section of code in eclipse (special comment or annotation?) which made the autoformatter ignore that section. Or I may have drempt this...</p>
<p>Used mainly when I have strings which wrap onto several lines and i don't want the autoformatter to rearrange this.</p>
| [
{
"answer_id": 352609,
"author": "Joachim Sauer",
"author_id": 40342,
"author_profile": "https://Stackoverflow.com/users/40342",
"pm_score": 2,
"selected": false,
"text": "/**\n * foo <i>\n * bar </i>\n * \n * <pre>\n * foo\n * bar\n * </pre>\n */\n"
},
{
"answer_id": 3345289,
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44579/"
] |
352,600 | <p>Without using any third party program to do this (i.e. without VMware ThinApp, U3 or MojoPac etc.) How to move MSVC++ 6.0 from from its install on C: over to a USB drive? So that it can be used on different PCs with no admin rights and without installing anything on the host PC? Even if it's only usable as a console... | [
{
"answer_id": 396313,
"author": "Rob Kam",
"author_id": 25093,
"author_profile": "https://Stackoverflow.com/users/25093",
"pm_score": 3,
"selected": true,
"text": "c:\\program files\\"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352600",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25093/"
] |
352,605 | <p>I'm trying to debug a rather complicated formula evaluator written in T-SQL UDFs (don't ask) that <strong>recursively</strong> (but indirectly through an intermediate function) calls itself, blah, blah.</p>
<p>And, of course, we have a bug.</p>
<p>Now, using PRINT statements (that can then be read from ADO.NET by ... | [
{
"answer_id": 553683,
"author": "Robin Day",
"author_id": 40655,
"author_profile": "https://Stackoverflow.com/users/40655",
"pm_score": 0,
"selected": false,
"text": "CREATE FUNCTION mySum\n( \n @param1 int,\n @param2 int\n)\nRETURNS INT AS\nBEGIN\n DECLARE @mySum int\n\n ... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2260/"
] |
352,612 | <p>I have a Maven pom that uses <code><packaging>war</packaging></code>. But actually, I don't want build the war-file, I just want all the dependent jars collected and a full deployment directory created.</p>
<p>So I'm running the <code>war:exploded</code> goal to generate the deploy directory:</p>
<pre... | [
{
"answer_id": 1449740,
"author": "Rich Seller",
"author_id": 123582,
"author_profile": "https://Stackoverflow.com/users/123582",
"pm_score": 3,
"selected": false,
"text": "<build>\n <plugins>\n <plugin>\n <artifactId>maven-resources-plugin</artifactId>\n <executions>\n ... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41861/"
] |
352,618 | <p>From what I have read best practice is to have classes based on an interface and loosely couple the objects, in order to help code re-use and unit test.</p>
<p>Is this correct and is it a rule that should always be followed? </p>
<p>The reason I ask is I have recently worked on a system with 100’s of very differen... | [
{
"answer_id": 352734,
"author": "Gargamel",
"author_id": 28146,
"author_profile": "https://Stackoverflow.com/users/28146",
"pm_score": 1,
"selected": false,
"text": "ICustomer"
},
{
"answer_id": 9580084,
"author": "Tom W",
"author_id": 313414,
"author_profile": "http... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33/"
] |
352,623 | <p>I have to interface with a slightly archaic system that doesn't use webservices. In order to send data to this system, I need to post an XML document into a <i>form</i> on the other system's website. This XML document can get very large so I would like to compress it.
The other system sits on IIS and I use C# my en... | [
{
"answer_id": 352666,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 1,
"selected": true,
"text": "gzip"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11534/"
] |
352,632 | <p>I'm making a WPF application that is comprised of Screens (Presenter + View). I want to be able to declare these screens in a config file or SQL database. I have been trying to come up with a good solution I've given up and am asking how some of you design this sort of thing? I've been working at this for over a wee... | [
{
"answer_id": 352666,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 1,
"selected": true,
"text": "gzip"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36383/"
] |
352,633 | <p>I need to write a script to set ip address/mask/broadcast as an alias on eth0:0 plus set the default gateway.</p>
<p>This solution works:</p>
<pre><code>ifconfig eth0:0 <ip> netmask <mask> up
ip route replace default via <ip>
</code></pre>
<p>but sometimes the second call gets an error "network ... | [
{
"answer_id": 354798,
"author": "PiedPiper",
"author_id": 19315,
"author_profile": "https://Stackoverflow.com/users/19315",
"pm_score": 1,
"selected": false,
"text": "ping -c1 -w"
},
{
"answer_id": 355551,
"author": "Anders Westrup",
"author_id": 36845,
"author_profi... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23420/"
] |
352,638 | <p>What do you think is the best way for obtaining the results of the work of a thread? Imagine a Thread which does some calculations, how do you warn the main program the calculations are done?</p>
<p>You could poll every X milliseconds for some public variable called "job finished" or something by the way, ... | [
{
"answer_id": 352655,
"author": "Joachim Sauer",
"author_id": 40342,
"author_profile": "https://Stackoverflow.com/users/40342",
"pm_score": 6,
"selected": true,
"text": "Future"
},
{
"answer_id": 352662,
"author": "AlfaZulu",
"author_id": 44060,
"author_profile": "ht... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38238/"
] |
352,654 | <p>I've added a proxy to a webservice to a VS2008/.NET 3.5 solution. When constructing the client .NET throws this error:</p>
<blockquote>
<p>Could not find default endpoint element that references contract 'IMySOAPWebService' in the ServiceModel client configuration section. This might be because no configuaration ... | [
{
"answer_id": 1574335,
"author": "Jeff Moeller",
"author_id": 190820,
"author_profile": "https://Stackoverflow.com/users/190820",
"pm_score": 4,
"selected": false,
"text": "MyServiceClient myService = new MyServiceClient();\n"
},
{
"answer_id": 3016995,
"author": "Andomar",
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6399/"
] |
352,670 | <p>Recently I needed to do weighted random selection of elements from a list, both with and without replacement. While there are well known and good algorithms for unweighted selection, and some for weighted selection without replacement (such as modifications of the resevoir algorithm), I couldn't find any good algori... | [
{
"answer_id": 353510,
"author": "Nick Johnson",
"author_id": 12030,
"author_profile": "https://Stackoverflow.com/users/12030",
"pm_score": 3,
"selected": false,
"text": "def WeightedSelectionWithoutReplacement(l, n):\n \"\"\"Selects without replacement n random elements from a list of ... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12030/"
] |
352,673 | <p>I know I can update a single record like this - but then how to I get access to the id of the record that was updated? (I'm using MSSQL so I can't use Oracles RowId)</p>
<pre><code>update myTable
set myCol = 'foo'
where itemId in (select top 1 itemId from myTable )
</code></pre>
<p>If I was peforming an Insert I ... | [
{
"answer_id": 352737,
"author": "Rich Andrews",
"author_id": 37381,
"author_profile": "https://Stackoverflow.com/users/37381",
"pm_score": 4,
"selected": true,
"text": "SET ANSI_NULLS ON\nGO\nSET QUOTED_IDENTIFIER ON\nGO\n\nDROP TABLE [dbo].[TEST_TABLE]\nGO\n\nCREATE TABLE [dbo].[TEST_T... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352673",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44538/"
] |
352,674 | <p>i wonder if there is a way to generate valid GUIDs/UUIDs where the first (or any part) part is a user-selected prefix.</p>
<p>I.e., the GUID has the format AAAAAAAA-BBBB-CCCC-DDDD-DDDDDDDDDDDD, and I want to set any part to a pre-defined value (ideally the AAA's). The goal is to have GUIDs still globally unique, bu... | [
{
"answer_id": 352802,
"author": "Oliver Friedrich",
"author_id": 44532,
"author_profile": "https://Stackoverflow.com/users/44532",
"pm_score": 1,
"selected": false,
"text": "\nGuid g = Guid.NewGuid();\nstring gs = g.ToString();\nGuid f = new Guid(string.Format(\"{0}-{1}\", \"AAAAAAAA\",... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91/"
] |
352,676 | <p>I know how to connect to web server using an iPhone but now I have to connect the iPhone to a web service. I don't know how to do it and there is no demo or class available online.</p>
<p>Does anyone have any ideas?</p>
| [
{
"answer_id": 352750,
"author": "Geraud.ch",
"author_id": 43954,
"author_profile": "https://Stackoverflow.com/users/43954",
"pm_score": 4,
"selected": false,
"text": "NSURL *URL=[[NSURL alloc] initWithString:stringForURL];\nNSString *results = [[NSString alloc] initWithContentsOfURL :UR... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
352,693 | <pre><code>class Trial
{ static int i;
int getI()
{ return i;}
void setI(int value)
{ i = value;}
}
public class ttest
{ public static void main(String args[])
{ Trial t1 = new Trial();
t1.setI(10);
System.out.println(t1.getI());
Trial t2 = new Tr... | [
{
"answer_id": 352702,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 2,
"selected": false,
"text": "Trial t1 = new Trial(); \n"
},
{
"answer_id": 352992,
"author": "frankern",
"author_id": 44617,... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
352,694 | <p>I'm trying to pass u url as parameter to a get method.
I defined a route that accepts a {*url} parameter so I can send "/" characters without it separating my parameter.
As soon as there is a ":" in the url (like in http: or localhost:3857 for example), the method never gets hit.</p>
<p>The Html.ActionLink method e... | [
{
"answer_id": 4866802,
"author": "tessa",
"author_id": 123246,
"author_profile": "https://Stackoverflow.com/users/123246",
"pm_score": 1,
"selected": false,
"text": "<a href=\"Movies?id=@item.ID\">@item.Title</a>\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11333/"
] |
352,695 | <p>I currently trying to find a solution, how to ensure that a test fails if an exception occurs in a thread which is spawn by the test method.</p>
<p>I DON'T want to start a discussion about more than one thread in a unit test. => "unit test".Replace("unit","integration");</p>
<p>I already read a lot of threads in s... | [
{
"answer_id": 3319885,
"author": "Tim Lloyd",
"author_id": 189516,
"author_profile": "https://Stackoverflow.com/users/189516",
"pm_score": 2,
"selected": false,
"text": "<legacyUnhandledExceptionPolicy enabled=\"1\"/>\n"
},
{
"answer_id": 32106502,
"author": "Bruno Guardia",... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24756/"
] |
352,699 | <p>I want that list, because if something horrible happens, and I'll have to reinstall Visual Studio - I'll need this list, so that I can recreate the same development environment. This also makes it hard to search for updates - I can not see the versions of currently installed plug-ins.</p>
<p>So, is there a single p... | [
{
"answer_id": 3319885,
"author": "Tim Lloyd",
"author_id": 189516,
"author_profile": "https://Stackoverflow.com/users/189516",
"pm_score": 2,
"selected": false,
"text": "<legacyUnhandledExceptionPolicy enabled=\"1\"/>\n"
},
{
"answer_id": 32106502,
"author": "Bruno Guardia",... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1353085/"
] |
352,703 | <p>Is it possible to integrate <a href="http://hudson.dev.java.net/" rel="noreferrer" title="hudson: an extensible continuous integration engine">Hudson</a> with MS Test?</p>
<p>I am setting up a smaller CI server on my development machine with Hudson right now, just so that I can have some statistics (ie. <a href="ht... | [
{
"answer_id": 459816,
"author": "Shawn Miller",
"author_id": 247,
"author_profile": "https://Stackoverflow.com/users/247",
"pm_score": 0,
"selected": false,
"text": "<Exec Command=\"\"C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\Common7\\IDE\\mstest.exe\" /testcontainer:\"MyAss... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11963/"
] |
352,720 | <p>than just to call the parameter as it is?</p>
| [
{
"answer_id": 352727,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 5,
"selected": false,
"text": "this.foo = foo;"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
352,722 | <p>I've got in an ASP.NET application this process :</p>
<ul>
<li>Start a connection</li>
<li>Start a transaction</li>
<li>Insert into a table "LoadData" a lot of values with the SqlBulkCopy class with a column that contains a specific LoadId.</li>
<li>Call a stored procedure that :
<ul>
<li>read the table "LoadData"... | [
{
"answer_id": 352727,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 5,
"selected": false,
"text": "this.foo = foo;"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352722",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28544/"
] |
352,752 | <p>My application is developped in C++ using Qt and is using signals and slots.</p>
<p>Let's say I have the following classes (pseudo-C++ code) :</p>
<pre><code>class Ball
{
Color m_Color;
int m_Size;
};
class Player
{
public:
setBall(Ball* pBall)
{
if (pBall != m_pBall)
{
... | [
{
"answer_id": 370771,
"author": "user11323",
"author_id": 11323,
"author_profile": "https://Stackoverflow.com/users/11323",
"pm_score": 1,
"selected": false,
"text": "s the source of your doubts. Certainly undo() command shouldn't recreate an object nor have it"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2796/"
] |
352,758 | <p>I have an inherited QTreeWidget (called PackList) class and its parent is a KXmlGuiWindow.
How can I access to the parent's slots? </p>
<p>I've tried getParent()->mySlot() from the QTreeWidget class but I've got</p>
<pre><code>error: no matching function for call to 'PackList::mySlot()'
</code></pre>
<p>Does any... | [
{
"answer_id": 352850,
"author": "Jérôme",
"author_id": 2796,
"author_profile": "https://Stackoverflow.com/users/2796",
"pm_score": 1,
"selected": false,
"text": "parentWidget()->a_slot();\n"
},
{
"answer_id": 358277,
"author": "Michael Bishop",
"author_id": 45114,
"a... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39339/"
] |
352,777 | <p>Using JDBC (with jt400 driver / connection, naming=system) I'm running these SQL statements:</p>
<pre><code>"CREATE ALIAS QTEMP/SOURCETEMP FOR " + library + "/" + file + " (" + member + ")"
"SELECT SRCDTA FROM QTEMP/SOURCETEMP"
"DROP ALIAS QTEMP/SOURCETEMP"
</code></pre>
<p>This works. However, when the member St... | [
{
"answer_id": 352854,
"author": "nearly_lunchtime",
"author_id": 23447,
"author_profile": "https://Stackoverflow.com/users/23447",
"pm_score": 2,
"selected": false,
"text": "member = \"foo.bar\"\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29574/"
] |
352,780 | <p>In what situations should one catch <code>java.lang.Error</code> on an application?</p>
| [
{
"answer_id": 352793,
"author": "tronda",
"author_id": 6896,
"author_profile": "https://Stackoverflow.com/users/6896",
"pm_score": 6,
"selected": false,
"text": "OutOfMemoryError"
},
{
"answer_id": 352842,
"author": "Yoni Roit",
"author_id": 34161,
"author_profile": ... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35323/"
] |
352,790 | <pre><code><xsl:template match="foo">
</code></pre>
<p>matches the foo element in the null namespace.</p>
<pre><code><xsl:template match="*">
</code></pre>
<p>matches any element in <em>any</em> namespace.</p>
<p>I tried:</p>
<pre><code>xmlns:null=""
...
<xsl:template match="null:*">
</code></pre... | [
{
"answer_id": 352826,
"author": "Jeff Yates",
"author_id": 23234,
"author_profile": "https://Stackoverflow.com/users/23234",
"pm_score": 4,
"selected": true,
"text": "<xsl:template match='*[namespace-uri() = \"\"]'>\n"
},
{
"answer_id": 353044,
"author": "Dimitre Novatchev",... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31662/"
] |
352,806 | <p>When I asked for tools to profile Rails apps, someone <a href="https://stackoverflow.com/questions/350470/what-tools-do-you-recommend-to-profile-rails-apps#351842">pointed at DTrace</a>. Since I work on MacOSX stations and deploy on OpenSolaris, it is a valid way to go. But I have little knowledge of DTrace.</p>
<p... | [
{
"answer_id": 352840,
"author": "mat",
"author_id": 42083,
"author_profile": "https://Stackoverflow.com/users/42083",
"pm_score": 2,
"selected": false,
"text": "truss"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20875/"
] |
352,814 | <p>Sql Server 2008 supports spatial data with new geometry and geography UDT's. They both support AsGml() method to serialize data in gml format. However they serialize data into GML3 format. Is there any way to tell it to serialize data into GML2 format?</p>
| [
{
"answer_id": 496310,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "CustomWriter w = new CustomWriter();\nSqlGeometry.Parse(\"POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))\").Populate(w);\nSystem.Cons... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11525/"
] |
352,821 | <p>I'm stuck in a battle between ReSharper and StyleCop, and I'd like to let ReSharper win, but I want to hear the arguments in favour of StyleCop before I do that.</p>
<p>When I'm writing long argument lists ReSharper sensibly chops the parameter list and restarts it on the next line. I find that much more readable.<... | [
{
"answer_id": 352858,
"author": "J Cooper",
"author_id": 38803,
"author_profile": "https://Stackoverflow.com/users/38803",
"pm_score": 0,
"selected": false,
"text": "void Foo( int blah\n , string blork\n , ...\n"
},
{
"answer_id": 1324941,
"author": "Jason E... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6408/"
] |
352,832 | <p>May be my title is not clear. I am looking for some kind of version control on database tables, like subversion does on files, like wiki does.</p>
<p>I want to trace the changes log.
I want to extract and run the diff in reverse. (undo like a "svn merge -r 101:100").
I may need a indexed search on the history.</p>
... | [
{
"answer_id": 353170,
"author": "JWD",
"author_id": 39365,
"author_profile": "https://Stackoverflow.com/users/39365",
"pm_score": 2,
"selected": false,
"text": "[ID] [Revision Date] [Revision Status] [Modified By] [Balance]\n1 1-1-2008 Expired User1 $100\n1... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40214/"
] |
352,837 | <p>This is a question regarding Unix shell scripting (any shell), but any other "standard" scripting language solution would also be appreciated:</p>
<p>I have a directory full of files where the filenames are hash values like this:</p>
<pre><code>fd73d0cf8ee68073dce270cf7e770b97
fec8047a9186fdcc98fdbfc0ea607... | [
{
"answer_id": 352846,
"author": "csl",
"author_id": 21028,
"author_profile": "https://Stackoverflow.com/users/21028",
"pm_score": 4,
"selected": false,
"text": "file -i filename\n"
},
{
"answer_id": 352919,
"author": "Phil H",
"author_id": 36537,
"author_profile": "h... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5949/"
] |
352,839 | <p>I need to create a DHTML menu with the specified features, but I can't figure out how to do it. Here's what I need:</p>
<p>All items are layed out horizontally. If they would be wider than the screen, two little arrows appear on the right side of the menu that allow to scroll it. Something like this:</p>
<pre><cod... | [
{
"answer_id": 352859,
"author": "Chris Van Opstal",
"author_id": 7264,
"author_profile": "https://Stackoverflow.com/users/7264",
"pm_score": 2,
"selected": false,
"text": "#menu {\n display: table; \n} \n#menu a {\n display:table-cell; \n vertical-align:middle;\n}\n"
},
{
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352839",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41360/"
] |
352,899 | <p>Is Structured Exception Handling bad? What is the right way to handle exceptions?</p>
<p><strong>EDIT: Exception Handling in .NET using C#.</strong></p>
<p>I usually have a set of specific exception classes (DivideByZeroException, ArrayTypeMismatchException) and don't have a generic "catch (Exception ex)".</p>
<p... | [
{
"answer_id": 352937,
"author": "Paul Croarkin",
"author_id": 18995,
"author_profile": "https://Stackoverflow.com/users/18995",
"pm_score": 3,
"selected": false,
"text": "try {\n ...\n}\ncatch (Exception e) {\n //TODO: handle this later\n}\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1443363/"
] |
352,906 | <h2>Scenario</h2>
<p>You've got several bug reports all showing the same problem. They're all cryptic with similar tales of how the problem occurred. You follow the steps but it doesn't reliably reproduce the problem. After some investigation and web searching, you suspect what might be going on and you are pretty sur... | [
{
"answer_id": 353568,
"author": "dmckee --- ex-moderator kitten",
"author_id": 2509,
"author_profile": "https://Stackoverflow.com/users/2509",
"pm_score": 2,
"selected": false,
"text": "const int NITER = 1000;\nint thread_unsafe_count = 0;\nint thread_unsafe_tracker = 0;\n\nvoid* thread... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352906",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23234/"
] |
352,925 | <p>I have a little project with some jsp deployed on an Tomcat 5.5. Recently the Servlets which are also deployed with the jsp files (one war archive) stopped working. I also checked out a previous version from my svn which should work. What I noticed that the <code>displayname</code> (I use a german version of Tomcat ... | [
{
"answer_id": 352960,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 5,
"selected": true,
"text": "<display-name>"
},
{
"answer_id": 38151569,
"author": "MonoThreaded",
"author_id": 294702,
"author_profil... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38721/"
] |
352,949 | <p>I've got two tables that need to be joined via LINQ, but they live in different databases. Right now I'm returning the results of one table, then looping through and retrieving the results of the other, which as you can guess isn't terribly efficient. Is there any way to get them into a single LINQ statement? Is the... | [
{
"answer_id": 353106,
"author": "Ryan Lundy",
"author_id": 5486,
"author_profile": "https://Stackoverflow.com/users/5486",
"pm_score": 6,
"selected": true,
"text": "<Table Name=\"dbo.Customers\" Member=\"Customers\">\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352949",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23935/"
] |
352,952 | <p>I have a web service which returns tab delimited data (see sample below).</p>
<p>I need to parse this into an array or similar so I can create a navigation view of it.</p>
<p>I've managed to perform the web request and could parse an XML file, but my knowledge of Objective-C is small.</p>
<pre><code>433 Eat
5... | [
{
"answer_id": 353483,
"author": "Brett",
"author_id": 37848,
"author_profile": "https://Stackoverflow.com/users/37848",
"pm_score": 3,
"selected": false,
"text": "with - (NSArray *)componentsSeparatedByString:(NSString *)separator"
},
{
"answer_id": 353531,
"author": "Brett"... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/258/"
] |
352,954 | <p>Im using asynchronous threading in my application WITH httpClient. I make a call using the Future Api like so </p>
<pre><code>mStrResults = (String) rssFuture.get();
</code></pre>
<p>this call attempts to retrieve an html string returned from my Callable httpClient call() method.</p>
<p>What i want to do however... | [
{
"answer_id": 353483,
"author": "Brett",
"author_id": 37848,
"author_profile": "https://Stackoverflow.com/users/37848",
"pm_score": 3,
"selected": false,
"text": "with - (NSArray *)componentsSeparatedByString:(NSString *)separator"
},
{
"answer_id": 353531,
"author": "Brett"... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24481/"
] |
352,958 | <p>I'd like to do something like the following in C#:</p>
<pre><code> class Container {
//...
public void ForEach(Action method) {
foreach (MyClass myObj in sequence) myObj.method();
}
}
//...
containerObj.ForEach(MyClass.Method);
</code></pre>
<p>In C++ I would use... | [
{
"answer_id": 352981,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 0,
"selected": false,
"text": " public void ForEach(Action method) {\n foreach (MyClass myObj in sequence) method(myObj);\n"
},
{
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44615/"
] |
352,991 | <p>How can I do for inserting a Default Value into a column of a table in Access?
I use this instruction:</p>
<pre><code>ALTER TABLE Tabella ADD Campo Double DEFAULT 0
ALTER TABLE Tabella ADD Campo Double DEFAULT (0)
ALTER TABLE Tabella ADD Campo DEFAULT 0
ALTER TABLE Tabella ADD Campo DEFAULT (0)
ALTER TABLE Tabella ... | [
{
"answer_id": 353047,
"author": "Tiberiu Ana",
"author_id": 38567,
"author_profile": "https://Stackoverflow.com/users/38567",
"pm_score": 0,
"selected": false,
"text": "alter table Tabella alter column Campo Double DEFAULT 0\n"
},
{
"answer_id": 353130,
"author": "Philippe G... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
352,997 | <p>I would appreciate your opinion/advice on the following</p>
<p><strong>Scenario</strong> </p>
<p>HTML has PDF file nick name, back end has URL for each nick. </p>
<p>The link URL is always <code>download.php?what=%PDF_Nick%</code> to ensure download for JS disabled clients. </p>
<p>For JS enabled clients I do JQ... | [
{
"answer_id": 353027,
"author": "Eran Galperin",
"author_id": 10585,
"author_profile": "https://Stackoverflow.com/users/10585",
"pm_score": 2,
"selected": false,
"text": "$.ajax({\n type: \"GET\",\n url: \"download.php?ajax=true\",\n data: \"what=\" + what,\n dataType: \"script\",\n... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352997",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
353,013 | <p>I'm trying to abstract out all database code into a separate library and then use that library in all my code. All database connections are done using typed TableAdapters that I create by dragging and dropping in datasets in VS2005, using a connection string from the appSettings.</p>
<p>The problem that I haven't b... | [
{
"answer_id": 353027,
"author": "Eran Galperin",
"author_id": 10585,
"author_profile": "https://Stackoverflow.com/users/10585",
"pm_score": 2,
"selected": false,
"text": "$.ajax({\n type: \"GET\",\n url: \"download.php?ajax=true\",\n data: \"what=\" + what,\n dataType: \"script\",\n... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2973/"
] |
353,014 | <p>I've been doing a <code>convert(varchar,datefield,112)</code> on each date field that I'm using in 'between' queries in SQL server to ensure that I'm only accounting for dates and not missing any based on the time part of datetime fields.</p>
<p>Now, I'm hearing that the converts aren't indexable and that there are... | [
{
"answer_id": 353045,
"author": "Kieveli",
"author_id": 15852,
"author_profile": "https://Stackoverflow.com/users/15852",
"pm_score": 2,
"selected": false,
"text": "select * from appointments where appointmentdate between \n'08/01/2008' AND '08/16/2008'\n"
},
{
"answer_id": 3530... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353014",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/335036/"
] |
353,019 | <p>I have a query that runs super fast when executed in the sql editor (oracle): 1ms.</p>
<p>The same query (as stored procedure) when executed by a DataSet-TableAdapter takes 2 seconds. I'm just retrieving 20rows.</p>
<p>Since I'm using a TableAdapter, the return values are stored in a ref cursor.</p>
<p>If I was f... | [
{
"answer_id": 355364,
"author": "BQ.",
"author_id": 4632,
"author_profile": "https://Stackoverflow.com/users/4632",
"pm_score": 0,
"selected": false,
"text": "CommandType"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/353019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1812/"
] |
353,020 | <p>I would need to create a temp table for paging purposes. I would be selecting all records into a temp table and then do further processing with it.</p>
<p>I am wondering which of the following is a better approach:</p>
<p>1) Select all the columns of my Primary Table into the Temp Table and then being able to sele... | [
{
"answer_id": 353182,
"author": "Charles Bretana",
"author_id": 32632,
"author_profile": "https://Stackoverflow.com/users/32632",
"pm_score": 0,
"selected": false,
"text": "Where RowNum Between ((PageNumber-1) * PageSize) + 1 And PageNumber * PageSize\n"
},
{
"answer_id": 110259... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32372/"
] |
353,039 | <p>I'm writing some code to scale a 32 bit RGBA image in C/C++. I have written a few attempts that have been somewhat successful, but they're slow and most importantly the quality of the sized image is not acceptable. </p>
<p>I compared the same image scaled by OpenGL (i.e. my video card) and my routine and it's miles... | [
{
"answer_id": 353189,
"author": "berlindev",
"author_id": 44276,
"author_profile": "https://Stackoverflow.com/users/44276",
"pm_score": 1,
"selected": false,
"text": "\nint enlarge_or_reduce(imgdes *image1)\n{\n imgdes timage;\n int dx, dy, rcode, pct = 83; // 83% percent of origina... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4065/"
] |
353,040 | <p>I want to list (a sorted list) all my entries from an attribute called streetNames in my table/relation Customers.
eg. I want to achieve the following order: </p>
<p>Street_1A<br>
Street_1B<br>
Street_2A<br>
Street_2B<br>
Street_12A<br>
Street_12B </p>
<p>A simple order by streetNames will do a lexical comparisio... | [
{
"answer_id": 353124,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": -1,
"selected": true,
"text": "DECLARE @test TABLE\n(\n street VARCHAR(100)\n)\n\nINSERT INTO @test (street) VALUES('Street')\nINSERT INTO @test (street... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
353,078 | <p>I'm running into a problem when modifying a WCF service.</p>
<p>The original service method looks like this:</p>
<pre><code>[OperationContract(IsOneWay = true, IsInitiating = true, IsTerminating = false)]
void Login(string userName, string password);
</code></pre>
<p>This method works.</p>
<p>The problem is that... | [
{
"answer_id": 353124,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": -1,
"selected": true,
"text": "DECLARE @test TABLE\n(\n street VARCHAR(100)\n)\n\nINSERT INTO @test (street) VALUES('Street')\nINSERT INTO @test (street... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/373/"
] |
353,093 | <p>I know that I can use $('#myId').load('aPage.html'); to load a page into an element, how do I do use that to alter an image?</p>
| [
{
"answer_id": 353098,
"author": "matdumsa",
"author_id": 1775,
"author_profile": "https://Stackoverflow.com/users/1775",
"pm_score": 4,
"selected": true,
"text": "$(\"selectorforyourimage\").attr(\"src\",\"newimagelocation\");\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/353093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1384652/"
] |
353,100 | <p>The below <a href="http://docs.jquery.com/Effects/fadeIn" rel="nofollow noreferrer">fadeIn</a>, <a href="http://docs.jquery.com/Effects/fadeOut" rel="nofollow noreferrer">fadeOut</a> effect works fine in Firefox 3.0 but it doesn't work in IE 7 ... Whay is that and what's the trick? The idea is of course to get a "bl... | [
{
"answer_id": 2170546,
"author": "Iggi",
"author_id": 262773,
"author_profile": "https://Stackoverflow.com/users/262773",
"pm_score": 1,
"selected": false,
"text": "down and dirty"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/353100",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/298/"
] |
353,110 | <p>Is it possible to exclude a complete namespace from all FxCop analysis while still analyzing the rest of the assembly using the <code>SuppressMessageAttribute</code>?</p>
<p>In my current case, I have a bunch of classes generated by LINQ to SQL which cause a lot of FxCop issues, and obviously, I will not modify all... | [
{
"answer_id": 353145,
"author": "Chane",
"author_id": 43808,
"author_profile": "https://Stackoverflow.com/users/43808",
"pm_score": 1,
"selected": false,
"text": "[GeneratedCodeAttribute(\"Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator\", \"9.0.0.0\")]\n"
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11963/"
] |
353,126 | <p>This is probably not possible, but I have this class:</p>
<pre><code>public class Metadata<DataType> where DataType : struct
{
private DataType mDataType;
}
</code></pre>
<p>There's more to it, but let's keep it simple. The generic type (DataType) is limited to value types by the where statement. What ... | [
{
"answer_id": 353134,
"author": "leppie",
"author_id": 15541,
"author_profile": "https://Stackoverflow.com/users/15541",
"pm_score": 9,
"selected": true,
"text": "public abstract class Metadata\n{\n}\n\n// extend abstract Metadata class\npublic class Metadata<DataType> : Metadata where ... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353126",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44626/"
] |
353,131 | <p>I'm trying to store the names of some variables inside strings. For example:</p>
<pre><code>Dim Foo1 as Integer
Dim Foo1Name as String
' -- Do something to set Foo1Name to the name of the other variable --
MessageBox.Show(Foo1Name & " is the variable you are looking for.")
' Outputs:
' Foo1 is the variable yo... | [
{
"answer_id": 353192,
"author": "Paul Morel",
"author_id": 1311247,
"author_profile": "https://Stackoverflow.com/users/1311247",
"pm_score": 1,
"selected": false,
"text": "myArray(\"foo1Name\") = \"foo1\"\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/353131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38258/"
] |
353,132 | <p>I am modifying a SQL table through C# code and I need to drop a NOT NULL constraint if it exists. How do I check to see if it exists first?</p>
| [
{
"answer_id": 353160,
"author": "Dave Markle",
"author_id": 24995,
"author_profile": "https://Stackoverflow.com/users/24995",
"pm_score": 5,
"selected": true,
"text": "select is_nullable \nfrom sys.columns\nwhere object_id = OBJECT_ID('tablename') \nand name = 'columnname';\n"
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3047/"
] |
353,148 | <p>I am on a shared host and can not change the symbolic link to Python2.4, it defaults to 2.3. I tried creating a sym link in the director I would be working on to 2.4, but it seems the the 'global' python interpreter under /usr/bin/python take presedence unless I run it as ./python. What alternative ways are there to... | [
{
"answer_id": 353159,
"author": "Bombe",
"author_id": 43582,
"author_profile": "https://Stackoverflow.com/users/43582",
"pm_score": 3,
"selected": true,
"text": "ln -s /usr/bin/python2.4 $HOME/bin/python\nexport PATH=\"$HOME/bin:$PATH\"\n"
},
{
"answer_id": 353200,
"author":... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/370899/"
] |
353,152 | <p>I'm tackling project euler's <a href="http://projecteuler.net/index.php?section=problems&id=220" rel="nofollow noreferrer">problem 220</a> (looked easy, in comparison to some of the
others - thought I'd try a higher numbered one for a change!)</p>
<p>So far I have:</p>
<pre><code>D = "Fa"
def iterate(D,num):... | [
{
"answer_id": 353242,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 1,
"selected": false,
"text": "def repl220( string ):\n for c in string:\n if c == 'a': yield \"aRbFR\"\n elif c == 'b': yield \"LFaLb\"\... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353152",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16511/"
] |
353,161 | <p>I would like to be able to query whether or not a service is running from a windows batch file. I know I can use: </p>
<blockquote>
<p>sc query "ServiceName" </p>
</blockquote>
<p>but, this dumps out some text. What I really want is for it to set the <code>errorlevel</code> environment variable so that I can t... | [
{
"answer_id": 353196,
"author": "Igal Serban",
"author_id": 25737,
"author_profile": "https://Stackoverflow.com/users/25737",
"pm_score": 8,
"selected": true,
"text": "sc query \"ServiceName\" | find \"RUNNING\"\n"
},
{
"answer_id": 353201,
"author": "Galwegian",
"author... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11898/"
] |
353,165 | <p>I have a virtual path (example: "~/Images/Banner.jpg") and I want to make that an absolute web path (example: "/ApplicationRoot/Images/Banner.jpg"). There is a method that will do this, I believe in a class called something like HTTPUtility or similar name. Though ever time I need this method, it takes me hours ... | [
{
"answer_id": 353184,
"author": "Boris Callens",
"author_id": 11333,
"author_profile": "https://Stackoverflow.com/users/11333",
"pm_score": 7,
"selected": true,
"text": "System.Web.VirtualPathUtility.ToAbsolute(\"yourRelativePath\");\n"
},
{
"answer_id": 353185,
"author": "l... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18893/"
] |
353,180 | <p>I have been using PRETTY_FUNCTION to output the current function name, however I have reimplemented some functions and would like to find out which functions are calling them.</p>
<p>In C++ how can I get the function name of the calling routine?</p>
| [
{
"answer_id": 378165,
"author": "Aaron",
"author_id": 28950,
"author_profile": "https://Stackoverflow.com/users/28950",
"pm_score": 6,
"selected": false,
"text": "// orignal function name was 'FunctionName'\nvoid FunctionNameReal(...)\n{\n // Do Something\n}\n\n#undef FunctionName\n#de... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24459/"
] |
353,198 | <p>We have a large collection of command-line utilities that we write ourselves and use frequently. At the moment, testing them is very cumbersome and consequently, we don't do as much testing as we aught to.</p>
<p>I am wondering if anyone can suggest good techniques or tools for doing a good job of this kind of thing... | [
{
"answer_id": 27971295,
"author": "Venkat",
"author_id": 4458990,
"author_profile": "https://Stackoverflow.com/users/4458990",
"pm_score": 0,
"selected": false,
"text": " # Various ways to say \"ok\"\n ok($got eq $expected, $test_name);\n is ($got, $expected, $test_name);\n isnt($go... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6101/"
] |
353,211 | <p>In the recent update of java (6.10) <a href="http://java.sun.com/javase/6/webnotes/6u10.html" rel="nofollow noreferrer">http://java.sun.com/javase/6/webnotes/6u10.html</a><a href="http://java.sun.com/javase/6/webnotes/6u10.html" rel="nofollow noreferrer">link text</a> the way that unsigned applets was changed. A war... | [
{
"answer_id": 27971295,
"author": "Venkat",
"author_id": 4458990,
"author_profile": "https://Stackoverflow.com/users/4458990",
"pm_score": 0,
"selected": false,
"text": " # Various ways to say \"ok\"\n ok($got eq $expected, $test_name);\n is ($got, $expected, $test_name);\n isnt($go... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
353,224 | <p>I'm brand new to Erlang. How do you do modulo (get the remainder of a division)? It's % in most C-like languages, but that designates a comment in Erlang.</p>
<p>Several people answered with rem, which in most cases is fine. But I'm revisiting this because now I need to use negative numbers and rem gives you the re... | [
{
"answer_id": 353241,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 2,
"selected": false,
"text": "rem"
},
{
"answer_id": 353244,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://St... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17693/"
] |
353,233 | <p>I have the following code in a SQL Server 2005 trigger: </p>
<pre>
CREATE TRIGGER [myTrigger] ON [myTable]
FOR UPDATE,DELETE
AS
BEGIN
DECLARE @OperationType VARCHAR(6)
IF EXISTS(SELECT 1 FROM INSERTED)
BEGIN
SET @OperationType='Update'
END
ELSE
BEGIN
SET @OperationType='Delete'
END
</pre>
<p>My question: ... | [
{
"answer_id": 353260,
"author": "Gordon Bell",
"author_id": 16473,
"author_profile": "https://Stackoverflow.com/users/16473",
"pm_score": 3,
"selected": false,
"text": "CREATE TRIGGER [myUpdateTrigger] ON [myTable]\nFOR UPDATE\nAS\nBEGIN\n\nEND\n\nCREATE TRIGGER [myDeleteTrigger] ON [my... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39735/"
] |
353,246 | <p>I want my emacs buffer to have a different name than the file name. Rather than setting this manually every time, I want to have this happen automatically based on the file contents, something like:</p>
<p>// Local Variables:<br>
// buffer-name: MyName<br>
// End:</p>
<p>But this doesn't work because buffer-name ... | [
{
"answer_id": 353369,
"author": "Pierre",
"author_id": 24449,
"author_profile": "https://Stackoverflow.com/users/24449",
"pm_score": 5,
"selected": true,
"text": "// Local Variables:\n// eval: (rename-buffer \"my-buffer-name-here\")\n// end:\n"
},
{
"answer_id": 353895,
"aut... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353246",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44634/"
] |
353,252 | <p>How to implement a great search within a mysqldb - within a table
if i search with '...LIke %bla%....' not all entrys would be found - if bla within a word for example.
a search with soundex would be great to - but if i read the manual i must create an soundex-index to search for soundex-values? </p>
<p>So the ques... | [
{
"answer_id": 353369,
"author": "Pierre",
"author_id": 24449,
"author_profile": "https://Stackoverflow.com/users/24449",
"pm_score": 5,
"selected": true,
"text": "// Local Variables:\n// eval: (rename-buffer \"my-buffer-name-here\")\n// end:\n"
},
{
"answer_id": 353895,
"aut... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
353,270 | <p>I have some critical logic in a finally block (with an empty try block), because I want to guarantee that the code gets executed even if the thread is aborted. However, I'd also like to detect the ThreadAbortException. I've found that wrapping my critical try/finally block in a try/catch does not catch the ThreadAbo... | [
{
"answer_id": 602693,
"author": "Jorge Córdoba",
"author_id": 2695,
"author_profile": "https://Stackoverflow.com/users/2695",
"pm_score": 0,
"selected": false,
"text": "try {\n try { }\n catch (ThreadAbortException)\n {\n ThreadAbortExceptionBool = true;\n }\n finall... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7529/"
] |
353,288 | <p>I just started diving into ADO.NET Data Services for a project, and I quickly ran into a problem. At first I was amazed by the performance, but then I realized that the data was cached. My project relies on real-time data, and I'd love to use the ADO.NET Data Services REST query syntax (without needing to use WCF or... | [
{
"answer_id": 1525662,
"author": "Simon Steele",
"author_id": 4591,
"author_profile": "https://Stackoverflow.com/users/4591",
"pm_score": 3,
"selected": true,
"text": "this.context.MergeOption = MergeOption.OverwriteChanges;\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/353288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44636/"
] |
353,296 | <p>I have a set of objects which I iterate through, however I may decide during the iteration that one (or more) of those objects now need to be deleted. </p>
<p>My code goes as follows:</p>
<pre><code>if( ! m_Container.empty() )
{
for( typedefedcontainer::iterator it = m_Container.begin();
... | [
{
"answer_id": 353370,
"author": "Konrad",
"author_id": 18664,
"author_profile": "https://Stackoverflow.com/users/18664",
"pm_score": 0,
"selected": false,
"text": "for( typedefedcontainer::iterator it = m_Container.begin();\n it != m_Container.end(); \n )\n{\n if( ! ( So... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18664/"
] |
353,297 | <p>I am trying to create an application like the one here:</p>
<p><a href="http://www.eigenfaces.com/" rel="nofollow noreferrer">http://www.eigenfaces.com/</a></p>
<p>Basically lots of overlapping circles drawn with pygame. I cannot figure out how the blend the circles to make them translucent. That is to have overla... | [
{
"answer_id": 353719,
"author": "Zoomulator",
"author_id": 44563,
"author_profile": "https://Stackoverflow.com/users/44563",
"pm_score": 3,
"selected": false,
"text": "import pygame\nfrom pygame.locals import *\n\nTRANSPARENT = (255,0,255)\npygame.init()\nscreen = pygame.display.set_mod... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
353,309 | <p>I need a <a href="http://www.codeproject.com/KB/dotnet/regextutorial.aspx" rel="nofollow noreferrer">Regular Expressions</a> to get the text within 2 tags.</p>
<p>Lets say I want an array returned containing <strong>any text within <code><data</code>> and <code></data</code>> tags.</strong>
Or any text <stro... | [
{
"answer_id": 353319,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "$string =~ /color=rgb\\((\\d+),(\\d+),(\\d+)\\)/;\n@array = ($1,$2,$3);\n"
},
{
"answer_id": 353386,
"author": "Ig... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41021/"
] |
353,326 | <p>I have a Rake task (in lib/tasks directory) that I run with cron on my shared web hosting. The problem is that I want to compare a UTF-8 string using case statment but my source code is not UTF-8 encoded. If I save source code as UTF-8 there is error when I try to start it :(</p>
<p>What I have to do? </p>
<p>May ... | [
{
"answer_id": 354272,
"author": "John Topley",
"author_id": 1450,
"author_profile": "https://Stackoverflow.com/users/1450",
"pm_score": 0,
"selected": false,
"text": "mb_chars"
},
{
"answer_id": 355422,
"author": "Julian Popov",
"author_id": 44537,
"author_profile": ... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44537/"
] |
353,336 | <p>I'm completely at loss how the ant task ivy:publish is supposed to work.</p>
<p>I would expect that I do my normal build, which creates a bunch of jar files, then I would push those jars to the (local) repository.</p>
<p>How can I specify from where to retrieve the built jars, and how would those end up in the rep... | [
{
"answer_id": 353368,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 3,
"selected": false,
"text": "<ivy:publish resolver=\"local\" pubrevision=\"1.0\"/>\n"
},
{
"answer_id": 355206,
"author": "Jared",
"autho... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/917/"
] |
353,342 | <p>We have lots of logging calls in our app. Our logger takes a System.Type parameter so it can show which component created the call. Sometimes, when we can be bothered, we do something like:</p>
<pre><code>class Foo
{
private static readonly Type myType = typeof(Foo);
void SomeMethod()
{
Logger.Log(myT... | [
{
"answer_id": 353435,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 8,
"selected": true,
"text": "typeof(Test): 2756ms\nTestType (field): 1175ms\ntest.GetType(): 3734ms\n"
},
{
"answer_id": 353436,
"author":... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3856/"
] |
353,353 | <p>I am trying to use onkeypress on an input type="text" control to fire off some javascript if the enter button is pressed. It works on most pages, but I also have some pages with custom .NET controls.</p>
<p>The problem is that the .NET submit fires before the onkeypress. Does anybody have an insight on how to mak... | [
{
"answer_id": 353435,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 8,
"selected": true,
"text": "typeof(Test): 2756ms\nTestType (field): 1175ms\ntest.GetType(): 3734ms\n"
},
{
"answer_id": 353436,
"author":... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353353",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42574/"
] |
353,354 | <p><code>DBCC SHRINKFILE</code> always works when I run it manually on a log file, even when I get the following message:</p>
<pre><code>'Cannot shrink log file 2 (Claim_Log) because all logical log files are in use.'
</code></pre>
<p>When I run it from a job, however, it only shrinks the log about one third of the t... | [
{
"answer_id": 6591447,
"author": "MrEs",
"author_id": 211718,
"author_profile": "https://Stackoverflow.com/users/211718",
"pm_score": 3,
"selected": true,
"text": "Execute SP_ReplicationDbOption {DBName},Publish,true,1\nGO\nExecute sp_repldone @xactid = NULL, @xact_segno = NULL, @numtra... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22448/"
] |
353,379 | <p>I have a PHP application that will on occasion have to handle URLs where more than one parameter in the URL will have the same name. Is there an easy way to retrieve all the values for a given key? PHP $_GET returns only the last value. </p>
<p>To make this concrete, my application is an OpenURL resolver, and may g... | [
{
"answer_id": 353400,
"author": "Stefan Gehrig",
"author_id": 11354,
"author_profile": "https://Stackoverflow.com/users/11354",
"pm_score": 3,
"selected": false,
"text": "$_SERVER['QUERY_STRING']"
},
{
"answer_id": 353409,
"author": "Neil Aitken",
"author_id": 13803,
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9684/"
] |
353,380 | <p>I realize there's no definitely "right" answer to this question, but when people talk about lines of code, what do they mean? In C++ for example, do you count blank lines? Comments? Lines with just an open or close brace?</p>
<p>I know some people use lines of code as a productivity measure, and I'm wondering if t... | [
{
"answer_id": 353412,
"author": "StingyJack",
"author_id": 16391,
"author_profile": "https://Stackoverflow.com/users/16391",
"pm_score": 0,
"selected": false,
"text": "Dim obj as Object\n"
},
{
"answer_id": 353420,
"author": "xsl",
"author_id": 11387,
"author_profile... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44444/"
] |
353,414 | <p>I have inherited an ASP.NET 2.0 project and one of the things I have noticed is that the user has to click a <code>dropdownlist</code> twice in order to expand it - why is this?</p>
<p><strong>Sequence of Events</strong></p>
<ol>
<li>The first click with give the control focus and the second will expand it.</li>
<... | [
{
"answer_id": 355823,
"author": "DilbertDave",
"author_id": 31580,
"author_profile": "https://Stackoverflow.com/users/31580",
"pm_score": 1,
"selected": false,
"text": " function inputOnFocus(objInput)\n {\n objInput.style.backgroundColor = sHighLightBgColor;\n objIn... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31580/"
] |
353,421 | <p>I'm trying to debug an ASP.Net web project that I received. I modified a class in the <code>"Apps_LocalResources"</code> folder. </p>
<p>When I debug and the code tries to step into that class, I get </p>
<blockquote>
<p>"The source file is different from when the module was built.". </p>
</blockquote>
<p>I reb... | [
{
"answer_id": 30935730,
"author": "M463",
"author_id": 3336376,
"author_profile": "https://Stackoverflow.com/users/3336376",
"pm_score": 0,
"selected": false,
"text": "Release"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/353421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
353,424 | <p>Is it possible to generate a list of all source members within an iSeries source file using SQL?</p>
<p>Might be similar to getting table definitions from SYSTABLES and SYSCOLUMNS, but I'm unable to find anything so far.</p>
| [
{
"answer_id": 362550,
"author": "squarefox",
"author_id": 33402,
"author_profile": "https://Stackoverflow.com/users/33402",
"pm_score": 4,
"selected": true,
"text": "select table_schema , table_name from qsys2.systables where File_type = 'S'\n"
},
{
"answer_id": 22822770,
"a... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23447/"
] |
353,425 | <p>I have a Stored Procedure called spGetOrders which accepts a few parameters: @startdate and @enddate. This queries an "Orders" table. One of the columns in the table is called "ClosedDate". This column will hold NULL if an order hasn't been closed or a date value if it has. I'd like to add a @Closed parameter w... | [
{
"answer_id": 353441,
"author": "dkretz",
"author_id": 31641,
"author_profile": "https://Stackoverflow.com/users/31641",
"pm_score": 2,
"selected": false,
"text": "SELECT * \nFROM orders \nWHERE orderdate BETWEEN @startdate AND @enddate \nAND (@Closed = 1 OR CLosedDate IS NOT NULL)\n... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353425",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13954/"
] |
353,430 | <p>I'm building a custom property grid that displays the properties of items in a collection. What I want to do is show only the properties in the grid that are common amongst each item. I am assuming the best way to do this would be to find the the common base class of each type in the collection and display it's prop... | [
{
"answer_id": 353492,
"author": "matt_dev",
"author_id": 39086,
"author_profile": "https://Stackoverflow.com/users/39086",
"pm_score": 0,
"selected": false,
"text": "public int Compare(T x, T y)\n{\n PropertyInfo[] props = x.GetType().GetProperties();\n\n foreach(PropertyInfo in... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17744/"
] |
353,464 | <p>Is there a way to use verbatim String literals in managed C++? Similar to C#'s</p>
<pre><code>String Docs = @"c:\documents and settings\"
</code></pre>
| [
{
"answer_id": 15201457,
"author": "Wang",
"author_id": 1492613,
"author_profile": "https://Stackoverflow.com/users/1492613",
"pm_score": 4,
"selected": true,
"text": "cout<<R\"((\\\"ddd\\aa)\\n)\"<<endl;\ncout<<R\"delimiter((\\\"ddd\\aa)\\n)delimiter\"<<endl;\n"
},
{
"answer_id"... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2831/"
] |
353,481 | <p>I know this is particularly difficult with CSS and the current set of browsers, but nonetheless I have the requirement.</p>
<p>I need to be able to have 3 divs in a column. Each div should be able to take up a certain percentage of the vertical space (for example, 33%). The contents of each div <em>could</em> end u... | [
{
"answer_id": 353522,
"author": "JSBձոգչ",
"author_id": 8078,
"author_profile": "https://Stackoverflow.com/users/8078",
"pm_score": 1,
"selected": false,
"text": "<html>\n<head>\n<style type=\"text/css\">\n#one {height: 33%; overflow: auto;}\n#two {height: 33%; overflow: auto;}\n#three ... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353481",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5416/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.