qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
375,590 | <p>I'm loading an XML document in my C# application with the following:</p>
<pre><code>XDocument xd1 = new XDocument();
xd1 = XDocument.Load(myfile);
</code></pre>
<p>but before that, I do test to make sure the file exists with:</p>
<pre><code>File.Exists(myfile);
</code></pre>
<p>But... is there an (easy) way to t... | [
{
"answer_id": 375617,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 4,
"selected": false,
"text": "File.Exists()"
},
{
"answer_id": 375646,
"author": "Jennifer",
"author_id": 22360,
"author_profile... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375590",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44004/"
] |
375,598 | <p>Is there any way that I can find the container pointed to by an iterator? Specifically, I want to be able to find the <code>std::vector</code> pointed to by a particular <code>std::vector::iterator</code> so that I can check the range, without having to actually pass references to that vector around.</p>
<p>If (as ... | [
{
"answer_id": 375627,
"author": "Judge Maygarden",
"author_id": 1491,
"author_profile": "https://Stackoverflow.com/users/1491",
"pm_score": 2,
"selected": false,
"text": "#include <algorithm>\n#include <cstdio>\n#include <cstring>\n\nint\nmain(int argc, char *argv[])\n{\n const c... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45170/"
] |
375,605 | <p>I need to keep a couple of <a href="http://jena.sf.net" rel="nofollow noreferrer">Jena</a> Models (OntModels, specifically) synchronized across a socket, and I'd like to do this one change at a time (for various reasons -- one being that each Statement added or removed from the OntModels is also adapting a JESS rule... | [
{
"answer_id": 430289,
"author": "Ian Dickinson",
"author_id": 6716,
"author_profile": "https://Stackoverflow.com/users/6716",
"pm_score": 3,
"selected": true,
"text": "yourOntModel.add( changesModel )"
},
{
"answer_id": 441402,
"author": "rcreswick",
"author_id": 3446,
... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3446/"
] |
375,647 | <p>I've used some very large scale systems and never seen a required order, but came across it recently. Does the STL or STD library or even Boost have any cases where certain includes must come in a certain order?</p>
| [
{
"answer_id": 375663,
"author": "pyon",
"author_id": 46571,
"author_profile": "https://Stackoverflow.com/users/46571",
"pm_score": 2,
"selected": false,
"text": "// A.h\n#pragma once\n// or the #ifndef trick\n#include \"B.h\"\n\n// A.cpp\n#include \"A.h\"\n"
},
{
"answer_id": 37... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375647",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44996/"
] |
375,651 | <p>One of my favorite vim features is the ability to do</p>
<pre><code>set path=/my/project/root/**
</code></pre>
<p>and then use</p>
<pre><code>:find SomeClassFile.java
</code></pre>
<p>Only problem is, I've got some generated directories at that level that I cannot move and wish to exclude from such searches. I ... | [
{
"answer_id": 375699,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 3,
"selected": true,
"text": "\"**\""
},
{
"answer_id": 378473,
"author": "Michael Kristofik",
"author_id": 46821,
"author_profile... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375651",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3029/"
] |
375,710 | <p>I can detect when the content of an iframe has loaded using the <em>load</em> event. Unfortunately, for my purposes, there are two problems with this:</p>
<ul>
<li>If there is an error loading the page (404/500, etc), the load event is never fired.</li>
<li>If some images or other dependencies failed to load, the l... | [
{
"answer_id": 375759,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 4,
"selected": false,
"text": "var iFrameLoaded = false;"
},
{
"answer_id": 386677,
"author": "Chris",
"author_id": 48376,
"author_pro... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375710",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31662/"
] |
375,764 | <p>I have an datetime object that I want to remove one hour to display the corect time in a different time zone. I am using datetime.addhours(-1) with the -1 being a config value. This works in most cases except when I set the time to 12:59 AM today it displays 11:59 AM today. When it should display 11:59 PM. Is it p... | [
{
"answer_id": 375777,
"author": "Yaakov Ellis",
"author_id": 51,
"author_profile": "https://Stackoverflow.com/users/51",
"pm_score": 2,
"selected": true,
"text": "DateTime.Now.Subtract(new TimeSpan(1, 0, 0));\n"
},
{
"answer_id": 375793,
"author": "Bill",
"author_id": 14... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375764",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
375,765 | <p>I have an application that uses DataTables to perform grouping, filtering and aggregation of data. I want to replace datatables with my own data structures so we don't have any unnecessary overhead that we get from using datatables. So my question is if Linq can be used to perform the grouping, filtering and aggreg... | [
{
"answer_id": 375824,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": true,
"text": "DataTable"
}
] | 2008/12/17 | [
"https://Stackoverflow.com/questions/375765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8219/"
] |
375,784 | <p>I have an aspx page with 1 table containing 2 rows:</p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
html, body
{
... | [
{
"answer_id": 375844,
"author": "Skubs",
"author_id": 25609,
"author_profile": "https://Stackoverflow.com/users/25609",
"pm_score": 0,
"selected": false,
"text": "\nfunction getWindowHeight() {\n var windowHeight = 0;\n if (typeof(window.innerHeight) == 'number') {\n window... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9266/"
] |
375,820 | <p>I'm writing a GUI application in Python using wxPython and I want to display an image in a static control (<code>wx.StaticBitmap</code>).</p>
<p>I can use <a href="http://www.wxpython.org/docs/api/wx-module.html#ImageFromStream" rel="nofollow noreferrer"><code>wx.ImageFromStream</code></a> to load an image from a f... | [
{
"answer_id": 375852,
"author": "codelogic",
"author_id": 43427,
"author_profile": "https://Stackoverflow.com/users/43427",
"pm_score": 4,
"selected": true,
"text": "StringIO"
}
] | 2008/12/17 | [
"https://Stackoverflow.com/questions/375820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3853/"
] |
375,841 | <p>I've been <a href="https://stackoverflow.com/questions/279557/how-do-i-keep-the-wpf-gridsplitter-from-changing-the-size-of-my-grid">struggling with the GridSplitter</a>. It seems to be incompatible with the WPF WebBrowser control.</p>
<p>If I resize my window and move the GridSplitter, then I can make my grid wide... | [
{
"answer_id": 376480,
"author": "Robert Macnee",
"author_id": 19273,
"author_profile": "https://Stackoverflow.com/users/19273",
"pm_score": 3,
"selected": true,
"text": "<Window xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n xmlns:x=\"http://schemas.microso... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/83/"
] |
375,860 | <p>How can I obtain the .NET Framework directory path inside my C# application?</p>
<p>The folder that I refer is "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727"</p>
| [
{
"answer_id": 375882,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 2,
"selected": false,
"text": "using System;\nusing Microsoft.Win32;\n"
},
{
"answer_id": 375939,
"author": "Brian Rudolph",
"... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47196/"
] |
375,868 | <p>I haven't got a unique problem, but for the life of me I can't figure out what I'm doing wrong.</p>
<p>I have a page that has a series of sections. Part of the section is a little image. When the image is clicked, I want to show a custom control. Showing the control is trivial, set the z-index a bit higher to en... | [
{
"answer_id": 375947,
"author": "Jason Jackson",
"author_id": 13103,
"author_profile": "https://Stackoverflow.com/users/13103",
"pm_score": 0,
"selected": false,
"text": ".SomeStyle\n{\nfilter:alpha(opacity=10);\n-moz-opacity:.10;\nopacity:.10;\n}\n"
},
{
"answer_id": 375972,
... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12968/"
] |
375,869 | <p>When I first setup the SVN structure for my different projects, I decided to place each different project in a separate repository.</p>
<p>This has worked well for a while, but I'm staring to think that I would like to merge all of those repositories into one overall "company-wide" repository so when I have employe... | [
{
"answer_id": 375917,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 2,
"selected": false,
"text": "svnadmin load --ignore-uuid"
},
{
"answer_id": 3141938,
"author": "Umar Farooq Khawaja",
"autho... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10420/"
] |
375,887 | <p>I have an existing fairly large classic asp website, with virtual directories configured to centralize certain resources. My problem is for some reason I can't access any of my namespaces and classes. I tried adding a reference to another project where I have classes in a namespace "DAL" and even though intellisense... | [
{
"answer_id": 8185359,
"author": "JamesD",
"author_id": 64028,
"author_profile": "https://Stackoverflow.com/users/64028",
"pm_score": 1,
"selected": false,
"text": "/bin <- this is the actual 'bin' folder\n/app1\n/app1/bin <- this is a junction point\n/app2\n/app2/bin ... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42987/"
] |
375,894 | <p>When a .Net service crashes, does the ServiceBase.OnStop method get called? Will the service be marked as stopped regardless of whether or not the OnStop method is called?</p>
| [
{
"answer_id": 2192278,
"author": "LaustN",
"author_id": 93044,
"author_profile": "https://Stackoverflow.com/users/93044",
"pm_score": 0,
"selected": false,
"text": "OnShutdown()"
}
] | 2008/12/17 | [
"https://Stackoverflow.com/questions/375894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7756/"
] |
375,895 | <p>An html template is compiled into the application as a resource. A <strong>fragment</strong> of the HTML template looks like:</p>
<pre><code><A href="%PANELLINK%" target="_blank">
<IMG border="0" src="%PANELIMAGE%" style="%IMAGESTYLE%">
</A><BR>
%CAPTIONTEXT%
</code></pre>
<p>i like it l... | [
{
"answer_id": 375975,
"author": "scunliffe",
"author_id": 6144,
"author_profile": "https://Stackoverflow.com/users/6144",
"pm_score": 0,
"selected": false,
"text": "//using PHP in this example\nfunction HTMLImage($imageData, $linkData){\n var str = '';\n //if there is link data, start... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
375,913 | <p>How do I find areas of my code that run slowly in a C++ application running on Linux?</p>
| [
{
"answer_id": 375930,
"author": "Nazgob",
"author_id": 3579,
"author_profile": "https://Stackoverflow.com/users/3579",
"pm_score": 9,
"selected": false,
"text": "-pg"
},
{
"answer_id": 378024,
"author": "Mike Dunlavey",
"author_id": 23771,
"author_profile": "https://... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1473493/"
] |
375,915 | <p>I'm playing around with some Linq-SQL stuff, doing something like this:</p>
<pre><code>var foo = from f in db.Foo where f.Bar > 5 select f;
</code></pre>
<p>which is all fine and dandy, and I know I can also do this:</p>
<pre><code>var foo = from f in db.Foo where f.Bar > 5 select new { f.Bar, f.Baz };
</co... | [
{
"answer_id": 375931,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 2,
"selected": false,
"text": "var query_foo = db.Foo.Where(f=>f.Bar > 5);\n// :\nvar foo =query_foo.Select(f=>SomeMethodThatReturnsEtc(f));\n"
... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5480/"
] |
375,928 | <p>Does anyone have an example (code or a link) that will allow me to export a gridview template field to excel? Here is an example of what I mean. Assume I have the following GridView Declaration:</p>
<pre><code><asp:GridView Id="gvResults" runat="server">
<Columns>
<asp:TemplateField Hea... | [
{
"answer_id": 375931,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 2,
"selected": false,
"text": "var query_foo = db.Foo.Where(f=>f.Bar > 5);\n// :\nvar foo =query_foo.Select(f=>SomeMethodThatReturnsEtc(f));\n"
... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33690/"
] |
375,940 | <p>I have an XML feed (which I don't control) and I am trying to figure out how to detect the volume of certain attribute values within the document.</p>
<p>I am also parsing the XML and separating attributes into Arrays (for other functionality) </p>
<p>Here is a sample of my XML</p>
<pre><code><items>
<it... | [
{
"answer_id": 375964,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 2,
"selected": true,
"text": " XDocument doc = XDocument.Parse(xml);\n var query = from item in doc.Descendants(\"item\")\n ... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375940",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30408/"
] |
375,962 | <p>I have a little trouble with RAD Studio 2009.<br>
As you know, it is possible to switch Unicode support off in MSVS (right click on solution->properties->character set=not set). I need to find this feature in RAD Studio, I know it exists but do not know where exactly.<br>
It`s the only thing that stops my work on a ... | [
{
"answer_id": 376228,
"author": "chester89",
"author_id": 28298,
"author_profile": "https://Stackoverflow.com/users/28298",
"pm_score": 0,
"selected": false,
"text": "\n wchar_t* str = Form2->Edit1->Text.w_str();\n char* mystr = new char [Form2->Edit1->Text.Length() + 1];\n Wid... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375962",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28298/"
] |
375,968 | <p>I recently started working on a large complex application, and I've just been assigned a bug due to this error:</p>
<pre><code>ORA-04091: table SCMA.TBL1 is mutating, trigger/function may not see it
ORA-06512: at "SCMA.TRG_T1_TBL1_COL1", line 4
ORA-04088: error during execution of trigger 'SCMA.TRG_T1_TBL1_COL1'
</... | [
{
"answer_id": 376029,
"author": "Dave Costa",
"author_id": 6568,
"author_profile": "https://Stackoverflow.com/users/6568",
"pm_score": 4,
"selected": true,
"text": "dev> create or replace function f( a number, b number ) return number deterministic as\n 2 begin\n 3 if a is null th... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375968",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3333/"
] |
375,976 | <p>For some reason when I download a zip folder from my server's folder it is always corrupted. Here is the code: </p>
<pre><code> protected void gvFiles_RowCommand(object sender, System.Web.UI.WebControls.GridViewCommandEventArgs e)
{
string fileUrl = String.Empty;
if(e.CommandName.... | [
{
"answer_id": 376141,
"author": "azamsharp",
"author_id": 3797,
"author_profile": "https://Stackoverflow.com/users/3797",
"pm_score": 0,
"selected": false,
"text": "fileUrl = e.CommandArgument as String;\n string fileName = Path.GetFileName(fileUrl);\n\n Fi... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3797/"
] |
375,977 | <p>What would be the best way to call a method in the code-behind of parent page from the code behind of the child page in the ASP.NET 2.0 Web Site model?</p>
<p><b>Scenario:</b> User clicks a link in the parent page to view a data record's detail in child page (The parent and child are tow seperate pages). The user ... | [
{
"answer_id": 375994,
"author": "Matt Briggs",
"author_id": 10771,
"author_profile": "https://Stackoverflow.com/users/10771",
"pm_score": 1,
"selected": false,
"text": "document.opener.location.href = \"url\"; \n"
},
{
"answer_id": 375999,
"author": "Kon",
"author_id": 2... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26327/"
] |
375,991 | <p>I have an Excel spreadsheet that I want to import select columns into my SQL Server 2008 database table. The wizard didn't offer that option.</p>
<p>Do any easy code options exist?</p>
| [
{
"answer_id": 376017,
"author": "Ian G",
"author_id": 31765,
"author_profile": "https://Stackoverflow.com/users/31765",
"pm_score": 5,
"selected": false,
"text": "INSERT INTO [tblTemp] ([Column1], [Column2], [Column3], [Column4])\n\nSELECT A.[Column1], A.[Column2], A.[Column3], A.[Colum... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47206/"
] |
375,992 | <p>I read this:
<a href="https://stackoverflow.com/questions/184254/type-systemwebuiwebcontrolssessionparameter-does-not-have-a-public-property-nam">link text</a></p>
<p>My dev box , everything runs fine. On production server, they installed V3.5 framework and i got to my site and i got this error.</p>
<p>Do I have t... | [
{
"answer_id": 376017,
"author": "Ian G",
"author_id": 31765,
"author_profile": "https://Stackoverflow.com/users/31765",
"pm_score": 5,
"selected": false,
"text": "INSERT INTO [tblTemp] ([Column1], [Column2], [Column3], [Column4])\n\nSELECT A.[Column1], A.[Column2], A.[Column3], A.[Colum... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375992",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38230/"
] |
375,996 | <p>I have two complex (i.e. objects with string, int, double, List and other home made data type) objects of the same type. I would like to compare the content of both of them to ensure that they are identical. Note: The object doesn't implement .Equals (I have no control on that) and doesn't implement IComparable. </p... | [
{
"answer_id": 376011,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 2,
"selected": false,
"text": "Equals"
},
{
"answer_id": 17033865,
"author": "Detlef Kroll",
"author_id": 2472621,
"author_profi... | 2008/12/17 | [
"https://Stackoverflow.com/questions/375996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42024/"
] |
376,003 | <p>I have a problem related to the <a href="http://en.wikipedia.org/wiki/Subset_sum_problem" rel="noreferrer">subset sum problem</a> and am wondering if the differences make it easier, i.e. solvable in a reasonable amount of time.</p>
<p>Given a value V, a set size L, and a sequence of numbers [1,N] S, how many size L... | [
{
"answer_id": 376085,
"author": "ShreevatsaR",
"author_id": 4958,
"author_profile": "https://Stackoverflow.com/users/4958",
"pm_score": 5,
"selected": true,
"text": " num[0][0][i] = 1\n for v = 1 to V:\n for k = 1 to L:\n num[v][k][i] = num[v][k][i-1] + num[v-S[i... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23903/"
] |
376,006 | <p>Can I put my "bin" folder with all of its .dll files at a higher level then the IIS Local Path/web root for the site? I need to keep my dll files in a directory outside of my project is this possible, I tried to use a virtual directory but .net seems to ignore it. </p>
<p>Can I use a virtual directory for my bin fo... | [
{
"answer_id": 376089,
"author": "schmoopy",
"author_id": 26685,
"author_profile": "https://Stackoverflow.com/users/26685",
"pm_score": 0,
"selected": false,
"text": "<runtime>\n <assemblyBinding xmlns=\"urn:schemas-microsoft-com:asm.v1\">\n <probing privatePath=\"MyCoolNewPath/bin\"... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42987/"
] |
376,019 | <p>I would like information on algorithms that can help identify commonality and differences between sets of overlapping data. </p>
<p>Using stackoverflow's tag system as an example:</p>
<p>Let's say this question has been given 5 tags. Let's say there are 1000 other questions that have at least one of these tags. ... | [
{
"answer_id": 376207,
"author": "Paul W Homer",
"author_id": 43371,
"author_profile": "https://Stackoverflow.com/users/43371",
"pm_score": 1,
"selected": true,
"text": "for each entry\n if any tag in original_tags\n tag_list[tag]++\nend\n\nfor next in tag_list\n tag_count[t... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47207/"
] |
376,021 | <p>Consider this sample code:</p>
<pre><code><div class="containter" id="ControlGroupDiv">
<input onbeforeupdate="alert('bingo 0'); return false;" onclick="alert('click 0');return false;" id="Radio1" type="radio" value="0" name="test" checked="checked" />
<input onbeforeupdate="alert('bingo 1'); r... | [
{
"answer_id": 376096,
"author": "Diodeus - James MacFarlane",
"author_id": 12579,
"author_profile": "https://Stackoverflow.com/users/12579",
"pm_score": 2,
"selected": false,
"text": "<form name=\"f1\">\n<input type=radio onmouseover=\"recordMe()\" onclick=\"clickCheck();return false\" ... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14894/"
] |
376,022 | <p>I'm pretty much into lisp at the moment, and unfortunately i'm only available to code on windows. Is is possible to let Notepad++ take care of the interpreting of my scripts, and display the output in the compiler window?</p>
<p>If yes, what interpreter would be the best to use?</p>
<p>Thanks!</p>
| [
{
"answer_id": 376456,
"author": "Tamara Wijsman",
"author_id": 47064,
"author_profile": "https://Stackoverflow.com/users/47064",
"pm_score": 2,
"selected": false,
"text": "CLISP sourceFile\n"
},
{
"answer_id": 62080991,
"author": "Patrik Gustafsson",
"author_id": 4727552... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
376,036 | <p>I have two raw sound streams that I need to add together. For the purposes of this question, we can assume they are the same bitrate and bit depth (say 16 bit sample, 44.1khz sample rate).</p>
<p>Obviously if I just add them together I will overflow and underflow my 16 bit space. If I add them together and divide... | [
{
"answer_id": 377433,
"author": "Mark Heath",
"author_id": 7532,
"author_profile": "https://Stackoverflow.com/users/7532",
"pm_score": 4,
"selected": false,
"text": "short sample1 = ...;\nshort sample2 = ...;\nfloat samplef1 = sample1 / 32768.0f;\nfloat samplef2 = sample2 / 32768.0f;\nf... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376036",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2915/"
] |
376,040 | <p>Currently I am designing a website and I am finding it VERY difficult to display the website perfect on ALL browsers. </p>
<p>Is there any rules, suggestions etc to follow?</p>
<p>Thanks</p>
| [
{
"answer_id": 376211,
"author": "Ben Blank",
"author_id": 46387,
"author_profile": "https://Stackoverflow.com/users/46387",
"pm_score": 5,
"selected": false,
"text": "text/html"
},
{
"answer_id": 376624,
"author": "Bobby Cannon",
"author_id": 43976,
"author_profile":... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44973/"
] |
376,068 | <p>If I wrap a SQLConnection in a Using, should I close it or does the end using handle it?</p>
<pre><code>using cn as new system.data.sqlclient.sqlconnection()
cn.open
'{do a bunch of other stuff with commands and datareaders here}
cn.close 'Do I need this?
end using
</code></pre>
| [
{
"answer_id": 376070,
"author": "matt b",
"author_id": 4249,
"author_profile": "https://Stackoverflow.com/users/4249",
"pm_score": 8,
"selected": true,
"text": "cn"
},
{
"answer_id": 376087,
"author": "Matt Briggs",
"author_id": 10771,
"author_profile": "https://Stac... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376068",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1616/"
] |
376,071 | <p>My windows service is creating a directory on a shared folder, and I am getting a error:</p>
<pre><code>at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path,DirectorySecurity dirSecurity)
at System.IO.Directory.CreateDirec... | [
{
"answer_id": 1168666,
"author": "Jonathan Escobedo",
"author_id": 1388553,
"author_profile": "https://Stackoverflow.com/users/1388553",
"pm_score": 0,
"selected": false,
"text": "string DIR_CONTA = \"\\\\\\\\192.168.0.X\\\\folder\\\\subfolder\";\n"
}
] | 2008/12/17 | [
"https://Stackoverflow.com/questions/376071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39677/"
] |
376,081 | <p>I am trying to work out how to get the value of table cell for each row using jQuery.</p>
<p>My table looks like this:</p>
<pre><code><table id="mytable">
<tr>
<th>Customer Id</th>
<th>Result</th>
</tr>
<tr>
<td>123</td>
<td>&l... | [
{
"answer_id": 376091,
"author": "Strelok",
"author_id": 2788,
"author_profile": "https://Stackoverflow.com/users/2788",
"pm_score": 3,
"selected": false,
"text": "$('#mytable tr').each(function() {\n // need this to skip the first row\n if ($(this).find(\"td:first\").length > 0) {\n ... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47212/"
] |
376,090 | <p>I have an NSDictionary (stored in a plist) that I'm basically using as an associative array (strings as keys and values). I want to use the array of keys as part of my application, but I'd like them to be in a specific order (not really an order that I can write an algorithm to sort them into). I could always stor... | [
{
"answer_id": 376925,
"author": "Ashley Clark",
"author_id": 4556,
"author_profile": "https://Stackoverflow.com/users/4556",
"pm_score": 3,
"selected": false,
"text": "-count"
},
{
"answer_id": 1269936,
"author": "Adam Prall",
"author_id": 1822483,
"author_profile": ... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44858/"
] |
376,093 | <pre><code>@Column(name="DateOfBirth")
private Date dateOfBirth;
</code></pre>
<p>I specifically need the above code to create a column named "DateOfBirth," instead Hibernate gives me a column named date_of_birth. How can I change this? Is there a web.xml property? I came across DefaultNamingStrategy and ImprovedNa... | [
{
"answer_id": 376118,
"author": "Ryan Anderson",
"author_id": 13308,
"author_profile": "https://Stackoverflow.com/users/13308",
"pm_score": 3,
"selected": false,
"text": "@Column(name=\"DateOfBirth\")\npublic Date getDateOfBirth() {\n...\n}\n"
},
{
"answer_id": 376275,
"auth... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31172/"
] |
376,101 | <p>I did see the question about setting the proxy for the JVM but what I want to ask is how one can utilize the proxy that is already configured (on Windows).</p>
<p>Here is a demonstration of my issue: </p>
<blockquote>
<blockquote>
<ol>
<li>Go to your Control Panel->Java and set a proxy address. </li>
... | [
{
"answer_id": 381698,
"author": "t3rse",
"author_id": 64,
"author_profile": "https://Stackoverflow.com/users/64",
"pm_score": 6,
"selected": true,
"text": "System.setProperty(\"java.net.useSystemProxies\", \"true\");\nSystem.out.println(\"detecting proxies\");\nList l = null;\ntry {\n ... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/64/"
] |
376,103 | <p>I am looking to distribute an open source iPhone app and I have a few questions about making the source distribution:</p>
<ol>
<li><p>How can I automate creating the source archive (or diskimage) with XCode? I want something along the lines of a build target which archives the source (cleaning targets first if nece... | [
{
"answer_id": 843619,
"author": "Wanderer",
"author_id": 104115,
"author_profile": "https://Stackoverflow.com/users/104115",
"pm_score": 0,
"selected": false,
"text": "rm -f \"$APPFILE.zip\" && zip -ry \"$APPFILE.zip\" \"$APPFILE\" && open .\n"
},
{
"answer_id": 844643,
"aut... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42404/"
] |
376,104 | <p>I placed a UITextField into a UIAlertView and moved it up so the keyboard wouldn't cover it up with the following code:</p>
<pre><code>[dialog setDelegate:self];
[dialog setTitle:@"Enter Name"];
[dialog addButtonWithTitle:@"Cancel"];
[dialog addButtonWithTitle:@"OK"];
UITextField * nameField = [[UITextField alloc] ... | [
{
"answer_id": 376546,
"author": "user21293",
"author_id": 21293,
"author_profile": "https://Stackoverflow.com/users/21293",
"pm_score": 6,
"selected": true,
"text": "UIAlertView* dialog = [[UIAlertView alloc] init];\n[dialog setDelegate:self];\n[dialog setTitle:@\"Enter Name\"];\n[dialo... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376104",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21293/"
] |
376,105 | <p>I'm attempting to use Assembly.GetType("MyCompany.Class1.Class2") to dynamically get a type from a string.</p>
<pre><code>Assembly.GetType("MyCompany.Class1");
</code></pre>
<p>works as expected.</p>
<p>If I embed a class within another class such as:</p>
<pre><code>namespace MyCompany
{
public class Class1
... | [
{
"answer_id": 376113,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 5,
"selected": true,
"text": " Assembly.GetType(\"MyCompany.Class1+Class2\");\n"
},
{
"answer_id": 376124,
"author": "plinth",
... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2723/"
] |
376,111 | <p>I would like to set some vim options in one file in the comments section.</p>
<p>For example, I would like to set this option in one file</p>
<pre><code>set syntax=python
</code></pre>
<p>The file does not have a .py extension and I am not interested in making my vim installation recognise all files with this ext... | [
{
"answer_id": 376200,
"author": "Harper Shelby",
"author_id": 21196,
"author_profile": "https://Stackoverflow.com/users/21196",
"pm_score": 7,
"selected": true,
"text": "# vim: set syntax=python:\n"
},
{
"answer_id": 376225,
"author": "Ben Blank",
"author_id": 46387,
... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3045/"
] |
376,128 | <p>I have a dotnet windows service that's currently hung, but running. Is there anyway to attach a debugger to it, despite the lack of symbols; and that it's already running?</p>
| [
{
"answer_id": 376173,
"author": "Shog9",
"author_id": 811,
"author_profile": "https://Stackoverflow.com/users/811",
"pm_score": 4,
"selected": true,
"text": ".loadby sos mscorwks\n"
}
] | 2008/12/17 | [
"https://Stackoverflow.com/questions/376128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7756/"
] |
376,130 | <p>I Have following code:</p>
<p>Controller:</p>
<pre><code>public ActionResult Step1()
{
return View();
}
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Step1(FormCollection form)
{
TempData["messageStatus"] = new Random().Next(1, 1000);
return RedirectToAction("Step1");
}
</code></pre>
... | [
{
"answer_id": 376148,
"author": "Todd Smith",
"author_id": 31624,
"author_profile": "https://Stackoverflow.com/users/31624",
"pm_score": 0,
"selected": false,
"text": "TempData[\"messageStatus\"] = new Random(DateTime.Now.Millisecond).Next(1, 1000);\n"
},
{
"answer_id": 376291,
... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2246271/"
] |
376,135 | <p>I've got a C# program with values in a config file. What I want is to store ampersands for an url value like...</p>
<pre><code><appSettings>
<add key="myurl" value="http://www.myurl.com?&cid=&sid="/>
</appSettings>
</code></pre>
<p>But I get errors building my site. The ampersand is n... | [
{
"answer_id": 376140,
"author": "Eric Rosenberger",
"author_id": 41624,
"author_profile": "https://Stackoverflow.com/users/41624",
"pm_score": 10,
"selected": true,
"text": "&"
},
{
"answer_id": 376152,
"author": "BenAlabaster",
"author_id": 40650,
"author_profil... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376135",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7285/"
] |
376,136 | <p>I have a Windows C++ program that is doing something like:<br></p>
<pre>
FILE* pf = ...;
*stdout = *pf; // stdout is defined in stdio.h
</pre>
<p>I'm looking for an explanation about what happens when you change the value of the stdout file handle. Is this just a way of redirecting stdout?</p>
<p>-cr</p>
| [
{
"answer_id": 376151,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 3,
"selected": false,
"text": "freopen()"
},
{
"answer_id": 376172,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_p... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47154/"
] |
376,142 | <p>Is it possible to get a list of events (with recurring events expanded) out of Sharepoint's Calendar using the Web Service exposed through Lists.aspx?</p>
<p>This is evidently possible if you are using C# or VB, as described <a href="http://blogs.msdn.com/sharepoint/archive/2007/05/14/understanding-the-sharepoint-c... | [
{
"answer_id": 4555158,
"author": "user557264",
"author_id": 557264,
"author_profile": "https://Stackoverflow.com/users/557264",
"pm_score": 3,
"selected": false,
"text": "<GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'>\n<listName>{your GUID goes here}</listName>\n<q... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23977/"
] |
376,144 | <p>I'm writing some routes for a REST service. One of my resource's URI looks like this</p>
<p>resources/user/:id</p>
<p>I also want to give access to individual attributes of a user, which would look like this</p>
<p>resources/user/:id/:attribute</p>
<p>But when I try to define that latter route, it doesn't work.... | [
{
"answer_id": 4555158,
"author": "user557264",
"author_id": 557264,
"author_profile": "https://Stackoverflow.com/users/557264",
"pm_score": 3,
"selected": false,
"text": "<GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'>\n<listName>{your GUID goes here}</listName>\n<q... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8815/"
] |
376,154 | <p>This is a follow-up to my <a href="https://stackoverflow.com/questions/372695/is-there-a-standard-c-function-object-for-taking-apart-a-stdpair">question from yesterday</a>. I have Scott Meyers' warning about write-only code on my mind. I like the idea in principle of using standard algorithms to access the keys or... | [
{
"answer_id": 376177,
"author": "Nemanja Trifunovic",
"author_id": 8899,
"author_profile": "https://Stackoverflow.com/users/8899",
"pm_score": 2,
"selected": false,
"text": "m.end()"
},
{
"answer_id": 376244,
"author": "Head Geek",
"author_id": 12193,
"author_profile... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376154",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46821/"
] |
376,156 | <p>I don't really get it and it's driving me nuts.
i've these 4 lines:</p>
<pre><code>Image img = Image.FromFile("F:\\Pulpit\\soa.bmp");
MemoryStream imageStream = new MemoryStream();
img.Save(imageStream, ImageFormat.Bmp);
byte[] contentBuffer = new byte[imageStream.Length];
imageStream.Read(contentBuffer, 0, content... | [
{
"answer_id": 376171,
"author": "Joel Lucsy",
"author_id": 645,
"author_profile": "https://Stackoverflow.com/users/645",
"pm_score": 5,
"selected": false,
"text": "imageStream.Seek( 0, SeekOrigin.Begin );\n"
},
{
"answer_id": 376191,
"author": "BenAlabaster",
"author_id"... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376156",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40872/"
] |
376,170 | <p>Visual Studio fails to deploy reports or data sources on remote MSRS instance. Error message is</p>
<blockquote>
<p>Unable to connect to the remote server.</p>
</blockquote>
<p>The server is up and running and <code>TargetServerURL</code> property of the project points to correct url which works in the browser.<... | [
{
"answer_id": 376224,
"author": "Rex Morgan",
"author_id": 46429,
"author_profile": "https://Stackoverflow.com/users/46429",
"pm_score": 2,
"selected": false,
"text": "http://server/ReportServer/"
},
{
"answer_id": 3860131,
"author": "Aftab",
"author_id": 466340,
"au... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
376,174 | <p>I am having an issue with linq updating in linqtosql</p>
<p>from the code below</p>
<pre><code>Dim lqPatientTable As New lqHospitalDataContext
Dim strPatientId As String
strPatientId = Me.ucboPatientInfo.SelectedRow.Cells(5).Value
Dim lqPatientName = (From lqp In lqPatientTable.Patients _
... | [
{
"answer_id": 376198,
"author": "JaredPar",
"author_id": 23283,
"author_profile": "https://Stackoverflow.com/users/23283",
"pm_score": 1,
"selected": false,
"text": "Dim x = New With { Key .Name =\"foo\" }\n"
}
] | 2008/12/17 | [
"https://Stackoverflow.com/questions/376174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5578/"
] |
376,188 | <p>I have a class that extends Zend_Form like this (simplified):</p>
<pre><code>class Core_Form extends Zend_Form
{
protected static $_elementDecorators = array(
'ViewHelper',
'Errors',
array('Label'),
array('HtmlTag', array('tag' => 'li')),
);
public function loadDefa... | [
{
"answer_id": 376487,
"author": "Barrett Conrad",
"author_id": 1227,
"author_profile": "https://Stackoverflow.com/users/1227",
"pm_score": 2,
"selected": false,
"text": "<?php echo $this->exampleForm->example->setDecorators(array('ViewHelper')) ; ?>\n"
},
{
"answer_id": 377554,
... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3765/"
] |
376,201 | <p>Normally to attach a debuger to a running jvm you would need start the jvm with arguments such as the following:</p>
<pre><code>> java -Xdebug -Xrunjdwp:transport=dt_socket,address=1000,server=y,suspend=n
</code></pre>
<p>Now if I want to debug a process that wasn't started in debug mode, what can I do?</p>
<p... | [
{
"answer_id": 376276,
"author": "McDowell",
"author_id": 304,
"author_profile": "https://Stackoverflow.com/users/304",
"pm_score": 7,
"selected": true,
"text": "jsadebugd <pid>\njdb -connect sun.jvm.hotspot.jdi.SADebugServerAttachingConnector:debugServerName=localhost\n"
},
{
"a... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376201",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42303/"
] |
376,208 | <p>I'm trying to connect to a remote private MSMQ queue using the path:</p>
<pre><code>"FormatName:DIRECT=OS:remoteMachineName\Private$\MyQueue"
</code></pre>
<p>and I'm getting the following error: </p>
<pre><code>"The specified format name does not support the requested operation. For example, a direct queue forma... | [
{
"answer_id": 412620,
"author": "Erich Eichinger",
"author_id": 51264,
"author_profile": "https://Stackoverflow.com/users/51264",
"pm_score": -1,
"selected": false,
"text": "\"FormatName:DIRECT=OS:remoteMachineName\\Private$\\MyQueue\"\n"
},
{
"answer_id": 10394127,
"author"... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2311/"
] |
376,221 | <p>I'd like to automate data entry into Excel spreadsheets. User data will exist on a web site, and when the user requests it, that data will need to be injected into an Excel spreadsheet. The complication is that the format of the Excel spreadsheet can vary significantly between users - it'll be user defined.</p>
<p>... | [
{
"answer_id": 376396,
"author": "Fionnuala",
"author_id": 2548,
"author_profile": "https://Stackoverflow.com/users/2548",
"pm_score": 1,
"selected": false,
"text": "Dim HttpReq As Object\n\n' Create the WinHTTPRequest ActiveX Object.'\nSet HttpReq = New WinHttpRequest\n\n' Open an HTTP ... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13055/"
] |
376,232 | <p>I'm using C++ .NET 2.0</p>
<p>I have 2 forms</p>
<p>the first one is declared as follow</p>
<pre><code>#include "stdafx.h"
namespace myNamespace{
public ref class frmMain : public System::Windows::Forms::Form {
/*... snip ...*/
public void addNewRow(String^ text){ /*... snip... */ }
... | [
{
"answer_id": 376287,
"author": "e.James",
"author_id": 33686,
"author_profile": "https://Stackoverflow.com/users/33686",
"pm_score": 3,
"selected": true,
"text": "public void exportRows(String^ text);"
}
] | 2008/12/17 | [
"https://Stackoverflow.com/questions/376232",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6367/"
] |
376,234 | <p>System.Drawing.Color objects apparently won't serialize with XmlSerializer. What is the best way to xml serialize colors?</p>
| [
{
"answer_id": 376254,
"author": "BenAlabaster",
"author_id": 40650,
"author_profile": "https://Stackoverflow.com/users/40650",
"pm_score": 6,
"selected": true,
"text": "String HtmlColor = System.Drawing.ColorTranslator.ToHtml(MyColorInstance);\n"
},
{
"answer_id": 376272,
"a... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28343/"
] |
376,236 | <p>I have a basically sql select question that people gave me different answers over the years. Say I have a couple of tables designed each with over 40 columns and potentially will hold ten and thousands of row, I'm using SqlServer2005.</p>
<p>On joining these tables, in the where clause if I have things like</p>
<... | [
{
"answer_id": 376326,
"author": "Craig Stuntz",
"author_id": 7714,
"author_profile": "https://Stackoverflow.com/users/7714",
"pm_score": 2,
"selected": false,
"text": "SELECT * \nFROM t1\n INNER JOIN t2\n ON t1.SomeID = t2.SomeOtherID\nWHERE\n t1.UserID = 5 \n"
},
{
"answer... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32240/"
] |
376,237 | <p>We have an HTML page which displays a bunch of pretty bars using divs and repeating backgrounds. We are in the process of making a report out of this that can be printed nicely, but this may take some time because we don't have a reporting framework in place. As an interm solution we'd like to make the HTML version ... | [
{
"answer_id": 376326,
"author": "Craig Stuntz",
"author_id": 7714,
"author_profile": "https://Stackoverflow.com/users/7714",
"pm_score": 2,
"selected": false,
"text": "SELECT * \nFROM t1\n INNER JOIN t2\n ON t1.SomeID = t2.SomeOtherID\nWHERE\n t1.UserID = 5 \n"
},
{
"answer... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376237",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45/"
] |
376,239 | <p>I have an aspx page with a gridview. In my page load event, I load a datatable with all the data like so:</p>
<pre><code>HistoricalPricing historicalPricing = new HistoricalPricing();
DataTable dtHistoricalPricing = new DataTable();
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPo... | [
{
"answer_id": 376283,
"author": "JamesSugrue",
"author_id": 1075,
"author_profile": "https://Stackoverflow.com/users/1075",
"pm_score": 1,
"selected": false,
"text": "DataTable dtHistoricalPricing = null;\n"
}
] | 2008/12/17 | [
"https://Stackoverflow.com/questions/376239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33690/"
] |
376,242 | <p>What approach is the best way to make content-types restricted to a user in Django?</p>
<p>Let us say I want all users with the user-role "blogger" to have its own blog.</p>
<p>I have created a weblog app. How do I restrict it so that the user logged in can only post in his "own" blog, and how do I make views that... | [
{
"answer_id": 376739,
"author": "rombarcz",
"author_id": 47267,
"author_profile": "https://Stackoverflow.com/users/47267",
"pm_score": 3,
"selected": true,
"text": "class BlogEntry(models.Model):\n user = models.ForeignKey(User, related_name='blog_entries')\n other_field_1 = ...\n... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42546/"
] |
376,248 | <p>Simple question, and probably reflects my inexperience with CSS, but...</p>
<p>When creating a style sheet I like to explicitly specify the '*' wild card, so:</p>
<pre><code>*.TitleText {
</code></pre>
<p>instead of just</p>
<pre><code>.TitleText {
</code></pre>
<p>I find it reminds me that TitleText is applied... | [
{
"answer_id": 376303,
"author": "WillCodeForCoffee",
"author_id": 31197,
"author_profile": "https://Stackoverflow.com/users/31197",
"pm_score": 0,
"selected": false,
"text": "span.style { color: red; }\n*.style { color: blue; }\n"
},
{
"answer_id": 376371,
"author": "Ben Bla... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376248",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8946/"
] |
376,253 | <p>Is there a way to get a background in CSS to stretch or scale to fill its container?</p>
| [
{
"answer_id": 376270,
"author": "Vilx-",
"author_id": 41360,
"author_profile": "https://Stackoverflow.com/users/41360",
"pm_score": 3,
"selected": false,
"text": "<img>"
},
{
"answer_id": 388817,
"author": "SolidSmile",
"author_id": 37630,
"author_profile": "https://... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8946/"
] |
376,278 | <p>Can it be assumed a evaluation order of the function parameters when calling it in C ? According to the following program, it seems that there is not a particular order when I executed it. </p>
<pre><code>#include <stdio.h>
int main()
{
int a[] = {1, 2, 3};
int * pa;
pa = &a[0];
printf("a[0... | [
{
"answer_id": 376333,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 5,
"selected": false,
"text": "pa"
},
{
"answer_id": 395991,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_pr... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376278",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44808/"
] |
376,279 | <p>I have a script that needs to run after tomcat has finished starting up and is ready to start deploying applications. I'm using <code>$TOMCAT_HOME/bin/startup.sh</code> which returns immediately. How can I wait until tomcat has finished starting up?</p>
| [
{
"answer_id": 376305,
"author": "Matt Solnit",
"author_id": 6198,
"author_profile": "https://Stackoverflow.com/users/6198",
"pm_score": 6,
"selected": true,
"text": "#!/bin/bash\n\nuntil [ \"`curl --silent --show-error --connect-timeout 1 -I http://localhost:8080 | grep 'Coyote'`\" != \... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14481/"
] |
376,296 | <p>I have a number of native C++ libraries (Win32, without MFC) compiling under Visual Studio 2005, and used in a number of solutions. </p>
<p>I'd like to be able to choose to compile and link them as either static libraries or DLLs, depending on the needs of the particular solution in which I'm using them.</p>
<p>W... | [
{
"answer_id": 7182014,
"author": "Bill",
"author_id": 910576,
"author_profile": "https://Stackoverflow.com/users/910576",
"pm_score": 3,
"selected": false,
"text": "lib /NOLOGO /OUT:<your_lib_pathname> @<<\n<list_all_of_your_obj_paths_here>\n<<\n"
}
] | 2008/12/17 | [
"https://Stackoverflow.com/questions/376296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14942/"
] |
376,306 | <p>Is '' a valid piece of XML?
Can '' insert into oracle xblob column or XML column from MSSQL?</p>
| [
{
"answer_id": 376325,
"author": "David Norman",
"author_id": 34502,
"author_profile": "https://Stackoverflow.com/users/34502",
"pm_score": 3,
"selected": false,
"text": "document ::= prolog element Misc*\n"
},
{
"answer_id": 376339,
"author": "BenAlabaster",
"author_i... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11413/"
] |
376,335 | <p>I'm in the process of implementing a binary tree in C++. Traditionally, I'd have a pointer to left and a pointer to right, but manual memory management typically ends in tears. Which leads me to my question...</p>
<p>Are data structures an appropriate place to use shared_ptr?</p>
| [
{
"answer_id": 376389,
"author": "Daniel Earwicker",
"author_id": 27423,
"author_profile": "https://Stackoverflow.com/users/27423",
"pm_score": 2,
"selected": false,
"text": "shared_ptr"
},
{
"answer_id": 376409,
"author": "Harper Shelby",
"author_id": 21196,
"author_... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1473493/"
] |
376,338 | <p>The same as <a href="https://stackoverflow.com/questions/367633/what-are-all-the-common-undefined-behaviour-that-c-programmer-should-know-about">this</a> question but for java</p>
<p><strong>Update</strong>
Based on the comments and responses of a few people, Its clear that Java has very little undefined behaviour.<... | [
{
"answer_id": 376365,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": "https://Stackoverflow.com/users/20654",
"pm_score": 1,
"selected": false,
"text": "new String(\"test\") == new String(\"test\") \n"
},
{
"answer_id": 376432,
"author": "Bob Cross",
"autho... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42303/"
] |
376,344 | <p>I have a simple piece of code:</p>
<pre><code>public string GenerateRandomString()
{
string randomString = string.Empty;
Random r = new Random();
for (int i = 0; i < length; i++)
randomString += chars[r.Next(chars.Length)];
return randomStr... | [
{
"answer_id": 376387,
"author": "Jamie Penney",
"author_id": 68230,
"author_profile": "https://Stackoverflow.com/users/68230",
"pm_score": 3,
"selected": false,
"text": "public string GenerateRandomString(int length)\n{\n StringBuilder randomString = new StringBuilder(length);\n\n ... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376344",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40872/"
] |
376,346 | <p>Hi I'm doing the Collatz sequence problem in project Euler (problem 14). My code works with numbers below 100000 but with numbers bigger I get stack over-flow error. </p>
<p>Is there a way I can re-factor the code to use tail recursion, or prevent the stack overflow. The code is below:</p>
<pre><code>import java.u... | [
{
"answer_id": 376408,
"author": "Jimmy",
"author_id": 4435,
"author_profile": "https://Stackoverflow.com/users/4435",
"pm_score": 3,
"selected": false,
"text": "public static int seqCount(int n)\n{\n if(hm.get(n) != null) {\n return hm.get(n);\n }\n if (n < 1) {\n // th... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
376,352 | <p>I have a feeling I'm being too "webforms" with this, but I'll ask anyway. I have a form in an ASP.NET MVC project that has some input fields and two buttons on it. One button is used to 'filter' one of the list boxes. The other is used to submit the form. My view looks something like this:</p>
<pre><code><%u... | [
{
"answer_id": 376382,
"author": "Odd",
"author_id": 11908,
"author_profile": "https://Stackoverflow.com/users/11908",
"pm_score": 1,
"selected": false,
"text": "$(\"#myForm\").attr(\"action\", \"mvcaction\");\n$(\"#myForm\").submit();\n"
},
{
"answer_id": 1389446,
"author": ... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376352",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47225/"
] |
376,361 | <p>I'm currently using winforms databinding to wire up a data editing form. I'm using the netTiers framework through CodeSmith to generate my data objects. For database fields that allow nulls it creates nullable types. I've found that using winforms databinding the controls won't bind properly to nullable types.</p... | [
{
"answer_id": 3524691,
"author": "shindigo",
"author_id": 283936,
"author_profile": "https://Stackoverflow.com/users/283936",
"pm_score": 7,
"selected": true,
"text": "textBox1.DataBindings.Add(\"Text\", myClass, \"MyTextProperty\");\n"
},
{
"answer_id": 53945684,
"author": ... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376361",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10221/"
] |
376,369 | <p>Can I with ASP.NET Resources/Localization translate strings to depend on one or other (the English grammar) in a easy way, like I pass number 1 in my translate, it return "You have one car" or with 0, 2 and higher, "You have %n cars"?</p>
<p>Or I'm forced to have logic in my view to see if it's singular or plural?<... | [
{
"answer_id": 376926,
"author": "coder_bro",
"author_id": 46279,
"author_profile": "https://Stackoverflow.com/users/46279",
"pm_score": 0,
"selected": false,
"text": "class MyResource\n {\n\n private List<string> literals = new List<string>();\n public MyResource() { literals.Add(... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
376,372 | <p>In my application I have a <code>UITextField</code> inside a <code>UITableViewCell</code>. If I click inside the text field and add some text I find that if try to move the insertion point it works the first time but fails on subsequent attempts. I am completely unable to move the selection; no "magnifying glass" ap... | [
{
"answer_id": 386227,
"author": "Stephen Darlington",
"author_id": 2998,
"author_profile": "https://Stackoverflow.com/users/2998",
"pm_score": 5,
"selected": true,
"text": "editing"
},
{
"answer_id": 698132,
"author": "Brian Criscuolo",
"author_id": 84727,
"author_pr... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2998/"
] |
376,373 | <p>I have a string that represents a non indented XML that I would like to pretty-print. For example:</p>
<pre><code><root><node/></root>
</code></pre>
<p>should become:</p>
<pre><code><root>
<node/>
</root>
</code></pre>
<p>Syntax highlighting is not a requirement. To tackle t... | [
{
"answer_id": 376503,
"author": "Dimitre Novatchev",
"author_id": 36305,
"author_profile": "https://Stackoverflow.com/users/36305",
"pm_score": 7,
"selected": true,
"text": "<xsl:output indent=\"yes\"/>"
},
{
"answer_id": 1200866,
"author": "Touv",
"author_id": 147186,
... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29407/"
] |
376,375 | <p>I am working on someone else's PHP code and seeing this pattern over and over:</p>
<p>(pseudocode)</p>
<pre><code>result = SELECT blah1, blah2, foreign_key FROM foo WHERE key=bar
if foreign_key > 0
other_result = SELECT something FROM foo2 WHERE key=foreign_key
end
</code></pre>
<p>The code needs to bra... | [
{
"answer_id": 376400,
"author": "BenAlabaster",
"author_id": 40650,
"author_profile": "https://Stackoverflow.com/users/40650",
"pm_score": 2,
"selected": false,
"text": "Select a.blah1, a.blah2, b.something From foo a Left Join foo2 b On a.foreign_key = b.key Where a.Key = bar;\n"
},
... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17410/"
] |
376,376 | <p>I found this question: How to find out which CVS tags cover which files and paths?</p>
<p>However, the results are not at all what I'm expecting.
I'm using the following:</p>
<pre><code>cvs -n -q update -r ET30908
</code></pre>
<p>I'm looking for every file tagged with 'ET30908'.</p>
| [
{
"answer_id": 380351,
"author": "Oliver Giesen",
"author_id": 9784,
"author_profile": "https://Stackoverflow.com/users/9784",
"pm_score": 0,
"selected": false,
"text": "cvs -q rlog -SR -rET30908 .\n"
},
{
"answer_id": 474285,
"author": "Sally",
"author_id": 6539,
"au... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
376,384 | <p>I am not able to use the breakpoint in Studio with Javascript. I'm able to debug if I use the debugger; </p>
<p>I've seen this <a href="https://stackoverflow.com/questions/163133/breakpoint-not-hooked-up-when-debugging-in-vsnet-2005">Breakpoint not hooked up when debugging in VS.Net 2005</a> question already. I ... | [
{
"answer_id": 4770470,
"author": "Andre Juliano",
"author_id": 585917,
"author_profile": "https://Stackoverflow.com/users/585917",
"pm_score": 1,
"selected": false,
"text": "<%=..%>"
},
{
"answer_id": 31289538,
"author": "Praneeth",
"author_id": 5093305,
"author_prof... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376384",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7617/"
] |
376,403 | <p>In the application I'm writing using a combination of development environments and languages, I have need of accessing a cookie from two different subdomains, each on a separate host.</p>
<p>The cookie is being set on <code>www.mydomain.com</code> using the PHP code that follows, and I'm attempting to access it fro... | [
{
"answer_id": 376757,
"author": "nmjk",
"author_id": 35579,
"author_profile": "https://Stackoverflow.com/users/35579",
"pm_score": 5,
"selected": true,
"text": "$_COOKIE"
},
{
"answer_id": 5294382,
"author": "FYA",
"author_id": 614098,
"author_profile": "https://Stac... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376403",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35579/"
] |
376,404 | <p>Can I load an stand alone aspx page in another stand alone aspx page using System.Reflection? </p>
<p>I am using the ASP.NET 2.0 Web site project model.</p>
| [
{
"answer_id": 376599,
"author": "Mauricio Scheffer",
"author_id": 21239,
"author_profile": "https://Stackoverflow.com/users/21239",
"pm_score": 4,
"selected": true,
"text": "Page p = BuildManager.CreateInstanceFromVirtualPath(\"~/Default.aspx\", typeof(Page))\n"
},
{
"answer_id"... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26327/"
] |
376,437 | <p>How can I determine if I'm in the final loop of a For Each statement in VB.NET?</p>
| [
{
"answer_id": 376453,
"author": "Strelok",
"author_id": 2788,
"author_profile": "https://Stackoverflow.com/users/2788",
"pm_score": 4,
"selected": false,
"text": "yourCollection.Count - 1"
},
{
"answer_id": 376462,
"author": "Lasse V. Karlsen",
"author_id": 267,
"aut... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47167/"
] |
376,452 | <p>Is there a way to enforce explicit cast for typedefs of the same type? I've to deal with utf8 and sometimes I get confused with the indices for the character count and the byte count. So it be nice to have some typedefs:</p>
<pre><code>typedef unsigned int char_idx_t;
typedef unsigned int byte_idx_t;
</code></pre>
... | [
{
"answer_id": 376470,
"author": "lillq",
"author_id": 2064,
"author_profile": "https://Stackoverflow.com/users/2064",
"pm_score": 4,
"selected": false,
"text": "typedef struct {\n unsigned int c_idx;\n} char_idx;\n\ntypedef struct {\n unsigned int b_idx;\n} byte_idx;\n"
},
{
... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18687/"
] |
376,454 | <p>I have an application (ASP.NET 3.5) that allows users to rerun a particular process if required. The process inserts records into an MS SQL table. I have the insert in a Try / Catch and ignore the catch if a record already exists (the error in the Title would be valid). This worked perfectly using ADO but after I co... | [
{
"answer_id": 376470,
"author": "lillq",
"author_id": 2064,
"author_profile": "https://Stackoverflow.com/users/2064",
"pm_score": 4,
"selected": false,
"text": "typedef struct {\n unsigned int c_idx;\n} char_idx;\n\ntypedef struct {\n unsigned int b_idx;\n} byte_idx;\n"
},
{
... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
376,461 | <p>In Python, the where and when of using string concatenation versus string substitution eludes me. As the string concatenation has seen large boosts in performance, is this (becoming more) a stylistic decision rather than a practical one?</p>
<p>For a concrete example, how should one handle construction of flexible ... | [
{
"answer_id": 376508,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 7,
"selected": true,
"text": ">>> import timeit\n>>> def so_q_sub(n):\n... return \"%s%s/%d\" % (DOMAIN, QUESTIONS, n)\n...\n>>> so_q_sub(1000)\n'... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376461",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38140/"
] |
376,468 | <p>I'm using selenium to run some functional tests on the UI for our current application. </p>
<p>I want to ensure that strings from the resource files in the Web project are being displayed at the correct time and place.</p>
<p>Simple (I thought) all I have to do is reference the assembly of the web application and ... | [
{
"answer_id": 376508,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 7,
"selected": true,
"text": ">>> import timeit\n>>> def so_q_sub(n):\n... return \"%s%s/%d\" % (DOMAIN, QUESTIONS, n)\n...\n>>> so_q_sub(1000)\n'... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42975/"
] |
376,471 | <p>I have two routes:</p>
<pre><code>routes.MapRoute(
"FetchVenue",
"venue/fetchlike/{q}",
new { controller = "venue", action = "fetchlike" }
);
routes.MapRoute(
"venue", ... | [
{
"answer_id": 376476,
"author": "Strelok",
"author_id": 2788,
"author_profile": "https://Stackoverflow.com/users/2788",
"pm_score": 2,
"selected": false,
"text": "/venue/fetchlike?q=test"
},
{
"answer_id": 389757,
"author": "iasksillyquestions",
"author_id": 46616,
"... | 2008/12/17 | [
"https://Stackoverflow.com/questions/376471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46616/"
] |
376,502 | <p>I have a database table called "Posts" which stores all the information regarding an article submission on a website. There is a column named "Views" which is a value that gets incremented each time that particular post gets viewed. </p>
<p>The process is this:</p>
<ol>
<li>Get the record from the database </li>
<... | [
{
"answer_id": 376509,
"author": "Martijn Laarman",
"author_id": 47020,
"author_profile": "https://Stackoverflow.com/users/47020",
"pm_score": 4,
"selected": true,
"text": "UPDATE table SET views=views+1 WHERE myId=12;\n"
},
{
"answer_id": 376654,
"author": "Schotime",
"a... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17744/"
] |
376,504 | <p>We upgraded our machines with a microsoft patch listed above and are now having issues with some winsock controls. While moving on to the new component library there were two issues that we faced: </p>
<ul>
<li>We are creating a Winsock control dynamically using Form.Controls.Add(...). With the new dlls it gave us... | [
{
"answer_id": 1369805,
"author": "Templar",
"author_id": 799,
"author_profile": "https://Stackoverflow.com/users/799",
"pm_score": 0,
"selected": false,
"text": "Option Explicit\nDim WithEvents objExt As VBControlExtender\n\nPrivate Sub LoadControl()\n Licenses.Add \"MSWinsockLib.Wins... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
376,513 | <p>When I get exceptions, it is often from deep within the call stack. When this happens, more often than not, the actual offending line of code is hidden from me:</p>
<pre class="lang-none prettyprint-override"><code>tmp.rb:7:in `t': undefined method `bar' for nil:NilClass (NoMethodError)
from tmp.rb:10:in `... | [
{
"answer_id": 376521,
"author": "Gareth",
"author_id": 31582,
"author_profile": "https://Stackoverflow.com/users/31582",
"pm_score": 9,
"selected": true,
"text": "def do_division_by_zero; 5 / 0; end\nbegin\n do_division_by_zero\nrescue => exception\n puts exception.backtrace\n raise ... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376513",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30997/"
] |
376,516 | <p>What I want to do is take a certain stock pattern (defined as a series of x and y coordinates) and compare it against historical stock prices. If I find anything in the historical prices similar to that pattern I defined, I would like to return it as a match.</p>
<p>I'm not sure how to determine how similar two cu... | [
{
"answer_id": 376540,
"author": "warren",
"author_id": 4418,
"author_profile": "https://Stackoverflow.com/users/4418",
"pm_score": 0,
"selected": false,
"text": "epsilon"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/376516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43019/"
] |
376,518 | <p>Although this question looks simple, it is kind of tricky.</p>
<p>Consider the following table:</p>
<pre><code>CREATE TABLE A (
id INT,
value FLOAT,
"date" DATETIME,
group VARCHAR(50)
);
</code></pre>
<p>I would like to obtain the <code>ID</code> and <code>value</code> of the records that contain ... | [
{
"answer_id": 376539,
"author": "Andrew Kennan",
"author_id": 22506,
"author_profile": "https://Stackoverflow.com/users/22506",
"pm_score": 0,
"selected": false,
"text": "SELECT A.ID, A.Value\nFROM A\n INNER JOIN (SELECT Group, MAX(Date) As MaxDate FROM A GROUP BY Group) B\n ON A.Gr... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10833/"
] |
376,519 | <p>Opinions: I want to disallow direct invocation of certain scripts, that have functionality accessible from a menu, via Web at the OS level (Linux). </p>
<p>I was hoping to call a authorize.pl script that checks the session validity, checks user privileges etc. Then it will redirect to the target script. </p>
<p... | [
{
"answer_id": 376539,
"author": "Andrew Kennan",
"author_id": 22506,
"author_profile": "https://Stackoverflow.com/users/22506",
"pm_score": 0,
"selected": false,
"text": "SELECT A.ID, A.Value\nFROM A\n INNER JOIN (SELECT Group, MAX(Date) As MaxDate FROM A GROUP BY Group) B\n ON A.Gr... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
376,524 | <p>I am trying to send some data from a LINQ query in C# to an Excel speed sheet using OLE</p>
<p>I have a query like this:</p>
<pre><code>Var data = from d in db.{MyTable}
where d.Name = "Test"
select d;
</code></pre>
<p>I have the Excel OLE object working fine, I just can't figure out how to ... | [
{
"answer_id": 376754,
"author": "Damien",
"author_id": 29823,
"author_profile": "https://Stackoverflow.com/users/29823",
"pm_score": 3,
"selected": true,
"text": "int noOfRows = data.Count - 1;\nint noOfColumns = mydataclass.GetType().GetProperties().Count() - 1;\nObject[noOfRows, noOfC... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376524",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6335/"
] |
376,544 | <p>How do I increase the maxPoolSize in Grails when using mysql? It appears to be using a default connection pool only 8 connections. </p>
| [
{
"answer_id": 377493,
"author": "Siegfried Puchbauer",
"author_id": 46301,
"author_profile": "https://Stackoverflow.com/users/46301",
"pm_score": 4,
"selected": true,
"text": "beans = {\n\n dataSource(org.apache.commons.dbcp.BasicDataSource) {\n driverClassName = \"com.mysql.jdbc... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6580/"
] |
376,551 | <p>I'm trying to checkout a repository via command line (the 'svn co' command), using the svn+ssh protocol. I need to checkout as a different user than what I currently am. The command <code>svn co svn+ssh://username@server/repo/</code> would make sense, however when it prompts for a password, it never accepts it.</p>
... | [
{
"answer_id": 52334806,
"author": "Wei",
"author_id": 2501385,
"author_profile": "https://Stackoverflow.com/users/2501385",
"pm_score": 0,
"selected": false,
"text": "svn checkout svn+ssh://your.remote-server.com/home/svn/test\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/376551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12930/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.