qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
278,571 | <p>I'm wondering if there is a quick and easy function to clean get variables in my url, before I work with them.( or $_POST come to think of it... )</p>
<p>I suppose I could use a regex to replace non-permitted characters, but I'm interested to hear what people use for this sort of thing?</p>
| [
{
"answer_id": 278664,
"author": "troelskn",
"author_id": 18180,
"author_profile": "https://Stackoverflow.com/users/18180",
"pm_score": 3,
"selected": false,
"text": "urlencode htmlspecialchars"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/278571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26107/"
] |
278,588 | <p>I'm using the XML data source feature in Reporting Services 2005 but having some issues with missing data. When there is no value for the first column in a row, it appears that the entire column is ignored by SSRS!</p>
<p>The web method request is very simple:</p>
<pre><code><Query>
<Method Name="GetIs... | [
{
"answer_id": 278638,
"author": "Gene",
"author_id": 35630,
"author_profile": "https://Stackoverflow.com/users/35630",
"pm_score": 4,
"selected": true,
"text": "<ElementPath IgnoreNamespaces=\"true\">*</ElementPath>\n <ElementPath IgnoreNamespaces=\"true\">GetIssues/GetIssuesItemsResult... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278588",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6651/"
] |
278,596 | <p>Using Maven 2, is there a way I can list out the jar dependencies as just the file names?</p>
<pre><code>mvn dependency:build-classpath
</code></pre>
<p>can list the jar files, but that will include the full path to their location in my local repository. What I need is essentially just a list of the file names (o... | [
{
"answer_id": 278623,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 2,
"selected": false,
"text": "<addClasspath> <manifestFile> <plugin>\n <groupId>org.apache.maven.plugins</groupId>\n <artifactId>maven-jar-plugin</artif... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1113/"
] |
278,604 | <p>I need to implement the classic Factory Method pattern in ASP.NET to create server controls dynamically.</p>
<p>The only way I've found to create .ascx controls is to use the LoadControl method of the Page/UserControl classes. I find it messy however to link my factory with a page or to pass a page parameter to the... | [
{
"answer_id": 278878,
"author": "Mathieu Garstecki",
"author_id": 22078,
"author_profile": "https://Stackoverflow.com/users/22078",
"pm_score": 2,
"selected": true,
"text": "public ControlsFactory\n{\n private Page _containingPage;\n\n public ControlsFactory(Page containingPage)\n... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22078/"
] |
278,622 | <p>I'm looking for a method to reliably extract the host name from a URL string in Ruby.</p>
<p>e.g.
<a href="http://www.mglenn.com/directory" rel="noreferrer">http://www.mglenn.com/directory</a> = www.mglenn.com
OR
<a href="http://www.mglenn.com?param=x" rel="noreferrer">http://www.mglenn.com?param=x</a> = www.mglen... | [
{
"answer_id": 278673,
"author": "glenatron",
"author_id": 15394,
"author_profile": "https://Stackoverflow.com/users/15394",
"pm_score": 7,
"selected": true,
"text": "require 'uri'\n\nmyUri = URI.parse( 'http://www.mglenn.com/directory' )\nprint myUri.host\n# => www.mglenn.com\n"
},
... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9424/"
] |
278,627 | <p>We've converted our solution from .NET 2.0 to .NET 3.5. All projects converted just fine except for the Website Project, which still doesn't understand what I mean when using 'var' and the like.</p>
<p>I've looked in the property pages for the web project, and the Target Framework is set to '.NET Framework 3.5'.</p... | [
{
"answer_id": 278650,
"author": "Dillie-O",
"author_id": 71,
"author_profile": "https://Stackoverflow.com/users/71",
"pm_score": 2,
"selected": false,
"text": " <assemblies>\n <add assembly=\"System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089\"/>\n ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278627",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3397/"
] |
278,633 | <p>I must be overlooking something simple. I'm setting a variable from a query result in a MySQL stored procedure like this:</p>
<pre><code>SELECT @myName := username FROM User WHERE ID=1;
</code></pre>
<p>So, @myName is storing the username of userid 1, which is 'Paul'. Great.</p>
<p>But later in the stored procedu... | [
{
"answer_id": 278681,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 3,
"selected": true,
"text": "SELECT username INTO myName FROM User WHERE ID=1;\n drop table if exists user;\ncreate table user (\n id serial primar... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26180/"
] |
278,644 | <p>A "static" query is one that remains the same at all times. For example, the "Tags" button on Stackoverflow, or the "7 days" button on Digg. In short, they always map to a specific database query, so you can create them at design time. </p>
<p>But I am trying to figure out how to do "dynamic" queries where the user... | [
{
"answer_id": 278661,
"author": "Mladen Prajdic",
"author_id": 31345,
"author_profile": "https://Stackoverflow.com/users/31345",
"pm_score": 0,
"selected": false,
"text": "CONCAT"
},
{
"answer_id": 278672,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile"... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30581/"
] |
278,655 | <p>When should I put ... at the end of a menu item? I seem to remember reading some rules but can't for the life of me find them.</p>
<p>For context - I'm adding a properties option to a right click menu and am wondering if it is appropriate to add them.</p>
| [
{
"answer_id": 1405784,
"author": "Kyle Rosendo",
"author_id": 103385,
"author_profile": "https://Stackoverflow.com/users/103385",
"pm_score": 1,
"selected": false,
"text": "Dialog"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/278655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/770/"
] |
278,668 | <p>Is it possible to have an ASP.NET MVC route that uses subdomain information to determine its route? For example:</p>
<ul>
<li><em><strong>user1</strong>.domain.example</em> goes to one place</li>
<li><em><strong>user2</strong>.domain.example</em> goes to another?</li>
</ul>
<p>Or, can I make it so both of these go t... | [
{
"answer_id": 541495,
"author": "Jon Cahill",
"author_id": 10830,
"author_profile": "https://Stackoverflow.com/users/10830",
"pm_score": 8,
"selected": true,
"text": "public class ExampleRoute : RouteBase\n{\n\n public override RouteData GetRouteData(HttpContextBase httpContext)\n ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19020/"
] |
278,674 | <p>I've been tasked with the awesome job of generating a look-up table for our application culture information. The columns I need to generate data for are:</p>
<ul>
<li>Dot Net Code</li>
<li>Version</li>
<li>Culture Name</li>
<li>Country Name</li>
<li>Language Name</li>
<li>Java Country Code</li>
<li>Java Language C... | [
{
"answer_id": 278875,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 3,
"selected": true,
"text": "Locale l = Locale.ITALY;\nSystem.out.println(l.getDisplayCountry() + \": \" + l.getDisplayLanguage());\nSystem.out.println(l... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36269/"
] |
278,676 | <p>I'm working the the image upload piece of the <a href="http://www.fckeditor.net/" rel="nofollow noreferrer">FCKEditor</a> and I've got the uploading working properly but am stuck with the server file browser.</p>
<p><img src="https://farm4.static.flickr.com/3184/3019956718_f7ab198c16.jpg?v=0" alt="FCKEditor Image P... | [
{
"answer_id": 281821,
"author": "Steve Massing",
"author_id": 34889,
"author_profile": "https://Stackoverflow.com/users/34889",
"pm_score": 1,
"selected": false,
"text": "FCKConfig.ImageBrowserURL = '/myfilebrowserpath/browser.php' ;\n"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/278676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/305/"
] |
278,684 | <p>I am just getting started with expression trees so I hope this makes sense. I am trying to create an expression tree to represent:</p>
<pre><code>t => t.SomeProperty.Contains("stringValue");
</code></pre>
<p>So far I have got:</p>
<pre><code> private static Expression.Lambda<Func<string, bool>> ... | [
{
"answer_id": 278702,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 8,
"selected": true,
"text": "class Foo\n{\n public string Bar { get; set; }\n}\nstatic void Main()\n{\n var lambda = GetExpression<Foo>(\"Bar... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27805/"
] |
278,692 | <p>If I have a comma separated file like the following:</p>
<pre>
foo,bar,n
,a,bc,d
one,two,three
,a,bc,d
</pre>
<p>And I want to join the <code>\n,</code> to produce this:</p>
<pre>
foo,bar,n,a,bc,d
one,two,three,a,bc,d
</pre>
<p>What is the regex trick? I thought that an <code>if (/\n,/)</code> would catch this.<... | [
{
"answer_id": 278723,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 0,
"selected": false,
"text": "open(F, \"test.txt\") or die;\nundef $/;\n$s = <F>;\nclose(F);\n$s =~ s/\\n,/,/g;\nprint $s;\n\n$ cat test.txt\nfoo,bar,n... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278692",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
278,703 | <p>I know the standard way of using the <a href="https://en.wikipedia.org/wiki/Null_coalescing_operator" rel="noreferrer">null coalescing operator</a> in C# is to set default values.</p>
<pre><code>string nobody = null;
string somebody = "Bob Saget";
string anybody = "";
anybody = nobody ?? "... | [
{
"answer_id": 278713,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 2,
"selected": false,
"text": "||"
},
{
"answer_id": 278716,
"author": "James Curran",
"author_id": 12725,
"author_profile": "ht... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26931/"
] |
278,709 | <p>I have some user generated content I'm trying to render on my site. The rich text box editor I'm using renders font changes using <code><font /></code> tags, which are overridden by CSS on the page.</p>
<p>Does anyone know if there is a way to allow rules defined using the <code><font /></code> tag to s... | [
{
"answer_id": 278717,
"author": "thismat",
"author_id": 14045,
"author_profile": "https://Stackoverflow.com/users/14045",
"pm_score": 2,
"selected": false,
"text": "div.MyClass p \n{ \nfont-size: 0.7em !important; \n}\n"
},
{
"answer_id": 278727,
"author": "sblundy",
"a... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/392/"
] |
278,719 | <p>I have some code doing this :</p>
<pre><code> var changes = document.getElementsByName(from);
for (var c=0; c<changes.length; c++) {
var ch = changes[c];
var current = new String(ch.innerHTML);
etc.
}
</code></pre>
<p>This works fine in FF and Chrome but not in IE7. Presumably because getElementsByNa... | [
{
"answer_id": 278741,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 2,
"selected": false,
"text": "id=\"\" name=\"\" name=\"\" <span> name=\"\" class=\"\" var changes = document.getElementById('text').getElementsByTagName('s... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36273/"
] |
278,732 | <p>Currently have the following mapping file:</p>
<pre><code><?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
namespace="NHibernateHelpers"
assembly="App_Code.NHibernateHelpers">
<class name="NHibernateHelpers.Fixture, App_Code" table="Fixture_List... | [
{
"answer_id": 278807,
"author": "Watson",
"author_id": 25807,
"author_profile": "https://Stackoverflow.com/users/25807",
"pm_score": 0,
"selected": false,
"text": "<property name='MatchTime' formula='(EXEC GetMatchTime Id)'/>\n"
},
{
"answer_id": 278966,
"author": "Mr Plough... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21940/"
] |
278,738 | <p>I have an XML schema that represents a product in a DB, and I am trying to figure out the best way to store the product image references as XML nodes. There will be a primary image, and then alternate images, each of them with sequences (display order). Would this be an appropriate format, or are there better approa... | [
{
"answer_id": 278748,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 3,
"selected": true,
"text": "sequence <images>\n <imageset>\n <image size=\"thumbnail\" width=\"\" height=\"\" href=\"\" alt=\"\" />\n ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
278,746 | <p>I really don't understand the fascination with XHTML strict. Inline JavaScript typically requires a rats nest of escapes to make it compatible with XHTML and semi-backwards compatible with MSIE 5 & 6. Then there is the issue of not being OCD enough on user input to make sure you don't miss any illegal charact... | [
{
"answer_id": 280401,
"author": "Simon",
"author_id": 15371,
"author_profile": "https://Stackoverflow.com/users/15371",
"pm_score": 0,
"selected": false,
"text": "http://www.example.com/page.php?arg1=val1&arg2=val2\n http://www.example.com/page.php?arg1=val1&arg2=val2\n http://www.e... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9908/"
] |
278,758 | <p>I run (and am presently completely overhauling) a website that deals with theater (njtheater.com if you're interested).</p>
<p>When I query a list of plays from the database, I'd like "The Merchant of Venice" to sort under the "M"s. Of course, when I display the name of the play, I need the "The" in front.</p>
<p... | [
{
"answer_id": 278771,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 1,
"selected": false,
"text": "article varchar(4)\nsorttitle varchar(255)\ntitle computed (article + sortitle)\n"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/278758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12725/"
] |
278,761 | <p>I was looking for something like Server.MapPath in the ASP.NET realm to convert the output of Assembly.GetExecutingAssembly().CodeBase into a file path with drive letter.</p>
<p>The following code works for the test cases I've tried:</p>
<pre>
private static string ConvertUriToPath(string fileName)
{
fileName ... | [
{
"answer_id": 278812,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 0,
"selected": false,
"text": "Assembly.Location"
},
{
"answer_id": 278840,
"author": "Scott Dorman",
"author_id": 1559,
"author_... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3475/"
] |
278,768 | <p>If I'm reading a text file in shared access mode and another process truncates it, what is the easiest way to detect that? (I'm excluding the obvious choice of refreshing a FileInfo object periodically to check its size) Is there some convenient way to capture an event? (Filewatcher?)</p>
| [
{
"answer_id": 278791,
"author": "chakrit",
"author_id": 3055,
"author_profile": "https://Stackoverflow.com/users/3055",
"pm_score": 3,
"selected": true,
"text": "private void myForm_Load(object sender, EventArgs e)\n{\n var fileWatcher = new System.IO.FileSystemWatcher();\n\n // M... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29021/"
] |
278,769 | <p>I have an asp.net image button and I want to cancel the click event incase he fails the client side validation... how do I do that?</p>
| [
{
"answer_id": 278804,
"author": "Aaron Fischer",
"author_id": 5618,
"author_profile": "https://Stackoverflow.com/users/5618",
"pm_score": 1,
"selected": false,
"text": "<asp:Button ID=\"NavigateAway\" runat=\"server\" OnClientClick=\"javascript:return PromptToNavigateOff();\" OnClick=\"... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
278,784 | <p>What is the best compiler to experiment with C++0x features? I have been experimenting with GNU g++ 4.4. </p>
| [
{
"answer_id": 278830,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 4,
"selected": true,
"text": "auto #geordi at irc.freenode.org"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/278784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8863/"
] |
278,788 | <p>I'm trying to figure out how to parse out the text of an email from any quoted reply text that it might include. I've noticed that usually email clients will put an "On such and such date so and so wrote" or prefix the lines with an angle bracket. Unfortunately, not everyone does this. Does anyone have any idea o... | [
{
"answer_id": 474174,
"author": "Oleg Yaroshevych",
"author_id": 48724,
"author_profile": "https://Stackoverflow.com/users/48724",
"pm_score": 5,
"selected": false,
"text": "new Regex(\"From:\\\\s*\" + Regex.Escape(_mail), RegexOptions.IgnoreCase);\nnew Regex(\"<\" + Regex.Escape(_mail)... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4550/"
] |
278,789 | <p>I have a type ahead text field, and when the user hits "Enter" I want to make an ajax call and not submit the form at the same time. My html looks like this:</p>
<pre><code><input id="drug_name" class="drugs_field" type="text" size="30" onkeypress="handleKeyPress(event,this.form); return false;" name="drug[name]... | [
{
"answer_id": 278816,
"author": "Pim Jager",
"author_id": 35197,
"author_profile": "https://Stackoverflow.com/users/35197",
"pm_score": 1,
"selected": false,
"text": "<input type='submit' value='submit' onclick='submiFunction(); return false;'>\n <form blabla onsubmit='someAjaxCall(); r... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1486/"
] |
278,838 | <p>By default when you add an image (icon, bitmap, etc.) as a resource to your project, the image's <strong>Build Action</strong> is set to <strong>None</strong>. This is done because the image is magically stored inside a .resources file.</p>
<p><strong><em>I</em></strong> want the resource to be stored as an embedde... | [
{
"answer_id": 278911,
"author": "Todd",
"author_id": 31940,
"author_profile": "https://Stackoverflow.com/users/31940",
"pm_score": 3,
"selected": false,
"text": "ResourceManager Assembly.GetManifestResourceStream Embedded Resource Embedded Resource"
},
{
"answer_id": 483891,
... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
278,856 | <p>I tried using the IHttpModule and managed to convert the urls just fine,
but all of my images returned path error (all going through the new url directory).</p>
<p>whats the solution?</p>
| [
{
"answer_id": 278979,
"author": "Keltex",
"author_id": 28260,
"author_profile": "https://Stackoverflow.com/users/28260",
"pm_score": 1,
"selected": false,
"text": "<img src='images/something.gif' />\n <asp:image imageurl='~/images/something.gif' runat='server' id='img1'/>\n"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/278856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
278,858 | <p>Here is my code: </p>
<pre><code>ThreadStart threadStart = controller.OpenFile;
Thread thread = new Thread(threadStart);
thread.Start();
</code></pre>
<p>In the OpenFile function, my code looks like:</p>
<pre><code>System.Console.Error.WriteLine("Launching");
</code></pre>
<p>The code in OpenFile doesn't get exe... | [
{
"answer_id": 279011,
"author": "Roger Lipscombe",
"author_id": 8446,
"author_profile": "https://Stackoverflow.com/users/8446",
"pm_score": 0,
"selected": false,
"text": "using System;\nusing System.Threading;\n\nnamespace Net_Threading_Problem\n{\n class Program\n {\n stat... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12261/"
] |
278,868 | <p>I am doing the following in PHP:</p>
<pre><code>exec('java -jar "/opt/flex3/lib/mxmlc.jar" +flexlib "/opt/flex3/frameworks" MyAS3App.as -default-size 360 280 -output MyAS3App.swf');
</code></pre>
<p>When I run this from the command line, it runs fine and finishes in a second or two.</p>
<p>When I run this command... | [
{
"answer_id": 363758,
"author": "Keeth",
"author_id": 20588,
"author_profile": "https://Stackoverflow.com/users/20588",
"pm_score": 5,
"selected": true,
"text": "exec('java -version');\n export DYLD_LIBRARY_PATH=\"\";\n exec('export DYLD_LIBRARY_PATH=\"\"; mxmlc MyAS3App.as -default-siz... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20588/"
] |
278,871 | <p>I am using:</p>
<pre><code>set constraints all deferred;
(lots of deletes and inserts)
commit;
</code></pre>
<p>This works as expected. If there are any broken relationships then the commit fails and an error is raised listing ONE of the FKs that it fails on.</p>
<p>The user fixes the offending data and runs aga... | [
{
"answer_id": 290971,
"author": "GHZ",
"author_id": 18138,
"author_profile": "https://Stackoverflow.com/users/18138",
"pm_score": 2,
"selected": false,
"text": "SQL> create table a (id number primary key);\n\nTable created.\n\nSQL> create table b (id number primary key, a_id number, con... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18138/"
] |
278,873 | <p>you would think this would be obvious, but searching through documentation, SAP forums, Googling, etc., I've been spectacularly unsuccessful. I'm creating a file in ABAP on a solaris filesystem using the following code:</p>
<pre><code>OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
</code></pre>
<p>... | [
{
"answer_id": 303145,
"author": "tomdemuyt",
"author_id": 7602,
"author_profile": "https://Stackoverflow.com/users/7602",
"pm_score": 2,
"selected": false,
"text": "chmod man chmod CALL FUNCTION 'SXPG_COMMAND_EXECUTE'\n EXPORTING\n commandname = 'ZCHMOD'\n addit... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29003/"
] |
278,882 | <p>In PL/SQL, I would like to pass in a "source" schema as a parameter to a stored procedure. For instance:</p>
<pre><code>BEGIN
CURSOR my_cursor IS
SELECT my_field FROM <schema>.my_table
...
</code></pre>
<p>I want the 'schema' value to come from an input parameter into the stored procedure. Does a... | [
{
"answer_id": 278903,
"author": "Dave Costa",
"author_id": 6568,
"author_profile": "https://Stackoverflow.com/users/6568",
"pm_score": 4,
"selected": true,
"text": "PROCEDURE select_from_schema( the_schema VARCHAR2)\nIS\n TYPE my_cursor_type IS REF CURSOR;\n my_cursor my_cursor_type;... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20133/"
] |
278,896 | <p>Our product has the requirement of exporting its native format (essentially an XML file) to Excel for viewing/editing. However, what this entails is having a dependency on Excel (or Office) itself for our product build - something that we do not want. </p>
<p>What we have done is export the data from our native for... | [
{
"answer_id": 15227291,
"author": "Mike Gledhill",
"author_id": 391605,
"author_profile": "https://Stackoverflow.com/users/391605",
"pm_score": 0,
"selected": false,
"text": "DataSet ds = CreateSampleData();\nCreateExcelFile.CreateExcelDocument(ds, \"C:\\\\Sample.xlsx\");\n"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/278896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1065163/"
] |
278,902 | <p>I've got a bunch of properties which I am going to use read/write locks on. I can implement them either with a <code>try finally</code> or a <code>using</code> clause.</p>
<p>In the <code>try finally</code> I would acquire the lock before the <code>try</code>, and release in the <code>finally</code>. In the <code>u... | [
{
"answer_id": 278924,
"author": "chakrit",
"author_id": 3055,
"author_profile": "https://Stackoverflow.com/users/3055",
"pm_score": 8,
"selected": true,
"text": "{\n Font font1 = new Font(\"Arial\", 10.0f);\n try\n {\n byte charset = font1.GdiCharSet;\n }\n finally\n {\n if ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9266/"
] |
278,914 | <p>The span element seems to be exactly like a div, but at the in-line level rather than at the block level. However, I can't seem to think of any beneficial logical divisions that the span element can provide. </p>
<p>A single sentence, or word if not contained in a sentence, seems to be the smallest logical part. Ig... | [
{
"answer_id": 278930,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 3,
"selected": false,
"text": "<div class=\"name\">\n <span class=\"firstname\">John</span>\n <span class=\"lastname\">Doe</span>\n</div>\n"
},
{
... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20770/"
] |
278,927 | <p>I'm inserting an img tag into my document with the new Element constructor like this (this works just fine):</p>
<pre><code>$('placeholder').insert(new Element("img", {id:'something', src:myImage}))
</code></pre>
<p>I would like to trigger a function when this image loads, but I can't figure out the correct syntax... | [
{
"answer_id": 278987,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 0,
"selected": false,
"text": "$('placeholder').insert(new Element(\"img\", \n {id:'something', src:myImage, onload:\"javascript:moo()\"}))\n\nfunction ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12579/"
] |
278,932 | <p>I'm building some custom tools to work against a JIRA install, and the exposed SOAP API is great, except that none of the arguments are named.</p>
<p>For example, the prototype for getIssue is:</p>
<pre><code>RemoteIssue getIssue (string in0, string in1);
</code></pre>
<p>All of the SOAP RPC methods follow this c... | [
{
"answer_id": 279078,
"author": "Tony Arkles",
"author_id": 13868,
"author_profile": "https://Stackoverflow.com/users/13868",
"pm_score": 2,
"selected": false,
"text": "self.proxy = WSDL.Proxy( jiraUrl )\nself.token = self.proxy.login(self.username, self.password)\n...\nissues = self.pr... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] |
278,940 | <p>I'm looking to vertically align text by adding <code><br /></code> tags between characters with jQuery.</p>
<pre><code><div id="foo"><label>Vertical Text</label></div>
</code></pre>
<p>would look like this:</p>
<p>V<br />
e<br />
r<br />
t<br />
i<br />
c<br />
a<br />
l<br />
<br /... | [
{
"answer_id": 278990,
"author": "okoman",
"author_id": 35903,
"author_profile": "https://Stackoverflow.com/users/35903",
"pm_score": 2,
"selected": false,
"text": "var element = $( '#foo label' );\nvar newData = '';\nvar data = element.text();\nvar length = data.length;\nvar i = 0;\n\nw... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278940",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9750/"
] |
278,941 | <p>Im having problems displaying records to my view when passing viewdata to a user control.
This is only apparent for linq to sql objects where I am using table joins.</p>
<p>The exception I receive is "Unable to cast object of type '<>f__AnonymousType4<code>10[System.String,System.Int32,System.Nullable</code>1[S... | [
{
"answer_id": 278964,
"author": "yfeldblum",
"author_id": 12349,
"author_profile": "https://Stackoverflow.com/users/12349",
"pm_score": 3,
"selected": true,
"text": "foreach (table1 m in (IEnumerable)ViewData.Model)\n m table1 select new { ... }"
},
{
"answer_id": 279136,
"a... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24130/"
] |
278,943 | <p>I am trying to do this...</p>
<pre><code><Image x:Name="imgGroupImage" Source="Images\unlock.png" Margin="0,0,5,0" />
</code></pre>
<p>But I get this error...</p>
<blockquote>
<p>Cannot convert string 'Images\unlock.png' in attribute 'Source' to object of type 'System.Windows.Media.ImageSource'. Cannot lo... | [
{
"answer_id": 278969,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 4,
"selected": true,
"text": "Source=\"/Images/unlock.png\"\n"
},
{
"answer_id": 278974,
"author": "Community",
"author_id": -1,
"a... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278943",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6514/"
] |
278,965 | <p>I use URLLoader to load data into my Flex app (mostly XML) and my buddy who is doing the same thing mostly uses HTTPService. Is there a specific or valid reason to use on over the other?</p>
| [
{
"answer_id": 280795,
"author": "Matt MacLean",
"author_id": 22,
"author_profile": "https://Stackoverflow.com/users/22",
"pm_score": 5,
"selected": true,
"text": "var token:AsyncToken = httpService.send({someVariable: 123});\ntoken.requestStartTime = getTimer();\ntoken.addResponder(new ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3435/"
] |
278,982 | <p>Would the following SQL statement automatically create an index on Table1.Table1Column, or must one be explicitly created?</p>
<p>Database engine is SQL Server 2000</p>
<pre><code> CREATE TABLE [Table1] (
. . .
CONSTRAINT [FK_Table1_Table2] FOREIGN KEY
(
[Table1Column... | [
{
"answer_id": 33905720,
"author": "David Sopko",
"author_id": 1197553,
"author_profile": "https://Stackoverflow.com/users/1197553",
"pm_score": 3,
"selected": false,
"text": "CREATE TABLE MasterOrder (\n MasterOrderID INT PRIMARY KEY)\n\nCREATE TABLE OrderDetail(\n OrderDetailID INT... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36307/"
] |
278,997 | <p>More specifically, if I have:</p>
<pre><code>public class TempClass : TempInterface
{
int TempInterface.TempProperty
{
get;
set;
}
int TempInterface.TempProperty2
{
get;
set;
}
public int TempProperty
{
get;
set;
}
}
public inter... | [
{
"answer_id": 279087,
"author": "Robert Rossney",
"author_id": 19403,
"author_profile": "https://Stackoverflow.com/users/19403",
"pm_score": 0,
"selected": false,
"text": " var props = typeof(TempClass).GetInterfaces().Where(i => i.Name==\"TempInterface\").SelectMany(i => i.GetPr... | 2008/11/10 | [
"https://Stackoverflow.com/questions/278997",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1946/"
] |
279,001 | <p>When using a Silverlight-enabled WCF service, where is the best place to instantiate the service and to call the CloseAsync() method?</p>
<p>Should you say, instantiate an instance each time you need to make a call to the service, or is it better to just instantiate an instance as a variable of the UserControl that... | [
{
"answer_id": 3045259,
"author": "WhiteN01se",
"author_id": 335525,
"author_profile": "https://Stackoverflow.com/users/335525",
"pm_score": 1,
"selected": false,
"text": "...\n{\n App.Client.MyOperationCompleted += Client_MyOperationCompleted;\n App.Client.MyOperationAsync(...);\n... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279001",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12172/"
] |
279,019 | <p>I am working an a search page that allows users to search for houses for sale. Typical search criteria include price/zip code/# bedrooms/etc.</p>
<p>I would like to allow the user to save this criteria in a database and email new homes daily.</p>
<p>I could either:</p>
<p>1) Serialize a "SavedSearch" object into ... | [
{
"answer_id": 279070,
"author": "Vincent Ramdhanie",
"author_id": 27439,
"author_profile": "https://Stackoverflow.com/users/27439",
"pm_score": 4,
"selected": true,
"text": "search.action?price=20000&rooms=3\n"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/279019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36313/"
] |
279,024 | <p>How would I return multiple values (say, a number and a string) from a user-defined function in SQL Server?</p>
| [
{
"answer_id": 279061,
"author": "dkretz",
"author_id": 31641,
"author_profile": "https://Stackoverflow.com/users/31641",
"pm_score": 3,
"selected": false,
"text": "-- ============================================= \n-- Create inline function (IF) \n-- ==================================... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279024",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9702/"
] |
279,038 | <p>I'm trying to work through the problems on <a href="http://projecteuler.net" rel="noreferrer">projecteuler.net</a> but I keep running into a couple of problems.</p>
<p>The first is a question of storing large quanities of elements in a <code>List<t></code>. I keep getting OutOfMemoryException's when storing l... | [
{
"answer_id": 45905678,
"author": "Abhilash Virat",
"author_id": 5255098,
"author_profile": "https://Stackoverflow.com/users/5255098",
"pm_score": 0,
"selected": false,
"text": "class Solution\n{\n static void Main(String[] args)\n {\n int n = 5;\n string[] unsorted ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1741868/"
] |
279,043 | <p>Let's take a very simple example:</p>
<ul>
<li>In my window1.xaml, i have a label
control named 'lblProduct'.</li>
<li>In my window1.xaml.cs, i have a
public method called
CalculateProduct(Int Var1, Int
Var2). CalculateProduct will, as
you may have guessed, calculate the
product of the variables passed in.</li>
</... | [
{
"answer_id": 279139,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 1,
"selected": false,
"text": "ObjectDataProvider ObjectInstance"
},
{
"answer_id": 279250,
"author": "AJ.",
"author_id": 27457,
... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36308/"
] |
279,065 | <p>I have this as Main</p>
<pre><code>int[] M ={ 10, 2, 30, 4, 50, 6, 7, 80 };
MyMath.Reverse(M);
for (int i = 0; i < M.Length; i++)
Console.WriteLine(M[i].ToString() + ", ");
</code></pre>
<hr>
<p>After I created the class MyMath I made the Reverse method </p>
<pre><code>public int Reverse(Array M)
{
... | [
{
"answer_id": 279100,
"author": "Michael Stum",
"author_id": 91,
"author_profile": "https://Stackoverflow.com/users/91",
"pm_score": 0,
"selected": false,
"text": "private void Whatever()\n{\n int[] M = { 10, 2, 30, 4, 50, 6, 7, 80 };\n ReverseArray(ref M);\n\n}\n\nprivate void Re... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
279,066 | <p>Our company uses an app that was originally ColdFusion + Access later converted to classic ASP + MS Sql for task/time tracking called the request system. It's broken down by department, so there's one for MIS, marketing, logistics, etc. The problem comes in when (mainly managers) are using more than one at a time, w... | [
{
"answer_id": 1077858,
"author": "davidsleeps",
"author_id": 51507,
"author_profile": "https://Stackoverflow.com/users/51507",
"pm_score": 0,
"selected": false,
"text": "Private Const PREFIX As String = \"MyPrefix_\"\nPublic Shared Property MyVariable() As String\n Get\n Retur... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1302/"
] |
279,071 | <p>I have an ASP.NET 2.0 (C#) webpage with a link that pulls a blob from a MS SQL database and ouputs it in the appropriat file format, i.e., Word, WordPerfect, PDF.</p>
<p>My users would like to print these files with one click. Right now they have to click the link to open the file, then click the "Print" button wit... | [
{
"answer_id": 279099,
"author": "ine",
"author_id": 4965,
"author_profile": "https://Stackoverflow.com/users/4965",
"pm_score": 0,
"selected": false,
"text": "<body onload=\"window.print()\">\n...\n</body>\n"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/279071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29613/"
] |
279,094 | <p>I would like to use Python to script an application that advertises itself as providing an OLE component. How should I get started?</p>
<p>I don't yet know what methods I need to call on the COMponents I will be accessing. Should I use win32com to load those components, and then start pressing 'tab' in IPython?</p>... | [
{
"answer_id": 279117,
"author": "Ali Afshar",
"author_id": 28380,
"author_profile": "https://Stackoverflow.com/users/28380",
"pm_score": 2,
"selected": false,
"text": "from win32com.client.dynamic import Dispatch\n\n# Excel\nexcel = Dispatch('Excel.Application')\n\n# Vim\nvim = Dispatch... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279094",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36330/"
] |
279,112 | <p>What is the troubleshooting process for the "Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80080005" errors in .Net? To clarify: I am getting this at runtime, on my XP machine, with client being .net code running under admin account. {XXXX} refers to one of our i... | [
{
"answer_id": 279196,
"author": "Roger Lipscombe",
"author_id": 8446,
"author_profile": "https://Stackoverflow.com/users/8446",
"pm_score": 1,
"selected": false,
"text": "CO_E_SERVER_EXEC_FAILURE"
},
{
"answer_id": 279317,
"author": "Mark Brackett",
"author_id": 2199,
... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8032/"
] |
279,114 | <p>I'm trying to read the contents of a text file, in this case a list of computer names (Computer1, computer2 etc,) and I thought that StreamReader would be what you would use but when I do the following:</p>
<pre><code>StreamReader arrComputer = new StreamReader(FileDialog.filename)();
</code></pre>
<p>I got this e... | [
{
"answer_id": 279118,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 2,
"selected": false,
"text": "using System.IO;\n\n\nStreamReader arrComputer = new StreamReader(FileDialog.filename);\n"
},
{
"answer_id": ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35760/"
] |
279,119 | <p>I like to use IPython's zope profile to inspect my Plone instance, but a few annoying permissions differences come up compared to inserting a breakpoint and hitting it with the admin user.</p>
<p>For example, I would like to iterate over the content objects in an unpublished testing folder. This query will return n... | [
{
"answer_id": 427914,
"author": "bruno desthuilliers",
"author_id": 41316,
"author_profile": "https://Stackoverflow.com/users/41316",
"pm_score": 2,
"selected": false,
"text": "from sys import stdin, stdout, exit\nimport base64\nfrom thread import get_ident\nfrom ZPublisher.HTTPRequest ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279119",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36330/"
] |
279,144 | <p>I have a large Java app that is split up into multiple projects. Each project has its own folder in a Subversion repository like so:</p>
<p>AccountingCore</p>
<ul>
<li>trunk</li>
<li>branches</li>
<li>tags</li>
</ul>
<p>Common</p>
<ul>
<li>trunk</li>
<li>branches</li>
<li>tags</li>
</ul>
<p>WebCommon</p>
<ul>... | [
{
"answer_id": 281010,
"author": "Bram Geron",
"author_id": 2147872,
"author_profile": "https://Stackoverflow.com/users/2147872",
"pm_score": 3,
"selected": true,
"text": "for DIR in AccountingCore Common WebCommon; do mkdir $DIR; cd $DIR; git init; git svn init -s svn://host/path/$DIR; ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
279,145 | <p>What is the most elegant way of bubble-sorting in F#?</p>
<p><strong>UPDATE</strong></p>
<p>As pointed out in one of the answers, bubble sorting isn't efficient in a functional language to begin with. A humourously-cynical commenter also pointed out that bubble sorting is only appropriate when the list is small an... | [
{
"answer_id": 279587,
"author": "Tomas Petricek",
"author_id": 33518,
"author_profile": "https://Stackoverflow.com/users/33518",
"pm_score": 5,
"selected": true,
"text": "let sort l = \n let rec sortUtil acc rev l =\n match l, rev with\n | [], true -> acc |> List.rev\n | [], f... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279145",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32462/"
] |
279,148 | <p>I have a table of 155K records. I can scroll only 65K records in combo box of a form having recordsource with query or sql, selecting three fields from that table. Why it does not list all 155K records even the query, which I am using as recordsource, shows all records outside of the form.</p>
| [
{
"answer_id": 286853,
"author": "Fionnuala",
"author_id": 2548,
"author_profile": "https://Stackoverflow.com/users/2548",
"pm_score": 0,
"selected": false,
"text": "SELECT tp.PersonKey, \n tp.Surname & \", \" & tp.Forename AS PersonName\nFROM tblPersons tp\nWHERE tp.Surname \nLIKE For... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
279,154 | <p>I'm looking for a reliable, implementation-independent way to clone an entire Document. The Javadocs specifically say that calling cloneNode on a Document is implementation-specific. I've tried passing the Document through a no-op Transformer, but the resulting Node has no owner Document.</p>
<p>I could create a ... | [
{
"answer_id": 2109128,
"author": "Ichiro Furusato",
"author_id": 230955,
"author_profile": "https://Stackoverflow.com/users/230955",
"pm_score": 3,
"selected": false,
"text": "TransformerFactory tfactory = TransformerFactory.newInstance();\nTransformer tx = tfactory.newTransformer();\... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279154",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25498/"
] |
279,158 | <p>I'm going to try to ask my question in the context of a simple example...</p>
<p>Let's say I have an abstract base class Car. Car has-a basic Engine object. I have a method StartEngine() in the abstract Car class that delegates the starting of the engine to the Engine object.</p>
<p>How do I allow subclasses of ... | [
{
"answer_id": 279180,
"author": "Chris Boran",
"author_id": 25660,
"author_profile": "https://Stackoverflow.com/users/25660",
"pm_score": 0,
"selected": false,
"text": "setEngine() Car Ferrari setEngine() TurboEngine"
},
{
"answer_id": 279183,
"author": "Larry OBrien",
"... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/132931/"
] |
279,169 | <p>Is it possible to deploy a website using <code>git push</code>? I have a hunch it has something to do with using <a href="http://www.git-scm.com/book/en/v2/Customizing-Git-Git-Hooks" rel="noreferrer">git hooks</a> to perform a <code>git reset --hard</code> on the server side, but how would I go about accomplishing t... | [
{
"answer_id": 327315,
"author": "Kyle Cronin",
"author_id": 658,
"author_profile": "https://Stackoverflow.com/users/658",
"pm_score": 9,
"selected": true,
"text": "[remote \"production\"]\n url = username@webserver:/path/to/htdocs/.git\n chmod +x .git/hooks/post-update\n git push pro... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/658/"
] |
279,170 | <p>
I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.</p>
<p>Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to... | [
{
"answer_id": 279244,
"author": "chroder",
"author_id": 18802,
"author_profile": "https://Stackoverflow.com/users/18802",
"pm_score": 6,
"selected": false,
"text": "default_charset header() header('Content-Type: text/html; charset=utf-8');\n"
},
{
"answer_id": 279279,
"autho... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1951/"
] |
279,173 | <p>Is there anything in Visual Studio that will report memory leaks like Codeguard?</p>
<p>eg:</p>
<pre><code>Error 00001. 0x300010 (Thread 0x0FA4):
Resource leak: The object (0xC65D84) was never deleted
The object (0x00C65D84) [size: 4 bytes] was created with new
| element2.cpp line 3:
| #include "element2.h"
|
|&... | [
{
"answer_id": 279188,
"author": "Roger Lipscombe",
"author_id": 8446,
"author_profile": "https://Stackoverflow.com/users/8446",
"pm_score": 3,
"selected": true,
"text": "<crtdbg.h"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/279173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34799/"
] |
279,190 | <p>How can I extract the list of colors in the System.Drawing.Color struct into a collection or array?</p>
<p>Is there a more efficient way of getting a collection of colors than using this struct as a base?</p>
| [
{
"answer_id": 279207,
"author": "jons911",
"author_id": 34375,
"author_profile": "https://Stackoverflow.com/users/34375",
"pm_score": 5,
"selected": true,
"text": "string[] colors = Enum.GetNames(typeof(System.Drawing.KnownColor));\n Type colorType = typeof(System.Drawing.Color);\n\nPro... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1583/"
] |
279,195 | <p>I am trying to parse JSON in an Adobe Flex app, using http://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscript-3/'>This Tutorial</p>
<p>Unfortunately, Flex Builder 3 is flagging a "Access of undefined property JSON" error on the line</p>
<p><code>var arr:Array = (JSON.decode(raw... | [
{
"answer_id": 13985779,
"author": "Dinesh",
"author_id": 1059093,
"author_profile": "https://Stackoverflow.com/users/1059093",
"pm_score": 2,
"selected": false,
"text": "var arr:Array = (com.adobe.serialization.json.JSON.decode(rawData) as Array);\n var arr:Array = (JSON.decode(rawData... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279195",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32392/"
] |
279,208 | <p>After two years of C#, I'm now back to VB.net because of my current job. In C#, I can do a short hand testing for null or false value on a string variable like this:</p>
<pre><code>if(!String.IsNullOrEmpty(blah))
{
...code goes here
}
</code></pre>
<p>however I'm a little confused about how to do this in VB.net... | [
{
"answer_id": 279224,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 3,
"selected": false,
"text": "Not ! Boolean Is If Not x Is Nothing Then ' … '\n' is the same as '\nIf x IsNot Nothing Then ' … '\n if (x != null) /... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28647/"
] |
279,220 | <p>I've written a web service using ASP.NET (in C#) and I'm attempting to write an example PHP client using NuSOAP. Where I'm tripped up on are examples of how to do this; some show <code>soapval</code> being used (and I don't quite understand the parameters - for example passing <code>false</code> as <code>string</co... | [
{
"answer_id": 279407,
"author": "John Lemp",
"author_id": 12915,
"author_profile": "https://Stackoverflow.com/users/12915",
"pm_score": 4,
"selected": true,
"text": "<?php\nrequire_once('lib/nusoap.php');\n$client = new nusoap_client('http://localhost:3333/Service.asmx?wsdl');\n\n$param... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5645/"
] |
279,221 | <p>I have a VB6 picture box that gets an image from a video capture device.</p>
<p>I'm trying to figure out how to then convert the picture box to a byte array.</p>
| [
{
"answer_id": 279231,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 2,
"selected": false,
"text": "PropertyBag"
},
{
"answer_id": 281986,
"author": "Keith Maurino",
"author_id": 1096640,
"author_p... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1096640/"
] |
279,236 | <p>I'm attempting to resize pngs with transparent backgrounds in PHP and the code samples I've found online don't work for me. Here's the code I'm using, advice will be much appreciated!</p>
<pre><code>$this->image = imagecreatefrompng($filename);
imagesavealpha($this->image, true);
$newImage = imagecreatetruec... | [
{
"answer_id": 279310,
"author": "Dycey",
"author_id": 35961,
"author_profile": "https://Stackoverflow.com/users/35961",
"pm_score": 7,
"selected": true,
"text": "false true <?php\n/**\n * https://stackoverflow.com/a/279310/470749\n * \n * @param resource $image\n * @param int $newWidth\... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/956/"
] |
279,237 | <p>How do I import a Python module given its relative path?</p>
<p>For example, if <code>dirFoo</code> contains <code>Foo.py</code> and <code>dirBar</code>, and <code>dirBar</code> contains <code>Bar.py</code>, how do I import <code>Bar.py</code> into <code>Foo.py</code>?</p>
<p>Here's a visual representation:</p>
<... | [
{
"answer_id": 279253,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 8,
"selected": false,
"text": "__init__.py"
},
{
"answer_id": 279287,
"author": "bouvard",
"author_id": 24608,
"author_profile": "http... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279237",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1388/"
] |
279,240 | <p>I know that CSS can be used to control the presentation of (X)HTML in modern browsers. I was under the impression that this was possible for arbitrary XML as well. (Am I mistaken?)</p>
<p><strong>A concrete example</strong>: given the following XML</p>
<pre><code><log>
<entry revision="1">
<a... | [
{
"answer_id": 279260,
"author": "Vincent Ramdhanie",
"author_id": 27439,
"author_profile": "https://Stackoverflow.com/users/27439",
"pm_score": 1,
"selected": false,
"text": "author{\n display:block;\n color:#888888;\n}\n"
},
{
"answer_id": 279267,
"author": "Daan",
... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33412/"
] |
279,269 | <p>If I have data in the following format</p>
<pre><code> id subid text
1 1 Hello
1 2 World
1 3 !
2 1 B
2 2 B
2 3 Q
</code></pre>
<p>And would like it in this format:</p>
<pre><code> id fold
1 HelloWorld!
2 BBQ
</code></p... | [
{
"answer_id": 279274,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 2,
"selected": false,
"text": "--initial data table\ncreate table #tmp (\n id int,\n subid int,\n txt varchar(256)\n)\n\n--populate with sa... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8435/"
] |
279,270 | <p>Which style of Ruby string quoting do you favour? Up until now I've always used <code>'single quotes'</code> unless the string contains certain escape sequences or interpolation, in which case I obviously have to use <code>"double quotes"</code>.</p>
<p>However, is there really any reason not to just use double quo... | [
{
"answer_id": 280113,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "mystring.gsub( /(fo+)bar/, '\\1baz' )\nmystring.gsub( /(fo+)bar/, \"\\\\1baz\" )"
},
{
"answer_id": 282567,
"autho... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1450/"
] |
279,282 | <p>Let's say I do something in Java like:</p>
<pre>
<code>
RemoteResponse response = null;
try {
FutureTask task new FutureTask(....);
executor.execute(task);
response = task.get(1000, TimeUnits.MILLISECONDS);
}
catch( TimeoutException te ) {
<b>
.. should I do something special here? ...
.. what hap... | [
{
"answer_id": 279321,
"author": "Ken Gentle",
"author_id": 8709,
"author_profile": "https://Stackoverflow.com/users/8709",
"pm_score": 3,
"selected": true,
"text": "response RemoteResponse task response task task close release task task get"
},
{
"answer_id": 1433218,
"autho... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3095/"
] |
279,293 | <p>We are repurposing an application server running WebSphere 6.0.2.23. I would like to rename the various application server to better reflect its new role. </p>
<p>How can you rename an application server? </p>
<p>It seems like wsadmin can do it, but I'm struggling with the object hierarchy.</p>
| [
{
"answer_id": 2681177,
"author": "ndarkduck",
"author_id": 322055,
"author_profile": "https://Stackoverflow.com/users/322055",
"pm_score": 2,
"selected": false,
"text": "/usr/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/ws_ant.sh \\\n-profileName AppSrv01 \\\n-buildfile exportImport.xm... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279293",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16484/"
] |
279,296 | <p>Given a date how can I add a number of days to it, but exclude weekends. For example, given 11/12/2008 (Wednesday) and adding five will result in 11/19/2008 (Wednesday) rather than 11/17/2008 (Monday).</p>
<p>I can think of a simple solution like looping through each day to add and checking to see if it is a weeken... | [
{
"answer_id": 279316,
"author": "gnud",
"author_id": 27204,
"author_profile": "https://Stackoverflow.com/users/27204",
"pm_score": -1,
"selected": false,
"text": "W + N % 5.\n D + ((N / 5) * 7) + N % 5).\n"
},
{
"answer_id": 279357,
"author": "LeppyR64",
"author_id": 165... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45/"
] |
279,306 | <p>Ok. I'm having an issue with the following bit of code:</p>
<pre><code>StreamReader arrComputer = new StreamReader(FileDialog.FileName);
</code></pre>
<p>My first question had been answered already now my second question focuses on the tail end of this code.</p>
<p>I'm reading a text file <code>StreamReader</cod... | [
{
"answer_id": 279314,
"author": "dnord",
"author_id": 3248,
"author_profile": "https://Stackoverflow.com/users/3248",
"pm_score": 0,
"selected": false,
"text": "FileDialog"
},
{
"answer_id": 279322,
"author": "shahkalpesh",
"author_id": 23574,
"author_profile": "http... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35760/"
] |
279,324 | <p>Im trying to find a best practice to load usercontrols using Ajax.</p>
<p>My first approach where simply using an UpdatePanel and popuplating it with LoadControl() on ajax postbacks but this would rerender other loaded usercontrols in the same UpdatePanel. Also I cannot have a predefined set of UpdatePanels since t... | [
{
"answer_id": 279486,
"author": "Morten Bergfall",
"author_id": 447694,
"author_profile": "https://Stackoverflow.com/users/447694",
"pm_score": 4,
"selected": true,
"text": "$('#SomeContainer').Load(\"default.aspx?What=GimmeSomeSweetAjax\");\n if(Request.QueryString[\"What\"]==GimmeSome... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19264/"
] |
279,326 | <p>I'm working on a simple little function to download a file from an SSL-enabled website using the WinInet functions, namely InternetOpen and InternetOpenURL. I had was initially failing the call to InternetOpenURL with a <code>ERROR_INTERNET_INVALID_CA</code> (12045) because I was using a self-signed certificate on... | [
{
"answer_id": 279419,
"author": "bdumitriu",
"author_id": 35415,
"author_profile": "https://Stackoverflow.com/users/35415",
"pm_score": 0,
"selected": false,
"text": "hReq InternetOpen InternetOpen if (hReq == NULL) {\n printf(\"InternetOpen Error: %d\", GetLastError());\n}\n"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/279326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
279,329 | <p>What's the quickest way to convert a date in one format, say </p>
<blockquote>
<p>2008-06-01</p>
</blockquote>
<p>to a date in another format, say </p>
<blockquote>
<p>Sun 1st June 2008</p>
</blockquote>
<p>The important bit is actually the 'Sun' because depending on the dayname, I may need to fiddle other t... | [
{
"answer_id": 279340,
"author": "bdumitriu",
"author_id": 35415,
"author_profile": "https://Stackoverflow.com/users/35415",
"pm_score": 0,
"selected": false,
"text": "date -d yyyy-mm-dd\n date -d yyyy-mm-dd +%a\n"
},
{
"answer_id": 279352,
"author": "Brian L",
"author_id... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279329",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35961/"
] |
279,359 | <p>I have this Array i wrote a function MostFreq that takes an array of integers and return 2 values : the more frequent number in the array and its frequency check this code i worte what do you think ? is there a better way to do it?</p>
<pre><code>static void Main()
{
int [] M={4,5,6,4,4,3,5,3};
int x;
... | [
{
"answer_id": 279394,
"author": "Nathan W",
"author_id": 6335,
"author_profile": "https://Stackoverflow.com/users/6335",
"pm_score": 4,
"selected": true,
"text": "Dim i = From Numbers In ints _\n Group Numbers By Numbers Into Group _\n Aggregate feq In Group Into C... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
279,360 | <p>I have a windows service that uses log4net. We noticed that the service in question was running painfully slow so we attached a debugger to it and stepped through. It appears that each time it tries to write an entry to the log via log4net that it takes anywhere from 10 to 30 seconds before the next line of code can... | [
{
"answer_id": 281272,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "<appender name=\"RollingFileAppender\" type=\"log4net.Appender.RollingFileAppender,log4net\">\n <file value=\"D:\\\\ROPLo... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
279,374 | <p>I had the following line snippet of code that searches for a propery of an instance by name:</p>
<pre><code>var prop = Backend.GetType().GetProperty(fieldName);
</code></pre>
<p>Now I want to ignore the case of fieldName, so I tried the following:</p>
<pre><code>var prop = Backend.GetType().GetProperty(fieldName,... | [
{
"answer_id": 279395,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "BindingFlags.Public | BindingFlags.Instance using System;\nusing System.Reflection;\n\npublic class Test\n{\n private ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2744/"
] |
279,391 | <p>When developing JavaScript, I tend to separate JavaScript code out into different files and then run a script to concatenate the files and compress or pack the resulting file. In the end, I have one file that I need to include on my production site. </p>
<p>This approach has usually worked, but I've started to run ... | [
{
"answer_id": 279476,
"author": "mercutio",
"author_id": 1951,
"author_profile": "https://Stackoverflow.com/users/1951",
"pm_score": 3,
"selected": true,
"text": "01_parent.js\n02_child.js\n"
},
{
"answer_id": 279492,
"author": "Jason Bunting",
"author_id": 1790,
"au... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22291/"
] |
279,392 | <p>My SQL table looks like this:</p>
<pre><code>CREATE TABLE Page (
Id int primary key,
ParentId int, -- refers to Page.Id
Title varchar(255),
Content ntext
)
</code></pre>
<p>and maps to the following class in my ActiveRecord model:</p>
<pre><code>[ActiveRecord]
public class Page {
[PrimaryKey]... | [
{
"answer_id": 290886,
"author": "Neil Hewitt",
"author_id": 22178,
"author_profile": "https://Stackoverflow.com/users/22178",
"pm_score": -1,
"selected": false,
"text": "var rootPages = new SimpleQuery<Page>(@\"from Page p left join fetch p.Children where p.Parent is null\");\nreturn(ro... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279392",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5017/"
] |
279,398 | <p>I have created a reference to an IIS hosted WCF service in my ASP.NET website project on my local workstation through the "Add Service Reference" option in Visual Studio 2008. I was able to execute the service from my local workstation.</p>
<p>When I move the ASP.NET web site using the "Copy Web Site" feature in V... | [
{
"answer_id": 284516,
"author": "Michael Kniskern",
"author_id": 26327,
"author_profile": "https://Stackoverflow.com/users/26327",
"pm_score": 2,
"selected": true,
"text": "svcutil /t:code http://<service_url> /out:<file_name>.cs /config:<file_name>.config\n"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/279398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26327/"
] |
279,404 | <p>I know that in the original C++0x standard there was a feature called <code>export</code>.</p>
<p>But I can't find a description or explanation of this feature. What is it supposed to do? Also: which compiler is supporting it?</p>
| [
{
"answer_id": 279571,
"author": "Rodyland",
"author_id": 10681,
"author_profile": "https://Stackoverflow.com/users/10681",
"pm_score": 3,
"selected": false,
"text": "export export"
},
{
"answer_id": 3402843,
"author": "Community",
"author_id": -1,
"author_profile": "... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35744/"
] |
279,406 | <p>I have a sequential workflow with a number of Activities. One of these activities needs to access my paid S3 account. It works fine, but to be cautious, I would like to make sure it can handle unexpected situations, such as 'Host not found' or some timeout, etc.</p>
<p>So .. i would normally put the code inside a T... | [
{
"answer_id": 279612,
"author": "Panos",
"author_id": 8049,
"author_profile": "https://Stackoverflow.com/users/8049",
"pm_score": 3,
"selected": true,
"text": "FaultHandlerActivity FaultType Activity.HandleFault"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/279406",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30674/"
] |
279,410 | <p>Given an object on a plain white background, does anybody know if OpenCV provides functionality to easily detect an object from a captured frame? </p>
<p>I'm trying to locate the corner/center points of an object (rectangle). The way I'm currently doing it, is by brute force (scanning the image for the object) an... | [
{
"answer_id": 321692,
"author": "Ismael C",
"author_id": 41096,
"author_profile": "https://Stackoverflow.com/users/41096",
"pm_score": 6,
"selected": true,
"text": "0. rectangles <- {}\n1. image <- load image\n2. for every channel:\n2.1 image_canny <- apply canny edge detector to this ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/568/"
] |
279,414 | <p>Been trying to upgrade my subversion installation, but due to (what I believe) are limited rights (I'm using hosted Linux account), I'm not able to properly "./configure" and compile the source code (see posts <a href="https://stackoverflow.com/questions/189906/upgrade-subversion-143-to-152-on-debian-hosted-account"... | [
{
"answer_id": 279424,
"author": "Can Berk Güder",
"author_id": 2119,
"author_profile": "https://Stackoverflow.com/users/2119",
"pm_score": 4,
"selected": true,
"text": "dpkg-deb -x"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/279414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18274/"
] |
279,421 | <p>I have an html form that a user will fill out and print. Once printed, these forms will be faxed or mailed to a government agency, and need to look close enough like the original form published by said agency that a government bureaucrat doesn't spot that this is a reproduction. The data entered in the form is not... | [
{
"answer_id": 279510,
"author": "Kornel",
"author_id": 27009,
"author_profile": "https://Stackoverflow.com/users/27009",
"pm_score": 5,
"selected": false,
"text": "input[type=radio] {content:url(mycheckbox.png)}\ninput[type=radio]:checked {content:url(mycheckbox-checked.png)}\n <span cl... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3043/"
] |
279,431 | <p>I'd like to find a way to do a SQL query that will calculate the cidr (bit representation) of a subnet mask stored in the database. So for example, I've got either 255.255.255.0 or its decimal value (4294967040) stored in the database. I'd like to do a select and get back /24 representation via the query.</p>
<p>... | [
{
"answer_id": 282528,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 2,
"selected": false,
"text": "CREATE TABLE cidr (\n bits INT UNSIGNED PRIMARY KEY,\n mask INT UNSIGNED NOT NULL\n);\n\nINSERT INTO cidr (bits) VAL... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14230/"
] |
279,434 | <p>I am opening a process (with os.popen() ) that, for some commands, detects certain keypresses (e.g. ESC - not the character, the key). Is there a way to send keypress events to the process?</p>
| [
{
"answer_id": 279477,
"author": "Alex Coventry",
"author_id": 1941213,
"author_profile": "https://Stackoverflow.com/users/1941213",
"pm_score": 1,
"selected": false,
"text": "Pexpect subprocess"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/279434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35305/"
] |
279,444 | <p>I'm pulling email address records from a table in SQL Server 2005, and want to build a single string to use as the <code>@recipients</code> list with <code>sp_send_dbmail</code>. The table has a field called EmailAddress and there are 10 records in the table.</p>
<p>I'm doing this:</p>
<pre><code>DECLARE @email VA... | [
{
"answer_id": 279467,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 4,
"selected": true,
"text": "@email EmailAddress"
},
{
"answer_id": 279490,
"author": "bdumitriu",
"author_id": 35415,
"author_p... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6624/"
] |
279,451 | <p>In Visual Studio website projects (in Visual Studio 2005 or later, not web application projects where there is still a .csproj file) how is the reference information stored, and is it possible to source control it without storing compiled binaries in source control?</p>
<p>If you right-click on a website project an... | [
{
"answer_id": 279470,
"author": "John Sheehan",
"author_id": 1786,
"author_profile": "https://Stackoverflow.com/users/1786",
"pm_score": 5,
"selected": true,
"text": "Project(\"{xxxxxxx-7377-xxxx-xxxx-BC803B73C61A}\") = \"XXXXXXX.Web\", \"XXXXXXX.Web\", \"{xxxxxxxx-BB14-xxxx-B3B6-8BF6D8... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279451",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10039/"
] |
279,455 | <p>On an ASP.NET page, I have a GridView populated with the results of a LINQ query. I'm setting the DataSource in code, then calling DataBind on it. In the GridView's RowDataBound event, I'm selectively hiding links in some GridView fields based on the query results. (For instance, I hide the "Show Parent" link of ... | [
{
"answer_id": 281768,
"author": "sirrocco",
"author_id": 5246,
"author_profile": "https://Stackoverflow.com/users/5246",
"pm_score": 1,
"selected": false,
"text": "Visible='<%#ShowParentLink()%>'\n"
},
{
"answer_id": 285458,
"author": "Ryan Lundy",
"author_id": 5486,
... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5486/"
] |
279,469 | <p>I recently wrote a webservice to be used with Silverlight which uses the ASP.net membership and roles.</p>
<p>To validate the client in the service I look at the HTTPContext.Current.User (Which works when the service is called from Silverlight)</p>
<p>However, I've been trying to call the same service from an asp.... | [
{
"answer_id": 282894,
"author": "JSmyth",
"author_id": 54794,
"author_profile": "https://Stackoverflow.com/users/54794",
"pm_score": 2,
"selected": false,
"text": " using (OperationContextScope scope = new OperationContextScope(ws.InnerChannel))\n {\nHttpRequestMessageProperty htt... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279469",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/54794/"
] |
279,472 | <p>I have a form with a lot of controls on it. How can I detect when the mouse leaves the form? I've tried wiring up a MouseLeave event for every single control and the form, but that does not work because those events fire all the time as the mouse passes over controls. Is there a way that actually works.?</p>
| [
{
"answer_id": 279741,
"author": "Eren Aygunes",
"author_id": 27980,
"author_profile": "https://Stackoverflow.com/users/27980",
"pm_score": 4,
"selected": true,
"text": " protected override void OnControlAdded(ControlEventArgs e)\n {\n SubscribeEvents(e.Control);\n ba... | 2008/11/10 | [
"https://Stackoverflow.com/questions/279472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9382/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.