qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
353,485 | <p>I am trying to create a Data Source in SharePoint Designer that connects to a SharePoint List via XML Web Services. I have created the Data Source and connected to the list in question. I can view all the data using GetListItems, and I want to filter it using the query parameter.</p>
<p>The query parameter takes ... | [
{
"answer_id": 354027,
"author": "Peter Lillevold",
"author_id": 35245,
"author_profile": "https://Stackoverflow.com/users/35245",
"pm_score": 1,
"selected": false,
"text": "<Query><Where>\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/353485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1753/"
] |
353,486 | <p>I'm looking at using ASP.NET for a new SaaS service, but for the love of me I can't seem to figure out how to do account lookups based on subdomains like most SaaS applications (e.g. 37Signals) do.</p>
<p>For example, if I offer yourname.mysite.com, then how would I use ASP.NET (MVC specifically) to extract the sub... | [
{
"answer_id": 368512,
"author": "Mark Brittingham",
"author_id": 15592,
"author_profile": "https://Stackoverflow.com/users/15592",
"pm_score": 3,
"selected": true,
"text": " //------------------------------------------------------------------------------------------------------------... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40667/"
] |
353,489 | <p>In my case, I have a number of column names coming from a form. I want to filter to make sure they're all true. Here's how I currently do it:</p>
<pre><code>for op in self.cleaned_data['options']:
cars = cars.filter((op, True))
</code></pre>
<p>Now it <em>works</em> but there are are a possible ~40 columns to ... | [
{
"answer_id": 353602,
"author": "prairiedogg",
"author_id": 27462,
"author_profile": "https://Stackoverflow.com/users/27462",
"pm_score": 3,
"selected": false,
"text": "op_kwargs = {}\nfor op in self.cleaned_data['options']:\n op_kwargs[op] = True\ncars = CarModel.objects.filter(**op... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353489",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12870/"
] |
353,491 | <p>Say I have a hierarchy of classes, let's use the classic <code>Shape</code> examples: </p>
<p><code>abstract class Shape</code><br>
<code>Circle : Shape</code><br>
<code>Square : Shape</code> </p>
<p>I have a second hierarchy of renderer classes that handle the rendering of shapes in different ways:</p>
<p><code>... | [
{
"answer_id": 355034,
"author": "oz10",
"author_id": 14069,
"author_profile": "https://Stackoverflow.com/users/14069",
"pm_score": 2,
"selected": false,
"text": "class Triangle : public Shape\n{\n public:\n Triangle( const RenderEngine& whichRenderEngine );\n void render( voi... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
353,505 | <p>I'm trying to get a JEditorPane to highlight the full width of a displayed line. All the examples I've tried only highlight the textual content. For example if I have content such as this:</p>
<pre><code> ---------------------------------
|Here is some text |
|some more text |
----... | [
{
"answer_id": 354283,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": true,
"text": "paint()"
},
{
"answer_id": 359811,
"author": "Matthew Murdoch",
"author_id": 4023,
"author_profile": "https:... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4023/"
] |
353,520 | <p>Is it possible to post a description/comment variable to the facebook sharer url? It's only possible for url and title as far as I can figure out.</p>
| [
{
"answer_id": 529285,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "meta"
},
{
"answer_id": 936769,
"author": "Andrew Cox",
"author_id": 27907,
"author_profile": "https://Sta... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18671/"
] |
353,526 | <p>On a SQL Server 2005 database, one of our remote developers just checked in a change to a stored procedure that changed a "select scope_identity" to "select @@identity". Do you know of any reasons why you'd use @@identity over scope_identity?</p>
| [
{
"answer_id": 353547,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 5,
"selected": true,
"text": "@@IDENTITY"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/353526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/571/"
] |
353,541 | <p>I am using Context.RewritePath() in ASP.NET 3.5 application running on IIS7.</p>
<p>I am doing it in application BeginRequest event and everything works file.</p>
<p>Requests for /sports are correctly rewritten to default.aspx?id=1, and so on.</p>
<p>The problem is that in my IIS log I see GET requests for /Defau... | [
{
"answer_id": 558076,
"author": "Daniel Richardson",
"author_id": 52049,
"author_profile": "https://Stackoverflow.com/users/52049",
"pm_score": 2,
"selected": false,
"text": "BeginRequest"
},
{
"answer_id": 14181017,
"author": "ingredient_15939",
"author_id": 471597,
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1269/"
] |
353,545 | <p>I have a C# program which uses a SQL Server database.I am already using it in a country that uses . as decimal separator.
Now I want to use it in another country that uses , as decimal separator.</p>
<p>in C# is there some application level setting that I can change or write some code so that I can use the same da... | [
{
"answer_id": 353618,
"author": "Michael Haren",
"author_id": 29,
"author_profile": "https://Stackoverflow.com/users/29",
"pm_score": 0,
"selected": false,
"text": "Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture(\"en-US\")\nThread.CurrentThr... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
353,550 | <p>All the member variables and member functions in my class ClassA are static. </p>
<p>If a user is trying (by mistake) to create an object of this class, he receives a warning: "ClassA, local variable never referenced", because all the functions are static, so this object is never referenced. So, I want to prevent t... | [
{
"answer_id": 353580,
"author": "Ferruccio",
"author_id": 4086,
"author_profile": "https://Stackoverflow.com/users/4086",
"pm_score": 4,
"selected": false,
"text": "namespace::function()"
},
{
"answer_id": 353640,
"author": "Johannes Schaub - litb",
"author_id": 34509,
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353550",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44673/"
] |
353,558 | <p>I have a classes like:</p>
<pre><code>[Serializable]
public class child {
public Parent parent;
}
[Serializable]
public class Parent {
public List<child> children;
}
</code></pre>
<p>When I deserialize Parent, I want each of each children to have a reference to it's parent. Question is, where in the... | [
{
"answer_id": 353589,
"author": "Charles Bretana",
"author_id": 32632,
"author_profile": "https://Stackoverflow.com/users/32632",
"pm_score": 0,
"selected": false,
"text": " public class Connections: List<Connection>\n { public new void Add(Connection connection)\n {\n ... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
353,561 | <p>How can you create a C# Winforms control which goes out of the bounds of its region? Such as a drop down box. Kind of like if you had a DropDownBox in a Small Sized Panel.</p>
| [
{
"answer_id": 354326,
"author": "Hans Passant",
"author_id": 17034,
"author_profile": "https://Stackoverflow.com/users/17034",
"pm_score": 3,
"selected": false,
"text": "using System;\nusing System.Drawing;\nusing System.ComponentModel;\nusing System.Windows.Forms;\n\npublic class MyLis... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28717/"
] |
353,569 | <p>Can any one explain why the output of this code is only 'hello' and what this code means?</p>
<pre><code>( 0, characterArray, 0, characterArray.Length );
</code></pre>
<p>The output is showing:</p>
<p><PRE>The character array is: hello</PRE></p>
<p>The code follows:</p>
<pre><code>string string1 = "hello there"... | [
{
"answer_id": 353583,
"author": "AaronS",
"author_id": 26932,
"author_profile": "https://Stackoverflow.com/users/26932",
"pm_score": 4,
"selected": true,
"text": "public void CopyTo(\n int sourceIndex,\n char[] destination,\n int destinationIndex,\n int count\n)\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/353569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
353,571 | <p>I just got done working through the Django tutorials for the second time, and am understanding things much more clearly now. However, I'm still unclear how apps inside a site interact with one another.</p>
<p>For example, lets say I'm writing a blog application (a rather popular activity, apparently). Blog posts an... | [
{
"answer_id": 353615,
"author": "muhuk",
"author_id": 42188,
"author_profile": "https://Stackoverflow.com/users/42188",
"pm_score": 2,
"selected": false,
"text": "django.contrib.admin"
},
{
"answer_id": 353667,
"author": "prairiedogg",
"author_id": 27462,
"author_pro... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33383/"
] |
353,596 | <p>I've copied a Dataset from one csproj to another, and the new project gets the following compile warning:
"The custom tool 'MSDataSetGenerator' failed while processing the file 'Client.xsd'."</p>
<p>In researching this warning I discovered that if I opened a VS cmd prompt and run XSD.exe on the xsd file directly I ... | [
{
"answer_id": 67321806,
"author": "live-love",
"author_id": 436341,
"author_profile": "https://Stackoverflow.com/users/436341",
"pm_score": 2,
"selected": false,
"text": "Error: Can only generate one of classes or datasets.\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/353596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29021/"
] |
353,601 | <p>I have a command-line process I would like to automate and capture in C#.</p>
<p>At the command line, I type:</p>
<pre><code>nslookup
</code></pre>
<p>This launches a shell which gives me a > prompt. At the prompt, I then type:</p>
<pre><code>ls -a mydomain.local
</code></pre>
<p>This returns a list of local CN... | [
{
"answer_id": 353624,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 4,
"selected": true,
"text": "ProcessStartInfo si = new ProcessStartInfo(\"nslookup\");\nsi.RedirectStandardInput = true;\nsi.RedirectStandardOutput = true;\... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5287/"
] |
353,614 | <pre><code>int x;
printf("hello %n World\n", &x);
printf("%d\n", x);
</code></pre>
| [
{
"answer_id": 353674,
"author": "The Archetypal Paul",
"author_id": 21755,
"author_profile": "https://Stackoverflow.com/users/21755",
"pm_score": 2,
"selected": false,
"text": "int len;\nchar *thing = \"label of unknown length\";\nchar *value = \"value value value\"\nchar *value2=\"seco... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7734/"
] |
353,617 | <p>Let's say we have a solution with the following structure:</p>
<ul>
<li>Project.DAL - Data access layer,
depends on a lower-level library,
e.g. Oracle.DataAccess w/copy local
= true </li>
<li>Project.BLL - Business logic layer, references Project.DAL as
project </li>
<li>Project.UI - UI layer,
compiles to executabl... | [
{
"answer_id": 2828191,
"author": "Shaun",
"author_id": 276874,
"author_profile": "https://Stackoverflow.com/users/276874",
"pm_score": 4,
"selected": false,
"text": "<ProjectReference Include=\"..\\SomeProject.csproj\">\n <Project>{11111111-1111-1111-1111-111111111111}</Project>\n <Na... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/549/"
] |
353,632 | <p>Where I work, people mostly think that objects are best initialised using C++-style construction (with parentheses), whereas primitive types should be initialised with the = operator:</p>
<pre><code>std::string strFoo( "Foo" );
int nBar = 5;
</code></pre>
<p>Nobody seems to be able to explain why they prefer thing... | [
{
"answer_id": 353649,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 4,
"selected": false,
"text": "std::string strFooA(\"Foo\"); // Calls std::string(const char*) constructor\nstd::string strFoo = \"Foo\"; // Call... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11575/"
] |
353,678 | <p>I have some data that has a detail table. I want the data to be presented in a ListView. I want the detail data to appear as a nested ListView when you select an item in the original list. I can't seem to figure out how to get the data binding to work.</p>
<p>Here's what I have so far, (the problem is the <code>{Bi... | [
{
"answer_id": 353925,
"author": "Bryan Anderson",
"author_id": 21186,
"author_profile": "https://Stackoverflow.com/users/21186",
"pm_score": 1,
"selected": false,
"text": "<ListView ItemsSource=\"{Binding ElementName=lstHistory, Path=SelectedItem}\">\n"
},
{
"answer_id": 497702,... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42911/"
] |
353,684 | <p>I'm writing a mapping application that I am writing in python and I need to get the lat/lon centroid of N points.
Say I have two locations</p>
<pre><code>a.lat = 101
a.lon = 230
b.lat = 146
b.lon = 200
</code></pre>
<p>Getting the center of two points is fairly easy using a euclidean formula. I would like
to be ... | [
{
"answer_id": 353732,
"author": "pdemarest",
"author_id": 40332,
"author_profile": "https://Stackoverflow.com/users/40332",
"pm_score": 2,
"selected": false,
"text": "Is the center of (0,359) and (0, 1) at (0,0) or (0,180)?\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/353684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33966/"
] |
353,698 | <p>I need to be able to change a user's password from a cron task or from an ssh session. Is there an easy way to do that with a bash script? If not, what's the easiest way to do it in Cocoa?</p>
| [
{
"answer_id": 353704,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 2,
"selected": true,
"text": "passwd"
},
{
"answer_id": 44683538,
"author": "toma",
"author_id": 4797324,
"author_profile": "https://Stac... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1175/"
] |
353,706 | <p>Beyond the official documentation, are there any recommended resources for learning to build jQuery plugins. I'm particularly interested in building plugins for the UI libary. </p>
<p>I've been looking at the source for some of the official ones, but I've found they all look quite different from each other. Many ar... | [
{
"answer_id": 354071,
"author": "Nathan Long",
"author_id": 4376,
"author_profile": "https://Stackoverflow.com/users/4376",
"pm_score": 3,
"selected": true,
"text": " $(this).highlight({\n foreground: 'red'\n });\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/353706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5291/"
] |
353,715 | <p>i have a frame that instantiates another frame but i don't want to use the close(x) button on the instantiated frame., so i created a button. how do i code that this button can be used to close the instantiated frame without quitting the JVM.</p>
| [
{
"answer_id": 430762,
"author": "Tom",
"author_id": 8969,
"author_profile": "https://Stackoverflow.com/users/8969",
"pm_score": 3,
"selected": false,
"text": "jFrame.setVisible(false);\n"
},
{
"answer_id": 1743011,
"author": "shenol",
"author_id": 185614,
"author_pro... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
353,721 | <p>I have a WebApplication project, a business logic project, and a WebDeployment project for the web app. </p>
<p>When I build solution, the deployment "Release" bin contains 1 dll for each of the projects - so I get one for MyWeb.dll, MyWebBusiness.dll, and MyWebDeploy.dll. </p>
<p>When I try to run the site, it ... | [
{
"answer_id": 14181544,
"author": "Rohit Naik",
"author_id": 1952705,
"author_profile": "https://Stackoverflow.com/users/1952705",
"pm_score": 0,
"selected": false,
"text": "<compilation ... batch=\"false\"/>\n\n ...\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/353721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44698/"
] |
353,746 | <p>This question deals with concurrency issues, for suggestions on how to display a busy icon see this question: <a href="https://stackoverflow.com/questions/205631/javascript-loadingbusy-indicator-or-transparent-div-over-page-on-event-click">Javascript - loading/busy indicator or transparent div over page on event cli... | [
{
"answer_id": 354143,
"author": "savetheclocktower",
"author_id": 25720,
"author_profile": "https://Stackoverflow.com/users/25720",
"pm_score": 1,
"selected": false,
"text": "Ajax.activeRequestCount"
},
{
"answer_id": 10206151,
"author": "Henrik",
"author_id": 1331076,
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3238/"
] |
353,757 | <p>I've recently gotten charged with designing and implementing a source code version control, testing, and deployment scheme at the company I work.</p>
<p>Personally I've worked with Subversion for a few years on my own projects. But I've never dealt with it at this big scale. Hence I thought I'd ask here if anyone h... | [
{
"answer_id": 354143,
"author": "savetheclocktower",
"author_id": 25720,
"author_profile": "https://Stackoverflow.com/users/25720",
"pm_score": 1,
"selected": false,
"text": "Ajax.activeRequestCount"
},
{
"answer_id": 10206151,
"author": "Henrik",
"author_id": 1331076,
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42146/"
] |
353,772 | <p>i have the following jquery code. </p>
<p>basically i will have several overlapped divs and a list of links on the right of all those overlapped divs. when hovering over a link, the link's assigned div will fade in.</p>
<p>I have the following code and it works (it uses the default windows' sample pictures), but i... | [
{
"answer_id": 353809,
"author": "TM.",
"author_id": 12983,
"author_profile": "https://Stackoverflow.com/users/12983",
"pm_score": 4,
"selected": true,
"text": "document.ready()"
},
{
"answer_id": 353835,
"author": "Filip Dupanović",
"author_id": 44041,
"author_profil... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34683/"
] |
353,773 | <p>How can I determine when the control key is held down during button click in a C# Windows program? I want one action to take place for Ctrl/Click and a different one for Click.</p>
| [
{
"answer_id": 353816,
"author": "lesscode",
"author_id": 18482,
"author_profile": "https://Stackoverflow.com/users/18482",
"pm_score": 3,
"selected": false,
"text": "private void button1_Click(object sender, EventArgs e) {\n MessageBox.Show(Control.ModifierKeys.ToString());\n}\n"
}... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353773",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2536/"
] |
353,786 | <p>I have this function in my head:</p>
<pre><code><head>
window.onload = function(){
var x = new Array(0,2,3,4,5,6,7,8);
var y = new Array(20,10,40,30,60,50,70,10);
drawGraph(y,x);
}
</head>
</code></pre>
<p>Can I declare the function drawGraph() somewhere in the ... | [
{
"answer_id": 608288,
"author": "Dscoduc",
"author_id": 51949,
"author_profile": "https://Stackoverflow.com/users/51949",
"pm_score": 0,
"selected": false,
"text": "function addLoadEvent(func) {\n var oldonload = window.onload;\n if (typeof window.onload != 'function') {\n wi... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26004/"
] |
353,788 | <p>Is there an similar property like System.getProperty("java.home") that will return the JDK directory instead of the JRE directory? I've looked <a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/System.html#getProperties()" rel="nofollow noreferrer">https://docs.oracle.com/javase/1.5.0/docs/api/java/lan... | [
{
"answer_id": 353860,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 2,
"selected": false,
"text": "java.home"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/353788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19026/"
] |
353,793 | <p>Can I use a query in MSSQL to get the .mdf and .ldf filename/location for a specific database?</p>
| [
{
"answer_id": 353807,
"author": "Roger Lipscombe",
"author_id": 8446,
"author_profile": "https://Stackoverflow.com/users/8446",
"pm_score": 2,
"selected": false,
"text": "SELECT * FROM sys.master_files\n"
},
{
"answer_id": 685068,
"author": "GvS",
"author_id": 11492,
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
353,800 | <p>I'm wondering if storing the data in viewstate is a good idea for this given problem.
He's a simplified example of what I am trying to achieve, firstly we have a Repeater control:</p>
<pre><code><asp:Repeater id="Repeater1" runat="server">
<ItemTemplate>
<asp:TextBox id="Name" runat="server" />
&l... | [
{
"answer_id": 353807,
"author": "Roger Lipscombe",
"author_id": 8446,
"author_profile": "https://Stackoverflow.com/users/8446",
"pm_score": 2,
"selected": false,
"text": "SELECT * FROM sys.master_files\n"
},
{
"answer_id": 685068,
"author": "GvS",
"author_id": 11492,
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353800",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44702/"
] |
353,803 | <p>How can I get a PHP function go to a specific website when it is done running?</p>
<p>For example:</p>
<pre><code><?php
//SOMETHING DONE
GOTO(http://example.com/thankyou.php);
?>
</code></pre>
<p>I would really like the following...</p>
<pre><code><?php
//SOMETHING DONE
GOTO($url);
?>
</code>... | [
{
"answer_id": 353839,
"author": "Bullines",
"author_id": 27870,
"author_profile": "https://Stackoverflow.com/users/27870",
"pm_score": 4,
"selected": false,
"text": "<?php\n // SOMETHING DONE\n\n header('Location: http://stackoverflow.com');\n?>\n"
},
{
"answer_id": 353840,
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33194/"
] |
353,804 | <p>I'm working on a database that tracks files and dependencies in projects. Briefly, I have two main tables; the PROJECTS table lists project names and other properties, the FILES table lists files. Every file entry points to a project as a foreign key set to CASCADE, so if I delete a project record from the database,... | [
{
"answer_id": 353913,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 3,
"selected": true,
"text": "PROJECTS"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/353804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8415/"
] |
353,808 | <p>How do I implement this method (see below)? I'm new to Objective-C and I'm just not getting it right.</p>
<p>From: <a href="http://lists.apple.com/archives/Webkitsdk-dev/2008/Apr/msg00027.html" rel="nofollow noreferrer">http://lists.apple.com/archives/Webkitsdk-dev/2008/Apr/msg00027.html</a></p>
<blockquote>
<p>... | [
{
"answer_id": 354258,
"author": "Jeff",
"author_id": 8597,
"author_profile": "https://Stackoverflow.com/users/8597",
"pm_score": 1,
"selected": false,
"text": "- (void)webView:(WebView *)sender frame:(WebFrame *)frame\nexceededDatabaseQuotaForSecurityOrigin:(WebSecurityOrigin *)origin\n... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8597/"
] |
353,817 | <p>Java and C# support the notion of classes that can't be used as base classes with the <code>final</code> and <code>sealed</code> keywords. In C++ however there is no good way to prevent a class from being derived from which leaves the class's author with a dilemma, should every class have a virtual destructor or no... | [
{
"answer_id": 353856,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 6,
"selected": false,
"text": "virtual"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/353817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3848/"
] |
353,841 | <p>I'm new to the forum and very new to silverlight. Myself and my coworker are working on a custom application. We are building a menu system that will only display buttons if that useris in an assigned role. A new property was created to allow roles to be defined, and for testing purposes we are simply trying to a... | [
{
"answer_id": 353856,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 6,
"selected": false,
"text": "virtual"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/353841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44713/"
] |
353,842 | <p>In C#, I'm trying to build an extension method for StringBuilder called AppendCollection() that would let me do this:</p>
<pre><code>var sb1 = new StringBuilder();
var sb2 = new StringBuilder();
var people = new List<Person>() { ...init people here... };
var orders = new List<Orders>() { ...init orders ... | [
{
"answer_id": 353858,
"author": "leppie",
"author_id": 15541,
"author_profile": "https://Stackoverflow.com/users/15541",
"pm_score": 2,
"selected": false,
"text": "public static string Print<T>(this IEnumerable<T> col, Func<T,string> printer)\n{\n var sb = new StringBuilder();\n forea... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/571/"
] |
353,843 | <p>I'm trying to search multiple attributes in XML :</p>
<pre><code><APIS>
<API Key="00001">
<field Username="username1" UserPassword="password1" FileName="Filename1.xml"/>
<field Username="username2" UserPassword="password2" FileName="Filename2.xml"/>
<field Username="username... | [
{
"answer_id": 353944,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 6,
"selected": true,
"text": "/APIS/API/field[@Username='username1' and @UserPassword='password1']\n"
},
{
"answer_id": 354951,
"author": "Di... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24958/"
] |
353,882 | <pre><code><asp:RadioButton GroupName="EndorsementType" runat="server" ID="rdoAddProperty" Text="Add Property to TIV" />
<asp:RadioButton GroupName="EndorsementType" runat="server" ID="rdoRemoveProperty" Text="Remove Property from TIV" />
<asp:RadioButton GroupName="EndorsementType" runat="server" ID="rd... | [
{
"answer_id": 353917,
"author": "Bullines",
"author_id": 27870,
"author_profile": "https://Stackoverflow.com/users/27870",
"pm_score": 3,
"selected": true,
"text": "<script type=\"text/javascript\" language=\"javascript\">\n function Validate()\n {\n var l_elemsRadios = doc... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44595/"
] |
353,901 | <p>Is there a generic container implementing the 'set' behaviour in .NET?</p>
<p>I know I could just use a <code>Dictionary<T, Object></code> (and possibly add <code>nulls</code> as values), because its keys act as a set, but I was curious if there's something ready-made.</p>
| [
{
"answer_id": 353924,
"author": "leppie",
"author_id": 15541,
"author_profile": "https://Stackoverflow.com/users/15541",
"pm_score": 5,
"selected": true,
"text": "HashSet<T>"
},
{
"answer_id": 19141521,
"author": "Cristian Diaconescu",
"author_id": 11545,
"author_pro... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353901",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11545/"
] |
353,912 | <p>I need help getting my head around the difference between my current OOP notion of state, and the way it would be done in a functional language like Haskell or Clojure. </p>
<p>To use a hackneyed example, let's say we're dealing with simplified bank account objects/structs/whatever. In an OOP language, I'd have so... | [
{
"answer_id": 354017,
"author": "nlucaroni",
"author_id": 157,
"author_profile": "https://Stackoverflow.com/users/157",
"pm_score": 2,
"selected": false,
"text": " b__\n | \na -> [6|] -+-> [5|] -> [4|] -> [3|] -> [2|] -> [1|x]\n"
},
{
"answer_id": 355040,
"... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38803/"
] |
353,926 | <p>Anyone know what the C# "M" syntax means?</p>
<pre><code>var1 = Math.Ceiling(hours / (40.00M * 4.3M));
</code></pre>
| [
{
"answer_id": 353939,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 3,
"selected": false,
"text": "decimal"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/353926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/300930/"
] |
353,948 | <p>Data table structure is:<br>
id1,id2,id3,id4,... (some other fields).<br>
I want to create summary query to find out how many times some ID value is used in every column.</p>
<p>Data<br>
1,2,3,4,2008<br>
2,3,5,1,2008<br>
1,3,2,5,2007<br>
1,2,3,6,2007<br>
3,1,2,5,2007<br></p>
<p>For value 1, the result should be<br... | [
{
"answer_id": 353971,
"author": "Cade Roux",
"author_id": 18255,
"author_profile": "https://Stackoverflow.com/users/18255",
"pm_score": 1,
"selected": false,
"text": "DECLARE @look_for AS int\nSET @look_for = 1\n\nSELECT SUM(CASE WHEN id1 = @look_for THEN 1 ELSE 0 END) AS id1_count\n ... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44715/"
] |
353,953 | <p>I am trying to create a new website on a remote server via msbuild (I like to call it "msdeploy"). I've downloaded and used the SDC tasks, the MSBuildExtension tasks and the MSBuildCommunity tasks but I simply can't get it right.</p>
<p>I figure that WebDirectorySetting (from MSBuild.Community.Tasks.IIS) is my bes... | [
{
"answer_id": 2886859,
"author": "Eduardo Xavier",
"author_id": 107452,
"author_profile": "https://Stackoverflow.com/users/107452",
"pm_score": 0,
"selected": false,
"text": "<WebDirectoryCreate\n ServerName=\"$(DeployServerName)\" \n VirtualDirectoryName=\"MyVirualSiteName... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44714/"
] |
353,982 | <p>because i read that one of the advantages of <a href="http://en.wikipedia.org/wiki/WS-Discovery" rel="nofollow noreferrer">WS-Discovery</a> that it
"Support both SOAP 1.1 and SOAP 1.2 Envelopes"
so what?</p>
| [
{
"answer_id": 2886859,
"author": "Eduardo Xavier",
"author_id": 107452,
"author_profile": "https://Stackoverflow.com/users/107452",
"pm_score": 0,
"selected": false,
"text": "<WebDirectoryCreate\n ServerName=\"$(DeployServerName)\" \n VirtualDirectoryName=\"MyVirualSiteName... | 2008/12/09 | [
"https://Stackoverflow.com/questions/353982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/459737/"
] |
354,002 | <p>I have 2 tables (A and B) with the same primary keys. I want to select all row that are in A and not in B. The following works:</p>
<pre><code>select * from A where not exists (select * from B where A.pk=B.pk);
</code></pre>
<p>however it seems quite bad (~2 sec on only 100k rows in A and 3-10k less in B)</p>
<p>... | [
{
"answer_id": 354059,
"author": "Nick Berardi",
"author_id": 17,
"author_profile": "https://Stackoverflow.com/users/17",
"pm_score": 6,
"selected": false,
"text": "SELECT A.* \nfrom A left join B on \n A.x = B.y\n where B.y is null\n"
},
{
"answer_id": 34264638,
"au... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354002",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1343/"
] |
354,005 | <p><strong><code>oPanel = CType(Master.FindControl("panelSearch"), Panel)</code></strong></p>
<p>This code resides on my masterpage's back-end (<strong><code>theMaster.master.vb</code></strong>), but I get a "Cannot refer to an instance member from within a shared class or shared member initializer without an explicit... | [
{
"answer_id": 354032,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 3,
"selected": true,
"text": "Shared"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/354005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25515/"
] |
354,008 | <pre><code>SELECT pe.prodtree_element_id prodID, pe.prodtree_element_name_s, li.line_name, av2.value
FROM prodtree_element pe
LEFT JOIN prodtree_link pl
ON pe.prodtree_element_id = pl.to_prodtree_node_id
LEFT JOIN line li
ON pe.line_code = li.line_code
INNER JOIN attribute_values av
... | [
{
"answer_id": 354028,
"author": "StingyJack",
"author_id": 16391,
"author_profile": "https://Stackoverflow.com/users/16391",
"pm_score": 0,
"selected": false,
"text": " INNER JOIN attribute_values av\n ON av.attribute_definition_id = #statusCode# \n"
},
{
"answer_id": 354... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16631/"
] |
354,010 | <p>Ok, so we have a bunch of tables that are named like this:</p>
<pre><code>training_data_001
training_data_002
training_data_003
training_data_004
training_data_005
</code></pre>
<p>And then to find those we look at a field in another table, let's just call it master.training_type.</p>
<p>Anyway, I was wondering i... | [
{
"answer_id": 354013,
"author": "gbn",
"author_id": 27535,
"author_profile": "https://Stackoverflow.com/users/27535",
"pm_score": 2,
"selected": false,
"text": "EXEC (@stringvar)"
},
{
"answer_id": 354102,
"author": "TheSoftwareJedi",
"author_id": 18941,
"author_prof... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12448/"
] |
354,019 | <p>I have a UI-dialog something like this: You must choose a book from a list. Optionally, you can either choose a publisher (another class) from a list or enter the publisher-name as as a string. </p>
<p>I think this gives me 3 types as the output from the dialog.</p>
<ol>
<li>book</li>
<li>book with publisher-class... | [
{
"answer_id": 354220,
"author": "Eric",
"author_id": 42461,
"author_profile": "https://Stackoverflow.com/users/42461",
"pm_score": 0,
"selected": false,
"text": "Class Book\n{\n public string Name;\n public List<Publisher> publishers = new List<Publishers>;\n\n Book()\n {\n ... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44726/"
] |
354,037 | <p>I am looking for a way to determine what the Name/IP Address of the domain controller is for a given domain that a client computer is connected to.</p>
<p>At our company we have a lot of small little networks that we use for testing and most of them have their own little domains. As an example, one of the domains ... | [
{
"answer_id": 354128,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 4,
"selected": false,
"text": "using (PrincipalContext context = new PrincipalContext(ContextType.Domain))\n{\n string controller = context.Connect... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34508/"
] |
354,038 | <p>How do I check if a string represents a numeric value in Python?</p>
<pre><code>def is_number(s):
try:
float(s)
return True
except ValueError:
return False
</code></pre>
<p>The above works, but it seems clunky.</p>
<hr />
<p><sub>If what you are testing comes from user input, it is <e... | [
{
"answer_id": 354073,
"author": "Zoomulator",
"author_id": 44563,
"author_profile": "https://Stackoverflow.com/users/44563",
"pm_score": 11,
"selected": false,
"text": "isdigit()"
},
{
"answer_id": 1139186,
"author": "Community",
"author_id": -1,
"author_profile": "h... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40115/"
] |
354,044 | <p>A quick search for currency regex brings up <a href="https://regexlib.com/Search.aspx?k=currency&c=-1&m=-1&ps=20" rel="noreferrer">a lot of results</a>.</p>
<p>The problem I have in choosing one is that regex is difficult to verify without testing all the edge cases. Does anyone have a regex for U.S. cur... | [
{
"answer_id": 354216,
"author": "Keng",
"author_id": 730,
"author_profile": "https://Stackoverflow.com/users/730",
"pm_score": 8,
"selected": true,
"text": "Match; JGsoft:\n^[+-]?[0-9]{1,3}(?:,?[0-9]{3})*\\.[0-9]{2}$\n"
},
{
"answer_id": 354276,
"author": "Community",
"a... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354044",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23566/"
] |
354,045 | <p>I am considering writing two limited precision alternatives to BigDecimal, namely DecimalInt and DecimalLong. These would be capable of dealing with numbers within the real bounds of int and long with an arbitrary number of decimal places, creatable in both mutable and immutable form. My plan is to make DecimalInt... | [
{
"answer_id": 4261922,
"author": "Peter Lawrey",
"author_id": 57695,
"author_profile": "https://Stackoverflow.com/users/57695",
"pm_score": 0,
"selected": false,
"text": "System.out.printf(\"%.2f%n\", 1586.60-708.75);\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/354045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8946/"
] |
354,050 | <p>I am trying to passing in 3 pointers to a DLL function. I have:</p>
<pre>
{
$code=1;
$len=100;
$str=" " x $len;
$function = new Win32::API(DLLNAME,'dllfunction','PPP','V');
$function->Call($code,$str,$len);
}
</pre>
<p>The DLL is defined as <code>void dllfunction(int* a, char* str, int* len);</code> The DLL wi... | [
{
"answer_id": 354135,
"author": "Harper Shelby",
"author_id": 21196,
"author_profile": "https://Stackoverflow.com/users/21196",
"pm_score": 0,
"selected": false,
"text": "$function->Call(\\$code, \\$str, \\$len)\n"
},
{
"answer_id": 354248,
"author": "Harper Shelby",
"au... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44730/"
] |
354,057 | <p>I am begging to use jquery. I have the following call that works in IE7 but not FF 3.0.4. But if I change the <code>null</code> to <code>{}</code> it works fine. Is null not valid for this case and I just got lucky that it worked in IE or is this an error with jquery.</p>
<pre><code>$.post("complexitybar.ashx?a=... | [
{
"answer_id": 354079,
"author": "matt b",
"author_id": 4249,
"author_profile": "https://Stackoverflow.com/users/4249",
"pm_score": 1,
"selected": false,
"text": "null"
},
{
"answer_id": 354093,
"author": "Jonathan Lonowski",
"author_id": 15031,
"author_profile": "htt... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24500/"
] |
354,068 | <p>I have an application that is using Windows Authentication and a SqlRoleProvider for user authentication and role management respectively. It is working fine with my test users that I have added to the database as defaults. The application requires users to login (using Windows credentials) and then be able to use... | [
{
"answer_id": 354105,
"author": "CheGueVerra",
"author_id": 17787,
"author_profile": "https://Stackoverflow.com/users/17787",
"pm_score": 0,
"selected": false,
"text": "user = Membership.GetUser()\nif (user != null)\n{\n // default role \n string[] defaultRoles = {\"MyRole\"};\n\n Ad... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354068",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28540/"
] |
354,070 | <p>After reading it, this is <em>not</em> a duplicate of <a href="https://stackoverflow.com/questions/44917/explicit-vs-implicit-sql-joins">Explicit vs Implicit SQL Joins</a>.
The answer may be related (or even the same) but the <strong>question</strong> is different.</p>
<hr>
<p>What is the difference and what shoul... | [
{
"answer_id": 354094,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 11,
"selected": true,
"text": "SELECT *\nFROM Orders\nLEFT JOIN OrderLines ON OrderLines.OrderID=Orders.ID\nWHERE Orders.ID = 12345\n"
},
{
"... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1343/"
] |
354,097 | <p>When I add a # in insert mode on an empty line in Vim while editing python files, vim moves the # to the beginning of the line, but I would like the # to be inserted at the tab level where I entered it.</p>
<p>For example, when writing this in vim</p>
<pre><code>for i in range(10):
#
</code></pre>
<p>the # do... | [
{
"answer_id": 354422,
"author": "Paul D. Eden",
"author_id": 3045,
"author_profile": "https://Stackoverflow.com/users/3045",
"pm_score": 6,
"selected": true,
"text": "set smartindent\n"
},
{
"answer_id": 385388,
"author": "too much php",
"author_id": 28835,
"author_p... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3045/"
] |
354,110 | <p>Being fairly new to JavaScript, I'm unable to discern when to use each of these.</p>
<p>Can anyone help clarify this for me?</p>
| [
{
"answer_id": 354118,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 5,
"selected": false,
"text": "indexOf"
},
{
"answer_id": 354123,
"author": "ng.mangine",
"author_id": 37784,
"author_profile": "https:/... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30433/"
] |
354,136 | <p>How do I create the default for a generic in VB? in C# I can call:</p>
<pre><code>T variable = default(T);
</code></pre>
<ol>
<li>How do I do this in VB?</li>
<li>If this just returns null (C#) or nothing (vb) then what happens to value types?</li>
<li>Is there a way to specify for a custom type what the default v... | [
{
"answer_id": 354142,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 6,
"selected": true,
"text": "Dim variable As T\n' or '\nDim variable As T = Nothing\n' or '\nDim variable As New T()\n"
},
{
"answer_id": 3... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17744/"
] |
354,139 | <p>When using Google Reader and browsing RSS entries in the "Expanded" view, entries will automatically be marked as 'read' once a certain percentage of the div is visible on the screen (difficult to tell what percentage has to be visible in the case of Google Reader). So, as I scroll down line-by-line, the javascript ... | [
{
"answer_id": 365937,
"author": "Yoni",
"author_id": 36071,
"author_profile": "https://Stackoverflow.com/users/36071",
"pm_score": 0,
"selected": false,
"text": "viewportOffset"
},
{
"answer_id": 46545607,
"author": "Jordan Stubblefield",
"author_id": 7768341,
"autho... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40123/"
] |
354,167 | <p>In its enthusiasm to <a href="http://www.postgresql.org/docs/current/interactive/textsearch-intro.html" rel="nofollow noreferrer">stemm tokens into lexemes</a>, PostgreSQL Full Text Search engine also reduce proper nouns. For instance:</p>
<pre><code>essais=> select to_tsquery('english', 'bortzmeyer');
to_tsquer... | [
{
"answer_id": 73913128,
"author": "Justin Tanner",
"author_id": 609,
"author_profile": "https://Stackoverflow.com/users/609",
"pm_score": 0,
"selected": false,
"text": "english"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/354167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15625/"
] |
354,171 | <p>I am pretty new to both Struts and Spring. I need to know how to access a Spring Service in a Struts ActionForm. Even a pointer in the right direction would be appreciated.</p>
| [
{
"answer_id": 354205,
"author": "krosenvold",
"author_id": 23691,
"author_profile": "https://Stackoverflow.com/users/23691",
"pm_score": 1,
"selected": false,
"text": "<listener>\n <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>\n</listener>\n"
}... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
354,182 | <p>Given Microsoft FORTRAN 5.1 and Microsoft C/C++ 14.0, along with the linker that comes with that version of FORTRAN (that must be used for other dependencies) how do I create a C function and call it from the FORTRAN application? </p>
| [
{
"answer_id": 594694,
"author": "KitsuneYMG",
"author_id": 86515,
"author_profile": "https://Stackoverflow.com/users/86515",
"pm_score": 2,
"selected": true,
"text": "program ftest\nuse iso_c_bindings\nimplicit none\ninterface\nfunction saythis(a) ! should be subroutine if saythis retur... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5070/"
] |
354,188 | <p>Unlike many of the ASP.NET documentation and examples, I'm doing a gridview list on one page, and it links to a 2nd page to do the edit/update view, sending the ID for the record in the GET string.</p>
<p>On my edit/update view, I'm using an ASP:DetailsView for viewing, editing and inserting records. All of this w... | [
{
"answer_id": 355319,
"author": "Dhaust",
"author_id": 242,
"author_profile": "https://Stackoverflow.com/users/242",
"pm_score": 3,
"selected": true,
"text": "If Not idValue Is Nothing Then \n yourDetailsViewName.ChangeMode(DetailsViewMode.Insert)\nEnd If\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/354188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22452/"
] |
354,194 | <p>After upgrading a few gems via terminal on my mac, I have created a new rails project backed up by a mysql database. Upon starting the app, the regular welcome aboard page appears. </p>
<p>Here's the problem - I tried clicking the link entitled "About your application's environment", I receive the following output ... | [
{
"answer_id": 354197,
"author": "bradheintz",
"author_id": 40093,
"author_profile": "https://Stackoverflow.com/users/40093",
"pm_score": 3,
"selected": false,
"text": "sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config"
},
{
"answer_id": 355133,
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2294/"
] |
354,195 | <p>I'm finding that hitting the "Refresh" button on my browser will temporarily screw up the ViewState for controls inside an UpdatePanel.</p>
<p>Here's my situation : I made a custom WebControl that stores values in the ViewState. I put this control inside an UpdatePanel. When I hit the "refresh" button on my brows... | [
{
"answer_id": 354608,
"author": "BlackMael",
"author_id": 19377,
"author_profile": "https://Stackoverflow.com/users/19377",
"pm_score": 1,
"selected": false,
"text": " protected override void LoadViewState(object savedState)\n {\n if (savedState != null)\n {\n ... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354195",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44701/"
] |
354,201 | <p>That's the question... Do you think ASP.Net is a technology suitable for high-load sites? Do you know any populer sites -apart from stackoverflow, of course- built with this technology?
Thanks.</p>
| [
{
"answer_id": 354206,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 6,
"selected": true,
"text": "HttpHandler"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/354201",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2166249/"
] |
354,221 | <p>What is the most efficient algorithm for grouping identical items together in an array, given the following:</p>
<ol>
<li>Almost all items are duplicated several times.</li>
<li>The items are not necessarily integers or anything else that's similarly simple. The range of the keys is not even well-defined, let alon... | [
{
"answer_id": 354265,
"author": "recursive",
"author_id": 44743,
"author_profile": "https://Stackoverflow.com/users/44743",
"pm_score": 0,
"selected": false,
"text": "uint[] bucket = new int[10];\nforeach(uint val in foo) {\n ++bucket[val];\n}\n\nuint bar_i = 0;\nuint[] bar = new int... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23903/"
] |
354,224 | <p>Using Firebird, I want to combine the results of two queries using UNION ALL, then sort the resulting output on a given column.</p>
<pre><code>(select C1, C2, C3 from T1)
union all
(select C1, C2, C3 from T2)
order by C3
</code></pre>
<p>The parentheses came from valid syntax for other databases, and are needed to ... | [
{
"answer_id": 354242,
"author": "Cade Roux",
"author_id": 18255,
"author_profile": "https://Stackoverflow.com/users/18255",
"pm_score": 6,
"selected": true,
"text": "SELECT C1, C2, C3\nFROM (\n select C1, C2, C3 from T1\n union all \n select C1, C2, C3 from T2\n)\norder by C3\n... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8415/"
] |
354,226 | <p>I want to be able to run my SqlDataProvider against an oracle stored procedure. I can use Microsoft's Oracle Provider but that wouldn't allow me to call a stored procedure. has anyone been able to get this to work? I particularly want to be able to use declarative data binding. I have been able to programatically cr... | [
{
"answer_id": 366442,
"author": "user46119",
"author_id": 46119,
"author_profile": "https://Stackoverflow.com/users/46119",
"pm_score": 2,
"selected": false,
"text": "using (OracleConnection conn = new OracleConnection(\"connection string here\"))\n{\n conn.Open();\n\n OracleComma... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354226",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4491/"
] |
354,254 | <p><s><a href="https://stackoverflow.com/questions/354160/what-do-you-do-while-your-codes-compiling#354176">An answer</a></s> <strong>(see below)</strong> to one of the questions right here on Stack Overflow gave me an idea for a great little piece of software that could be invaluable to coders everywhere.</p>
<p... | [
{
"answer_id": 354553,
"author": "SCdF",
"author_id": 1666,
"author_profile": "https://Stackoverflow.com/users/1666",
"pm_score": 4,
"selected": false,
"text": "~/code"
},
{
"answer_id": 354733,
"author": "composer",
"author_id": 44811,
"author_profile": "https://Stac... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41360/"
] |
354,263 | <p>Is there a CPAN module that can read a string like this:</p>
<pre><code>"[[<asdf>, <foo>], (abc, def, ghi), ({'jkl'})]"
</code></pre>
<p>...and parse it into some sort of tree structure that's easy to walk and pretty-print?</p>
| [
{
"answer_id": 354388,
"author": "codelogic",
"author_id": 43427,
"author_profile": "https://Stackoverflow.com/users/43427",
"pm_score": 0,
"selected": false,
"text": "eval"
},
{
"answer_id": 354821,
"author": "brian d foy",
"author_id": 2766176,
"author_profile": "ht... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354263",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91385/"
] |
354,264 | <p>So regular expressions seem to match on the longest possible match. For instance:</p>
<pre><code>public static void main(String[] args) {
String s = "ClarkRalphKentGuyGreenGardnerClarkSupermanKent";
Pattern p = Pattern.compile("Clark.*Kent", Pattern.CASE_INSENSITIVE);
Matcher myMatcher = p.matcher(s);
... | [
{
"answer_id": 354289,
"author": "Gareth Davis",
"author_id": 31480,
"author_profile": "https://Stackoverflow.com/users/31480",
"pm_score": 4,
"selected": true,
"text": "Clark.+?Kent"
},
{
"answer_id": 354291,
"author": "Adrian Pronk",
"author_id": 41861,
"author_prof... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34410/"
] |
354,288 | <p>I'm having a problem using CSS's <code>display:inline</code> property with the <code>list-style-image:</code> property on <code><li></code> tags. Basically, I want to output the following:</p>
<pre><code>* Link 1 * Link 2
</code></pre>
<p>where <code>*</code> represents an image.</p>
<p>I'm doing this with... | [
{
"answer_id": 354297,
"author": "annakata",
"author_id": 13018,
"author_profile": "https://Stackoverflow.com/users/13018",
"pm_score": 6,
"selected": true,
"text": "float: left"
},
{
"answer_id": 354304,
"author": "flamingLogos",
"author_id": 8161,
"author_profile": ... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28804/"
] |
354,309 | <p>I am trying to do some simple formatting stuff with 'sed' in linux, and i need to use a regex to trim a string after the 15th character, and append a '...' to the end. Something like this:</p>
<pre><code>before: this is a long string that needs to be shortened
after: this is a long ...
</code></pre>
<p>Can anyone ... | [
{
"answer_id": 354318,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 5,
"selected": true,
"text": "echo \"This is a test with more than 15 characters\" | sed \"s/\\(.\\{15\\}\\).\\+$/\\1…/\"\n"
},
{
"answer_id... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18811/"
] |
354,312 | <p>When you run <code>git branch -r</code> why the blazes does it list <code>origin/HEAD</code>? For example, there's a remote repo on GitHub, say, with two branches: master and awesome-feature. If I do <code>git clone</code> to grab it and then go into my new directory and list the branches, I see this:</p>
<pre><cod... | [
{
"answer_id": 354617,
"author": "Dustin",
"author_id": 39975,
"author_profile": "https://Stackoverflow.com/users/39975",
"pm_score": -1,
"selected": false,
"text": "git push origin HEAD\n"
},
{
"answer_id": 357062,
"author": "Paul",
"author_id": 23356,
"author_profil... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9619/"
] |
354,313 | <p>How can I force the input's onchange script to run <em>before</em> the RangeValidator's script? </p>
<p>I want to prevent a failed validation when the user enters a dollar sign or comma.</p>
<pre><code>function cleanUp(str) {
re = /^\$|,/g;
return str.replace(re, ""); // remove "$" and ","
}
<input ty... | [
{
"answer_id": 1752683,
"author": "Giablo",
"author_id": 213361,
"author_profile": "https://Stackoverflow.com/users/213361",
"pm_score": 0,
"selected": false,
"text": "\\."
},
{
"answer_id": 5188190,
"author": "Eric Eggers",
"author_id": 528733,
"author_profile": "htt... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23566/"
] |
354,329 | <p>I'm trying to set an invalid value to -1.. But I don't like magic numbers.. Anyone know where to find a set of common constants. I'm working in VS6 (ish). </p>
<p>I'm trying to read a file from across a network, and I need a bad value for the total file size,so I know if I got valid info on it.. 0 is a valid size s... | [
{
"answer_id": 354343,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 3,
"selected": true,
"text": "#define BAD_VALUE -1\n"
},
{
"answer_id": 354347,
"author": "Harper Shelby",
"author_id": 21196,
"... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354329",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31325/"
] |
354,330 | <p>I'm concerned that this might be working on an NP-Complete problem. I'm hoping someone can give me an answer as to whether it is or not. And I'm looking for more of an answer than just yes or no. I'd like to know why. If you can say,"This is basically this problem 'x' which is/is not NP-Complete. (wikipedia link)"</... | [
{
"answer_id": 354366,
"author": "David Norman",
"author_id": 34502,
"author_profile": "https://Stackoverflow.com/users/34502",
"pm_score": 5,
"selected": false,
"text": "Create two sets of nodes: toDoSet and doneSet\nAdd the source node to the toDoSet \nwhile (toDoSet is not empty) {\n... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/685/"
] |
354,349 | <p>Is it possible to change the auto-increment offset on a pre-existing table with JavaDB? </p>
<p>I'm having a problem where inserting new records usually (but not always) fails with an error complaining about using an existing key (my auto-increment column). To populate this database, I took a dump from another da... | [
{
"answer_id": 354517,
"author": "Tim Frey",
"author_id": 1471,
"author_profile": "https://Stackoverflow.com/users/1471",
"pm_score": 1,
"selected": true,
"text": "ALTER TABLE tbl ALTER COLUMN col SET INCREMENT BY x\n"
},
{
"answer_id": 4225357,
"author": "cweiske",
"auth... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1471/"
] |
354,354 | <p>I'm using StructureMap in my project and when the application finishes running I need to call the Dispose() method on all of the Singleton instances inside the ObjectFactory that implement IDisposable.</p>
<p>I cannot find anyway to do it via the StructureMap API.</p>
<p>Another thought I had was to get a referenc... | [
{
"answer_id": 354517,
"author": "Tim Frey",
"author_id": 1471,
"author_profile": "https://Stackoverflow.com/users/1471",
"pm_score": 1,
"selected": true,
"text": "ALTER TABLE tbl ALTER COLUMN col SET INCREMENT BY x\n"
},
{
"answer_id": 4225357,
"author": "cweiske",
"auth... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8739/"
] |
354,369 | <p>In C# how do I still show the headers of a gridview, even with the data source is empty. </p>
<p>I am not auto generating the columns as they are all predefined. </p>
<p>Currently what I am doing is the following.</p>
<p>Get a DataTable back from a stored procedure, then set the DataSource of the gridview, and th... | [
{
"answer_id": 354391,
"author": "Joshua Hudson",
"author_id": 6232,
"author_profile": "https://Stackoverflow.com/users/6232",
"pm_score": 5,
"selected": false,
"text": "//Check to see if we get rows back, if we do just bind.\n\nif (dtFunding.Rows.Count != 0)\n{\n grdFunding.DataSourc... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6232/"
] |
354,374 | <p>I have a project that uses a class library for the business layer functionality (database access, etc.). A web application sits on top of this. I have a web service that I would like to call in the class library. Every time I add a 'service reference' (I am using VS2008) to the class library, everything seems to wor... | [
{
"answer_id": 354424,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 3,
"selected": false,
"text": "EmployeeServiceSoapClient"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/354374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
354,385 | <p>I would like to create a view similar to the "Now Playing" page on the iPhone and have 3 lines of text in the Navigation bar.</p>
<p>The only way I could find to do this was:</p>
<pre><code>UINavigationBar *bar = [self.navigationController navigationBar];
label = [[UILabel alloc] initWithFrame:CGRectMake(60, 2,... | [
{
"answer_id": 369966,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];\nbtn.frame = CGRectMake(0, 0, 320, 60);\n\nUILabel *label;\... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354385",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
354,386 | <p>I have a Windows Mobile application using the compact framework (NETCF) that I would like to respond to someone pressing the send key and have the phone dial the number selected in my application. Is there a way using the compact framework to trap the send key? I have looked at several articles on capturing keys,... | [
{
"answer_id": 554375,
"author": "Shane Powell",
"author_id": 23235,
"author_profile": "https://Stackoverflow.com/users/23235",
"pm_score": 3,
"selected": true,
"text": "SendMessage(SHFindMenuBar(window_hwnd), \n SHCMBM_OVERRIDEKEY, \n VK_TTALK, \n MAKELP... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/791/"
] |
354,393 | <p>** Dup: <a href="https://stackoverflow.com/questions/226002/whats-the-difference-between-x-x-vs-x">What's the difference between X = X++; vs X++;?</a> **</p>
<p>So, even though I know you would never actually do this in code, I'm still curious:</p>
<pre><code>public static void main(String[] args) {
int in... | [
{
"answer_id": 354398,
"author": "Jimmy",
"author_id": 4435,
"author_profile": "https://Stackoverflow.com/users/4435",
"pm_score": 3,
"selected": true,
"text": "a = function() {\n var old_value = a;\n a++;\n return old_value;\n}\n"
},
{
"answer_id": 354404,
"author": "C... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1666/"
] |
354,407 | <p>I totally understand the MVP pattern now, but I still struggle to see where views and presenters are instantiated. I have seen some examples where the presenter is newed up in the view, but is this correct. After reading a blog post of Jeremy Miller about communicating between View and Presenter he had a function on... | [
{
"answer_id": 354485,
"author": "Dan Vinton",
"author_id": 21849,
"author_profile": "https://Stackoverflow.com/users/21849",
"pm_score": 2,
"selected": false,
"text": "main"
},
{
"answer_id": 14389890,
"author": "nawfal",
"author_id": 661933,
"author_profile": "https... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12230/"
] |
354,408 | <p>It seems like when you have a WinForms .NET application, and a ComboBox (set to the "DropDown" style), and that ComboBox has multiple items in it that are identical, weird things happen. Specifically, the index of the selected item can change <em>without</em> firing the SelectedIndexChanged event. </p>
<p>Of course... | [
{
"answer_id": 355012,
"author": "Eric Rosenberger",
"author_id": 41624,
"author_profile": "https://Stackoverflow.com/users/41624",
"pm_score": 5,
"selected": true,
"text": "CBN_SELCHANGE"
},
{
"answer_id": 923031,
"author": "Community",
"author_id": -1,
"author_profi... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354408",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5956/"
] |
354,414 | <p>Can anybody help me to build an XSD file to validate XMLs like these:</p>
<pre><code>[test]
[a/]
[b/]
[a/]
[b/]
[/test]
[test]
[a/]
[a/]
[b/]
[/test]
</code></pre>
<p>Basically, I can have any number of <code><a></code> and/or <code><b></code> nodes without any other rule (can't use <code><xs:seque... | [
{
"answer_id": 354908,
"author": "MotoWilliams",
"author_id": 2730,
"author_profile": "https://Stackoverflow.com/users/2730",
"pm_score": 2,
"selected": true,
"text": "<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">\n <xs:element name=\"test\">\n <xs:complexType>\n <xs... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44769/"
] |
354,415 | <p>I'm using VS2008 Team Suite, ASP.NET MVC Beta, with TestDriven.Net installed. When I created my project from the template, it created a "Tests" project as well and put some controller tests for the AccountController in a folder inside this project. I've added other controllers and associated tests. Howerver, when ... | [
{
"answer_id": 354908,
"author": "MotoWilliams",
"author_id": 2730,
"author_profile": "https://Stackoverflow.com/users/2730",
"pm_score": 2,
"selected": true,
"text": "<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">\n <xs:element name=\"test\">\n <xs:complexType>\n <xs... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354415",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12950/"
] |
354,419 | <p>I'm migrating to Nhibernate 2.0 GA but have some trouble with setting cache expirations in memcached provider.</p>
<p>I see in the NHibernate.Caches.MemCache sources that there is a property for expiration and a default value for 300 seconds. </p>
<p>There are also properties for cache regions but the config secti... | [
{
"answer_id": 444445,
"author": "jozefsevcik",
"author_id": 11472,
"author_profile": "https://Stackoverflow.com/users/11472",
"pm_score": -1,
"selected": true,
"text": "<property name=\"expiration\" >YOUR_INTERVAL_IN_SECONDS</property>\n"
},
{
"answer_id": 5933302,
"author":... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43853/"
] |
354,421 | <p>I'm wondering where I find the source to show how the operator ** is implemented in Python. Can someone point me in the right direction? </p>
| [
{
"answer_id": 354626,
"author": "Aaron Maenpaa",
"author_id": 2603,
"author_profile": "https://Stackoverflow.com/users/2603",
"pm_score": 6,
"selected": true,
"text": "PyObject *\nPyNumber_Power(PyObject *v, PyObject *w, PyObject *z)\n{\n return ternary_op(v, w, z, NB_SLOT(nb_power),... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41718/"
] |
354,442 | <p>Before I write my own I will ask all y'all.</p>
<p>I'm looking for a C++ class that is almost exactly like a STL vector but stores data into an array on the stack. Some kind of STL allocator class would work also, but I am trying to avoid any kind of heap, even static allocated per-thread heaps (although one of th... | [
{
"answer_id": 354481,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 7,
"selected": true,
"text": "std::vector"
},
{
"answer_id": 354818,
"author": "Michael Burr",
"author_id": 12711,
"au... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354442",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13422/"
] |
354,445 | <p>Is there an easy method to restore a minimized form to its previous state, either Normal or Maximized? I'm expecting the same functionality as clicking the taskbar (or right-clicking and choosing restore).</p>
<p>So far, I have this, but if the form was previously maximized, it still comes back as a normal window.... | [
{
"answer_id": 354493,
"author": "jeffm",
"author_id": 1544,
"author_profile": "https://Stackoverflow.com/users/1544",
"pm_score": 3,
"selected": false,
"text": "SendMessage(docView.Handle, WM_SYSCOMMAND, SC_RESTORE, 0);\n"
},
{
"answer_id": 1398956,
"author": "Community",
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44770/"
] |
354,449 | <p>Anyone know the <code><%= %></code> or <code>Response.Write()</code> code for getting the version of .Net my web app is running on?</p>
| [
{
"answer_id": 354460,
"author": "jlew",
"author_id": 7450,
"author_profile": "https://Stackoverflow.com/users/7450",
"pm_score": 5,
"selected": true,
"text": "System.Environment.Version"
},
{
"answer_id": 623246,
"author": "Community",
"author_id": -1,
"author_profil... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13954/"
] |
354,473 | <p>What's the best way to load HTML markup for a custom jQuery UI widget?</p>
<p>So far, I've seen elements simply created using strings (i.e. <code>$(...).wrap('<div></div>')</code>) which is fine for something simple. However, this makes it extremely difficult to modify later for more complex elements.</... | [
{
"answer_id": 354537,
"author": "Andreas Grech",
"author_id": 44084,
"author_profile": "https://Stackoverflow.com/users/44084",
"pm_score": 4,
"selected": true,
"text": "var newDiv = $(\"<div></div>\"); //Create a new element and save a reference\nnewDiv.attr(\"id\",\"someid\").appendTo... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354473",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5291/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.