qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
371,808 | <p>I'm on a project doing an iPhone application. We had a Cocoa consultant come in for a few weeks. He showed me an interesting idiom of Cocoa, dealing with interfaces, but there was a difficult language barrier between us, and he wasn't really able to explain <em>why</em> this was done or where it was documented so I ... | [
{
"answer_id": 372021,
"author": "Marc Charbonneau",
"author_id": 35136,
"author_profile": "https://Stackoverflow.com/users/35136",
"pm_score": 2,
"selected": false,
"text": "#pragma mark <label>"
},
{
"answer_id": 375019,
"author": "Rob",
"author_id": 386102,
"author... | 2008/12/16 | [
"https://Stackoverflow.com/questions/371808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/386102/"
] |
371,816 | <p>Does anyone know how to clear the filter drop down (combo) contents in Wireshark? Are the contents stored in a file somewhere?</p>
<p>For the life of me, I can't figure this out. And, the Wireshark help file only tells me "The entries in the pull down list will remain available even after a program restart."</p>
| [
{
"answer_id": 371826,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "~/.wireshark/recent"
}
] | 2008/12/16 | [
"https://Stackoverflow.com/questions/371816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
371,839 | <p>What is the most efficient way to convert data from nested lists to an object array (which can be used i.e. as data for JTable)?</p>
<pre><code>List<List> table = new ArrayList<List>();
for (DATAROW rowData : entries) {
List<String> row = new ArrayList<String>();
for (String col : ... | [
{
"answer_id": 371873,
"author": "Michael Myers",
"author_id": 13531,
"author_profile": "https://Stackoverflow.com/users/13531",
"pm_score": 3,
"selected": false,
"text": "JTable"
},
{
"answer_id": 372134,
"author": "Patrick",
"author_id": 54396,
"author_profile": "ht... | 2008/12/16 | [
"https://Stackoverflow.com/questions/371839",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33429/"
] |
371,875 | <p>Is there local file manipulation that's been done with JavaScript? I'm looking for a solution that can be accomplished with no install footprint like requiring <a href="http://en.wikipedia.org/wiki/Adobe_Integrated_Runtime" rel="noreferrer">Adobe AIR</a>.</p>
<p>Specifically, I'd like to read the contents from a fi... | [
{
"answer_id": 371902,
"author": "Jason S",
"author_id": 44330,
"author_profile": "https://Stackoverflow.com/users/44330",
"pm_score": 5,
"selected": false,
"text": "netscape.security.PrivilegeManager.enablePrivilege(\"UniversalBrowserRead\");\nnetscape.security.PrivilegeManager.enablePr... | 2008/12/16 | [
"https://Stackoverflow.com/questions/371875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24841/"
] |
371,878 | <p>I'm just starting out with F# and I can't find the syntax to do object initialization like in C# 3. </p>
<p>I.e. given this:</p>
<pre><code>public class Person {
public DateTime BirthDate { get; set; }
public string Name { get; set; }
}
</code></pre>
<p>how do I write the following in F#:</p>
<pre><code>var ... | [
{
"answer_id": 371910,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 8,
"selected": true,
"text": "let p = new Person (Name = \"John\", BirthDate = DateTime.Now)\n"
},
{
"answer_id": 372187,
"author"... | 2008/12/16 | [
"https://Stackoverflow.com/questions/371878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21239/"
] |
371,898 | <p>I've seen a few mentions of this on Stack Overflow, but staring at Wikipedia (the relevant page has since been deleted) and at an <a href="http://sourceforge.net/projects/dyndlgdemo/" rel="noreferrer">MFC dynamic dialog demo</a> did nothing to enlighten me. Can someone please explain this? Learning a fundamentally d... | [
{
"answer_id": 381861,
"author": "Alex",
"author_id": 45581,
"author_profile": "https://Stackoverflow.com/users/45581",
"pm_score": 4,
"selected": false,
"text": "Start loop:\nfor each element in the datastructure: \n if element has changed from oldDatastructure:\n copy element... | 2008/12/16 | [
"https://Stackoverflow.com/questions/371898",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18192/"
] |
371,930 | <p>Environment is VS2008, .Net 3.5</p>
<p>The following C# code (note the specified encoding of UTF8)</p>
<pre><code>XmlWriterSettings settings = new XmlWriterSettings ();
StringBuilder sb = new StringBuilder();
settings.Encoding = System.Text.Encoding.UTF8;
settings.Indent = false;
settings.NewLineChars = "\n";
s... | [
{
"answer_id": 371946,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "public sealed class StringWriterWithEncoding : StringWriter\n{\n private readonly Encoding encoding;\n\n public Str... | 2008/12/16 | [
"https://Stackoverflow.com/questions/371930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9368/"
] |
371,938 | <p>I have two routes I want mapped in my ASP.NET MVC application</p>
<ol>
<li>/User/Login</li>
<li>/User/{userid}/{username}/{action} (e.g. /User/1/blah/profile)</li>
</ol>
<p>Here are the routes I've defined: </p>
<pre><code> routes.MapRoute(
"Profile",
"Users/{userID}/{username}/{action}",... | [
{
"answer_id": 375059,
"author": "Chris James",
"author_id": 3193,
"author_profile": "https://Stackoverflow.com/users/3193",
"pm_score": 2,
"selected": true,
"text": "<%=Html.RouteLink%>"
}
] | 2008/12/16 | [
"https://Stackoverflow.com/questions/371938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1574/"
] |
371,961 | <p>How are you supposed to unit test a web service in C# with Visual Studio 2008? When I generate a unit test it adds an actual reference to the web service class instead of a web reference. It sets the attributes specified in:</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms243399(VS.80).aspx#TestingWebSe... | [
{
"answer_id": 372455,
"author": "Chris Brandsma",
"author_id": 9443,
"author_profile": "https://Stackoverflow.com/users/9443",
"pm_score": 3,
"selected": false,
"text": "[WebMethod]\npublic void DoSomething()\n{ \n hander.DoSomething();\n}\n"
},
{
"answer_id": 1049680,
"au... | 2008/12/16 | [
"https://Stackoverflow.com/questions/371961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42588/"
] |
371,974 | <p>I'm writing my own Modal Popup as a template control in ASP.NET. I got two template containers - one for the heading of the window and one for the actual control i want to display in the modal window (let's call it the form control). The form controls can contain server controls like buttons, textbox'es etc.</p>
<p... | [
{
"answer_id": 372455,
"author": "Chris Brandsma",
"author_id": 9443,
"author_profile": "https://Stackoverflow.com/users/9443",
"pm_score": 3,
"selected": false,
"text": "[WebMethod]\npublic void DoSomething()\n{ \n hander.DoSomething();\n}\n"
},
{
"answer_id": 1049680,
"au... | 2008/12/16 | [
"https://Stackoverflow.com/questions/371974",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11619/"
] |
371,987 | <p>I doubt I am the only one who has come up with this solution, but if you have a better one please post it here. I simply want to leave this question here so I and others can search it later. </p>
<p>I needed to tell whether a valid date had been entered into a text box and this is the code that I came up with. I fi... | [
{
"answer_id": 371993,
"author": "Chris James",
"author_id": 3193,
"author_profile": "https://Stackoverflow.com/users/3193",
"pm_score": 9,
"selected": true,
"text": "DateTime.TryParse\n"
},
{
"answer_id": 371996,
"author": "Jon Skeet",
"author_id": 22656,
"author_pro... | 2008/12/16 | [
"https://Stackoverflow.com/questions/371987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19802/"
] |
372,003 | <p>I am looking for any kind of information (prefer Moq) on how to unit test the Application_Start method in Global.asax. I am using ASP.NET MVC and trying to get to that elusive 100% code coverage!</p>
<p>The fact that I'm using MVC is not the point. And saying that not testing Start is not necessary isn't really t... | [
{
"answer_id": 373681,
"author": "CubanX",
"author_id": 27555,
"author_profile": "https://Stackoverflow.com/users/27555",
"pm_score": 0,
"selected": false,
"text": "public static void CheckSession(HttpSessionStateBase session)\n{\n...\n}\n"
},
{
"answer_id": 24317445,
"author... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
372,009 | <p><a href="https://medifacd.relayhealth.com/Pharmacies/MediFacD_Pharmacies_PayerSheet_E1December2006.htm#Examples" rel="nofollow noreferrer" title="Medicare Eligibility EDI Example Responses">Medicare Eligibility EDI Example Responses</a> is what I'm trying to match.</p>
<p>I have a string that looks like this:</p>
... | [
{
"answer_id": 372036,
"author": "Adam Bellaire",
"author_id": 21632,
"author_profile": "https://Stackoverflow.com/users/21632",
"pm_score": 4,
"selected": true,
"text": "([\\w]{2})\\:(.+?)(?=[\\w]{2}\\:|$)\n"
},
{
"answer_id": 372054,
"author": "Ates Goral",
"author_id":... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/448/"
] |
372,011 | <p>I have a listview working in virtual mode, in the LargeIcons view. Retrieves are expensive, so I want to ask for the data for all the visible items. How do I get the start index and total number of the visible items?</p>
<p>Update: I am aware of the CacheVirtualItems event. The third-party database we're using t... | [
{
"answer_id": 372020,
"author": "Jeff Yates",
"author_id": 23234,
"author_profile": "https://Stackoverflow.com/users/23234",
"pm_score": 1,
"selected": false,
"text": " for (int index = 0; index < list.Items.Count; index++)\n {\n if (list.ClientRectangle.Interse... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15371/"
] |
372,018 | <p>I'm trying to make a Card class that duplicates the behavior of Dashboard widgets in that you can put controls or images or whatever on two sides of the card and flip between them. </p>
<p>Layer backed views have a transform property, but altering that doesn't do what I would expect it to do (rotating the layer ar... | [
{
"answer_id": 372294,
"author": "e.James",
"author_id": 33686,
"author_profile": "https://Stackoverflow.com/users/33686",
"pm_score": 2,
"selected": false,
"text": "NSView"
},
{
"answer_id": 5082979,
"author": "Arvin",
"author_id": 628864,
"author_profile": "https://... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
372,023 | <p>I want to build a DLL Class Library use COM Interop, with C#, target ANY CPU, and register it as 32-bit and 64-bit interfaces. </p>
<p>I want to be able to, at runtime, display what interface was used - if I am using the 32-bit version, or 64-bit version.</p>
<p>Any ideas?</p>
| [
{
"answer_id": 372065,
"author": "Daniel Earwicker",
"author_id": 27423,
"author_profile": "https://Stackoverflow.com/users/27423",
"pm_score": 4,
"selected": true,
"text": "if (System.IntPtr.Size == 8)\n{\n // 64-bit\n}\nelse\n{\n // 32-bit\n}\n"
},
{
"answer_id": 20379314... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16794/"
] |
372,033 | <p>As the topic suggests I wish to be able to pass table names as parameters using .NET (doesn't matter which language really) and SQL Server.</p>
<p>I know how to do this for values, e.g. <code>command.Parameters.AddWithValue("whatever", whatever)</code> using <code>@whatever</code> in the query to denote the paramet... | [
{
"answer_id": 372053,
"author": "JoshBerke",
"author_id": 26160,
"author_profile": "https://Stackoverflow.com/users/26160",
"pm_score": 2,
"selected": false,
"text": "create procedure myProc\n\n@tableName nvarchar(50)\n\nas\n\nsp_executesql N'select * from ' + @tablename\n"
},
{
... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372033",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35454/"
] |
372,034 | <p>The ListView doesn't seem to support the Scroll event. I need to call a function whenever the list is scrolled; how would I go about that?</p>
| [
{
"answer_id": 375808,
"author": "Brian Rudolph",
"author_id": 33114,
"author_profile": "https://Stackoverflow.com/users/33114",
"pm_score": 4,
"selected": true,
"text": "public class TestListView : System.Windows.Forms.ListView\n{\n private const int WM_HSCROLL = 0x114;\n private ... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372034",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15371/"
] |
372,040 | <p>I have three tables like that:</p>
<p><strong>Articles</strong>
IdArticle
Title
Content</p>
<p><strong>Tags</strong>
IdTag
TagName</p>
<p><strong>ContentTag</strong>
IdContentTag
Idtag
IdContent</p>
<p>When user in my site write an article with adding tags and submit, I want to save it to tables above. </p>
<p>... | [
{
"answer_id": 375808,
"author": "Brian Rudolph",
"author_id": 33114,
"author_profile": "https://Stackoverflow.com/users/33114",
"pm_score": 4,
"selected": true,
"text": "public class TestListView : System.Windows.Forms.ListView\n{\n private const int WM_HSCROLL = 0x114;\n private ... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/439507/"
] |
372,041 | <p>I want to register a specific instance of an object for a type in structuremap, how can I do that?</p>
<p>For example,</p>
<p>When I do:</p>
<pre><code>var myObj = ObjectFactory.GetInstance(typeof(MyAbstractClass));
</code></pre>
<p>i would like it to return a previously constructed concrete class, which i creat... | [
{
"answer_id": 372168,
"author": "Jab",
"author_id": 29676,
"author_profile": "https://Stackoverflow.com/users/29676",
"pm_score": 4,
"selected": true,
"text": " ObjectFactory.Initialize(x =>\n {\n x.ForRequestedType<MyAbstractClass>().TheDefault.IsThis(myClass);... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28543/"
] |
372,042 | <p>What is the difference between abstract class and interface in Python?</p>
| [
{
"answer_id": 372121,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 10,
"selected": true,
"text": "class Abstract1:\n \"\"\"Some description that tells you it's abstract,\n often listing the methods you're expected t... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/461736/"
] |
372,043 | <p>I want to do something sort of like this:</p>
<pre><code>let x = 5
let y = 10
let expr = Console.ReadLine()
expr
</code></pre>
<p>Where one might type <code>"x+y"</code> in the console to store in expr.</p>
<p>How does one evaluate a statement like this in F#?</p>
<p>Ultimately, I want a user to be able to ent... | [
{
"answer_id": 372100,
"author": "nlucaroni",
"author_id": 157,
"author_profile": "https://Stackoverflow.com/users/157",
"pm_score": 3,
"selected": true,
"text": "ocamlmktop"
},
{
"answer_id": 409388,
"author": "Community",
"author_id": -1,
"author_profile": "https://... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42140/"
] |
372,075 | <p>I am trying to understand difference between those two and really need a explanatory simple example for them.</p>
<p>Thanks in advance..</p>
| [
{
"answer_id": 372084,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": true,
"text": "InsertOnSubmit"
},
{
"answer_id": 711148,
"author": "Jim Ierley",
"author_id": 86367,
"author_prof... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44852/"
] |
372,086 | <p>I asked <a href="https://stackoverflow.com/questions/370024/sql-server-2005-public-database-role-doesnt-seem-to-apply">another question</a> about roles and permissions, which mostly served to reveal my ignorance. One of the other outcomes was the advice that one should generally stay away from mucking with permissi... | [
{
"answer_id": 375782,
"author": "gbn",
"author_id": 27535,
"author_profile": "https://Stackoverflow.com/users/27535",
"pm_score": 4,
"selected": true,
"text": "sys.database_permissions"
}
] | 2008/12/16 | [
"https://Stackoverflow.com/questions/372086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26286/"
] |
372,087 | <p>Here is the single line from one of my functions to test if any objects in my array have a given property with a matching value</p>
<pre><code>Return ((From tag In DataCache.Tags Where (tag.FldTag = strtagname) Select tag).Count = 1)
</code></pre>
<p>WHERE....</p>
<p><code>DataCache.Tags</code> is an array of cu... | [
{
"answer_id": 372098,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": false,
"text": "Return DataCache.Tags.Any(Function(tag) tag.FldTag = strtagname)\n"
}
] | 2008/12/16 | [
"https://Stackoverflow.com/questions/372087",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
372,102 | <p>I'm aware that Python 3 fixes a lot of UTF issues, I am not however able to use Python 3, I am using 2.5.1</p>
<p>I'm trying to regex a document but the document has UTF hyphens in it – rather than -. Python can't match these and if I put them in the regex it throws a wobbly.</p>
<p>How can I force Python to use a... | [
{
"answer_id": 372128,
"author": "Patrick McElhaney",
"author_id": 437,
"author_profile": "https://Stackoverflow.com/users/437",
"pm_score": 3,
"selected": false,
"text": "re.compile(\"–\") \n"
},
{
"answer_id": 372193,
"author": "Patrick McElhaney",
"author_id": 437,
... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1384652/"
] |
372,105 | <p>At work today we were trying to come up with any reason you would use <a href="http://www.php.net/strspn" rel="noreferrer">strspn</a>.</p>
<p>I searched google code to see if it's ever been implemented in a useful way and came up blank. I just can't imagine a situation in which I would really need to know the lengt... | [
{
"answer_id": 372130,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 1,
"selected": false,
"text": "strspn()"
},
{
"answer_id": 372144,
"author": "Loki",
"author_id": 39057,
"author_profile": "htt... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29683/"
] |
372,114 | <p>I have a HashMap that I am serializing and deserializing to an Oracle db, in a BLOB data type field.
I want to perform a query, using this field.
Example, the application will make a new HashMap, and have some key-value pairs.
I want to query the db to see if a HashMap with this data already exists in the db.
I do ... | [
{
"answer_id": 372131,
"author": "BQ.",
"author_id": 4632,
"author_profile": "https://Stackoverflow.com/users/4632",
"pm_score": 0,
"selected": false,
"text": "dbms_lob"
},
{
"answer_id": 372215,
"author": "Juliet",
"author_id": 40516,
"author_profile": "https://Stack... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13143/"
] |
372,116 | <p>I currently use this function to wrap executing commands and logging their execution, and return code, and exiting in case of a non-zero return code.</p>
<p>However this is problematic as apparently, it does double interpolation, making commands with single or double quotes in them break the script.</p>
<p>Can you... | [
{
"answer_id": 372120,
"author": "Douglas Leeder",
"author_id": 3978,
"author_profile": "https://Stackoverflow.com/users/3978",
"pm_score": 6,
"selected": true,
"text": "\"$@\"\n"
},
{
"answer_id": 372153,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"autho... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13523/"
] |
372,126 | <p>If <code>UNION ALL</code> is an <em>addition</em> in T-SQL. What is the equivalent of subtraction?</p>
<p>For example, if I have a table <code>PEOPLE</code> and a table <code>EMPLOYEES</code>. And I know if I remove <code>EMPLOYEES</code> records from <code>PEOPLE</code> I will be left with my companies <code>CONTR... | [
{
"answer_id": 372146,
"author": "Greg Dean",
"author_id": 1200558,
"author_profile": "https://Stackoverflow.com/users/1200558",
"pm_score": 2,
"selected": false,
"text": "SELECT * FROM Table1\nWHERE Table1.Key NOT IN (SELECT Table2.Key FROM Table2 WHERE Table2.Key IS NOT NULL)\n"
},
... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372126",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36590/"
] |
372,140 | <p>I am building a C# ActiveX DLL... do I use REGASM or REGSVR32 to register it?</p>
<p>How do I register the 64-bit interface vs the 32-bit interface?</p>
| [
{
"answer_id": 372197,
"author": "Kev",
"author_id": 419,
"author_profile": "https://Stackoverflow.com/users/419",
"pm_score": 6,
"selected": true,
"text": "regasm.exe"
},
{
"answer_id": 7819093,
"author": "eason",
"author_id": 612473,
"author_profile": "https://Stack... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16794/"
] |
372,148 | <p>I'd like to use regex with Java.</p>
<p>What I want to do is find the first integer in a string.</p>
<p>Example:</p>
<pre><code>String = "the 14 dogs ate 12 bones"
</code></pre>
<p>Would return 14.</p>
<pre><code>String = "djakld;asjl14ajdka;sdj"
</code></pre>
<p>Would also return 14.</p>
<p>This is what I h... | [
{
"answer_id": 372154,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 7,
"selected": true,
"text": "\"\\\\d+\"\n"
},
{
"answer_id": 1609659,
"author": "Chris Smith",
"author_id": 194872,
"author_profile": "h... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2510/"
] |
372,149 | <p>Any thoughts on why I might be getting tons of "hangs" when trying to download a file via HTTP, based on the following?</p>
<ul>
<li>Server is IIS 6</li>
<li>File being downloaded is a binary file, rather than a web page</li>
<li>Several clients hang, including TrueUpdate and FlexNet web updating packages, as well ... | [
{
"answer_id": 20632109,
"author": "Emiel",
"author_id": 3110830,
"author_profile": "https://Stackoverflow.com/users/3110830",
"pm_score": 1,
"selected": false,
"text": "//curl_setopt($ch, CURLOPT_TIMEOUT, 4); // times out after 4s\ncurl_setopt($ch, CURLOPT_TIMEOUT, 60); // times out aft... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22357/"
] |
372,159 | <p>AFAIK, you never need to specify the protocol in an onclick:</p>
<p><code>onclick="javascript:myFunction()"</code> <strong>Bad</strong></p>
<p><code>onclick="myFunction()"</code> <strong>Good</strong></p>
<p>Today I noticed in <a href="http://web.archive.org/web/20080428095515/http://www.google.com/support/analyt... | [
{
"answer_id": 372253,
"author": "jishi",
"author_id": 33663,
"author_profile": "https://Stackoverflow.com/users/33663",
"pm_score": 3,
"selected": false,
"text": "javascript:"
},
{
"answer_id": 372279,
"author": "Ates Goral",
"author_id": 23501,
"author_profile": "ht... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12579/"
] |
372,162 | <p>I am trying to reduce the load on my webservers by adding an "Image server" (a dedicated server for handling image requests), and redirecting all requests for .gif,.jpg,.png etc., to it.</p>
<p>My question is, what is the best way to handle the redirection?</p>
<ul>
<li>At the firewall level? (can I do this using... | [
{
"answer_id": 372238,
"author": "Ian Boyd",
"author_id": 12597,
"author_profile": "https://Stackoverflow.com/users/12597",
"pm_score": 1,
"selected": false,
"text": "<IMG src=\"images/Brett.jpg\">\n"
}
] | 2008/12/16 | [
"https://Stackoverflow.com/questions/372162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3764/"
] |
372,186 | <p>Can you show sample code for reading a drive label or volume name in .NET? I get the sense this requires WMI, but I am loathe to "drop-down" into WMI because it is like dropping down into a string-based SQL query in the sense that certain objects may not exist on certain versions of OSes or the user may not have the... | [
{
"answer_id": 372201,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 5,
"selected": true,
"text": "var labels = from drive in DriveInfo.GetDrives()\n select drive.VolumeLabel\n"
},
{
"answer_id": 37... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/470/"
] |
372,202 | <p>I have been doing a lot of research on this lately, but have yet to get a really good solid answer. I read somewhere that a new Function() object is created when the JavaScript engine comes across a function statement, which would lead me to believe it could be a child of an object (thus becoming one). So I emailed ... | [
{
"answer_id": 372228,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 2,
"selected": false,
"text": "window"
},
{
"answer_id": 372243,
"author": "Kenan Banks",
"author_id": 43089,
"author_profile": "https:/... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372202",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
372,218 | <p>I would like to insert the current Subversion revision number (as reported by <code>svnversion</code>) into my Xcode project. I managed to insert the revision number into the <code>Info.plist</code> in the <code>$PROJECT_DIR</code>, but this is not a good solution, since the file is versioned. I tried to insert the ... | [
{
"answer_id": 414792,
"author": "Brad Larson",
"author_id": 19679,
"author_profile": "https://Stackoverflow.com/users/19679",
"pm_score": 3,
"selected": false,
"text": "REV=`/usr/bin/svnversion -nc ${PROJECT_DIR} | /usr/bin/sed -e 's/^[^:]*://;s/[A-Za-z]//'`\necho \"#define kRevisionNum... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372218",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17279/"
] |
372,220 | <p>I have an executable that runs instantly from a command prompt, but does not appear to ever return when spawned using System.Diagnostics.Process:</p>
<p>Basicly, I'm writing a .NET library wrapper around the Accurev CLI interface, so each method call spawns the CLI process to execute a command.</p>
<p>This works g... | [
{
"answer_id": 372304,
"author": "FryGuy",
"author_id": 28776,
"author_profile": "https://Stackoverflow.com/users/28776",
"pm_score": -1,
"selected": false,
"text": "while (!p.WaitForExit(100))\n Console.Write(\".\");\n"
}
] | 2008/12/16 | [
"https://Stackoverflow.com/questions/372220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] |
372,224 | <p>I'm having some trouble with this code:</p>
<p>CSS: </p>
<pre><code>div#header
{
width: 100%;
background-color: #252525;
padding: 10px 0px 10px 15px;
position: relative;
}
div#login
{
float: right;
position: absolute;
right: 10px;
top: 5px;
}
</code></pre>
<p>HTML:</p>
<pre><code... | [
{
"answer_id": 372272,
"author": "fasih.rana",
"author_id": 46024,
"author_profile": "https://Stackoverflow.com/users/46024",
"pm_score": 1,
"selected": false,
"text": "div#header { width: 100%; height:15px; background-color: #252525; padding: 10px 0px 10px; position: relative; }\n"
}
... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32432/"
] |
372,230 | <p>I have a read-only database that has cached information which is used to display pages on the site. There are processes that run to generate the database, and those run on a different server. When I need to update the live database, I restore this database to the live server, to a new name and file. Then I drop the ... | [
{
"answer_id": 372322,
"author": "Michael Sharek",
"author_id": 1958,
"author_profile": "https://Stackoverflow.com/users/1958",
"pm_score": 2,
"selected": true,
"text": "ALTER DATABASE name SET OFFLINE\n"
}
] | 2008/12/16 | [
"https://Stackoverflow.com/questions/372230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13855/"
] |
372,246 | <p>How can I get a query which uses an OR in the WHERE clause to split itself into two queries with a UNION during compilation? If I manually rewrite it, the query using the UNION is 100x faster than the single query, because it can effectively use different indices in each query of the union. Is there any way I can ... | [
{
"answer_id": 372352,
"author": "Chaowlert Chaisrichalermpol",
"author_id": 2398110,
"author_profile": "https://Stackoverflow.com/users/2398110",
"pm_score": 3,
"selected": true,
"text": "select columnlist\nfrom table1\njoin table2 on joincond2\njoin table3 on joincond3\n"
}
] | 2008/12/16 | [
"https://Stackoverflow.com/questions/372246",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7453/"
] |
372,250 | <p>I think there must be something subtle going on here that I don't know about. Consider the following:</p>
<pre><code>public class Foo<T> {
private T[] a = (T[]) new Object[5];
public Foo() {
// Add some elements to a
}
public T[] getA() {
return a;
}
}
</code></pre>
<p>Suppose that your m... | [
{
"answer_id": 372258,
"author": "matt b",
"author_id": 4249,
"author_profile": "https://Stackoverflow.com/users/4249",
"pm_score": 5,
"selected": true,
"text": "Foo<Double> f = new Foo<Double>();\n"
},
{
"answer_id": 372512,
"author": "ntownsend",
"author_id": 2200391,
... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2200391/"
] |
372,268 | <p>I'm trying to learn how to do passphrase-based encryption with Java. I'm finding several examples online, but none (yet) on Stack Overflow. The examples are a little light on explanation for me, particularly regarding algorithm selection. There seems to be a lot of passing strings around to say what algorithms to... | [
{
"answer_id": 372690,
"author": "Jim Barrows",
"author_id": 45108,
"author_profile": "https://Stackoverflow.com/users/45108",
"pm_score": 2,
"selected": false,
"text": "Security.addProvider(new BouncyCastleProvider());\n"
},
{
"answer_id": 1250883,
"author": "Cheeso",
"a... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18103/"
] |
372,282 | <p>Is it good practice to have more than one <code>try{} catch{}</code> statement per method?</p>
| [
{
"answer_id": 372290,
"author": "Bullines",
"author_id": 27870,
"author_profile": "https://Stackoverflow.com/users/27870",
"pm_score": 3,
"selected": false,
"text": "try\n{\n // a bunch of risky code\n}\ncatch (SpecificException1 ex1)\n{\n // handle Specific Exception 1\n}\ncatch... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46780/"
] |
372,309 | <p>Is there a way to get notification of date change in c#?</p>
<p>I have a requirement where I have to do something when the system date is changed.</p>
<p>I found that SystemsEvent.TimeChanged is an event you can hook into, however it is only fired only when user has changed the time.</p>
| [
{
"answer_id": 376356,
"author": "Brian Rudolph",
"author_id": 33114,
"author_profile": "https://Stackoverflow.com/users/33114",
"pm_score": 1,
"selected": false,
"text": " static System.Diagnostics.EventLog log = new EventLog(\"System\");\n\n public Form1()\n {\n log.Ent... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45648/"
] |
372,316 | <p>I am working with PHP and I am wondering how bad practise it is to combine lots of functions into a class. I am aware of it's not the purpose of classes, but the reason why I would do this is to provide a namespace. How big impact does it make to initiate let's say 10 classes at the execution of a PHP script instead... | [
{
"answer_id": 372359,
"author": "Hrvoje Prgeša",
"author_id": 45875,
"author_profile": "https://Stackoverflow.com/users/45875",
"pm_score": 3,
"selected": false,
"text": "<?php\nclass Foo {\n public static function aStaticMethod() {\n // ...\n }\n}\n\nFoo::aStaticMethod();\n?>... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
372,317 | <p>I have a dataprovider and a filterfunction for my array that's assigned to my dataprovider.</p>
<p>How can I get a list of the properties that are in each row of the dataprovider (item.data) as it gets passed to the filterfunction?</p>
<p>For instance, if my object contained:</p>
<ul>
<li>Object
<ul>
<li>name</l... | [
{
"answer_id": 372427,
"author": "Herms",
"author_id": 1409,
"author_profile": "https://Stackoverflow.com/users/1409",
"pm_score": 7,
"selected": true,
"text": "var obj:Object; // I'm assuming this is your object\n\nfor(var id:String in obj) {\n var value:Object = obj[id];\n\n trace(id... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46782/"
] |
372,321 | <p>Should I use them as separate releases? Do I check them back into trunk or branches? Is this all in the red book and I've just wasted your time?</p>
| [
{
"answer_id": 372429,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 4,
"selected": false,
"text": "svn copy"
},
{
"answer_id": 8826704,
"author": "altern",
"author_id": 50962,
"author_profile": "https://Sta... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7853/"
] |
372,325 | <p>I have this line of code for page load:</p>
<pre><code>if ($("input").is(':checked')) {
</code></pre>
<p>and it works fine when the radio button input is checked. However, I want the opposite. Something along the lines of </p>
<pre><code>if ($("input").not(.is(':checked'))) {
</code></pre>
<p>so that my if sta... | [
{
"answer_id": 372364,
"author": "singpolyma",
"author_id": 8611,
"author_profile": "https://Stackoverflow.com/users/8611",
"pm_score": 7,
"selected": true,
"text": "if ( ! $(\"input\").is(':checked') )\n"
},
{
"answer_id": 373947,
"author": "Klemen Slavič",
"author_id": ... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16508/"
] |
372,327 | <p>I'm trying to consume Sharepoint webservices with ruby. I've basically given up trying to authenticate with NTLM and temporarily changed the Sharepoint server to use basic authentication. I've been successful getting a WSDL using soap4r but still cannot authenticate when attempting to use an actual web service cal... | [
{
"answer_id": 1032955,
"author": "Arthur",
"author_id": 127608,
"author_profile": "https://Stackoverflow.com/users/127608",
"pm_score": 1,
"selected": false,
"text": "cscript adsutil.vbs set w3svc/1/NTAuthenticationProviders \"Negotiate,NTLM\"\n"
},
{
"answer_id": 5344338,
"... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372327",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1766771/"
] |
372,334 | <p>Is there a pure .net way to do this reliably? The solutions I keep finding either require guessing or they have a solution that is specific to a database provider. Usually querying some internal system table to get this information.</p>
| [
{
"answer_id": 372349,
"author": "Igor Zelaya",
"author_id": 22769,
"author_profile": "https://Stackoverflow.com/users/22769",
"pm_score": 4,
"selected": true,
"text": "string[] GetPrimaryKeys(SqlConnection connection, string tableName)\n{\n using(SqlDataAdapter adapter = new SqlDataA... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7176/"
] |
372,354 | <p>Does string immutability work by statement, or by strings within a statement? </p>
<p>For example, I understand that the following code will allocate two strings on the heap.</p>
<pre><code>string s = "hello ";
s += "world!";
</code></pre>
<p>"hello" will remain on the heap until garbage collected; and s now refe... | [
{
"answer_id": 372363,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 5,
"selected": true,
"text": ".method private hidebysig static void Main() cil managed\n{\n .entrypoint\n .maxstack 1\n .locals init (\n ... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37064/"
] |
372,365 | <p>I am using xmlrpclib.ServerProxy to make RPC calls to a remote server. If there is not a network connection to the server it takes the default 10 seconds to return a socket.gaierror to my program. </p>
<p>This is annoying when doing development without a network connection, or if the remote server is down. Is there... | [
{
"answer_id": 375000,
"author": "monkut",
"author_id": 24718,
"author_profile": "https://Stackoverflow.com/users/24718",
"pm_score": 1,
"selected": false,
"text": "def timeout(func, args=(), kwargs={}, timeout_duration=1, default=None):\n import threading\n class InterruptableThre... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22306/"
] |
372,370 | <p>How do I take a string in Perl and split it up into an array with entries two characters long each?</p>
<p>I attempted this:</p>
<pre><code>@array = split(/../, $string);
</code></pre>
<p>but did not get the expected results.</p>
<p>Ultimately I want to turn something like this</p>
<pre><code>F53CBBA476
</code>... | [
{
"answer_id": 372397,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 7,
"selected": true,
"text": "@array = ( $string =~ m/../g );\n"
},
{
"answer_id": 372762,
"author": "mat",
"author_id": 42083,
"... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23/"
] |
372,382 | <p>I have a simple extension method on the int type so I can do the following:</p>
<pre><code>string timeLength = 61.ToTime() // timeLength will be "1:01"
</code></pre>
<p>This works great in code, but I want to use this extension method in a Repeater Template. When databinding I want to do the following:</p>
<pre><... | [
{
"answer_id": 372461,
"author": "Scott Muc",
"author_id": 1894,
"author_profile": "https://Stackoverflow.com/users/1894",
"pm_score": 4,
"selected": true,
"text": " <system.codedom>\n <compilers>\n <compiler language=\"c#;cs;csharp\" extension=\".cs\" type=\"Microsoft.CSharp.CS... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372382",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1894/"
] |
372,383 | <p>I have a web service (WCF or ASMX doesn't matter)... I have made a Console application, right-clicked, added service referrence. So far, so good.</p>
<p>However, I cannot for the life of me pass "security" credentials across to my service. This is my client code:</p>
<pre><code>var client = new MyClient();
client... | [
{
"answer_id": 404710,
"author": "Yossi Dahan",
"author_id": 43541,
"author_profile": "https://Stackoverflow.com/users/43541",
"pm_score": 0,
"selected": false,
"text": "ServiceSecurityContext.Current.PrimaryIdentity"
},
{
"answer_id": 897399,
"author": "Community",
"auth... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11917/"
] |
372,399 | <p>I have 3 tables, foo, foo2bar, and bar. foo2bar is a many to many map between foo and bar. Here are the contents.</p>
<pre><code>select * from foo
+------+
| fid |
+------+
| 1 |
| 2 |
| 3 |
| 4 |
+------+
select * from foo2bar
+------+------+
| fid | bid |
+------+------+
| 1 | 1 |
| 1 |... | [
{
"answer_id": 372415,
"author": "BCS",
"author_id": 1343,
"author_profile": "https://Stackoverflow.com/users/1343",
"pm_score": 3,
"selected": false,
"text": "SELECT * FROM\n foo LEFT JOIN\n (\n Foo2bar JOIN bar\n ON foo2bar.bid = bar.bid AND zid = 30\n ... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21838/"
] |
372,428 | <p>I'm working on a very simple game (essentially an ice sliding puzzle), for now the whole things in one file and the only level is completely blank of any form of obstacle. It throws up a few errors. My current annoyance is an expected primary expression error, can anyone tell me how to fix it (it throws up at line 9... | [
{
"answer_id": 372457,
"author": "Martin York",
"author_id": 14065,
"author_profile": "https://Stackoverflow.com/users/14065",
"pm_score": 2,
"selected": false,
"text": "for(<init>;<test>;<post>)\n{\n}\n"
},
{
"answer_id": 372459,
"author": "pyon",
"author_id": 46571,
... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33061/"
] |
372,434 | <p>I'm struggling with the following problem. I use the <a href="http://docs.jquery.com/Plugins/Autocomplete/autocomplete" rel="noreferrer">jQuery autocomplete plugin</a> to get a list of suggested values from the server. The list would look like this:</p>
<pre>
Username1|UserId1
Username2|UserId2
</pre>
<p>So if I s... | [
{
"answer_id": 372858,
"author": "davidavr",
"author_id": 8247,
"author_profile": "https://Stackoverflow.com/users/8247",
"pm_score": 4,
"selected": true,
"text": "result"
}
] | 2008/12/16 | [
"https://Stackoverflow.com/questions/372434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18771/"
] |
372,446 | <p>I'm overthinking this. I have colors stored in a database table, and I want to set the background of specific cells in a table to those colors. In other words:</p>
<pre><code><table>
<tr>
<td ???set color here???>
...content...
</td>
<td ???next col... | [
{
"answer_id": 372479,
"author": "Diodeus - James MacFarlane",
"author_id": 12579,
"author_profile": "https://Stackoverflow.com/users/12579",
"pm_score": 0,
"selected": false,
"text": ".dark {\n background-color:[database field]\n}\n\n<td class='dark'></td>\n"
},
{
"answer_id":... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372446",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23935/"
] |
372,462 | <p>I've setup a reverse ssh tunnel, using PuTTY, to allow me to VNC into a home computer without having to enable NAT port forwarding. Works great, no problem.</p>
<p>I would like to set the tunnel up as a "persistent service" that will connect on boot up and reconnect when dropped. PS. this is on Windows.</p>
<p>E... | [
{
"answer_id": 13023780,
"author": "Simon B.",
"author_id": 296639,
"author_profile": "https://Stackoverflow.com/users/296639",
"pm_score": 1,
"selected": false,
"text": " :: This is a batch file. Save with file name: plink_forever.bat\n :restart\n plink saved_session_name\n goto res... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372462",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34888/"
] |
372,465 | <p>How would I only allow users authenticated via Python code to access certain files on the server?</p>
<p>For instance, say I have <code>/static/book.txt</code> which I want to protect. When a user accesses <code>/some/path/that/validates/him</code>, a Python script deems him worthy of accessing <code>/static/book.t... | [
{
"answer_id": 13023780,
"author": "Simon B.",
"author_id": 296639,
"author_profile": "https://Stackoverflow.com/users/296639",
"pm_score": 1,
"selected": false,
"text": " :: This is a batch file. Save with file name: plink_forever.bat\n :restart\n plink saved_session_name\n goto res... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
372,474 | <p>Using Visual Studio 2005 with default install of Crystal Reports.</p>
<p>When I create a report, Crystal asks for the database, and I give it my development db. In the app, I create a DataTable and pass it to the report, which is then handed to the CR Viewer. At runtime, neither the report object, nor the viewer ne... | [
{
"answer_id": 23648885,
"author": "E R",
"author_id": 3493685,
"author_profile": "https://Stackoverflow.com/users/3493685",
"pm_score": 0,
"selected": false,
"text": "'Build a SQL statement to query for the authors table \n\nDim sqlString As String = \"SELECT * FROM authors\"\n\n'Retrie... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19267/"
] |
372,475 | <p>My requirement is to develop a page with 4 sections, which cannot have a postback.
Section 1. Content which can be changed on user click
Section 2. List of users viewing the page online (Auto update when user leaves or visits the page )
Section 3. Chat for the users online
Section 4. Rating the content and other fu... | [
{
"answer_id": 23648885,
"author": "E R",
"author_id": 3493685,
"author_profile": "https://Stackoverflow.com/users/3493685",
"pm_score": 0,
"selected": false,
"text": "'Build a SQL statement to query for the authors table \n\nDim sqlString As String = \"SELECT * FROM authors\"\n\n'Retrie... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46795/"
] |
372,484 | <p>I'm writing cross platform C++ code (Windows, Mac). Is there a way to check how much memory is in use by the current process? A very contrived snippet to illustrate:</p>
<pre><code>unsigned long m0 = GetMemoryInUse();
char *p = new char[ random_number ];
unsigned long m1 = GetMemoryInUse();
printf( "%d bytes used\n... | [
{
"answer_id": 372525,
"author": "Larry Gritz",
"author_id": 3832,
"author_profile": "https://Stackoverflow.com/users/3832",
"pm_score": 4,
"selected": false,
"text": "#ifdef __linux__\n# include <sys/sysinfo.h>\n#endif\n\n#ifdef __APPLE__\n# include <mach/task.h>\n# include <mach/mach_i... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4065/"
] |
372,506 | <p>In Git, how could I search for a file or directory by path across a number of branches?</p>
<p>I've written something in a branch, but I don't remember which one. Now I need to find it.</p>
<p><strong>Clarification</strong>: I'm looking for a file which I created on one of my branches. I'd like to find it by pa... | [
{
"answer_id": 372654,
"author": "ididak",
"author_id": 28888,
"author_profile": "https://Stackoverflow.com/users/28888",
"pm_score": 6,
"selected": false,
"text": "for branch in `git for-each-ref --format=\"%(refname)\" refs/heads`; do\n echo $branch :; git ls-tree -r --name-only $bran... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4937/"
] |
372,547 | <p>A recent <a href="https://stackoverflow.com/questions/372354/string-immutability">question about string literals</a> in .NET caught my eye. I know that string literals are <a href="http://en.wikipedia.org/wiki/String_intern_pool" rel="noreferrer">interned</a> so that different strings with the same value refer to th... | [
{
"answer_id": 372559,
"author": "Brian Rasmussen",
"author_id": 38206,
"author_profile": "https://Stackoverflow.com/users/38206",
"pm_score": 8,
"selected": true,
"text": " class SomeType {\n public void Foo() {\n string s = \"hello world\";\n Console.WriteLine(s)... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3848/"
] |
372,557 | <p>Please bear with me: this isn't a language debate or a flame. It's a real request for opinions.</p>
<p>Occasionally, I have to help educate a traditional text coder in how to think in LabVIEW (LV). Often during this process, I get to hear about how LV sucks. Rarely is this insight accompanied by rational observa... | [
{
"answer_id": 433449,
"author": "CharlesB",
"author_id": 11343,
"author_profile": "https://Stackoverflow.com/users/11343",
"pm_score": 4,
"selected": false,
"text": "if error return; else do stuff"
}
] | 2008/12/16 | [
"https://Stackoverflow.com/questions/372557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3696/"
] |
372,561 | <p>I have an app that is a combination of asp/asp.net, and both sides depend on the same cookies (they are in the same domain). There are some values in the cookies that I don't want going to the client anymore due to security concerns. What I was hoping to accomplish is to take out these values so they no longer go ... | [
{
"answer_id": 433449,
"author": "CharlesB",
"author_id": 11343,
"author_profile": "https://Stackoverflow.com/users/11343",
"pm_score": 4,
"selected": false,
"text": "if error return; else do stuff"
}
] | 2008/12/16 | [
"https://Stackoverflow.com/questions/372561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30488/"
] |
372,569 | <p>I'm just getting started/familar with Subversion and was wondering
which protocol gives the best performance file:// or svn://, when accessing a Subversion repository over the network? If we don't use the svn:// protocol, will be missing out on any features that we couldn't mitgate using the file:// protocol? We'r... | [
{
"answer_id": 390069,
"author": "Mike Miller",
"author_id": 16138,
"author_profile": "https://Stackoverflow.com/users/16138",
"pm_score": 1,
"selected": false,
"text": "svn relocate"
}
] | 2008/12/16 | [
"https://Stackoverflow.com/questions/372569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46809/"
] |
372,572 | <p>A requirement for my application is if it looses database connectivity then it must pop up a big modal "No Connection. Try again later" dialog blocking all user interaction until such time that connectivity is regained.</p>
<p>I achieve this by at the start of the application starting an instance of a DeviceMonito... | [
{
"answer_id": 372574,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 1,
"selected": false,
"text": "someControl.Invoke((Action)delegate {\n MessageBox.Show(someControl, \"Foo\");\n // could also show a form here... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5056/"
] |
372,580 | <p>Visual Studio syntax highlighting colors this word blue as if it were a keyword or reserved word. I tried searching online for it but the word "array" throws the search off, I get mostly pages explaining what an array is. What is it used for?</p>
| [
{
"answer_id": 25519643,
"author": "phuclv",
"author_id": 995714,
"author_profile": "https://Stackoverflow.com/users/995714",
"pm_score": 0,
"selected": false,
"text": "__int64"
}
] | 2008/12/16 | [
"https://Stackoverflow.com/questions/372580",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46811/"
] |
372,581 | <p>When I try to programmatically access a Word object model, I get an error saying no document is active. This appears to be because I am loading the document as not visible using Word automation, and I have to keep it invisible.</p>
<p>How would I code the open macro so that it does nothing in this case? </p>
<p>... | [
{
"answer_id": 372677,
"author": "Dirk Vollmar",
"author_id": 40347,
"author_profile": "https://Stackoverflow.com/users/40347",
"pm_score": 1,
"selected": false,
"text": "dim word as new Word.Application\ndim doc as Word.Document\n\ndoc = word.Documents.Open(fileName)\nMsgBox doc.FullNam... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4066/"
] |
372,589 | <p>I was wondering if something exists (in Java world) able to take an snapshot of the JVM current state with the following features:</p>
<ul>
<li>Do it while an exception is being thrown.</li>
<li>Capture local variables, method's arguments, etc.</li>
<li>Put it in a handy file which can be used to extract or reprodu... | [
{
"answer_id": 378902,
"author": "Dario",
"author_id": 11583,
"author_profile": "https://Stackoverflow.com/users/11583",
"pm_score": 3,
"selected": true,
"text": "ant"
}
] | 2008/12/16 | [
"https://Stackoverflow.com/questions/372589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11583/"
] |
372,601 | <p>I'm using a <code>DateTime</code> in C# to display times. What date portion does everyone use when constructing a time?</p>
<p>E.g. the following is not valid because there is no zero-th month or zero-th day:</p>
<pre><code>// 4:37:58 PM
DateTime time = new DateTime(0, 0, 0, 16, 47, 58);
</code></pre>
<p>Do I use... | [
{
"answer_id": 372617,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 2,
"selected": false,
"text": "DateTime.Now.TimeOfDay"
},
{
"answer_id": 372629,
"author": "Joel Coehoorn",
"author_id": 3043,
"... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
372,604 | <p>what is the code to disable an INPUT text box for HTML?</p>
<p>Thanks</p>
| [
{
"answer_id": 372615,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 7,
"selected": true,
"text": "<input type=\"text\" disabled=\"disabled\" />\n"
},
{
"answer_id": 372616,
"author": "fasih.rana",
"author_id"... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44973/"
] |
372,631 | <p>I'm looking for suggestions on how to inject runtime dependencies into JPA entities retrieved from Hibernate. My problem is essentially this:</p>
<p>I have a number of different subclasses of a Transaction object. Each Transaction subclass has different behavior when it is executed, and requires a different set of ... | [
{
"answer_id": 373381,
"author": "SamBeran",
"author_id": 43379,
"author_profile": "https://Stackoverflow.com/users/43379",
"pm_score": 4,
"selected": true,
"text": "class BusinessLogic {\n @Inject public EntityManager em;\n\n @Transactional\n publc void doSomething() {\n ... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/390636/"
] |
372,652 | <p>I have recently learned the Ruby programming language, and all in all it is a good language. But I was quite surprised to see that it was not as simple as I had expected. More precisely, the "rule of least-surprise" did not seem very respected to me (of course this is quite subjective). For example:</p>
<pre><co... | [
{
"answer_id": 372669,
"author": "John Topley",
"author_id": 1450,
"author_profile": "https://Stackoverflow.com/users/1450",
"pm_score": 2,
"selected": false,
"text": "\\n"
},
{
"answer_id": 372727,
"author": "Dan Vinton",
"author_id": 21849,
"author_profile": "https:... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38626/"
] |
372,655 | <p>Is it possible to use 2 CSS classes that have the same name for the selectors, etc. in the same HTML file? If so, how do you differentiate between the two when styling elements?</p>
| [
{
"answer_id": 372662,
"author": "scunliffe",
"author_id": 6144,
"author_profile": "https://Stackoverflow.com/users/6144",
"pm_score": 0,
"selected": false,
"text": "<style>\n .foo{\n border:1px solid blue;\n color:red;\n }\n .foo{\n border:4px solid orange;\n }\n</style>\n<... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33690/"
] |
372,660 | <p>Considering you have an MVVM Architecture in WPF like <a href="http://joshsmithonwpf.wordpress.com/2008/11/14/using-a-viewmodel-to-provide-meaningful-validation-error-messages/" rel="nofollow noreferrer">Josh Smith's examples</a></p>
<p>How would you implement two properties 'synced' that update eachother? I have a... | [
{
"answer_id": 372682,
"author": "Szymon Rozga",
"author_id": 7583,
"author_profile": "https://Stackoverflow.com/users/7583",
"pm_score": 3,
"selected": true,
"text": " public class Sample : INotifyPropertyChanged\n {\n private const double Multiplier = 1.21;\n #regio... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26579/"
] |
372,664 | <p>I have an html table which i bind data dynamically on the server side in C#.. The problem is that I have a search button that calls a search on the DB(in a search method on the server side) based on the information from the client page. this search method loads the info from the DB and updates the html table(this is... | [
{
"answer_id": 372682,
"author": "Szymon Rozga",
"author_id": 7583,
"author_profile": "https://Stackoverflow.com/users/7583",
"pm_score": 3,
"selected": true,
"text": " public class Sample : INotifyPropertyChanged\n {\n private const double Multiplier = 1.21;\n #regio... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39809/"
] |
372,665 | <p>Given a class like this:</p>
<pre><code>class Foo {
public:
Foo(int);
Foo(const Foo&);
Foo& operator=(int);
private:
// ...
};
</code></pre>
<p>Are these two lines exactly equivalent, or is there a subtle difference between them?</p>
<pre><code>Foo f(42);
Foo f = 42;
</code></pre>
<hr... | [
{
"answer_id": 372673,
"author": "fasih.rana",
"author_id": 46024,
"author_profile": "https://Stackoverflow.com/users/46024",
"pm_score": 4,
"selected": true,
"text": "Foo f = 42;\n"
},
{
"answer_id": 372723,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"au... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1175/"
] |
372,686 | <p>I understand that I can specify system properties to Tomcat by passing arguments with the -D parameter, for example "<strong>-Dmy.prop=value</strong>".</p>
<p>I am wondering if there is a cleaner way of doing this by specifying the property values in the context.xml file or some other tomcat configuration file. I w... | [
{
"answer_id": 376827,
"author": "cliff.meyers",
"author_id": 41754,
"author_profile": "https://Stackoverflow.com/users/41754",
"pm_score": 5,
"selected": true,
"text": "<env-entry>\n <env-entry-name>SMTP_PASSWORD</env-entry-name>\n <env-entry-type>java.lang.String</env-entry-type>... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45856/"
] |
372,693 | <p>I have a configuration file where a developer can specify a text color by passing in a string:</p>
<pre><code> <text value="Hello, World" color="Red"/>
</code></pre>
<p>Rather than have a gigantic switch statement look for all of the possible colors, it'd be nice to just use the properties in the class Syste... | [
{
"answer_id": 372704,
"author": "leppie",
"author_id": 15541,
"author_profile": "https://Stackoverflow.com/users/15541",
"pm_score": -1,
"selected": false,
"text": "TypeConverter"
},
{
"answer_id": 372707,
"author": "Clinton Pierce",
"author_id": 8173,
"author_profil... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8173/"
] |
372,695 | <p>Does anyone know if there's a de-facto standard (i.e., TR1 or Boost) C++ function object for accessing the elements of a std::pair? Twice in the past 24 hours I've wished I had something like the <code>keys</code> function for Perl hashes. For example, it would be nice to run std::transform on a std::map object an... | [
{
"answer_id": 372720,
"author": "Head Geek",
"author_id": 12193,
"author_profile": "https://Stackoverflow.com/users/12193",
"pm_score": 2,
"selected": false,
"text": "boost::tie"
},
{
"answer_id": 372922,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"autho... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46821/"
] |
372,696 | <p>When I inserted text from one SQL Server VARCHAR(MAX) field in one database to another, I get question mark symbols - "?" - in the target database (in addition to line feeds) whenever there are line feeds in the source database.</p>
<p>Text in the target database looks like this:</p>
<p>Line one.?<br>
?<br>
Line t... | [
{
"answer_id": 372720,
"author": "Head Geek",
"author_id": 12193,
"author_profile": "https://Stackoverflow.com/users/12193",
"pm_score": 2,
"selected": false,
"text": "boost::tie"
},
{
"answer_id": 372922,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"autho... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
372,700 | <p>I notice that get/set is not the c++ way as far as I can tell by looking at boost/stl, and even reading the writings of some of the top c++ experts.</p>
<p>Does anyone use get/set in their c++ class design, and can someone suggest a rule of thumb on where if at all this paradigm belongs in the c++ world?</p>
<p>It... | [
{
"answer_id": 372740,
"author": "Evan Teran",
"author_id": 13430,
"author_profile": "https://Stackoverflow.com/users/13430",
"pm_score": 1,
"selected": false,
"text": "int x = o->x() // getter\no->setX(5); // setter\n"
},
{
"answer_id": 372800,
"author": "pyon",
"author_... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372700",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44996/"
] |
372,703 | <p>I would like to store log4net config data in my application.config file. Based on my understanding of the documentation, I did the following:</p>
<ol>
<li><p>Add a reference to log4net.dll</p></li>
<li><p>Add the following line in AssemblyInfo.cs: </p>
<pre><code>[assembly: log4net.Config.XmlConfigurator(Watch = ... | [
{
"answer_id": 372725,
"author": "Joachim Kerschbaumer",
"author_id": 20227,
"author_profile": "https://Stackoverflow.com/users/20227",
"pm_score": 2,
"selected": false,
"text": "configsection"
},
{
"answer_id": 372739,
"author": "Charles Bretana",
"author_id": 32632,
... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29726/"
] |
372,714 | <p>So I have this code for these Constructors of the Weapon class:</p>
<pre><code>Weapon(const WeaponsDB * wepDB);
Weapon(const WeaponsDB * wepDB_, int * weaponlist);
~Weapon(void);
</code></pre>
<p>And I keep getting an error:</p>
<pre><code>1>c:\users\owner\desktop\bosconian\code\bosconian\weapon.h(20) : erro... | [
{
"answer_id": 372756,
"author": "Ana Betts",
"author_id": 5728,
"author_profile": "https://Stackoverflow.com/users/5728",
"pm_score": 5,
"selected": true,
"text": "#ifndef Weapon\n#define Weapon\n"
},
{
"answer_id": 372788,
"author": "Stephen C. Steel",
"author_id": 1913... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39189/"
] |
372,715 | <p>Ok, this is not a CSS issue, I removed all styling from the page. This is a calendar extender that has a target id of a textbox and the popupbutton is the same text box. </p>
<p>The month name is displaying lower than the
days, so it's not usable. </p>
<p>it's fine in IE. </p>
<p>I am using Safari in Windows Vis... | [
{
"answer_id": 511465,
"author": "JC.",
"author_id": 54604,
"author_profile": "https://Stackoverflow.com/users/54604",
"pm_score": 1,
"selected": false,
"text": "<browsers>\n <browser refID=\"safari1plus\">\n <controlAdapters>\n <adapter controlType=\"System.Web.UI.W... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4140/"
] |
372,718 | <p>I want to prevent the user from maximizing the Windows Form to full screen so I have disabled the Maximize button. However, I want to be able to have the user 'restore' the Form. When they click the Restore button I want it to show a different, smaller, minified, form, which will show them a maximize button which wi... | [
{
"answer_id": 24372822,
"author": "Victor Stoddard",
"author_id": 1090802,
"author_profile": "https://Stackoverflow.com/users/1090802",
"pm_score": 0,
"selected": false,
"text": "Resize"
}
] | 2008/12/16 | [
"https://Stackoverflow.com/questions/372718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12243/"
] |
372,721 | <p>the homework: <a href="http://www.cs.rit.edu/~waw/networks/prob1.082.html" rel="nofollow noreferrer">http://www.cs.rit.edu/~waw/networks/prob1.082.html</a></p>
<p>Ok, I am still confused why this question was asked for my data communications and networks class, but here is the question from my homework:</p>
<block... | [
{
"answer_id": 372763,
"author": "Leon Timmermans",
"author_id": 4727,
"author_profile": "https://Stackoverflow.com/users/4727",
"pm_score": 3,
"selected": false,
"text": "print \"$_\""
},
{
"answer_id": 372998,
"author": "brian d foy",
"author_id": 2766176,
"author_p... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
372,731 | <p>How can I set a custom background color of a button? </p>
<p>Interface Builder doesn't seem to have an interface to do this. </p>
<p>Is it only available programmatically?
If so, can you provide an example, please?</p>
| [
{
"answer_id": 373572,
"author": "Brad Larson",
"author_id": 19679,
"author_profile": "https://Stackoverflow.com/users/19679",
"pm_score": 4,
"selected": false,
"text": "downloadButton = [[UIButton alloc] initWithFrame:CGRectMake(36, 212, 247, 37)];\n\ndownloadButton.contentVerticalAlign... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
372,742 | <p>This is related to a question I asked the other day on <a href="https://stackoverflow.com/questions/366629/how-do-i-send-an-email-message-from-my-c-application">how to send email</a>. </p>
<p>My new, related question is this... what if the user of my application is behind a firewall or some other reason why the l... | [
{
"answer_id": 2860887,
"author": "Four",
"author_id": 103887,
"author_profile": "https://Stackoverflow.com/users/103887",
"pm_score": 6,
"selected": false,
"text": "public static class SmtpHelper\n{\n /// <summary>\n /// test the smtp connection by sending a HELO command\n /// ... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44004/"
] |
372,747 | <p>Does anybody know if there is a color theme like the TextMate Dawn theme, for Emacs ? I simply don't like the way the fonts look on my dark emacs theme and I am not sure if it's emacs's fault or just the theme.</p>
<p>Here's a comparison:</p>
<p><a href="http://mixandgo.com/emacs_textmate.png" rel="nofollow norefe... | [
{
"answer_id": 372891,
"author": "ShreevatsaR",
"author_id": 4958,
"author_profile": "https://Stackoverflow.com/users/4958",
"pm_score": 3,
"selected": false,
"text": "M-x color-theme-select"
}
] | 2008/12/16 | [
"https://Stackoverflow.com/questions/372747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
372,750 | <p>I was trying to use the slime-connect function to get access to a remote server with sbcl. I followed all the steps from the slime.mov movie from <a href="http://www.guba.com/watch/30000548671" rel="noreferrer">Marco Baringer,</a> but I got stuck when creating the ssh connection for slime. This is after already star... | [
{
"answer_id": 384650,
"author": "Anton Nazarov",
"author_id": 38204,
"author_profile": "https://Stackoverflow.com/users/38204",
"pm_score": 2,
"selected": false,
"text": "ssh user@server.com\ntelnet 127.0.0.1:4005\n"
},
{
"answer_id": 54387736,
"author": "hsrv",
"author_... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372750",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9082/"
] |
372,773 | <pre><code>enum MyEnum {
A( 1, 2, 3, 4),
B(1, 2),
C(4, 5, 8, 8, 9);
private MyEnum( int firstInt, int... otherInts ) {
// do something with arguments, perhaps initialize a List
}
}
</code></pre>
<p>Are there any problems with this? Any reasons not to do it?</p>
| [
{
"answer_id": 373063,
"author": "Milhous",
"author_id": 17712,
"author_profile": "https://Stackoverflow.com/users/17712",
"pm_score": 0,
"selected": false,
"text": "private MyEnum(int... Ints )\n"
}
] | 2008/12/16 | [
"https://Stackoverflow.com/questions/372773",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39489/"
] |
372,778 | <p>I have written some CSS which targets elements using the parent > child selector. Specifically for tables so I can apply certain styles to the headers and footers like this</p>
<pre><code>table > thead > tr > th ...
table > tbody > tr > td ...
//there are other uses in the css as well
</code></pre... | [
{
"answer_id": 372847,
"author": "davethegr8",
"author_id": 12930,
"author_profile": "https://Stackoverflow.com/users/12930",
"pm_score": 3,
"selected": false,
"text": "E F {\n set-some-style: value;\n}\n\nE * F {\n unset-some-style: 0;\n}\n"
},
{
"answer_id": 7645106,
... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372778",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45/"
] |
372,780 | <p>I am adding dynamically controls to page by using LoadControl and Controls.Add. I need somehow to wrap Init and Load event handlers of this loaded controls into my code. So it should be such order of events <em>SomeMyCode() -> Control.Init() -> AnotherMyCode()</em> and the same for Load <em>SomeMyCode() -> Control.L... | [
{
"answer_id": 372847,
"author": "davethegr8",
"author_id": 12930,
"author_profile": "https://Stackoverflow.com/users/12930",
"pm_score": 3,
"selected": false,
"text": "E F {\n set-some-style: value;\n}\n\nE * F {\n unset-some-style: 0;\n}\n"
},
{
"answer_id": 7645106,
... | 2008/12/16 | [
"https://Stackoverflow.com/questions/372780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39292/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.