qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
361,304 | <p>How do I get the sequence number of the row just inserted?</p>
| [
{
"answer_id": 361309,
"author": "Mark Harrison",
"author_id": 116,
"author_profile": "https://Stackoverflow.com/users/116",
"pm_score": 6,
"selected": true,
"text": "declare\n s2 number;\n begin\n insert into seqtest2(x) values ('aaa') returning seq into s2;\n dbms_output.put_line... | 2008/12/11 | [
"https://Stackoverflow.com/questions/361304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/116/"
] |
361,307 | <p>When using the 'as' keyword in C# to make a cast which fails, null gets returned. What's going on in the background? Is it simply suppressing an exception so I don't have to write handling code for a failure?</p>
<p>I'm interested in the performance characteristics of it compared to a typical cast wrapped in a try-... | [
{
"answer_id": 361318,
"author": "Greg Beech",
"author_id": 13552,
"author_profile": "https://Stackoverflow.com/users/13552",
"pm_score": 7,
"selected": true,
"text": "isinst"
},
{
"answer_id": 361463,
"author": "Charles Bretana",
"author_id": 32632,
"author_profile":... | 2008/12/11 | [
"https://Stackoverflow.com/questions/361307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10756/"
] |
361,312 | <p>I do have to say I'm fairly inexperienced when it comes to C++, don't be too harsh on me.</p>
<p>Recently stumbled unto the wonders of the win32 API and have chosen to practice using it (I'd rather not use MFC/wxWidgets/etc at this point, just for educational purposes).</p>
<p>Well, my real question is:
How do you... | [
{
"answer_id": 361576,
"author": "Ferruccio",
"author_id": 4086,
"author_profile": "https://Stackoverflow.com/users/4086",
"pm_score": 1,
"selected": false,
"text": "#include <windowsx.h>"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/361312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
361,329 | <p>Let's say I have some code like this </p>
<pre><code>if(isset($_GET['foo']))
//do something
if(isset($_GET['bar']))
//do something else
</code></pre>
<p>If a user is at example.com/?foo=abc and clicks on a link to set bar=xyz, I want to easily take them to example.com/?foo=abc&bar=xyz, rather than example... | [
{
"answer_id": 361354,
"author": "Logan Serman",
"author_id": 29595,
"author_profile": "https://Stackoverflow.com/users/29595",
"pm_score": 0,
"selected": false,
"text": "$link = ($_GET['foo'] == 'abc') ? 'foo=abc&bar=xyz' : 'bar=xyz';\n?>\n<a href=\"whatever.php?<?= $link ?>\">Click Me<... | 2008/12/11 | [
"https://Stackoverflow.com/questions/361329",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30098/"
] |
361,330 | <p>I need to use the popcnt instruction in a project that is compiled using Visual Stdio 2005<br>
The intrinsic <code>__popcnt()</code> only works with VS2008 and the compiler doesn't seem to recognize the instruction even when I write in a <code>__asm {}</code> block.</p>
<p>Is there any way to do this?</p>
| [
{
"answer_id": 361665,
"author": "bugmagnet",
"author_id": 426,
"author_profile": "https://Stackoverflow.com/users/426",
"pm_score": 2,
"selected": false,
"text": ";SSE2 macros for MASM 6.14 by daydreamer aka Magnus Svensson\n\nADDPD MACRO M1,M2\n db 066h\n ADDPS M1,M2\nENDM\n\nADD... | 2008/12/11 | [
"https://Stackoverflow.com/questions/361330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9611/"
] |
361,336 | <p>I'm trying to build my first generic list and have run into some problems. I understand the declaration looks like " <code>List<T></code> ", and I have <code>using System.Collections.Generic;</code> at the top of my page. However, Visual Studio doesn't recognize the <code>T</code> variable. </p>
<p>What am I ... | [
{
"answer_id": 361352,
"author": "Strelok",
"author_id": 2788,
"author_profile": "https://Stackoverflow.com/users/2788",
"pm_score": 3,
"selected": false,
"text": "int"
},
{
"answer_id": 361353,
"author": "Andrew Kennan",
"author_id": 22506,
"author_profile": "https:/... | 2008/12/11 | [
"https://Stackoverflow.com/questions/361336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42987/"
] |
361,350 | <p>Our app allows multiple files to be selected in a file selection dialog which is shown via the GetOpenFileName function (this question also applies to folks using CFileDialog, etc...)</p>
<p>There appears to be a limit to the number of characters that can be typed into the filename field (259 seems to be the magic ... | [
{
"answer_id": 361360,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 2,
"selected": false,
"text": "MAX_PATH"
},
{
"answer_id": 394443,
"author": "Kevin Day",
"author_id": 10973,
"author_profile": "ht... | 2008/12/11 | [
"https://Stackoverflow.com/questions/361350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10973/"
] |
361,359 | <p>I have three DIVs, something like this:</p>
<pre><code><div id="header">
...
</div>
<div id="content">
<div id="popup">
...
</div>
</div>
</code></pre>
<p>DIV#header is "position: fixed" and used as a non-scrolling header at the top of the screen. DIV#conten... | [
{
"answer_id": 361360,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 2,
"selected": false,
"text": "MAX_PATH"
},
{
"answer_id": 394443,
"author": "Kevin Day",
"author_id": 10973,
"author_profile": "ht... | 2008/12/11 | [
"https://Stackoverflow.com/questions/361359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2168/"
] |
361,363 | <p>Using only ANSI C, is there any way to measure time with milliseconds precision or more? I was browsing time.h but I only found second precision functions.</p>
| [
{
"answer_id": 361492,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 8,
"selected": true,
"text": "gettimeofday"
},
{
"answer_id": 368843,
"author": "Nick Van Brunt",
"author_id": 30470,
"author_p... | 2008/12/11 | [
"https://Stackoverflow.com/questions/361363",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44808/"
] |
361,371 | <p>This is quite a controversial topic, and before you say "no", is it really, really needed? </p>
<p>I have been programming for about 10 years, and I can't honestly say that I can recall a time where inheritance solved a problem that couldn't be solved another way. On the other hand I can recall many times when ... | [
{
"answer_id": 361411,
"author": "Greg Beech",
"author_id": 13552,
"author_profile": "https://Stackoverflow.com/users/13552",
"pm_score": 4,
"selected": false,
"text": "Stream"
},
{
"answer_id": 361464,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile":... | 2008/12/11 | [
"https://Stackoverflow.com/questions/361371",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45365/"
] |
361,391 | <p>In a client-server system, is it considered good architecture for a server method to "ask the client" for more information? If so, what's the best way to design such a scenario? Is there a "pattern" for this?</p>
<p>For example, suppose the end user selects a set of records they want to delete in the client UI, t... | [
{
"answer_id": 361419,
"author": "BCS",
"author_id": 1343,
"author_profile": "https://Stackoverflow.com/users/1343",
"pm_score": 1,
"selected": false,
"text": "I_RELLY_WANT_TO"
},
{
"answer_id": 361657,
"author": "rik.the.vik",
"author_id": 45570,
"author_profile": "h... | 2008/12/11 | [
"https://Stackoverflow.com/questions/361391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16012/"
] |
361,443 | <p>I am trying to learn more about regular expressions I have one below that I believe finds cases where there is a missing close paren on a number up to 999 billion. The one below it I thought should do the same but I do not get similar results</p>
<pre><code> missingParenReg=re.compile(r"^\([$]*[0-9]{1,3}[,]?[0-9]... | [
{
"answer_id": 361475,
"author": "jfs",
"author_id": 4279,
"author_profile": "https://Stackoverflow.com/users/4279",
"pm_score": 2,
"selected": false,
"text": "whether_paren_is_missing = (astring[0] == '(' and not astring[-1] == ')')\n"
},
{
"answer_id": 361485,
"author": "Jo... | 2008/12/11 | [
"https://Stackoverflow.com/questions/361443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30105/"
] |
361,455 | <p>I have a MySQL query structured as follows:</p>
<pre><code>SELECT time(c.start_time),
time(c.end_time),
time(c.end_time) - time(c.start_time) as 'opening_hours'
FROM my_shop c;
</code></pre>
<p>The data in start and end time is 1970-01-01 07:00:00 and 1970-01-01 19:00:00 respectively.</p>
<p>On my ... | [
{
"answer_id": 361582,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 2,
"selected": true,
"text": "SELECT TIME(c.start_time),\n TIME(c.end_time),\n EXTRACT(HOUR FROM TIMEDIFF(TIME(c.end_time), TIME(c.start_... | 2008/12/11 | [
"https://Stackoverflow.com/questions/361455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24390/"
] |
361,467 | <p>I am using jQuert .ajax function to call a page method. The site is using FormsAuthentication. So when an authentication ticket expires a call to the page method will obviously cause a redirect to the login page. </p>
<p>Now, the geniuses that wrote the System.Web.Handlers.ScriptModule decided that if for some reas... | [
{
"answer_id": 361564,
"author": "Strelok",
"author_id": 2788,
"author_profile": "https://Stackoverflow.com/users/2788",
"pm_score": 4,
"selected": true,
"text": " $.ajax({\n type: \"POST\",\n url: postUrl + \"/SomePageMethod\",\n data: \"{searchString... | 2008/12/11 | [
"https://Stackoverflow.com/questions/361467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2788/"
] |
361,468 | <p>I'm looking for a way in .NET (2.0, C# in particular) for source code to trigger a debugging break as if a breakpoint was set at that point, without having to remember to set a specific breakpoint there in the debugger, and without interfering with production runtime.</p>
<p>Our code needs to swallow exceptions in ... | [
{
"answer_id": 361473,
"author": "shahkalpesh",
"author_id": 23574,
"author_profile": "https://Stackoverflow.com/users/23574",
"pm_score": 4,
"selected": false,
"text": "System.Diagnostics.Debugger.Break"
},
{
"answer_id": 361479,
"author": "CheGueVerra",
"author_id": 177... | 2008/12/11 | [
"https://Stackoverflow.com/questions/361468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/181460/"
] |
361,471 | <p>I have a web application with multiple web services. This web application has business and persistency layer. Is it possible to use separate log appender (log file) per web service?</p>
<p>This applies to web pages too. Essentially I want to separate my logs NOT based on the class or layer/namespace, but from point... | [
{
"answer_id": 361622,
"author": "George Stocker",
"author_id": 16587,
"author_profile": "https://Stackoverflow.com/users/16587",
"pm_score": 1,
"selected": false,
"text": "namespace log4net\n{\n public class LogManager\n {\n public static ILog GetLogger(string name);\n ... | 2008/12/11 | [
"https://Stackoverflow.com/questions/361471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16073/"
] |
361,477 | <p>Note: Using MySQL 4.0, which means no subqueries (at present).</p>
<p>I have 2 tables:</p>
<ul>
<li>A "user_details" table</li>
<li>A "skills" table, which has the user_id and a "skill_id", which maps to a predefined set of skills defined elsewhere.</li>
</ul>
<p>The current query allows an admin to search for us... | [
{
"answer_id": 361551,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 3,
"selected": true,
"text": "SELECT user_id\nFROM skills\nWHERE skill_id IN (51, 52, 53, 54, 55)\nGROUP BY user_id\nHAVING COUNT(*) = 5;\n"
},
{... | 2008/12/11 | [
"https://Stackoverflow.com/questions/361477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29854/"
] |
361,481 | <p>Modal dialogs are evil, but I keep reading "You should remove modal dialogs <i>when possible</i>"</p>
<p>When isn't it possible to remove modal dialogs? I mean, what are some truly modal tasks that force us to use evil modal dialogs?</p>
<p>The most common given example is the "Do you want to Save?" I think this... | [
{
"answer_id": 361488,
"author": "George Stocker",
"author_id": 16587,
"author_profile": "https://Stackoverflow.com/users/16587",
"pm_score": 3,
"selected": false,
"text": "onbeforeunload"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/361481",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21838/"
] |
361,487 | <p>What is the exact pixel size of one column when I used the columns attribute to determine a width of an ASP.NET textbox control?</p>
<pre><code><asp:TextBox id="MyTextBox" runat="server" columns="10" />
</code></pre>
| [
{
"answer_id": 361521,
"author": "Ryan Smith",
"author_id": 10420,
"author_profile": "https://Stackoverflow.com/users/10420",
"pm_score": 2,
"selected": true,
"text": "style=\"width: 250px;\"\n"
},
{
"answer_id": 361542,
"author": "Michael Kniskern",
"author_id": 26327,
... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26327/"
] |
361,490 | <p>I have a silverlight 2 app that has an ObservableCollection of a class from a separate assem/lib. When I set my ListBox.ItemsSource on that collection, and run it, I get the error code:</p>
<blockquote>
<p>4004 "System.ArgumentException: Value does not fall within the expected range."</p>
</blockquote>
<p>... | [
{
"answer_id": 65333400,
"author": "ΩmegaMan",
"author_id": 285795,
"author_profile": "https://Stackoverflow.com/users/285795",
"pm_score": 0,
"selected": false,
"text": "entity"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/361490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33324/"
] |
361,500 | <p>I have a situation where I need to process large (many GB's) amounts of data as such:</p>
<ol>
<li>build a large string by appending many smaller (C char*) strings</li>
<li>trim the string</li>
<li>convert the string into a C++ const std::string for processing (read only)</li>
<li>repeat</li>
</ol>
<p>The data in ... | [
{
"answer_id": 361597,
"author": "e.James",
"author_id": 33686,
"author_profile": "https://Stackoverflow.com/users/33686",
"pm_score": 5,
"selected": true,
"text": "string::reserve(size_t)"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/361500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40175/"
] |
361,529 | <p>I'm using Spring, but this question applies to all JSP-controller type designs.</p>
<p>The JSP page references data (using tags) which is populated by the corresponding controller. My question is, where is the appropriate place to perform formatting, in JSP or the controller?</p>
<p>So far I've been preparing the ... | [
{
"answer_id": 361831,
"author": "bpapa",
"author_id": 543,
"author_profile": "https://Stackoverflow.com/users/543",
"pm_score": 0,
"selected": false,
"text": "public class Person {\n public String getLocation() {\n return this.latitude.concat(\", \").concat(this.longitude);\n ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24396/"
] |
361,583 | <p><b>Duplicate of: <a href="https://stackoverflow.com/questions/255214/when-should-i-use-the-visitor-design-pattern">When Should I Use The Visitor Design Pattern</a></b></p>
<p>Why would someone want to use the visitor pattern? I've read a couple of articles, but I'm not getting something.</p>
<p>If I need a functio... | [
{
"answer_id": 362186,
"author": "ididak",
"author_id": 28888,
"author_profile": "https://Stackoverflow.com/users/28888",
"pm_score": 4,
"selected": false,
"text": "void accept(BillVisitor visitor) { visitor.bill(this); } // java syntax\n"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/361583",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
361,592 | <p>Imagine I use the .NET graphic classes to draw a rectangle.</p>
<p>How could I then assign an event so that if the user clicks a certain point, or a certain point range, something happens (a click event handler)?</p>
<p>I was reading CLR via C# and the event section, and I thought of this scenario from what I had ... | [
{
"answer_id": 361607,
"author": "aku",
"author_id": 1196,
"author_profile": "https://Stackoverflow.com/users/1196",
"pm_score": 3,
"selected": false,
"text": "public partial class Form1 : Form\n{\n private Rectangle rect;\n private Pen pen = Pens.Black;\n\n public Form1()\n ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32484/"
] |
361,633 | <p>VStudio ASP.NET gives the following message: </p>
<pre><code>Attribute 'bgcolor' is considered outdated. A newer construct is recommended.
</code></pre>
<p>What is the recommended construct?</p>
<p><code>bgcolor</code> is within a <code><td></code> element.<br>
Another related message is : </p>
<pre><cod... | [
{
"answer_id": 361642,
"author": "Jonathan Lonowski",
"author_id": 15031,
"author_profile": "https://Stackoverflow.com/users/15031",
"pm_score": 2,
"selected": false,
"text": "background-color"
},
{
"answer_id": 361643,
"author": "George Stocker",
"author_id": 16587,
... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1682/"
] |
361,635 | <p>I need to debug JavaScript in Internet Explorer 7.</p>
<p>Unfortunately, its default debugger doesn't provide me with much information. It tells me the page that the error showed up on (not the specific script) and gives me a line number. I don't know if that is related to my problem.</p>
<p>It'd be nice if it coul... | [
{
"answer_id": 2139008,
"author": "Marc",
"author_id": 259168,
"author_profile": "https://Stackoverflow.com/users/259168",
"pm_score": 5,
"selected": false,
"text": "javascript:var firebug=document.createElement('script');firebug.setAttribute('src','http://getfirebug.com/releases/lite/1.... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31671/"
] |
361,648 | <p>My main experience is with C && C++, so I'd prefer to remain with them. I don't want to use anything like QT, GTK, or wxWidgets or any tool kits. I'd like to learn native programming and this sort of defeats the purpose. With that in mind I'd also like to avoid Java.</p>
<p>I understand gnome and xfce and K... | [
{
"answer_id": 6971261,
"author": "luser droog",
"author_id": 733077,
"author_profile": "https://Stackoverflow.com/users/733077",
"pm_score": 2,
"selected": false,
"text": "XFlush()"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/361648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36457/"
] |
361,661 | <p>I have a database table (named Topics) which includes these fields :</p>
<ol>
<li>topicId </li>
<li>name</li>
<li>parentId</li>
</ol>
<p>and by using them I wanna populate a TreeView in c#. How can I do that ?</p>
<p>Thanks in advance...</p>
| [
{
"answer_id": 361678,
"author": "Bob",
"author_id": 45,
"author_profile": "https://Stackoverflow.com/users/45",
"pm_score": 5,
"selected": true,
"text": "//In Page load\nforeach (DataRow row in topics.Rows)\n{\n TreeNode node = new TreeNode(dr[\"name\"], dr[\"topicId\"])\n node.Po... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44852/"
] |
361,675 | <p>I'm trying to get started with unit testing in Python and I was wondering if someone could explain the advantages and disadvantages of doctest and unittest. </p>
<p>What conditions would you use each for?</p>
| [
{
"answer_id": 361683,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 4,
"selected": false,
"text": "doctest"
},
{
"answer_id": 361788,
"author": "davidavr",
"author_id": 8247,
"author_profile": "https:... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44133/"
] |
361,681 | <p>I need a reasonably smart algorithm to come up with "nice" grid lines for a graph (chart).</p>
<p>For example, assume a bar chart with values of 10, 30, 72 and 60. You know:</p>
<p>Min value: 10
Max value: 72
Range: 62</p>
<p>The first question is: what do you start from? In this case, 0 would be the intuitive ... | [
{
"answer_id": 361687,
"author": "Mark Ransom",
"author_id": 5987,
"author_profile": "https://Stackoverflow.com/users/5987",
"pm_score": 5,
"selected": false,
"text": "import math\n\ndef BestTick(largest, mostticks):\n minimum = largest / mostticks\n magnitude = 10 ** math.floor(ma... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18393/"
] |
361,686 | <p>Not a programming question per se, but interesting for people who do commercial web development.</p>
<p>How do you track all of your clients' hosting, domain registration, and SSL certificate expiry dates?</p>
<p>Do you just keep a spreadsheet or is there some useful piece of software for this?</p>
<p>I've search... | [
{
"answer_id": 361739,
"author": "joshperry",
"author_id": 30587,
"author_profile": "https://Stackoverflow.com/users/30587",
"pm_score": 2,
"selected": false,
"text": "using System.Net;\nusing System.Diagnostics;\nusing System.Net.Mail;\nusing System.Threading;\n\nstatic void Main(string... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15531/"
] |
361,717 | <p>I have HTML code like this :</p>
<pre><code><div>
<a>Link A1</a>
<a>Link A2</a>
<a>Link A3</a>
</div>
<div>
<a>Link B1</a>
<a>Link B2</a>
<a>Link B3</a>
</div>
</code></pre>
<p... | [
{
"answer_id": 361724,
"author": "Shog9",
"author_id": 811,
"author_profile": "https://Stackoverflow.com/users/811",
"pm_score": 7,
"selected": true,
"text": "$(\"div a\").click( function(event)\n{\n var clicked = $(this); // jQuery wrapper for clicked element\n // ... click-specific... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10629/"
] |
361,723 | <p>I am having difficulty with the following method. I can't figure out if my problem is, but I have narrowed it down to not populating the array list from the file. Any help is greatly appreciated.</p>
<pre><code>private void searchButtonActionPerformed(java.awt.event.ActionEvent evt) {
//create arraylists
ArrayLi... | [
{
"answer_id": 361755,
"author": "jmucchiello",
"author_id": 44065,
"author_profile": "https://Stackoverflow.com/users/44065",
"pm_score": 2,
"selected": false,
"text": "String pass = \"\";\nwhile(flag = false) {\nif(outputline.charAt(i) != ',')\n pass.concat(Character.toString(outputl... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
361,742 | <p>Sorry if this is a really basic question but I struggling with how I should attack this. I am trying to wrap up some commands for a OLE object, the basic spec looks like this:</p>
<pre><code>Set Window window_id
//Units is part of the position setter.
[ Position ( x, y ) [ Units paper_units ] ]
[ Widt... | [
{
"answer_id": 361759,
"author": "Andrew Kennan",
"author_id": 22506,
"author_profile": "https://Stackoverflow.com/users/22506",
"pm_score": 2,
"selected": false,
"text": "class CommandBuilder\n{\n private List<ICommand> _commands = new List<ICommand>();\n\n public CommandBuilder Posit... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6335/"
] |
361,747 | <p>I was browsing through the questions and noticed this:</p>
<pre><code>SELECT prodid, issue
FROM Sales
WHERE custid = @custid
AND datesold = SELECT MAX(datesold)
FROM Sales s
WHERE s.prodid = Sales.prodid
AND s.issue = Sales.issue
AND s.custid = @cust... | [
{
"answer_id": 361758,
"author": "ine",
"author_id": 4965,
"author_profile": "https://Stackoverflow.com/users/4965",
"pm_score": 2,
"selected": false,
"text": "@"
},
{
"answer_id": 361962,
"author": "Samiksha",
"author_id": 29515,
"author_profile": "https://Stackoverf... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27620/"
] |
361,752 | <p>I'm working on a Perl script. How can I pass command line parameters to it?</p>
<p>Example:</p>
<pre><code>script.pl "string1" "string2"
</code></pre>
| [
{
"answer_id": 361757,
"author": "George Stocker",
"author_id": 16587,
"author_profile": "https://Stackoverflow.com/users/16587",
"pm_score": 6,
"selected": false,
"text": "@ARGV"
},
{
"answer_id": 361769,
"author": "nrich",
"author_id": 44153,
"author_profile": "http... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15884/"
] |
361,756 | <p>Is tight looping in a program bad?</p>
<p>I have an application that has two threads for a game-physics simulator. An updateGame thread and a render thread. The render thread is throttled by causing the thread to sleep for some milliseconds (to achieve the frame-rate I want) and the updateGame thread (that updates... | [
{
"answer_id": 361785,
"author": "coobird",
"author_id": 17172,
"author_profile": "https://Stackoverflow.com/users/17172",
"pm_score": 2,
"selected": false,
"text": "Thread.sleep"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/361756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2635/"
] |
361,775 | <p>I have a div tag styled through CSS. I set the padding to 10px (padding:10px), it works just as I wanted in Firefox and IE7, but in IE6 it adds additional padding at the bottom (about 2-3px I think). Anyone has idea about what's happening here?</p>
<p>[update]</p>
<p>I just noticed this, the div tag I'm talking a... | [
{
"answer_id": 361820,
"author": "Philip Arthur Moore",
"author_id": 37702,
"author_profile": "https://Stackoverflow.com/users/37702",
"pm_score": 2,
"selected": false,
"text": "DIV"
},
{
"answer_id": 361825,
"author": "Kibbee",
"author_id": 1862,
"author_profile": "h... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40538/"
] |
361,799 | <p>I have been working for a while to create an iPhone app. Today when my battery was low, I was working and constantly saving my source files then the power went out...</p>
<p>Now when I plugged my computer back in and it is getting good power I try to open my project file and I get an error:</p>
<blockquote>
<p>Unab... | [
{
"answer_id": 11992949,
"author": "Usuf",
"author_id": 3199983,
"author_profile": "https://Stackoverflow.com/users/3199983",
"pm_score": 8,
"selected": false,
"text": "projectname.xcodeproj"
},
{
"answer_id": 21628450,
"author": "Oleksiy Ivanov",
"author_id": 2546685,
... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
361,801 | <p>I'm a newbie with Subversion, so I don't now if this is a dumb question:</p>
<p>I've inherited a subversion repository with a flat structure with no /trunk /tags /branches top level).</p>
<p>I'd like re-structure it so that it follows the </p>
<pre><code>/trunk
/tags
/branches
</code></pre>
<p>layout.</p>
<p>Is... | [
{
"answer_id": 363168,
"author": "Ken Gentle",
"author_id": 8709,
"author_profile": "https://Stackoverflow.com/users/8709",
"pm_score": 4,
"selected": false,
"text": "move"
},
{
"answer_id": 9244069,
"author": "msangel",
"author_id": 449553,
"author_profile": "https:/... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
361,832 | <p>I have a base class in which I want to specify the methods a child class must have, but not implement them itself. However, the methods in a child class may have a different number of paramaters to the definition in the base class.</p>
<p>Having tried this with an abstract method, php doesn't allow this. Is it poss... | [
{
"answer_id": 362046,
"author": "danieltalsky",
"author_id": 22452,
"author_profile": "https://Stackoverflow.com/users/22452",
"pm_score": 1,
"selected": false,
"text": "func_get_args()\n"
},
{
"answer_id": 362368,
"author": "Tom Haigh",
"author_id": 22224,
"author_p... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40017/"
] |
361,839 | <p>Sorry for asking an implement my feature question type question last time. I am new to Stackoverflow.com and also to php that's why.</p>
<p>What I was trying to ask is:</p>
<p>I have made a admin account. Members have registration page so a member will register. When user registers in the database table I will h... | [
{
"answer_id": 361858,
"author": "Levi",
"author_id": 27620,
"author_profile": "https://Stackoverflow.com/users/27620",
"pm_score": 0,
"selected": false,
"text": "?> <form name=\"deleteUser\" id=\"deleteUser\" method=\"post\" action=\"\">\n<input type=\"hidden\" name=\"member_id\" id=\"m... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361839",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40975/"
] |
361,840 | <p>This afternoon, upon noticing a broken build and the fact that some files looked like very old versions (about 2 weeks old), I checked the svn log. Apparently just this afternoon, 1 of the developers did an "svn copy" of a directory from an older revision to the same directory. Thus it appears that the latest vers... | [
{
"answer_id": 361961,
"author": "Martin v. Löwis",
"author_id": 33006,
"author_profile": "https://Stackoverflow.com/users/33006",
"pm_score": 1,
"selected": false,
"text": "svn rm file:///path/to/messed/up/dir\n"
},
{
"answer_id": 362209,
"author": "Palmin",
"author_id":... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16012/"
] |
361,852 | <p>Sorry - this may be an easy question, I'm new to iPhone development and still wrapping my head around Views vs ViewControllers.</p>
<p>I have a NavigationViewController and I can push Views using the following method in the RootViewController which is connected to a Bar Button Item:</p>
<pre><code>- (IBAction)swit... | [
{
"answer_id": 361914,
"author": "Ben Gottlieb",
"author_id": 6694,
"author_profile": "https://Stackoverflow.com/users/6694",
"pm_score": 1,
"selected": false,
"text": ""
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/361852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29941/"
] |
361,854 | <p>I'm trying to get udp multicast data using sockets and c++ (c). I have a server with 2 network cards so I need to bind socket to specific interface. Currently I'm testing on another server that has only one network card.</p>
<p>When I use INADDR_ANY I can see the udp data, when I bind to specific interface I don't ... | [
{
"answer_id": 362485,
"author": "David Allan Finch",
"author_id": 27417,
"author_profile": "https://Stackoverflow.com/users/27417",
"pm_score": 2,
"selected": false,
"text": " struct ip_mreq multi;\n\n multi.imr_multiaddr.s_addr = inet_addr(group.c_str());\n multi.imr_in... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361854",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
361,855 | <p>I'm running a django instance behind nginx connected using fcgi (by using the manage.py runfcgi command). Since the code is loaded into memory I can't reload new code without killing and restarting the django fcgi processes, thus interrupting the live website. The restarting itself is very fast. But by killing the f... | [
{
"answer_id": 957050,
"author": "sheats",
"author_id": 4915,
"author_profile": "https://Stackoverflow.com/users/4915",
"pm_score": 4,
"selected": false,
"text": "pid_file=/path/to/pidfile\nport_file=/path/to/port_file\nold_pid=`cat $pid_file`\n\nif [[ -f $port_file ]]; then\n last_po... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31604/"
] |
361,856 | <p>I need some help with jQuery script again :-) Just trying to play with jQuery..I use script below for coloring options of select element. It works in pure html, but in my asp.net 2.0 (Master + Content pages) does not. Script is placed in Head section.</p>
<pre><code>function pageLoad(){
var allOddSelectOption ... | [
{
"answer_id": 361861,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 3,
"selected": true,
"text": "$(document).ready(function(){\n $(\"select option:odd\").css({'background-color' : 'yellow', 'font-weight' : 'b... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24507/"
] |
361,869 | <p>I have read a lot of popular standards manuals for open source PHP projects.</p>
<p>A lot enforce underscores for variables spaces, and a lot enforce camelCase.</p>
<p>Should global functions and variables be named differently to class methods/properties?</p>
<p>I know the most important thing is consistency, but... | [
{
"answer_id": 361899,
"author": "too much php",
"author_id": 28835,
"author_profile": "https://Stackoverflow.com/users/28835",
"pm_score": 0,
"selected": false,
"text": "grep"
},
{
"answer_id": 361901,
"author": "ieure",
"author_id": 45224,
"author_profile": "https:/... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31671/"
] |
361,904 | <pre><code>function holiday_hitlist($tablename, $hit_user){
global $host, $user, $pass, $dbname;
$link = mysql_connect($host, $user, $pass, $dbname);
print "<div class=\"hit_list\">
<h3>My Holiday Hitlist</h3>
<p>Five things I want the most, based on my des... | [
{
"answer_id": 361915,
"author": "Zoredache",
"author_id": 20267,
"author_profile": "https://Stackoverflow.com/users/20267",
"pm_score": 4,
"selected": true,
"text": "$output = print \"<li><a href=\\\"$url\\\" target=\\\"_blank\\\">$title</a> $price</li>\";\n"
},
{
"answer_id": 3... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361904",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7853/"
] |
361,910 | <p>Say you have something like an ASP.NET ASP:DetailsView to show and edit a single record in a database.</p>
<p>It's simple to record the error cases... you add validation and a validation summary. When your update form fails validation it naturally makes noise: it shows the validation message and/or the validation ... | [
{
"answer_id": 361952,
"author": "JoshBerke",
"author_id": 26160,
"author_profile": "https://Stackoverflow.com/users/26160",
"pm_score": 0,
"selected": false,
"text": "protected void ClearMessages(object sender, DetailsViewCommandEventArgs e)\n{\n successMessage.InnerText = string.Emp... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22452/"
] |
361,921 | <pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace ConsoleApplication1
{
public class Class1
{
static void Main(string[] args)
{
List<Car> mylist = new List<Car>();
Car car1... | [
{
"answer_id": 361936,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 7,
"selected": true,
"text": "int index = mylist.FindIndex(p => p.id == 1);\nif(index<0) {\n mylist.Add(car3);\n} else {\n mylist[index] = car... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361921",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42564/"
] |
361,922 | <p>I am trying to create 1 Parent Drop Down, that has 2 dependent child drop down lists using JAVASCRIPT.</p>
<p>My html page is at - <a href="http://www.larkgrove.com/entryform/entryform.html" rel="nofollow noreferrer">http://www.larkgrove.com/entryform/entryform.html</a></p>
<p>I am using the Dynamic Options Lists ... | [
{
"answer_id": 361987,
"author": "danieltalsky",
"author_id": 22452,
"author_profile": "https://Stackoverflow.com/users/22452",
"pm_score": 0,
"selected": false,
"text": "<script type=\"text/javascript\">\nvar TESTLIST = new DynamicOptionList(\"PARENT1\",\"CHILD1\",\"CHILD2\");\nTESTLIST... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
361,930 | <p>Are all these types of sites just illegally scraping Google or another search engine?<br>
As far as I can tell ther is no 'legal' way to get this data for a commercial site.. The Yahoo! api ( <a href="http://developer.yahoo.com/search/siteexplorer/V1/inlinkData.html" rel="nofollow noreferrer">http://developer.yahoo.... | [
{
"answer_id": 754901,
"author": "Shalom Craimer",
"author_id": 54491,
"author_profile": "https://Stackoverflow.com/users/54491",
"pm_score": 2,
"selected": false,
"text": "link:http://www.google.com\n"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/361930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45598/"
] |
361,943 | <p>I wanted to know why UDP is used in RTP rather than TCP ?. Major VoIP Tools used only UDP as i hacked some of the VoIP OSS.</p>
| [
{
"answer_id": 1910859,
"author": "rdegges",
"author_id": 194175,
"author_profile": "https://Stackoverflow.com/users/194175",
"pm_score": 0,
"selected": false,
"text": "rtpchecksums=yes ; or no if you prefer\n"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/361943",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38038/"
] |
361,955 | <p>I'm trying to build about 600 projects some are .net 2.0, some are 3.5. I'm using Windows 2003 Enterprise Edition 32 bit with all the latest windows updates.</p>
<p>Builds fine when maxcpucount is 1. If I bump it up to try and improve performance it get reference errors. When I look at the project references fro... | [
{
"answer_id": 378668,
"author": "Gregg",
"author_id": 18266,
"author_profile": "https://Stackoverflow.com/users/18266",
"pm_score": 3,
"selected": false,
"text": "\n<ProjectReference Include=\"..\\..\\Manager\\Manager.csproj\">\n <Project>{C0F60D74-3EF9-4B49-9563-66E70D0DDF43}</Pro... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45005/"
] |
361,966 | <p>I need to create a 3D model of a cube with a circular hole punched at the center of one face passing completely through the cube to the opposite side. I am able to generate the vertices for the faces and for the holes.</p>
<p>Four of the faces (untouched by the hole) can be modeled as a single triangle strip. The i... | [
{
"answer_id": 362130,
"author": "Markus Jarderot",
"author_id": 22364,
"author_profile": "https://Stackoverflow.com/users/22364",
"pm_score": 3,
"selected": false,
"text": "(x/M,y/M)"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/361966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45603/"
] |
361,973 | <p>I have written my program in c# .net. I want to convert it in to a powershell cmdlet. I was instructed to use pssnapin and getproc programs. Can anyone plz help me out..</p>
<p>Regards
Arun</p>
| [
{
"answer_id": 362191,
"author": "Oliver Friedrich",
"author_id": 44532,
"author_profile": "https://Stackoverflow.com/users/44532",
"pm_score": 2,
"selected": false,
"text": "namespace System.Management.Automation\n{\n public abstract class PSCmdlet : Cmdlet\n {\n protected ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/201406/"
] |
361,975 | <p>How do I properly set the default character encoding used by the JVM (1.5.x) programmatically?</p>
<p>I have read that <code>-Dfile.encoding=whatever</code> used to be the way to go for older JVMs. I don't have that luxury for reasons I wont get into.</p>
<p>I have tried:</p>
<pre><code>System.setProperty("file.e... | [
{
"answer_id": 361984,
"author": "Dov Wasserman",
"author_id": 26010,
"author_profile": "https://Stackoverflow.com/users/26010",
"pm_score": 5,
"selected": false,
"text": "String.getBytes(\"charsetName\")"
},
{
"answer_id": 362006,
"author": "erickson",
"author_id": 3474,... | 2008/12/12 | [
"https://Stackoverflow.com/questions/361975",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
362,000 | <p>I have this input text:</p>
<pre><code><html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body><table cellspacing="0" cellpadding="0" border="0" align="center" width="603"> <tbody><tr> <td><table cellspacing="0" cellp... | [
{
"answer_id": 362090,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": true,
"text": "while ($string =~ m/(?:\\<\\s*(?:img|iframe)[^\\>]+src\\s*=\\s*\\\"((?:\\w|_|\\\\|-|\\/|\\.|:)+)\\\"|background\\s*=\\s*\\\"([^\... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38124/"
] |
362,032 | <p>I want the Perl script to extract a data from a text file and save it as another text file. Each line of the text file contains an URL to a jpg like "<a href="http://pics1.riyaj.com/thumbs/000/082/104//small.jpg" rel="nofollow noreferrer">http://pics1.riyaj.com/thumbs/000/082/104//small.jpg</a>". I want the script t... | [
{
"answer_id": 362128,
"author": "brian d foy",
"author_id": 2766176,
"author_profile": "https://Stackoverflow.com/users/2766176",
"pm_score": 2,
"selected": false,
"text": "-p"
},
{
"answer_id": 362139,
"author": "Axeman",
"author_id": 11289,
"author_profile": "https... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45614/"
] |
362,038 | <p>I need to build a div with curved corner border, with out using any images in the corner. Is it possible?</p>
<p>I dont want to insert curved images in the corner, Please help me regarding this.</p>
| [
{
"answer_id": 362047,
"author": "alex",
"author_id": 31671,
"author_profile": "https://Stackoverflow.com/users/31671",
"pm_score": 3,
"selected": false,
"text": "border-radius: 10px;\n"
},
{
"answer_id": 362056,
"author": "jimg",
"author_id": 2621,
"author_profile": ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38172/"
] |
362,042 | <p>We have a client application that has reference to a webservice. We had set the timeout property on the webclientprotocol object to 50 (ms) and wanted to observe what goes on. We tied up a long running webmethod that returns a huge DataSet to the client. When the default value was there, the DataSet was returned pro... | [
{
"answer_id": 5386072,
"author": "P Daddy",
"author_id": 36388,
"author_profile": "https://Stackoverflow.com/users/36388",
"pm_score": 0,
"selected": false,
"text": "WebException"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
362,044 | <p><strong>My requirement</strong></p>
<p>A table needs to maintain a <em>status</em> column.</p>
<p>This column represents one of 5 states.</p>
<p><br>
<strong>initial design</strong></p>
<p>I figured I can just make it an integer column and represent the states using a numeric value.</p>
<ul>
<li>0 = start</li>
... | [
{
"answer_id": 362058,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 8,
"selected": true,
"text": "ALTER TABLE"
},
{
"answer_id": 362888,
"author": "MatthieuP",
"author_id": 41469,
"author_profile":... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362044",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24457/"
] |
362,055 | <p>Is it possible to host a Maven repository that serves the artifacts (at least the jar files) from SourceForge's file release system (since they are already there and SF provides download statistics and such)? </p>
<p>All the repositories I have seen use the same directory layout, but is that a must?
Download URLs w... | [
{
"answer_id": 1896946,
"author": "Huluvu424242",
"author_id": 373498,
"author_profile": "https://Stackoverflow.com/users/373498",
"pm_score": 0,
"selected": false,
"text": "<plugin>\n <groupId>org.apache.maven.plugins</groupId>\n <artifactId>maven-install-plugin</artifactId>\n ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14955/"
] |
362,059 | <p>What is the Big-O time complexity of the following nested loops:</p>
<pre class="lang-cpp prettyprint-override"><code>for (int i = 0; i < N; i++) {
for (int j = i + 1; j < N; j++) {
System.out.println("i = " + i + " j = " + j);
}
}
</code></pre>
<p>Would it be <em>O(N^2)</em... | [
{
"answer_id": 59340933,
"author": "Ashwin",
"author_id": 6662058,
"author_profile": "https://Stackoverflow.com/users/6662058",
"pm_score": 2,
"selected": false,
"text": "for (int i = 0; i < n; i++)\n for (int j = i; j < n; j++)\n println(...);\n"
},
{
"answer_id": 7153... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2635/"
] |
362,104 | <p>I have a Template Column under which I have Placed a Dropdownlist. Now I would Like to get the selectedRow of the datagrid on selectedIndeChanged event of the dropdownlist that's inside the template Column</p>
| [
{
"answer_id": 362177,
"author": "Tom Jelen",
"author_id": 28399,
"author_profile": "https://Stackoverflow.com/users/28399",
"pm_score": 2,
"selected": true,
"text": " protected void DropDown_SelectedIndexChanged(object sender, object eventdata)\n {\n int gridRowIndex = ((Da... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362104",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
362,105 | <p>I have a Hash like this</p>
<pre><code>{ 55 => {:value=>61, :rating=>-147},
89 => {:value=>72, :rating=>-175},
78 => {:value=>64, :rating=>-155},
84 => {:value=>90, :rating=>-220},
95 => {:value=>39, :rating=>-92},
46 => {:value=>97, :rating=>-237},
... | [
{
"answer_id": 362133,
"author": "Gareth",
"author_id": 31582,
"author_profile": "https://Stackoverflow.com/users/31582",
"pm_score": 3,
"selected": false,
"text": ">> { :a => 4, :b => 12, :c => 3, :d => 8 }.sort_by { |key, value| value }\n=> [[:c, 3], [:a, 4], [:d, 8], [:b, 12]]\n"
},... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45622/"
] |
362,112 | <p>Consider a simple table with an auto-increment column like this:</p>
<pre><code>CREATE TABLE foo
(
`fooid` bigint unsigned NOT NULL auto_increment,
....snipped.... other columns
PRIMARY KEY (`fooid`)
)
ENGINE=InnoDB AUTO_INCREMENT=10
</code></pre>
<p>How does one redesign this so that we don't hit the max... | [
{
"answer_id": 362471,
"author": "flamingLogos",
"author_id": 8161,
"author_profile": "https://Stackoverflow.com/users/8161",
"pm_score": 4,
"selected": false,
"text": "AUTO_INCREMENT"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24457/"
] |
362,120 | <p>Why the FontFamily param of the Font object is a string and not an enum?</p>
| [
{
"answer_id": 362145,
"author": "Jonathan C Dickinson",
"author_id": 24064,
"author_profile": "https://Stackoverflow.com/users/24064",
"pm_score": 3,
"selected": true,
"text": "public enum MyEnum\n{\n A = 1,\n B = 2\n}\n\npublic enum FooEnum\n{\n A,\n B\n}\n"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362120",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45624/"
] |
362,121 | <p>I have the following table</p>
<pre>
custid ordid qty datesold
1 A2 12 2008-01-05
2 A5 5 2008-01-02
1 A1 5 2008-01-01
2 A7 3 2007-02-05
</pre>
<p>What't the best way of getting the previous order for every customer?</p>
<p>Th... | [
{
"answer_id": 362143,
"author": "Robert Wagner",
"author_id": 10784,
"author_profile": "https://Stackoverflow.com/users/10784",
"pm_score": 1,
"selected": false,
"text": "SELECT custid, ordid, qty, datesold\nFROM (\n SELECT *, \n Row_Number() OVER (PARTITION BY custid ORDER BY... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23667/"
] |
362,124 | <p>any generic way to trace/log values of all local variables when an exception occurs in a method?
(in C# 3)</p>
| [
{
"answer_id": 373934,
"author": "usman shaheen",
"author_id": 7722,
"author_profile": "https://Stackoverflow.com/users/7722",
"pm_score": 4,
"selected": true,
"text": "private static void TraceMethodArguments(MethodExecutionEventArgs eventArgs)\n{\n object[] parameters = eventArgs.Ge... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7722/"
] |
362,154 | <p>I'm just reading Code Complete by Steve McConell and I'm thinking of an Example he gives in a section about loose coupling. It's about the interface of a method that calculates the number of holidays for an employee, which is calculated from the entry date of the employee and her sales. The author suggests a to have... | [
{
"answer_id": 362180,
"author": "Brian Rasmussen",
"author_id": 38206,
"author_profile": "https://Stackoverflow.com/users/38206",
"pm_score": 0,
"selected": false,
"text": "Sum(int a, int b)"
},
{
"answer_id": 362181,
"author": "Chuck Conway",
"author_id": 17360,
"au... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362154",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18722/"
] |
362,202 | <p>I am looking for a reference database that can be used to test for possible name typos in a contact database. This is for a batch process, so performance isn't a real issue. Ideally I'd like a comprehensive database, but even something like "top 5000" would go a long way. </p>
<p>Thanks!</p>
| [
{
"answer_id": 362303,
"author": "Mapad",
"author_id": 28165,
"author_profile": "https://Stackoverflow.com/users/28165",
"pm_score": 4,
"selected": false,
"text": "Phil, Phile, Philip, Philipp, Phillip, Felipe, Philippe"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362202",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
362,215 | <p>I want to build a threaded forum for an elearning site (opensource asp.net mvc ofcourse, though this doesn't matter for this question). </p>
<p>What should be the DB structure which will help retrieve the forum postings with optimum performance? I am not putting a no. to it as it may vary with the amount of rows ... | [
{
"answer_id": 362230,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 3,
"selected": true,
"text": "WHERE ParentId = @SomeId"
},
{
"answer_id": 362246,
"author": "Supernovah",
"author_id": 36076,
"author... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34644/"
] |
362,222 | <p>I am actually rendering an excel file in the browser. I use the Response.Writefile(filePath) to dod this. It is working perfectly fine in few of the machines. I am getting a pop up with "Open","Save" and "Cancel" option. </p>
<p>But incase of few machines after i do a save click on the popup a plain empty page rema... | [
{
"answer_id": 362712,
"author": "HectorMac",
"author_id": 1400,
"author_profile": "https://Stackoverflow.com/users/1400",
"pm_score": 3,
"selected": true,
"text": "Response.ContentType = \"application/x-excel\";\n"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20951/"
] |
362,231 | <p>I'm interested in implementing autocomplete in Python. For example, as the user types in a string, I'd like to show the subset of files on disk whose names start with that string. </p>
<p>What's an efficient algorithm for finding strings that match some condition in a large corpus (say a few hundred thousand string... | [
{
"answer_id": 362285,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "set_completer()"
},
{
"answer_id": 362433,
"author": "Brian",
"author_id": 9493,
"author_profile": "https:... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13055/"
] |
362,260 | <p>How does <code>const</code> (pointers, references and member functions) help with thread safety in C++?</p>
| [
{
"answer_id": 362362,
"author": "Evgeny Lazin",
"author_id": 42371,
"author_profile": "https://Stackoverflow.com/users/42371",
"pm_score": 3,
"selected": false,
"text": "class Foo\n{\n size_t size_;\npublic:\n ...\n size_t get_size() const\n {\n return size_\n }\n}... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11828/"
] |
362,269 | <p>I am having a very strange problem. I have a very large regular expression searching for certain words in some text (RegEx looks something like this: <code>(?i)\b(a|b|c|d...)\b;</code> and so on where a, b, c, d, represent words). Anyway, I put it in a pre compiled assembly to speed things up a bit, however the prob... | [
{
"answer_id": 362370,
"author": "Markus Jarderot",
"author_id": 22364,
"author_profile": "https://Stackoverflow.com/users/22364",
"pm_score": 1,
"selected": false,
"text": "\\w+"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45645/"
] |
362,278 | <p>I'm begginer in java I'm reading data from serial port and I have stored the data in string array data is 24 byte length.</p>
<p>Data I'm getting as output: 12120814330006050.0 </p>
<p>data also contains hexadecimal character in the string I want to read first character of the string. I have done:</p>
<pre><code>... | [
{
"answer_id": 362289,
"author": "Markus Lausberg",
"author_id": 39062,
"author_profile": "https://Stackoverflow.com/users/39062",
"pm_score": 2,
"selected": false,
"text": "str.getChar(0);\n"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362278",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
362,300 | <p>I plan to use a distributed cache in my load-balanced webapp.
So I'm going to try to abstract out the common functions between apache ehcache and memcached.</p>
<p>My goal is to be able to make a simple configuration switch to select the caching solution to use. Should I go the SPI route e.g. like how XML parsers a... | [
{
"answer_id": 362289,
"author": "Markus Lausberg",
"author_id": 39062,
"author_profile": "https://Stackoverflow.com/users/39062",
"pm_score": 2,
"selected": false,
"text": "str.getChar(0);\n"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362300",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24457/"
] |
362,326 | <p>I have 6 classes, which are all document types. All the document types have the same 8 fields. There is one class which consists of only these 8 fields. The rest of the classes have more fields. Some of these classes have the same fields (beside the 8 fields).</p>
<p>Example:</p>
<p>class Document: fields 1 to 8</... | [
{
"answer_id": 362332,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": true,
"text": "class Form : Document { ... }\n\n// Later on\nControls.Add(new DocumentDisplay(form));\n"
},
{
"answer_id": 36248... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40676/"
] |
362,328 | <p>I'm trying to run PHPDocumentor on my WAMPServer setup. It runs fine, but I'd like to exclude certain directories, such as \sqlbuddy\ which don't contain my own code. Ironically, PHPDocumentor appears to be ignoring my --ignore switch. I've tried several ways of expressing the same thing, but with the same result. B... | [
{
"answer_id": 4105306,
"author": "Sonata",
"author_id": 498238,
"author_profile": "https://Stackoverflow.com/users/498238",
"pm_score": 3,
"selected": false,
"text": "--ignore sqlbuddy/,docs/"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4742/"
] |
362,360 | <p>I am developing a Web Album using Grails and for image processing, I am using grails-image-tools plugin. I need a functionality to resize the images if the uploaded images size is too big (for eg: more than 600 * 840 ) . In this case I need to resize this image to 600 * 840). What is the most efficient way to do thi... | [
{
"answer_id": 362411,
"author": "Warrior",
"author_id": 40933,
"author_profile": "https://Stackoverflow.com/users/40933",
"pm_score": 4,
"selected": true,
"text": "import java.awt.Image as AWTImage \nimport java.awt.image.BufferedImage \nimport javax.swing.ImageIcon \nimport javax.... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11193/"
] |
362,367 | <p>So in C#, I can treat a <code>string[]</code> as an <code>IEnumerable<string></code>.</p>
<p>Is there a Java equivalent?</p>
| [
{
"answer_id": 362387,
"author": "Learning",
"author_id": 18275,
"author_profile": "https://Stackoverflow.com/users/18275",
"pm_score": 3,
"selected": false,
"text": "Iterable <T>"
},
{
"answer_id": 362396,
"author": "bruno conde",
"author_id": 31136,
"author_profile"... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35086/"
] |
362,384 | <p>I ask because I am sending a byte stream from a C process to Java. On the C side the 32 bit integer has the LSB is the first byte and MSB is the 4th byte.</p>
<p>So my question is: On the Java side when we read the byte as it was sent from the C process, what is <a href="https://en.wikipedia.org/wiki/Endianness" re... | [
{
"answer_id": 362390,
"author": "Jonas Elfström",
"author_id": 44620,
"author_profile": "https://Stackoverflow.com/users/44620",
"pm_score": 4,
"selected": false,
"text": "int i = (int) b & 0xFF;\n"
},
{
"answer_id": 8432010,
"author": "WB Greene",
"author_id": 1087865,
... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362384",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42303/"
] |
362,386 | <pre><code>dev%40bionic%2Dcomms%2Eco%2Euk
</code></pre>
<p>I want to turn the above back in to readable text. Can anyone tell me how? Thanks</p>
<p>EDIT
Forgive my oversight, PHP is the language of choice!</p>
| [
{
"answer_id": 362403,
"author": "Piskvor left the building",
"author_id": 19746,
"author_profile": "https://Stackoverflow.com/users/19746",
"pm_score": 2,
"selected": false,
"text": "decodeURIComponent(\"dev%40bionic%2Dcomms%2Eco%2Euk\")"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31677/"
] |
362,402 | <p>I have found <a href="http://www.jamesholmes.com/struts/console/help.html" rel="nofollow noreferrer">Struts Console Tool</a> but its development stopped in 2004, so it works with Netbeans 3.2.</p>
<p>Is there a way to install it under Netbeans 6.5?</p>
<p>Are there any options to edit struts-config.xml above the X... | [
{
"answer_id": 365162,
"author": "asalamon74",
"author_id": 21348,
"author_profile": "https://Stackoverflow.com/users/21348",
"pm_score": 2,
"selected": true,
"text": "struts-config.xml"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21047/"
] |
362,419 | <p>I'd like to periodically run an arbitrary .NET exe under a specified user account from a Windows Service. </p>
<p>So far I've got my windows service running with logic to decide what the target process is, and when to run it.
The target process is started in the following manner:</p>
<ol>
<li>The Windows Service i... | [
{
"answer_id": 564429,
"author": "Matt Jacobsen",
"author_id": 15608,
"author_profile": "https://Stackoverflow.com/users/15608",
"pm_score": 6,
"selected": true,
"text": "Process proc = null;\nSystem.Diagnostics.ProcessStartInfo info;\nstring domain = string.IsNullOrEmpty(row.Domain) ? \... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15608/"
] |
362,424 | <p>Lets say I have a concrete class Class1 and I am creating an anonymous class out of it.</p>
<pre><code>Object a = new Class1(){
void someNewMethod(){
}
};
</code></pre>
<p>Now is there any way I could overload the constructor of this anonymous class. Like shown below</p>
<pre><code>Object a ... | [
{
"answer_id": 362443,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 9,
"selected": true,
"text": "public class Test {\n public static void main(String[] args) throws Exception {\n final int fakeConstructorArg ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27784/"
] |
362,426 | <p>What is the "cleanest" way to implement an command-line UI, similar to git's, for example:</p>
<pre><code>git push origin/master
git remote add origin git://example.com master
</code></pre>
<p>Ideally also allowing the more flexible parsing, for example,</p>
<pre><code>jump_to_folder app theappname v2
jump_to_fol... | [
{
"answer_id": 362475,
"author": "klozovin",
"author_id": 33841,
"author_profile": "https://Stackoverflow.com/users/33841",
"pm_score": 2,
"selected": false,
"text": "import sys\n\ndef prog1_func1_act1(): print \"pfa1\"\ndef prog2_func2_act2(): print \"pfa2\"\n\ncommands = {\n \"prog1... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/745/"
] |
362,428 | <p>This is a two part question. A dumb technical query and a broader query about my possibly faulty approach to learning to do some things in a language I'm new to.</p>
<p>I'm just playing around with a few Python GUI libraries (mostly wxPython and IronPython) for some work I'm thinking of doing on an open source app,... | [
{
"answer_id": 362868,
"author": "babbageclunk",
"author_id": 38851,
"author_profile": "https://Stackoverflow.com/users/38851",
"pm_score": 1,
"selected": false,
"text": "System.Windows.Forms.Form"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
362,429 | <p>I've created a utf8 encoded RSS feed which presents news data drawn from a database. I've set all aspects of my database to utf8 and also saved the text which i have put into the database as utf8 by pasting it into notepad and saving as utf8. So everything should be encoded in utf8 when the RSS feed is presented to ... | [
{
"answer_id": 362649,
"author": "Kornel",
"author_id": 27009,
"author_profile": "https://Stackoverflow.com/users/27009",
"pm_score": 0,
"selected": false,
"text": "&"
},
{
"answer_id": 363788,
"author": "rip747",
"author_id": 31278,
"author_profile": "https://Stackov... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362429",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45427/"
] |
362,434 | <p>I dropped a database from SQL Server, however it turns out that <strong>my login</strong> was set to use the dropped database as its default. I can connect to SQL Server Management Studio by using the 'options' button in the connection dialog and selecting 'master' as the database to connect to. However, whenever I ... | [
{
"answer_id": 362435,
"author": "Martin Brown",
"author_id": 20553,
"author_profile": "https://Stackoverflow.com/users/20553",
"pm_score": 8,
"selected": false,
"text": "Exec sp_defaultdb @loginame='login', @defdb='master' \n"
},
{
"answer_id": 363496,
"author": "Greg B",
... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20553/"
] |
362,441 | <p>I am sure this is a very simple problem, but I am new to VB.NET, so I am having an issue with it.</p>
<p>I have a <code>Decimal</code> variable, and I need to split it into two separate variables, one containing the integer part, and one containing the fractional part. </p>
<p>For example, for x = 12.34 you would ... | [
{
"answer_id": 362453,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "Sub SplitDecimal(ByVal number As Decimal, ByRef wholePart As Decimal, _\n ByRef fractionalPart As Decimal... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30297/"
] |
362,444 | <p>I would like to write a macro for Notepad++ which should replace char1, char2, char3 with char4, char5, char6, respectively.</p>
| [
{
"answer_id": 362869,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "https://Stackoverflow.com/users/15459",
"pm_score": 7,
"selected": true,
"text": "<Macro name=\"Trim Trailing and save\" Ctrl=\"no\" Alt=\"yes\" Shift=\"yes\" Key=\"83\">\n <Action type=\"1\" message=\"2... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4235/"
] |
362,445 | <p>I'm assuming this is an easy question, but I'll be darned if I can find the answer.</p>
<p>I have a website in Visual Studio 2008. The paths to the stylesheets (and images) are in the following format /css/stylesheetname.css</p>
<p>At the root of the web project in Visual studio the folder exists as does the style... | [
{
"answer_id": 362502,
"author": "Egil Hansen",
"author_id": 32809,
"author_profile": "https://Stackoverflow.com/users/32809",
"pm_score": 3,
"selected": false,
"text": "/App_Themes/YourTheme/Images/"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1970/"
] |
362,446 | <p>Are there some practical programming situations for someone to declare a class abstract when all the methods in it are concrete?</p>
| [
{
"answer_id": 362469,
"author": "bruno conde",
"author_id": 31136,
"author_profile": "https://Stackoverflow.com/users/31136",
"pm_score": 0,
"selected": false,
"text": "abstract"
},
{
"answer_id": 363748,
"author": "Markus",
"author_id": 45064,
"author_profile": "htt... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362446",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27784/"
] |
362,461 | <p>I am trying to build a working encrypted signature for the Amazon S3 web service, writing a connection library using Objective C. </p>
<p>I have run into HMAC SHA-1 digest problems with the ObjC code, so I'm putting that to the side and looking at existing, working Perl code, to try to troubleshoot digest creation.... | [
{
"answer_id": 362501,
"author": "innaM",
"author_id": 7498,
"author_profile": "https://Stackoverflow.com/users/7498",
"pm_score": 1,
"selected": false,
"text": "secret key hex: abcd...1234\n"
},
{
"answer_id": 362594,
"author": "brofield",
"author_id": 31423,
"author... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362461",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19410/"
] |
362,468 | <p>I'm new to log4net, so hopefully this is a really easy question for someone?!</p>
<p>I've got log4net working with the RollingLogFileAppender for my web application. I'm using logging to try and find where some performance issues are coming from. In order to do this, it'd be useful to include the ASP.NET SessionI... | [
{
"answer_id": 362526,
"author": "Richard Ev",
"author_id": 39709,
"author_profile": "https://Stackoverflow.com/users/39709",
"pm_score": 1,
"selected": false,
"text": "<conversionPattern\n value=\"%date %-5level %logger ${COMPUTERNAME} [%property{SessionID}] - %message%newline\" />\n... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/475/"
] |
362,483 | <p>Is is possible to put a constant where clause to a Linq to SQl mapping.</p>
<p>I really don't want to do this at the query level or in my Data Access Object as these are currently completely generic and would like to keep it that way to make life for the other developers and save me repeating myself constantly.</p>... | [
{
"answer_id": 362534,
"author": "Paul Nearney",
"author_id": 24071,
"author_profile": "https://Stackoverflow.com/users/24071",
"pm_score": 3,
"selected": true,
"text": "public static IQueryable<Horse> GetHorses(this DataContext db)\n{\n return from h in db.Horses\n where !h... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1213936/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.