qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
403,048 | <p>In an ASP.NET page I have a user control and I want to perform some action within it using javascript. When that action is complete I want to raise an event (again in javascript) to be picked up by the containing ASP.NET page (again in javascript).</p>
<p>The reason I want to do this is because I have more than one... | [
{
"answer_id": 403060,
"author": "Ady",
"author_id": 31395,
"author_profile": "https://Stackoverflow.com/users/31395",
"pm_score": 0,
"selected": false,
"text": ""
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/403048",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47036/"
] |
403,058 | <p>Say you have these two methods: </p>
<p>Number 1:</p>
<pre><code>void AddPerson(Person person)
{
// Validate person
if(person.Name != null && IsValidDate(person.BirthDate)
DB.AddPersonToDatabase(person);
}
</code></pre>
<p>Number 2:</p>
<pre><code>void AddPerson(string name, DateTime birthDate)
{... | [
{
"answer_id": 403070,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 4,
"selected": true,
"text": "Person"
},
{
"answer_id": 403071,
"author": "Greg Beech",
"author_id": 13552,
"author_profile": "http... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29519/"
] |
403,088 | <p>Expression trees are a nice feature, but what are its practical uses? Can they be used for some sort of code generation or metaprogramming or some such?</p>
| [
{
"answer_id": 403216,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 6,
"selected": false,
"text": "Delegate.CreateDelegate"
},
{
"answer_id": 403233,
"author": "mattruma",
"author_id": 1768,
"auth... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9476/"
] |
403,112 | <p>I have the following example class:</p>
<p>Test.h:</p>
<pre><code>@interface Test : UIButton {
NSString *value;
}
- (id)initWithValue:(NSString *)newValue;
@property(copy) NSString *value;
</code></pre>
<p>Test.m:</p>
<pre><code>@implementation Test
@synthesize value;
- (id)initWithValue:(NSString *)newValue... | [
{
"answer_id": 403169,
"author": "Stefan Tannenbaum",
"author_id": 50511,
"author_profile": "https://Stackoverflow.com/users/50511",
"pm_score": 4,
"selected": false,
"text": "NSString* string = [[NSString alloc] initWithString: @\"some text\"];\nTest* test = [[Test alloc] initWithValue:... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
403,135 | <p>Quick synopsis:</p>
<p>The guys on my team have been working on a production database (sql server 2005). We've added various things such as constraints, added triggers, etc.</p>
<p>Now we've found that someone or something has been rolling back our changes at various times. Problem is we all share a common admin l... | [
{
"answer_id": 403157,
"author": "Mitch Wheat",
"author_id": 16076,
"author_profile": "https://Stackoverflow.com/users/16076",
"pm_score": 2,
"selected": false,
"text": "sys.traces"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/403135",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/750/"
] |
403,165 | <p>For some reason, onreadystatechange call back function is not being called in asynchronous mode. I tested the post in synchronous mode and confirmed that post itself is working fine (commented out testing code I used to check post in synchronous mode). The problem occurs both in safari and firefox latest version. Ca... | [
{
"answer_id": 403231,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "xmlHttp.setRequestHeader(\"Content-type\", \"application/x-www-form-urlencoded\");\nxmlHttp.setRequestHeader('Content-length',... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50510/"
] |
403,174 | <p>Is it possible to convert a .pfx (Personal Information Exchange) file to a .cer (Security Certificate) file? Unless I'm mistaken, isn't a .cer somehow embedded inside a .pfx? I'd like some way to extract it, if possible.</p>
| [
{
"answer_id": 405545,
"author": "Berk D. Demir",
"author_id": 49709,
"author_profile": "https://Stackoverflow.com/users/49709",
"pm_score": 8,
"selected": false,
"text": "openssl pkcs12 -in input.pfx -out mycerts.crt -nokeys -clcerts\n"
},
{
"answer_id": 542230,
"author": "C... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47645/"
] |
403,202 | <p>I need to show a screen or something, saying 'Loading' or whatever while long process are working.</p>
<p>I am creating a application with the Windows Media Encoder SDK and it takes awhile to initialize the encoder. I would like for a screen to pop up saying 'Loading' while it is starting the encoder, and then for... | [
{
"answer_id": 403281,
"author": "Tom Anderson",
"author_id": 13502,
"author_profile": "https://Stackoverflow.com/users/13502",
"pm_score": 0,
"selected": false,
"text": "Application.DoEvents()"
},
{
"answer_id": 403292,
"author": "OwenP",
"author_id": 2547,
"author_p... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403202",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48654/"
] |
403,215 | <p>I have code that looks like:</p>
<pre><code> //System.Data.IDataRecord dr
try
{
Consolidated = Utility.NullConvert.ToBool(dr[Constants.Data.Columns.cConsolidated], false);
}
catch (IndexOutOfRangeException) { } //swallow
</code></pre>
<p>I don't know if the consolidated column will be present in th... | [
{
"answer_id": 403251,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 2,
"selected": false,
"text": "GetOrdinal()"
},
{
"answer_id": 834365,
"author": "Kevin Dark",
"author_id": 26151,
"author_profi... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8435/"
] |
403,218 | <hr>
<h2>The Question</h2>
<p>My question is: <strong>Does C# nativly support late-binding IDispatch?</strong></p>
<hr>
<p><em>Pretend</em> i'm trying to automate Office, while being compatible with whatever version the customer has installed. </p>
<p>In the .NET world if you developed with Office 2000 installed, ... | [
{
"answer_id": 403226,
"author": "configurator",
"author_id": 9536,
"author_profile": "https://Stackoverflow.com/users/9536",
"pm_score": 3,
"selected": false,
"text": "dynamic"
},
{
"answer_id": 489272,
"author": "Ian Boyd",
"author_id": 12597,
"author_profile": "htt... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403218",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
403,239 | <p>I want to move a file with Ruby. How do I do that?</p>
| [
{
"answer_id": 403246,
"author": "Željko Filipin",
"author_id": 17469,
"author_profile": "https://Stackoverflow.com/users/17469",
"pm_score": 4,
"selected": false,
"text": "require 'fileutils'\nFileUtils.move 'stuff.rb', '/notexist/lib/ruby'\n"
},
{
"answer_id": 403257,
"auth... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17469/"
] |
403,256 | <p>I'm trying to access an XML file within a jar file, from a separate jar that's running as a desktop application. I can get the URL to the file I need, but when I pass that to a FileReader (as a String) I get a FileNotFoundException saying "The file name, directory name, or volume label syntax is incorrect."</p>
<p... | [
{
"answer_id": 403271,
"author": "duffymo",
"author_id": 37213,
"author_profile": "https://Stackoverflow.com/users/37213",
"pm_score": 3,
"selected": false,
"text": "getResourceAsStream()"
},
{
"answer_id": 403276,
"author": "iny",
"author_id": 27067,
"author_profile"... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1288/"
] |
403,279 | <p>I am not an experimented user of SCM tools, even though I am convinced of their usefulness, of course.
I used some obscure commercial tool in a former job, Perforce in the current one, and played a bit with TortoiseSVN for my little personal projects, but I disliked having lot of .svn folders all over the place, mak... | [
{
"answer_id": 407938,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "hg clone toto toto-bug-434\n"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/403279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15459/"
] |
403,291 | <p>I have a table, with 2 important columns DocEntry, WebId</p>
<p>Sample data is like</p>
<pre><code>DocEntry WebId
1 S001
2 S002
3 S003
4 S005
</code></pre>
<p>Now as we can notice here, in column WebId, S004 is missing. How can we locate such missing numbers, with a query.</p>
<p... | [
{
"answer_id": 403319,
"author": "Rob",
"author_id": 12413,
"author_profile": "https://Stackoverflow.com/users/12413",
"pm_score": 0,
"selected": false,
"text": "SELECT pe.WebID from PossibleEntries pe \nWHERE pe.WebID Not In (Select WebID from SampleData)\n"
},
{
"answer_id": 40... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49372/"
] |
403,303 | <p>I have these page <a href="http://www.elseptimoarte.net/" rel="nofollow noreferrer">http://www.elseptimoarte.net/</a>. The page have a search field, If I put for instance "batman" it give me some searchs results with a url of every result:
<a href="http://www.elseptimoarte.net/busquedas.html?cx=003284578463992023034... | [
{
"answer_id": 403391,
"author": "Parker",
"author_id": 42562,
"author_profile": "https://Stackoverflow.com/users/42562",
"pm_score": 1,
"selected": false,
"text": "$ wget -U 'Mozilla/5.0' -O - 'http://www.google.com/search?q=batman+site%3Awww.elseptimoarte.net' | sed 's/</\\\n</g' | sed... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
403,333 | <p>I was wondering what the general consensus on error messages was. How detailed should they be?</p>
<p>I've worked on projects where there was a different error message for entering a number that was too big, too small, had a decimal, was a string, etc. That was quite nice for the user as they knew exactly where thi... | [
{
"answer_id": 403357,
"author": "luiscubal",
"author_id": 32775,
"author_profile": "https://Stackoverflow.com/users/32775",
"pm_score": 2,
"selected": false,
"text": "COMPILE FAILED REASON 3"
},
{
"answer_id": 403371,
"author": "iny",
"author_id": 27067,
"author_prof... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4218/"
] |
403,336 | <p>I have: "image" 1:Many "imageToTag" Many:1 "tag"</p>
<p>I want to issue a query that will return all images that have <em>at least</em> tags [a, b, c]. It's not clear to me how one can model this in JPQL. I could build the query string dynamically but that's bad for performance and security reasons. Any ideas?</p>
| [
{
"answer_id": 504243,
"author": "Noah",
"author_id": 12113,
"author_profile": "https://Stackoverflow.com/users/12113",
"pm_score": 3,
"selected": true,
"text": "SELECT * FROM IMAGES \n INNER JOIN IMAGETAGS A\n ON IMAGE.ID = A.IMAGEID AND A.TAGID = 'A'\n INNER JOIN IMAGETAGS B\n ... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14731/"
] |
403,349 | <p>Why does the following code NOT give an error, nor any type of a warning about an implicit conversion?</p>
<pre><code>std::wstring str = L"hi";
if(str[0] == 'h')
cout<<"strange"<<endl;
</code></pre>
<p>The proper normal code is:</p>
<pre><code>std::wstring str = L"hi";
if(str[0] == L'h')
c... | [
{
"answer_id": 403368,
"author": "ChrisW",
"author_id": 49942,
"author_profile": "https://Stackoverflow.com/users/49942",
"pm_score": 2,
"selected": false,
"text": "if (str[0] == 104) //C++ allows various implicit type conversions\n"
},
{
"answer_id": 406871,
"author": "MSalt... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
403,351 | <p>I want to use firebug to debug and help be quickly finish some XSLT layout issues, but I cannot get the following code to perform and display the client side XSLT in Firefox (everything is fine in IE):</p>
<pre><code>$().ready(function() {
var oXMLHTTP
var oXSLT
if ($.browser.mozilla){
oXMLHTTP = do... | [
{
"answer_id": 403368,
"author": "ChrisW",
"author_id": 49942,
"author_profile": "https://Stackoverflow.com/users/49942",
"pm_score": 2,
"selected": false,
"text": "if (str[0] == 104) //C++ allows various implicit type conversions\n"
},
{
"answer_id": 406871,
"author": "MSalt... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
403,365 | <p>I am currently stuck in the design of this solution.</p>
<p>The data layer design consists of the following:</p>
<ul>
<li>Recipe (parent high level object)
<ul>
<li>Language Detail (name, description by language) (many)
<ul>
<li>Headers (many)</li>
<li>Steps (many)
<ul>
<li>Ingredients (many)</li>
<li>Quantitie... | [
{
"answer_id": 403392,
"author": "thaBadDawg",
"author_id": 48832,
"author_profile": "https://Stackoverflow.com/users/48832",
"pm_score": 4,
"selected": true,
"text": "[DataContract]\npublic class Recipe {\n\n [DataMember]\n public string Name { get; set; }\n\n [DataMember]\n ... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13502/"
] |
403,372 | <p>How can I rotate a pdf document using php and linux?</p>
| [
{
"answer_id": 572281,
"author": "hmoyat",
"author_id": 69222,
"author_profile": "https://Stackoverflow.com/users/69222",
"pm_score": 2,
"selected": false,
"text": " $command = \"pdftk in.pdf cat 1-endS output out.pdf\";\n system($command);\n"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/403372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
403,378 | <p>new to Java. I want to use the org.apache.commons.lang.WordUtils package. Tried importing it. Tried downloading it and adding it to my build path. When I use intellisense for the word <code>WordUtils</code> Eclipse auto puts the import statement at the top of the file.</p>
<p>I get the following error when compilin... | [
{
"answer_id": 403461,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "import org.apache.commons.lang.WordUtils;\n"
},
{
"answer_id": 5192797,
"author": "Krushna",
"author_id": 6445... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
403,379 | <p>I want to get an 'event' before tomcat stops my web application.<br>
My application needs to "wrap up" stuff before it is being closed.</p>
| [
{
"answer_id": 404138,
"author": "Yonatan Maman",
"author_id": 20065,
"author_profile": "https://Stackoverflow.com/users/20065",
"pm_score": 3,
"selected": true,
"text": "public void destroy();\n"
},
{
"answer_id": 8955302,
"author": "sourcedelica",
"author_id": 158658,
... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20065/"
] |
403,394 | <p>First off, I would like to ask if any of you know of an encryption algorithm that uses a key to encrypt the data, but no key to decrypt the data. This seems highly unlikely, if not impossible to me, so sorry if it's a stupid question. </p>
<p>My final question is, say you have access to the plain text data before ... | [
{
"answer_id": 404420,
"author": "Zach Scrivena",
"author_id": 20029,
"author_profile": "https://Stackoverflow.com/users/20029",
"pm_score": 3,
"selected": false,
"text": " -------------------\nplaintext ---> | algorithm & key | ---> ciphertext\n -------------... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50530/"
] |
403,398 | <p>I'm trying to connect a C# application (using Visual C# 2008 Express Edition) to a remote MySQL server. I have the drivers for this, but when I followed the tutorials (including adding the pooling and connection reset properties), I get an error that: <em>Object reference not set to an instance of an object.</em> I'... | [
{
"answer_id": 403566,
"author": "Ricardo Villamil",
"author_id": 19314,
"author_profile": "https://Stackoverflow.com/users/19314",
"pm_score": 3,
"selected": true,
"text": "MySqlConnection connect = new MySqlConnection();\n//Do you get the null exception in this next line?\nconnect.Conn... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23249/"
] |
403,408 | <p>I'm new to unit testing using nunit (and Java development in general). When creating unit tests for private methods on classes, it looks as though the test file must be in the same package as the class being tested. What is the typical way of avoiding exporting the APIs of the unit tests? Can I make the classes/t... | [
{
"answer_id": 405856,
"author": "Limbic System",
"author_id": 1274957,
"author_profile": "https://Stackoverflow.com/users/1274957",
"pm_score": 0,
"selected": false,
"text": "src/main/java/com/example/Foo.java\nsrc/test/java/com/example/FooTest.java\n"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/403408",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42562/"
] |
403,411 | <p>When a Delphi 2009 project is closed with ShellTreeView/ShellListView on the mainform in the IDE Index out of bounds(0) exceptions are generated. Is there a fix for ShellTreeView/ShellListView so the exceptions can be eliminated?</p>
| [
{
"answer_id": 403471,
"author": "Roddy",
"author_id": 1737,
"author_profile": "https://Stackoverflow.com/users/1737",
"pm_score": 2,
"selected": false,
"text": "function TCustomShellListView.GetFolder(Index: Integer): TShellFolder;\nbegin\n if Index < FFolders.Count then\n Result :=... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
403,419 | <p>I have dropdown list control in one of my application and when I add Items in it from database Its displaying the first Item into Dropdown list by default but I want to display someother text into this like "Select Item from the List" Is there any way I can do this .</p>
<p>Also Can you please help me setting the... | [
{
"answer_id": 403447,
"author": "patridge",
"author_id": 48700,
"author_profile": "https://Stackoverflow.com/users/48700",
"pm_score": 4,
"selected": true,
"text": "<asp:DropDownList AppendDataBoundItems=\"true\" ID=\"yourListId\" runat=\"server\">\n <asp:ListItem Text=\"Select somet... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14299/"
] |
403,421 | <p>I have a list of Python objects that I want to sort by a specific attribute of each object:</p>
<pre><code>>>> ut
[Tag(name="toe", count=10), Tag(name="leg", count=2), ...]
</code></pre>
<p>How do I sort the list by <code>.count</code> in descending order?</p>
| [
{
"answer_id": 403426,
"author": "Kenan Banks",
"author_id": 43089,
"author_profile": "https://Stackoverflow.com/users/43089",
"pm_score": 12,
"selected": true,
"text": "# To sort the list in place...\nut.sort(key=lambda x: x.count, reverse=True)\n\n# To return a new list, use the sorted... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22468/"
] |
403,433 | <p>I have a small problem with a program that im writing. I have a table - stocks which contains information(products, barcodes etc.) about items stored in a fridge. I then have another table - shop which acts like a shop,containing loads of products and their barcodes.some of the products in the shop table are in the ... | [
{
"answer_id": 403493,
"author": "Simon Lehmann",
"author_id": 27011,
"author_profile": "https://Stackoverflow.com/users/27011",
"pm_score": 1,
"selected": false,
"text": "SELECT barcode, ... FROM Stock ST JOIN Shop SH ON ST.barcode = SH.barcode;\n"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/403433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47204/"
] |
403,441 | <p>We use EJB2.x entity beans with BMP (bean managed persistence). It appears BMP is not supported in EJB3. We had wanted to stay current and upgrade to EJB3. Does anyone know if there are in fact any BMP options available in 3.0?</p>
<p>From what I can tell, using 3.0, all entity beans have to use JPA and by defin... | [
{
"answer_id": 403493,
"author": "Simon Lehmann",
"author_id": 27011,
"author_profile": "https://Stackoverflow.com/users/27011",
"pm_score": 1,
"selected": false,
"text": "SELECT barcode, ... FROM Stock ST JOIN Shop SH ON ST.barcode = SH.barcode;\n"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/403441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47281/"
] |
403,443 | <p>I've just setup Database mail within MSSQL 2005. I have been able to send email from an administrator account on the server and through a SQL Server Agent job. But, I unable to send email when I tried to send email via a login that just has access to a database for our web application.</p>
<p>What is the best way t... | [
{
"answer_id": 403650,
"author": "Gordon Bell",
"author_id": 16473,
"author_profile": "https://Stackoverflow.com/users/16473",
"pm_score": 1,
"selected": false,
"text": "CREATE PROCEDURE [dbo].[sp_SendMail]\n(\n @To nvarchar(1000),\n @Subject nvarchar(100),\n @Body nvarchar(max)... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/576/"
] |
403,445 | <p>Is there a VB.NET equivalent for C#'s <code>??</code> operator?</p>
| [
{
"answer_id": 403453,
"author": "Firas Assaad",
"author_id": 23153,
"author_profile": "https://Stackoverflow.com/users/23153",
"pm_score": 8,
"selected": true,
"text": "If()"
},
{
"answer_id": 403460,
"author": "Nick",
"author_id": 26161,
"author_profile": "https://S... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18821/"
] |
403,455 | <p>When using "var" to declare variables in C#, is there boxing/unboxing taking place?</p>
<p><br />
Also is there a chance of a runtime type mis-match when using var to declare variables?</p>
| [
{
"answer_id": 403456,
"author": "configurator",
"author_id": 9536,
"author_profile": "https://Stackoverflow.com/users/9536",
"pm_score": 6,
"selected": true,
"text": "var x = 5;\n"
},
{
"answer_id": 403468,
"author": "joshperry",
"author_id": 30587,
"author_profile":... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1443363/"
] |
403,457 | <p>For the past few years I've focused on back-end development so my javascript & css skills are lacking. I'm volunteering as a webmaster for a site and would like to spruce up the form validation (currently there is none).<br>
My problem:
Basically I have one form with a few name fields, an email address and a ph... | [
{
"answer_id": 403547,
"author": "Glazius",
"author_id": 34384,
"author_profile": "https://Stackoverflow.com/users/34384",
"pm_score": 1,
"selected": false,
"text": "<input type=\"text\" name=\"phone_number\" class=\"error_field\">\n 555-121\n</input>\n"
},
{
"answer_id": 40357... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33178/"
] |
403,478 | <p>I want to overlay one image with another using CSS. An example of this is the first image (the background if you like) will be a thumbnail link of a product, with the link opening a lightbox / popup showing a larger version of the image. </p>
<p>On top of this linked image I would like an image of a magnifying glas... | [
{
"answer_id": 403502,
"author": "Nathan Long",
"author_id": 4376,
"author_profile": "https://Stackoverflow.com/users/4376",
"pm_score": 7,
"selected": false,
"text": "<img style=\"background:url(thumbnail1.jpg)\" src=\"magnifying_glass.png\" />\n"
},
{
"answer_id": 403510,
"... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1349865/"
] |
403,505 | <p>So I have a SQL Query as Follows</p>
<pre><code>SELECT P.Date, P.CategoryName, P.ProductName, SUM(Quantity) Quantity, SUM(Sales) TotalSales, IsLevelThree
FROM Products P LEFT JOIN LevelThreeTracking LTT
ON P.Date = LTT.Date AND P.CategoryName = P.CategoryName AND P.SecurityID = LTT.SecurityID
WHERE P.Date = '12... | [
{
"answer_id": 403783,
"author": "Noah",
"author_id": 47496,
"author_profile": "https://Stackoverflow.com/users/47496",
"pm_score": 3,
"selected": false,
"text": "from p in dbFAS.Products\nfrom ltt in dbFAS.LevelThreeTracking\nwhere p.CategoryName == \"CategoryName\"\n && (p.Date == l... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6212/"
] |
403,509 | <p>I have a View class (OrderView.aspx) which shows the details of an order (Account Name, Order Date) as well as a list of order lines via the Repeater control. Each order line is represented by a User Control View (OrderLineView.ascx) which shows the details of the order line (Item Name, Quantity, Price). I have a ... | [
{
"answer_id": 403579,
"author": "Todd Smith",
"author_id": 31624,
"author_profile": "https://Stackoverflow.com/users/31624",
"pm_score": 1,
"selected": false,
"text": "public ActionResult Delete(int? Id)\n{\n ModelState.AddModelError(\"OrderLine\" + Id.Value, \"Error deleting OrderLi... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403509",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14101/"
] |
403,516 | <p>I have a template I made that sets variables that rarely change, call my headers, calls my banner and sidebar, loads a variable which shows the individual pages, then calls the footer. In one of my headers, I want the URL of the page in the user's address bar. Is there a way to do this?</p>
<p>Currently:</p>
<pre>... | [
{
"answer_id": 403532,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 0,
"selected": false,
"text": "$_SERVER['REQUEST_URI']"
},
{
"answer_id": 403636,
"author": "stuartloxton",
"author_id": 313002,
"author... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50544/"
] |
403,527 | <p>I'm wondering, is it possible to make an sql query that does the same function as
<code>'select products where barcode in table1 = barcode in table2</code>'. I am writing this function in a python program. Once that function is called will the table be joined permanently or just while that function is running?
than... | [
{
"answer_id": 403530,
"author": "Ryan Smith",
"author_id": 10420,
"author_profile": "https://Stackoverflow.com/users/10420",
"pm_score": 1,
"selected": false,
"text": "SELECT * FROM table1 WHERE barcode IN (SELECT barcode FROM table2)\n"
},
{
"answer_id": 403535,
"author": "... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47204/"
] |
403,539 | <p>What are extension methods in .NET?</p>
<p><br /><br/></p>
<p>EDIT:
I have posted a follow up question at <a href="https://stackoverflow.com/questions/403619/usage-of-extension-methods">Usage of Extension Methods</a>
</p>
| [
{
"answer_id": 403555,
"author": "Tom Anderson",
"author_id": 13502,
"author_profile": "https://Stackoverflow.com/users/13502",
"pm_score": 3,
"selected": false,
"text": "Public Module MyExtensions\n\n <System.Runtime.CompilerServices.Extension()> _\n Public Sub DoSomething(ByVal s... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1443363/"
] |
403,549 | <p>Can you describe the pros and cons of including an <a href="http://en.wikipedia.org/wiki/Object_identifier" rel="nofollow noreferrer">OID</a> (typically a database row identifier) in a <a href="http://en.wikipedia.org/wiki/Plain_Old_Java_Object" rel="nofollow noreferrer">POJO</a> representing an entity in your model... | [
{
"answer_id": 403571,
"author": "Otávio Décio",
"author_id": 48684,
"author_profile": "https://Stackoverflow.com/users/48684",
"pm_score": 1,
"selected": false,
"text": "SearchCriteria sc = new SearchCriteria();\nsc.AddBinding(\"ProductId\", productId);\nList<Entity> Products = SQL.Read... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50114/"
] |
403,560 | <p>I want to store part of an id, and throw out the rest. For example, I have an html element with an id of 'element-12345'. I want to throw out 'element-' and keep '12345'. How can I accomplish this?</p>
<p>I can capture and echo the value, like this:</p>
<pre>| storeAttribute | //pathToMyElement@id | myId |
| echo ... | [
{
"answer_id": 497700,
"author": "Peter Boughton",
"author_id": 9360,
"author_profile": "https://Stackoverflow.com/users/9360",
"pm_score": 2,
"selected": false,
"text": "| storeAttribute | fn:replace(//pathToMyElement@id,\"^element-\",\"\") | myId |\n"
},
{
"answer_id": 615871,
... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403560",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48523/"
] |
403,569 | <p>Wouldn't it be nice to just do a keystroke and have eclipse organize all imports in all java classes instead of just the one you are looking at? Is this possible? Is there a keystroke for it?</p>
| [
{
"answer_id": 18160610,
"author": "superlinux",
"author_id": 2120194,
"author_profile": "https://Stackoverflow.com/users/2120194",
"pm_score": 0,
"selected": false,
"text": "import com.kwswsuyruzouggmtbzxb.* \n"
},
{
"answer_id": 45225241,
"author": "James Oravec",
"auth... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30807/"
] |
403,572 | <p>I would like to use RNGCryptoServiceProvider as my source of random numbers. As it only can output them as an array of byte values how can I convert them to 0 to 1 double value while preserving uniformity of results?</p>
| [
{
"answer_id": 403623,
"author": "Brian",
"author_id": 16457,
"author_profile": "https://Stackoverflow.com/users/16457",
"pm_score": -1,
"selected": false,
"text": "byte[] random_bytes = new byte[8]; // BitConverter will expect an 8-byte array\nnew RNGCryptoServiceProvider().GetBytes(ra... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3515/"
] |
403,583 | <p>I know how package level protection in java works. I <em>read</em> a lot of code (including lots of open source stuff) and no-one seem to be using it. The whole protection level seems slightly faulty to me (I'd have c#'s internal any day of the week). </p>
<p>Are there any legit real-world use-cases that are in com... | [
{
"answer_id": 403621,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 4,
"selected": false,
"text": " User Code using the package User\n------ | -----------------------------|----- package public Inte... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403583",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23691/"
] |
403,619 | <p><li> When does using extension methods make sense?
<li> Does adding extension methods to a type affect performance?</p>
<p>These questions are follow up to the question i asked earlier about <a href="https://stackoverflow.com/questions/403539/what-are-extension-methods">Extension Methods</a>.</p>
| [
{
"answer_id": 403627,
"author": "Andreas Grech",
"author_id": 44084,
"author_profile": "https://Stackoverflow.com/users/44084",
"pm_score": 2,
"selected": false,
"text": "public class extended {\n public int sum() {\n return 7+3+2;\n }\n}\n\npublic static class extending {\... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403619",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1443363/"
] |
403,622 | <p>The xpath of my elements are becoming extremely hard to read.</p>
<p>//div[@id='main_content']/div[2]/div[2]/div[2]/div[4]/table/tbody/tr[2]/td/form/fieldset/p[1]/input</p>
<p>It would be nice if I could store most of that as a variable and use it later like this:</p>
<p>| assertElementPresent | ${myForm} . /fiel... | [
{
"answer_id": 1170369,
"author": "PeterL",
"author_id": 31028,
"author_profile": "https://Stackoverflow.com/users/31028",
"pm_score": 1,
"selected": false,
"text": "store | //div[@id='main_content']/div[2]/div[2]/div[2]/div[4]/table/tbody/tr[2]/td/form | myForm\nassertElementPresent | x... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48523/"
] |
403,630 | <p>I need to search across multiple columns from two tables in my database using Full-Text Search. The two tables in question have the relevant columns full-text indexed.</p>
<p>The reason I'm opting for Full-text search:
1. To be able to search accented words easily (cafè)
2. To be able to rank according to word prox... | [
{
"answer_id": 403673,
"author": "Shawn",
"author_id": 26,
"author_profile": "https://Stackoverflow.com/users/26",
"pm_score": 1,
"selected": false,
"text": "Select SearchResults.key, SearchResults.rank From FREETEXTTABLE(myColumn, *, @searchString) as SearchResults Order By SearchResult... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6939/"
] |
403,643 | <p>In .NET, what type of exception should be thrown if someone passes an illegal value to the <code>set { }</code> part of a property?</p>
<p>Example:</p>
<pre><code>public string Provider
{
get { return _provider; }
set
{
if (String.IsNullOrEmpty(value)) throw new Exception("Provider cannot be nu... | [
{
"answer_id": 5063473,
"author": "PMBottas",
"author_id": 580745,
"author_profile": "https://Stackoverflow.com/users/580745",
"pm_score": 1,
"selected": false,
"text": "class MyClass\n{\n string name;\n\n public string Name {\n get {\n return name;\n }\n set {\n if ... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403643",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/357/"
] |
403,660 | <p>I want to invoke outlook from the command line (for various reasons) and wanted to know how I go about discovering the Path to the Outlook.exe file.</p>
<p>I'm pretty sure it's stored in the registry, but was wondering how to go about reading that from Java.</p>
<p>thanks</p>
| [
{
"answer_id": 413857,
"author": "Allain Lalonde",
"author_id": 2443,
"author_profile": "https://Stackoverflow.com/users/2443",
"pm_score": 0,
"selected": false,
"text": "static String getOutlookPath() {\n // Message message = new Message();\n final String classID;\n final String outl... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2443/"
] |
403,662 | <p>How do I convert a string into an array of integers? Can I use <code>sstream</code>, because <code>atoi</code> doesn't work?!</p>
| [
{
"answer_id": 403680,
"author": "jalf",
"author_id": 33213,
"author_profile": "https://Stackoverflow.com/users/33213",
"pm_score": 2,
"selected": false,
"text": "struct convert {\n int operator()(char c) {\n return static_cast<int>(c);\n }\n};\n\nstd::string str = \"hello world\";\... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403662",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20730/"
] |
403,671 | <p>So I've been seeing people using <code>.build</code>, <code>.create</code>, and <code>.create!</code> within their controllers more and more lately. What's the difference from just using <code>.new</code> and passing the param'd object and then <code>.save</code>? Are there pros and cons? Does using these other meth... | [
{
"answer_id": 403714,
"author": "zenazn",
"author_id": 46848,
"author_profile": "https://Stackoverflow.com/users/46848",
"pm_score": 9,
"selected": true,
"text": ".create"
},
{
"answer_id": 5547536,
"author": "Vineeth Pradhan",
"author_id": 348862,
"author_profile": ... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43043/"
] |
403,687 | <p>This is inspired by the question <a href="https://stackoverflow.com/questions/50335/ok-cancel-or-cancel-ok">OK-Cancel or Cancel-OK?</a>.</p>
<p>I remember reading somewhere about the concept of switching OK-Cancel/Cancel-OK in certain situations to prevent the user from clicking through information popups or dialog... | [
{
"answer_id": 403745,
"author": "Kevin Fairchild",
"author_id": 3743,
"author_profile": "https://Stackoverflow.com/users/3743",
"pm_score": 2,
"selected": false,
"text": "Dim strStart As DateTime = Now\nWhile Now < strStart.AddSeconds(5)\n MessageBox.Show(\"Something just happened\",... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2386/"
] |
403,689 | <p>While the subject could sound like I'm looking to do something shifty, I'm not; I maintain an internal web site used by several hundred phone operators, and would like to add the following functionality:</p>
<p>I would like to add a control in the header of all of the web pages that would capture an image of the e... | [
{
"answer_id": 403745,
"author": "Kevin Fairchild",
"author_id": 3743,
"author_profile": "https://Stackoverflow.com/users/3743",
"pm_score": 2,
"selected": false,
"text": "Dim strStart As DateTime = Now\nWhile Now < strStart.AddSeconds(5)\n MessageBox.Show(\"Something just happened\",... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403689",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26037/"
] |
403,702 | <p>Is there a good way to limit the Auto Width of an element or Grid Column?
I want to limit the Auto Width only, but allow any user changes.</p>
<p>For example, I want to allow GridSplitter to arbitrarily resize the column, but the initial (Auto) Width should not exceed a specific value. Same for the elements -- I wa... | [
{
"answer_id": 403749,
"author": "David Schmitt",
"author_id": 4918,
"author_profile": "https://Stackoverflow.com/users/4918",
"pm_score": 1,
"selected": false,
"text": "MaxWidth"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/403702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39068/"
] |
403,703 | <p>I've just deployed a new site using Zend Framework. Due to the popularity of my tutorials I'd like to redirect any request for a tutorial to the relevant page on the new site. So far this is what I've got:</p>
<p>URL before Rewrite: <a href="http://neranjara.org/tutorials/?tid=56" rel="nofollow noreferrer">http://n... | [
{
"answer_id": 403864,
"author": "lpfavreau",
"author_id": 35935,
"author_profile": "https://Stackoverflow.com/users/35935",
"pm_score": 2,
"selected": false,
"text": "$_SERVER['REQUEST_URI']"
},
{
"answer_id": 406079,
"author": "Chris",
"author_id": 50791,
"author_pr... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47440/"
] |
403,731 | <p>Two machines. Both with .NET 3.5 and the VS 2008 VC++ SP1 redistributables</p>
<p>A single exe which uses two signed DLLs, one in C++/CLI and one in C#</p>
<p>The exe loads and runs fine on one machine.</p>
<p>On the other, I get "Strong Name Validation Failed" on the C++ executable (HRESULT 0x8013141A)</p>
<p>A... | [
{
"answer_id": 34133383,
"author": "Butsaty",
"author_id": 1041827,
"author_profile": "https://Stackoverflow.com/users/1041827",
"pm_score": 6,
"selected": false,
"text": "reg DELETE \"HKLM\\Software\\Microsoft\\StrongName\\Verification\" /f\nreg ADD \"HKLM\\Software\\Microsoft\\StrongNa... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
403,736 | <p>I am attempting to center my entire page using only CSS and it is proving more complicated than i first expected. Currently my code works in IE but not in Firefox which makes a change. The page can be seen <a href="http://www.ronnieweb.co.cc/test/index.html" rel="nofollow noreferrer">here</a>. Below is the code port... | [
{
"answer_id": 403743,
"author": "John Sheehan",
"author_id": 1786,
"author_profile": "https://Stackoverflow.com/users/1786",
"pm_score": 4,
"selected": true,
"text": "<body>\n<div id=\"wrap\">\n Gubbins in here.\n</div>\n</body>\n"
},
{
"answer_id": 403759,
"author": "Joe... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403736",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50057/"
] |
403,747 | <p>In the current C++ standard (C++03), there are too few specifications about text localization and that makes the C++ developer's life harder than usual when working with localized texts (certainly the C++0x standard will help here later).</p>
<h3>Assuming the following scenario (which is from real PC-Mac game devel... | [
{
"answer_id": 403907,
"author": "Aaron",
"author_id": 28950,
"author_profile": "https://Stackoverflow.com/users/28950",
"pm_score": 5,
"selected": true,
"text": "enum"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/403747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2368/"
] |
403,748 | <p>I would like to use a custom version of the standard disclosure accessory image in my UITableView. How can I do this? I'm hoping that sub-classing UITableViewCell is not necessary for something this basic.</p>
| [
{
"answer_id": 403796,
"author": "codelogic",
"author_id": 43427,
"author_profile": "https://Stackoverflow.com/users/43427",
"pm_score": 8,
"selected": true,
"text": "accessoryView"
},
{
"answer_id": 2026216,
"author": "nielsbot",
"author_id": 210171,
"author_profile"... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35478/"
] |
403,754 | <p>Creating an OS seems like a <strong>massive</strong> project. How would anyone even get started?</p>
<p><strong>For example, when I pop Ubuntu into my drive, how can my computer just <em>run</em> it?</strong>
(This, I guess, is what I'd really like to know.)</p>
<p>Or, looking at it from another angle, what is t... | [
{
"answer_id": 41168831,
"author": "np2807",
"author_id": 5360233,
"author_profile": "https://Stackoverflow.com/users/5360233",
"pm_score": 0,
"selected": false,
"text": "bootloader"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/403754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1615/"
] |
403,756 | <p>In my quest in trying to learn more about OOP in PHP. I have come across the constructor function a good few times and simply can't ignore it anymore. In my understanding, the constructor is called upon the moment I create an object, is this correct?</p>
<p>But why would I need to create this constructor if I can u... | [
{
"answer_id": 403766,
"author": "Ólafur Waage",
"author_id": 22459,
"author_profile": "https://Stackoverflow.com/users/22459",
"pm_score": 4,
"selected": true,
"text": "class Bar\n{\n // The variable we will be using within our class\n var $val;\n\n // This function is called w... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37418/"
] |
403,769 | <p>I'm using .net 2.0 with Visual Studio 2005 and I am trying to add two different toolstrips to the top of the form such that they show up side-by-side. I want it to be like Word 2003, where you can add multiple toolstrips to the same row and have them show up in line with each other, rather than dedicating a row to ... | [
{
"answer_id": 469868,
"author": "Wyzfen",
"author_id": 15261,
"author_profile": "https://Stackoverflow.com/users/15261",
"pm_score": 4,
"selected": true,
"text": "using System.Drawing;\nusing System.Windows.Forms;\nusing System.Windows.Forms.Layout;\n\nnamespace CustomGUI\n{\n class Cu... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22392/"
] |
403,794 | <p>Well I was reading this <a href="http://handyfloss.wordpress.com/2008/02/17/summary-of-my-python-optimization-adventures/" rel="noreferrer">post</a> and then I came across a code which was:</p>
<pre><code>jokes=range(1000000)
domain=[(0,(len(jokes)*2)-i-1) for i in range(0,len(jokes)*2)]
</code></pre>
<p>I thought... | [
{
"answer_id": 403821,
"author": "dF.",
"author_id": 3002,
"author_profile": "https://Stackoverflow.com/users/3002",
"pm_score": 5,
"selected": true,
"text": "timeit"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/403794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33612/"
] |
403,798 | <p>In my view I have an alphabet based selector, to select manufacturers by the first letter of their name. I got that part working. But I have manufacturers whose name starts with a number, for example 3M, or 3DLabs. In the view I have the character "#" to group all those. What should my query/find method look like to... | [
{
"answer_id": 403814,
"author": "Mitchell Gilman",
"author_id": 43219,
"author_profile": "https://Stackoverflow.com/users/43219",
"pm_score": 2,
"selected": false,
"text": "select *\nfrom myTable\nwhere myField like '[^a-z]%'\n"
},
{
"answer_id": 403874,
"author": "Community... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403798",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
403,815 | <p>I'm writing an application that gets data from URLs, but I want to make it an option whether or not the user uses "clean" urls (ex: <a href="http://example.com/hello/world" rel="nofollow noreferrer">http://example.com/hello/world</a>) or "dirty" urls (ex: <a href="http://example.com/?action=hello&sub=world" rel=... | [
{
"answer_id": 403854,
"author": "ConroyP",
"author_id": 2287,
"author_profile": "https://Stackoverflow.com/users/2287",
"pm_score": 3,
"selected": true,
"text": "RewriteRule ^hello/world /?action=hello&sub=world [NC,L]\n"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/403815",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29291/"
] |
403,820 | <p>I'm trying for the past several hours to figure out how to do this, but with no luck. There are several potential solutions for this when searching Google, but nothing seems to work.</p>
<p>I'm trying to customize the background color of the standard UILabel that goes in a UITableViewCell (since I already customize... | [
{
"answer_id": 403827,
"author": "codelogic",
"author_id": 43427,
"author_profile": "https://Stackoverflow.com/users/43427",
"pm_score": 2,
"selected": true,
"text": "label.text = @\"Sample text here\";\n"
},
{
"answer_id": 403843,
"author": "Genericrich",
"author_id": 39... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35478/"
] |
403,822 | <p>I have a file called main.py and a file called classes.py</p>
<p>main.py contains the application and what's happening while class.py contains some classes.</p>
<p>main.py has the following code</p>
<p><strong>main.py</strong></p>
<pre><code>import classes
def addItem(text):
print text
myClass = classes.Ex... | [
{
"answer_id": 403850,
"author": "codelogic",
"author_id": 43427,
"author_profile": "https://Stackoverflow.com/users/43427",
"pm_score": 1,
"selected": false,
"text": "if __name__ == \"__main__\""
},
{
"answer_id": 403875,
"author": "Ned Batchelder",
"author_id": 14343,
... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1384652/"
] |
403,836 | <p>I have a function that identify coordinates on a page, and I am returning them as a</p>
<pre><code>Dictionary<int, Collection<Rectangle>> GetDocumentCoordinates(int DocumentId)
</code></pre>
<p>However, later I need information about each page - if it was validated, what is the page resolution, color/b... | [
{
"answer_id": 403862,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 1,
"selected": false,
"text": "Dictionary<,>"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/403836",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48684/"
] |
403,846 | <p>What would be the best way to loop through all radio buttons on my page and alert the user if one of them is unchecked for a particular question?</p>
<p>Note: there are multiple questions on one page.</p>
<pre><code><li>
<fieldset>
<h3>What music do you listen to?</h3>
<ul... | [
{
"answer_id": 403940,
"author": "patridge",
"author_id": 48700,
"author_profile": "https://Stackoverflow.com/users/48700",
"pm_score": 4,
"selected": false,
"text": "if (undefined === $(\"input[name='answer8']:checked\").val()) {\n // do something\n}\n"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/403846",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48973/"
] |
403,855 | <p>With WCF, how can I determine who is connecting to my server?</p>
<p>Background: I have a set of WCF clients and servers. I suspect one client is pointed to the wrong server, so I want to log all the connections to that server. I don't know which client it is, so I have to check it on the server side.</p>
| [
{
"answer_id": 403884,
"author": "Scott Weinstein",
"author_id": 25201,
"author_profile": "https://Stackoverflow.com/users/25201",
"pm_score": 1,
"selected": false,
"text": "OperationContext opCtx = OperationContext.Current;\nEndpointAddress from = opCtx.IncomingMessageHeaders.From;\n"
... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5274/"
] |
403,865 | <p>I have a list of numbers and I want to add up all the different combinations.
For example:</p>
<ul>
<li>number as 1,4,7 and 13</li>
<li>the output would be:</li>
</ul>
<p><br></p>
<pre><code>1+4=5
1+7=8
1+13=14
4+7=11
4+13=17
7+13=20
1+4+7=12
1+4+13=18
1+7+13=21
4+7+13=24
1+4+7+13=25
</code></pre>
<p>Is there a ... | [
{
"answer_id": 403883,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 5,
"selected": false,
"text": "0001 = 13=13\n0010 = 7=7\n0011 = 7+13 = 20\n\n1111 = 1+4+7+13 = 25\n"
},
{
"answer_id": 403908,
"author":... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50577/"
] |
403,868 | <p>I am using jQuery for my AJAX calls to an ASP.NET backend using <a href="http://encosia.com/2008/03/27/using-jquery-to-consume-aspnet-json-web-services/" rel="nofollow noreferrer">this approach</a>. I am using .ajaxStart and .ajaxStop to show and hide a progress indicator. When the AJAX request finishes very quickly... | [
{
"answer_id": 403883,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 5,
"selected": false,
"text": "0001 = 13=13\n0010 = 7=7\n0011 = 7+13 = 20\n\n1111 = 1+4+7+13 = 25\n"
},
{
"answer_id": 403908,
"author":... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29426/"
] |
403,897 | <p>sorry for my previous question which was very ambiguous, but i think if i get the answer to this question I can work it out.
In the program below i have selected the barcodes of products where the amount is less than the quantity. I want to say, that if the barcodes(in the fridge table) match barcodes in another tab... | [
{
"answer_id": 403941,
"author": "Adam Peck",
"author_id": 26658,
"author_profile": "https://Stackoverflow.com/users/26658",
"pm_score": 3,
"selected": false,
"text": "UPDATE products SET stock = 0 WHERE barcode IN ( \n SELECT fridge.barcode FROM fridge WHERE fridge.amount < fridge.qu... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47204/"
] |
403,902 | <p>I have inherited a Java application (servlets) that runs under Tomcat. For historical reasons, the code has different "look and feel" options based on where the application will be deployed (essentially a matter of branding).</p>
<p>There are several constants that control this branding process, which have differen... | [
{
"answer_id": 403937,
"author": "Steve B.",
"author_id": 19479,
"author_profile": "https://Stackoverflow.com/users/19479",
"pm_score": 1,
"selected": false,
"text": "<bean id=\"propertyPlaceholder\" class=\"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer\">\n ... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33977/"
] |
403,914 | <p>I'm using g++ to compile and link a project consisting of about 15 c++ source files and 4 shared object files. Recently the linking time more than doubled, but I don't have the history of the makefile available to me. Is there any way to profile g++ to see what part of the linking is taking a long time?</p>
<p><s... | [
{
"answer_id": 403994,
"author": "codelogic",
"author_id": 43427,
"author_profile": "https://Stackoverflow.com/users/43427",
"pm_score": 1,
"selected": false,
"text": "-v"
},
{
"answer_id": 415802,
"author": "Employed Russian",
"author_id": 50617,
"author_profile": "h... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1084/"
] |
403,924 | <p>I have a coworker looking for this, and I don't recall ever running into anything like that.</p>
<p>Is there a reasonable technique that would let you simulate it?</p>
<pre><code>SELECT PRODUCT(X)
FROM
(
SELECT 3 X FROM DUAL
UNION ALL
SELECT 5 X FROM DUAL
UNION ALL
SELECT 2 X FROM DUAL
)
</cod... | [
{
"answer_id": 403928,
"author": "Amy B",
"author_id": 8155,
"author_profile": "https://Stackoverflow.com/users/8155",
"pm_score": 2,
"selected": false,
"text": "DECLARE @a int\nSET @a = 1\n-- re-assign @a for each row in the result\n-- as what @a was before * the value in the row\nSELEC... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403924",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7734/"
] |
403,929 | <p>Consider the following code:</p>
<pre><code>#include <stdio.h>
namespace Foo {
template <typename T>
void foo(T *, int) { puts("T"); }
template <typename T>
struct foo_fun {
static void fun() { foo((T *)0, 0); };
};
}
namespace Foo {
void foo(int *, int) { puts("int"); }
}
usin... | [
{
"answer_id": 403958,
"author": "CB Bailey",
"author_id": 19563,
"author_profile": "https://Stackoverflow.com/users/19563",
"pm_score": 4,
"selected": true,
"text": "void foo(..."
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/403929",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28888/"
] |
403,943 | <p>I'm not certain where the error is resulting (from silverlight, from wcf, something else...) but, I have a WCF service being called from Silverlight. The method returns a class, with a property that does not have a setter. This throws an error. If I add a setter to the property then it does not give an error.</p>
<... | [
{
"answer_id": 404713,
"author": "Darin Dimitrov",
"author_id": 29407,
"author_profile": "https://Stackoverflow.com/users/29407",
"pm_score": 2,
"selected": true,
"text": "[DataContract]\npublic class SomeClass\n{ \n public SomeClass()\n {\n _propertyB = \"Hi there\";\n }... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403943",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
403,946 | <p>Whenever I include boost in my project I get a million of these warnings. Does anyone know how I can get rid of the warnings?</p>
<blockquote>
<p>../depends\boost/config/abi_prefix.hpp(19)
: warning C4103:
'depends\boost\config\abi_prefix.hpp'
: alignment changed after including
header, may be due to mis... | [
{
"answer_id": 410223,
"author": "Brian R. Bondy",
"author_id": 3153,
"author_profile": "https://Stackoverflow.com/users/3153",
"pm_score": 0,
"selected": false,
"text": "#define BOOST_DISABLE_ABI_HEADERS\n"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/403946",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
403,967 | <p>How can I reference the script element that loaded the javascript that is currently running?</p>
<p>Here's the situation. I have a "master" script being loaded high in the page, first thing under the HEAD tag.</p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/x... | [
{
"answer_id": 403986,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 4,
"selected": false,
"text": "id"
},
{
"answer_id": 404036,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackove... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
404,002 | <p>I'm trying to convert from a System.Drawing.Color to a Silverlight System.Windows.Media.Color. I'm actually trying to pass this color through a service.</p>
<p>The System.Drawing.Color, passed over the wire, does not serialize the argb value independently.</p>
<p>I can convert the argb value to a 32-bit int</p>
<... | [
{
"answer_id": 403986,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 4,
"selected": false,
"text": "id"
},
{
"answer_id": 404036,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackove... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404002",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
404,010 | <p>I am writing c# code in .Net 2008 Winforms.</p>
<p>I created a print preview window to create a report. It works fine I can preview the report and then print it. The only problem is it is not as flexible as the Office Print preview. The users cannot chose a printer other that the default printer and they cannot lim... | [
{
"answer_id": 404026,
"author": "Dour High Arch",
"author_id": 22437,
"author_profile": "https://Stackoverflow.com/users/22437",
"pm_score": 3,
"selected": false,
"text": "PrintDialog pDialog = new PrintDialog( );\npDialog.Document = printDocument;\nif (pDialog.ShowDialog( ) == DialogRe... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50593/"
] |
404,015 | <p>I am trying to understand the file format of a Visual FoxPro compact index (*.IDX). I am currently referring to <a href="http://msdn.microsoft.com/en-us/library/s8tb8f47(VS.80).aspx" rel="nofollow noreferrer">Microsoft's documentation</a> for guidance.</p>
<p>The index is a B-tree of 512-byte nodes. Each leaf ("ext... | [
{
"answer_id": 406780,
"author": "Adam Paynter",
"author_id": 41619,
"author_profile": "https://Stackoverflow.com/users/41619",
"pm_score": 3,
"selected": true,
"text": "variable_key_length = fixed_key_length - duplicate_byte_count - trailing_byte_count\n"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/404015",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41619/"
] |
404,019 | <p>I have a C# (2008/.NET 3.5) class library assembly that supports WPF (based on <a href="http://dotupdate.wordpress.com/2007/12/05/how-to-add-a-wpf-control-library-template-to-visual-c-express-2008/" rel="noreferrer">this article</a>).<br/> I've created several windows, and am now attempting to create a common style ... | [
{
"answer_id": 404503,
"author": "Cameron MacFarland",
"author_id": 3820,
"author_profile": "https://Stackoverflow.com/users/3820",
"pm_score": 4,
"selected": false,
"text": "/themes/generic.xaml"
},
{
"answer_id": 407147,
"author": "Muad'Dib",
"author_id": 49910,
"au... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50597/"
] |
404,020 | <p>In my Flex interface, I've got a few List components that are data bound to ArrayCollections. I'm finding that when the ArrayCollections are updated (by Web services) and the data bindings for the Lists update, each List is reset and its selectedIndex is dropped. This is a problem if a user is in the middle of a tas... | [
{
"answer_id": 404503,
"author": "Cameron MacFarland",
"author_id": 3820,
"author_profile": "https://Stackoverflow.com/users/3820",
"pm_score": 4,
"selected": false,
"text": "/themes/generic.xaml"
},
{
"answer_id": 407147,
"author": "Muad'Dib",
"author_id": 49910,
"au... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40956/"
] |
404,024 | <p>I'm writing an ItemAdding handler for a SharePoint list, and the list contains multi-user fields. Since the SPItem is not actually available at this point, I think I'm relegated to using the string that comes back from the SPItemEventDataCollection. That string will look something like this when user1, user2, and ... | [
{
"answer_id": 404964,
"author": "Øyvind Skaar",
"author_id": 49194,
"author_profile": "https://Stackoverflow.com/users/49194",
"pm_score": 0,
"selected": false,
"text": "private SPUser getGroup(SPListItem item, string fieldName)\n {\n string fieldValue = item[fieldName... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404024",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/404/"
] |
404,029 | <p>Not a SQL person at all. Have the following code a consultant wrote. </p>
<p>First, it makes sure only an elementary school has been chosen - then, after the BEGIN, if the variable @Term equals a 3 we want to do the stuff under that IF statement. Here's the problem. When @Term is not = 3 we still want to drop ... | [
{
"answer_id": 404035,
"author": "Charles Bretana",
"author_id": 32632,
"author_profile": "https://Stackoverflow.com/users/32632",
"pm_score": 2,
"selected": false,
"text": "If @Term = 3\n INSERT INTO @Classes\n SELECT XXXXXX \n FROM XXXX blah blah blah\n-- ---... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
404,040 | <p>In a fairly animated discussion in my team I was made to think what most people like as primary keys. We had the following groups-</p>
<ol>
<li>Int/ BigInt which autoincrement are good enough primary keys.</li>
<li>There should be at least 3 columns that make up the primary key.</li>
<li>Id, GUID and human readable... | [
{
"answer_id": 404135,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 5,
"selected": false,
"text": "state"
},
{
"answer_id": 404161,
"author": "thursdaysgeek",
"author_id": 22523,
"author_profile": ... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37494/"
] |
404,043 | <p>I've done a lot of research on this,but I'm unable to solve this problem. I've got a Div with several Divs within it that I want to hide before switching on a TinyMCE instance.</p>
<p>I'm doing this via jQuery - </p>
<pre><code>$(".drop").hide()
</code></pre>
<p>This works fine, and every browser engine except T... | [
{
"answer_id": 404211,
"author": "Soviut",
"author_id": 46914,
"author_profile": "https://Stackoverflow.com/users/46914",
"pm_score": 0,
"selected": false,
"text": ".drop\n{\n display: block; // or inline\n}\n"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/404043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1649/"
] |
404,073 | <p>My client asked me (a JavaScript client-side programmer) to change the order of the options so that their company's option appears at the top of a select box when the page loads.</p>
<p>The following code works in Firefox but fails in Internet Explorer 7 when I try to swap two options:</p>
<pre><code> function ... | [
{
"answer_id": 404211,
"author": "Soviut",
"author_id": 46914,
"author_profile": "https://Stackoverflow.com/users/46914",
"pm_score": 0,
"selected": false,
"text": ".drop\n{\n display: block; // or inline\n}\n"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/404073",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18149/"
] |
404,083 | <p>I read <a href="http://www.codinghorror.com/blog/archives/000621.html" rel="noreferrer">this post</a> last night, and I noticed it was from 2006. I could go either way on the ORM, database thing, but I was just wondering if everything bad Jeff said about ORM still applies even now considering the post is from 2006.... | [
{
"answer_id": 36401511,
"author": "Rob Bygrave",
"author_id": 208581,
"author_profile": "https://Stackoverflow.com/users/208581",
"pm_score": 2,
"selected": false,
"text": "1 + N / batchSize"
},
{
"answer_id": 44118750,
"author": "Choppy The Lumberjack",
"author_id": 100... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18149/"
] |
404,107 | <p>There are a variety of characters that are not legally encodeable in XML 1.0, e.g. <code>U+0007</code> ('bell') and <code>U+001B</code> ('escape'). Most of the interesting ones are non-whitespace 'control' characters. </p>
<p>It's clear from (e.g.) <a href="https://stackoverflow.com/questions/209193/special-charac... | [
{
"answer_id": 29828028,
"author": "Jirka Hanika",
"author_id": 1235565,
"author_profile": "https://Stackoverflow.com/users/1235565",
"pm_score": 4,
"selected": false,
"text": "U+0000"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/404107",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49890/"
] |
404,109 | <p>Does anyone have a clue what I name this XML document and where to put it now that I have it created?</p>
<p>I would like to provide an OSDD (OpenSearch description document) on my site so that Google Chrome will automatically pick up search capabilities for it. Google tells me that's <a href="http://www.google.com... | [
{
"answer_id": 404128,
"author": "Micah",
"author_id": 17744,
"author_profile": "https://Stackoverflow.com/users/17744",
"pm_score": 3,
"selected": false,
"text": "<link rel=\"search\" type=\"application/opensearchdescription+xml\" title=\"Stack Overflow\" href=\"/opensearch.xml\" />\n"
... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48700/"
] |
404,141 | <p>First, how do I format the XML processing instruction, is it:</p>
<pre><code><?processingInstructionName attribute="value" attribute2="value2"?>
</code></pre>
<p>Using StAX, I then want to read it by handling the <code>XMLStreamConstants.PROCESSING_INSTRUCTION</code> (<a href="http://java.sun.com/javase/6/do... | [
{
"answer_id": 404355,
"author": "Dimitre Novatchev",
"author_id": 36305,
"author_profile": "https://Stackoverflow.com/users/36305",
"pm_score": 3,
"selected": true,
"text": "pseudo-attributes"
},
{
"answer_id": 41202788,
"author": "Dave Jarvis",
"author_id": 59087,
"... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2134/"
] |
404,146 | <p>On Windows,
how can my user-mode program get the driver version number(s) for the video card(s) installed?</p>
<p>Programs like ATI's "Catalyst Control Center" can display this information to the user or include it automatically into bug reports. How do they get it?</p>
<p>I've been looking thru the PSDK document... | [
{
"answer_id": 404372,
"author": "JasonTrue",
"author_id": 13433,
"author_profile": "https://Stackoverflow.com/users/13433",
"pm_score": 4,
"selected": true,
"text": "Get-WmiObject Win32_VideoController | format-table Name, Description,VideoProcessor,DriverVersion\n"
},
{
"answer... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40756/"
] |
404,163 | <pre><code>var y = new w();
var x = y.z;
y.z= function() {
doOneThing();
x();
}
</code></pre>
<p><em>where <code>w</code> does not contain a <code>z</code> object but contains other objects (e.g, <code>a</code>, <code>b</code>, <code>c</code>)</em></p>
<p>What is <code>x();</code> possibly referring t... | [
{
"answer_id": 404168,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 1,
"selected": false,
"text": "var y = new w();\n\n// Create a global variable x referring to the y.z method\nvar x = y.z;\n\ny.z= function() {\n doO... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404163",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49881/"
] |
404,169 | <p>While browsing the various option switches for my compiler (GNU C++ 3.2.3 is supported by my organization for my given hardware configuration), I ran across this:</p>
<pre><code>-glevel
:
Level 3 includes extra information, such as all the macro definitions
present in the program. Some debuggers support macro ex... | [
{
"answer_id": 404220,
"author": "Norman Ramsey",
"author_id": 41661,
"author_profile": "https://Stackoverflow.com/users/41661",
"pm_score": 2,
"selected": false,
"text": "-g3"
},
{
"answer_id": 415861,
"author": "Employed Russian",
"author_id": 50617,
"author_profile... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3778/"
] |
404,171 | <p>Is there any way to get XCode to render text in the editor with anti-aliasing enabled? I can't see anything in the preferences dialog that would do it.</p>
| [
{
"answer_id": 404183,
"author": "Adam Peck",
"author_id": 26658,
"author_profile": "https://Stackoverflow.com/users/26658",
"pm_score": 3,
"selected": false,
"text": "defaults write com.apple.xcode AppleAntiAliasingThreshold -int <font-size>\ndefaults write com.apple.xcode AppleSmoothFo... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47612/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.