qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
271,340 | <p>I'm trying to use a dojo combobox with an Ajax data source. What I have is </p>
<pre><code><div dojoType="dojo.data.ItemFileReadStore"
jsId="tags"
url="<%=ResolveClientUrl("~/Tag/TagMatches")%>" >
</div>
<select dojoType="dijit.form.ComboBox"
store="tags"
value=""... | [
{
"answer_id": 271443,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 2,
"selected": true,
"text": "<div> ItemFileReadStore var tagMatchUrlBase = '<%=ResolveClientUrl(\"~/Tag/TagMatches\")%>';\n var tagMatchUrl = tagMatchUr... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/361/"
] |
271,347 | <p>I have a class that stores a serialized value and a type. I want to have a property/method returning the value already casted:</p>
<pre><code>public String Value { get; set; }
public Type TheType { get; set; }
public typeof(TheType) CastedValue { get { return Convert.ChangeType(Value, typeof(_Type)); }
</code></p... | [
{
"answer_id": 271356,
"author": "Brannon",
"author_id": 5745,
"author_profile": "https://Stackoverflow.com/users/5745",
"pm_score": 7,
"selected": false,
"text": "class Foo<TValue> {\n public string Value { get; set; }\n public TValue TypedValue {\n get {\n retur... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271347",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
271,364 | <p><code>:vimgrep</code> looks like a really useful thing.</p>
<p>Here's how to use it:</p>
<pre><code>:vim[grep][!] /{pattern}/[g][j] {file} ...
</code></pre>
<p><code>:help</code> says that you can essentially glob <code>{file}</code> to name, say, <code>*.c</code> for the current directory. I may have started Vi... | [
{
"answer_id": 271381,
"author": "Jerub",
"author_id": 14648,
"author_profile": "https://Stackoverflow.com/users/14648",
"pm_score": 3,
"selected": false,
"text": ":bufdo vimgrep /pattern/ %\n"
},
{
"answer_id": 271709,
"author": "Luc Hermitte",
"author_id": 15934,
"a... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35221/"
] |
271,378 | <p>I have designed my site with a 900 x 600 fixed background image. On the computer it looks fine. How will it look on a PDA device? Will I have to design it separately for PDA?</p>
<p>How should check whether my site can be browsed effectively from mobile phone?</p>
<p>What should I do?</p>
| [
{
"answer_id": 271452,
"author": "Treb",
"author_id": 22114,
"author_profile": "https://Stackoverflow.com/users/22114",
"pm_score": 2,
"selected": false,
"text": "<link rel=\"stylesheet\" href=\"small.css\" type=\"text/css\" media=\"handheld\">\n media"
}
] | 2008/11/07 | [
"https://Stackoverflow.com/questions/271378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
271,380 | <p>One of the files in my current head revision got corrupted. I want to make an older revision of that file the head revision as usually people sync to head revsion in my project. How to do that?</p>
| [
{
"answer_id": 271387,
"author": "Martin v. Löwis",
"author_id": 33006,
"author_profile": "https://Stackoverflow.com/users/33006",
"pm_score": 7,
"selected": true,
"text": "svn merge -rHEAD:oldrev filename\nsvn commit -m \"rolled back to oldrev\"\n"
}
] | 2008/11/07 | [
"https://Stackoverflow.com/questions/271380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13440/"
] |
271,384 | <ul>
<li>What are the pros and cons of LINQ (Language-Integrated Query)?</li>
<li>What are the best and worst cases in which to use LINQ?</li>
<li>How have you benefitted or not benefitted from using LINQ?</li>
<li>Which data sources benefit the least and the most from LINQ?</li>
</ul>
| [
{
"answer_id": 271415,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": true,
"text": "OrderBy"
},
{
"answer_id": 271462,
"author": "Toby",
"author_id": 291137,
"author_profile": "https://... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271384",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35331/"
] |
271,394 | <p>A class I am taking currently requires us to do all of our coding in smalltalk (it's a Design class). On one of our projects, I am looking to do some things, and am having a tough time finding how to do them. It seems that what most people do is modify their own version of smalltalk to do what they need it to do. I ... | [
{
"answer_id": 271402,
"author": "Martin v. Löwis",
"author_id": 33006,
"author_profile": "https://Stackoverflow.com/users/33006",
"pm_score": 4,
"selected": true,
"text": " (expr) and: (expr) ifTrue: aBlock\n and:ifTrue: ((expr) and: (expr)) ifTrue: aBlock\n"
},
{
"answer_id": 2... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50/"
] |
271,398 | <p>Let's make a list of answers where you post your excellent and favorite <a href="http://en.wikipedia.org/wiki/Extension_method" rel="nofollow noreferrer">extension methods</a>. </p>
<p>The requirement is that the full code must be posted and a example and an explanation on how to use it.</p>
<p>Based on the high i... | [
{
"answer_id": 271409,
"author": "bovium",
"author_id": 11135,
"author_profile": "https://Stackoverflow.com/users/11135",
"pm_score": 5,
"selected": false,
"text": "public static class Extensions\n{\n public static void ThrowIfArgumentIsNull<T>(this T obj, string parameterName) where ... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11135/"
] |
271,406 | <p>I have a table in lua with some data.</p>
<pre><code>sometable = {
{name = "bob", something = "foo"},
{name = "greg", something = "bar"}
}
</code></pre>
<p>I then want to loop through the table and assign a number to each name as a variable. New to lua and tried it like this.</p>
<pre><code>for i,t in ip... | [
{
"answer_id": 274107,
"author": "Doug Currie",
"author_id": 33252,
"author_profile": "https://Stackoverflow.com/users/33252",
"pm_score": 3,
"selected": true,
"text": "> sometable = {{name = \"bob\", something = \"foo\"},{name = \"greg\", something = \"bar\"}}\n> for i,t in ipairs(somet... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271406",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18933/"
] |
271,428 | <hr>
<p>Thanks for answers,Actually I am not puzzled about draw 1024*768 pixels is slower than 100* 100 pixels... It is so simple a logic..
Which made me puzzled is that DrawImage's interpolation algorithm may be very slow, while there exists lots of better algorithm, and its decoder seems can decode from a jpg with a... | [
{
"answer_id": 271463,
"author": "Johann Gerell",
"author_id": 6345,
"author_profile": "https://Stackoverflow.com/users/6345",
"pm_score": 3,
"selected": false,
"text": "graphics.DrawImage(bitmap,0,0,200,200);\n graphics.DrawImage(bitmap,0,0,2000,2000);\n"
}
] | 2008/11/07 | [
"https://Stackoverflow.com/questions/271428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25749/"
] |
271,438 | <p>I am having a .cs file, i need to execute that file..
I don't have experience in C#.. Please help.. Do we have to install any software to run it.. </p>
<p>Currently i am using windows XP.. </p>
<p>Please help me... </p>
| [
{
"answer_id": 272151,
"author": "Xiaofu",
"author_id": 31967,
"author_profile": "https://Stackoverflow.com/users/31967",
"pm_score": 0,
"selected": false,
"text": "csc /out:your_app_name.exe your_cs_filename.cs\n"
},
{
"answer_id": 53193120,
"author": "NanoWar",
"author_... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
271,440 | <p>I met an interesting issue about C#. I have code like below.</p>
<pre><code>List<Func<int>> actions = new List<Func<int>>();
int variable = 0;
while (variable < 5)
{
actions.Add(() => variable * 2);
++ variable;
}
foreach (var act in actions)
{
Console.WriteLine(act.Invok... | [
{
"answer_id": 271447,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 9,
"selected": true,
"text": "while (variable < 5)\n{\n int copy = variable;\n actions.Add(() => copy * 2);\n ++ variable;\n}\n for foreach fo... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26349/"
] |
271,464 | <p>I have a multiline text string (e.g. "Stuff\nMore Stuff\nYet More Stuff"), and I want to paint it, along with a bitmap into a tooltip. Since I am painting the bitmap, I need to set OwnerDraw to true, which I am doing. I am also handling the Popup event, so I can size the tooltip to be large enough to hold the text ... | [
{
"answer_id": 271628,
"author": "Robert Jeppesen",
"author_id": 9436,
"author_profile": "https://Stackoverflow.com/users/9436",
"pm_score": 3,
"selected": true,
"text": " RectangleF rect = new RectangleF(100,100,100,100);\n e.Graphics.DrawString(myString, myFont, myBrush, rect);... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2683/"
] |
271,485 | <p>whats the best way to export a Datagrid to excel? I have no experience whatsoever in exporting datagrid to excel, so i want to know how you guys export datagrid to excel.
i read that there are a lot of ways, but i am thinking to just make a simple export excel to datagrid function.i am using asp.net C#</p>
<p>cheer... | [
{
"answer_id": 271487,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": true,
"text": "<table><tr><td>...</td></tr>...</table> DataTable public static void WriteCsv(string[] headers, IEnumerable<st... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23491/"
] |
271,488 | <p>I asked <a href="https://stackoverflow.com/questions/269417/which-language-should-i-use">a question</a> earlier about which language to use for an AI prototype. The consensus seemed to be that if I want it to be fast, I need to use a language like Java or C++, but that Python / Perl / Ruby would be good for the inte... | [
{
"answer_id": 271494,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 2,
"selected": false,
"text": "require \"java\"\n# The next line exposes Java's String as JString\ninclude_class(\"java.lang.String\") { |pkg, name| \"J\" + n... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11522/"
] |
271,506 | <p>I am refering to the <a href="https://stackoverflow.com/questions/252893/how-do-you-change-the-classpath-within-java#252905">question</a> on changing the classpath programmatically.</p>
<p>I read and found out that there is some function under <strong>System</strong> class as getproperties where we can retrieve the... | [
{
"answer_id": 271522,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": false,
"text": "/*\nAdd the URL handler to the handler property. This informs \nIBMJSSE what URL handler to use to handle the safkeyring \nsupp... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11614/"
] |
271,520 | <p>I could do this in C#..</p>
<pre><code>int number = 2;
string str = "Hello " + number + " world";
</code></pre>
<p>..and str ends up as "Hello 2 world".</p>
<p>In VB.NET i could do this..</p>
<pre><code>Dim number As Integer = 2
Dim str As String = "Hello " + number + " world"
</code></pre>
<p>..but I get an In... | [
{
"answer_id": 271529,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "Dim number As Integer = 2\nDim str As String = \"Hello \" & number & \" world\"\n System.String String.Concat"
},
{
... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15233/"
] |
271,521 | <p>Sometimes when I am debugging code in Eclipse it happens that although I can see and inspect class member variables without any difficulty I am unable to inspect the values of variables declared locally within functions. As an aside, any parameters to the current function lose their 'real' names and instead one sees... | [
{
"answer_id": 940988,
"author": "Geoffrey Zheng",
"author_id": 62479,
"author_profile": "https://Stackoverflow.com/users/62479",
"pm_score": 4,
"selected": false,
"text": "mkdir \\tmp; mkdir \\tmp\\out src.zip tmp\\src cd src find -name *.java > files.txt javac -verbose -g -d \\tmp\\out... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35138/"
] |
271,526 | <p>I use <code>x != null</code> to avoid <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/NullPointerException.html" rel="noreferrer"><code>NullPointerException</code></a>. Is there an alternative?</p>
<pre class="lang-java prettyprint-override"><code>if (x != null) {
// ...
}
</code></pre>
| [
{
"answer_id": 271576,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 6,
"selected": false,
"text": "a.f(b); <-> b.f(a);\n foo.equals(\"bar\"); \"bar\".equals(foo);"
},
{
"answer_id": 271587,
"aut... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34856/"
] |
271,530 | <p>There is an application with an extensive object graph. This graph mainly consists of a set of subgraphs which are connected to the rest of the graph through the only reference. But internally each such subgraph has some number of cross-references among objects. Once in a while such a sub graph needs to be thrown aw... | [
{
"answer_id": 271556,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 5,
"selected": true,
"text": "public void buidDog() {\n Dog newDog = new Dog();\n Tail newTail = new Tail();\n newDog.tail = newTail;\n newTail.dog = ... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271530",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31993/"
] |
271,546 | <p>I have an object instance which I access with the ME as it accesses the instantiated object. I have a method that gets a collection of these objects and I wish to assign the first one to the instantiated object. </p>
<p>This is some of the code</p>
<pre><code>Dim Books As New BookCollection(True)
Books.ListByTheme... | [
{
"answer_id": 271556,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 5,
"selected": true,
"text": "public void buidDog() {\n Dog newDog = new Dog();\n Tail newTail = new Tail();\n newDog.tail = newTail;\n newTail.dog = ... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23230/"
] |
271,561 | <p>In c#, is there any difference in the excecution speed for the order in which you state the condition?</p>
<pre><code>if (null != variable) ...
if (variable != null) ...
</code></pre>
<p>Since recently, I saw the first one quite often, and it caught my attention since I was used to the second one.</p>
<p>If there... | [
{
"answer_id": 271573,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 3,
"selected": false,
"text": "int i = 0;\nif (i = 1)\n{\n ...\n}\n"
},
{
"answer_id": 271575,
"author": "Jon Skeet",
"author_id"... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26070/"
] |
271,588 | <p>Is there a way to pass null arguments to C# methods (something like null arguments in c++)?</p>
<p>For example:</p>
<p>Is it possible to translate the following c++ function to C# method:</p>
<pre><code>private void Example(int* arg1, int* arg2)
{
if(arg1 == null)
{
//do something
}
if(arg... | [
{
"answer_id": 271593,
"author": "Marcin K",
"author_id": 28722,
"author_profile": "https://Stackoverflow.com/users/28722",
"pm_score": 3,
"selected": false,
"text": "private void Example(int? arg1, int? arg2)\n{\n if(arg1 == null)\n {\n //do something\n }\n if(arg2 ==... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271588",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22996/"
] |
271,595 | <p>I need to get all the dates present in the date range using SQL Server 2005</p>
| [
{
"answer_id": 271607,
"author": "Ed Guiness",
"author_id": 4200,
"author_profile": "https://Stackoverflow.com/users/4200",
"pm_score": 3,
"selected": false,
"text": "select * from yourTable where yourDate between date1 and date2\n"
},
{
"answer_id": 271775,
"author": "Concer... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
271,596 | <p>I've got a Java application that I'm writing an installer for. We're using the AdvancedInstaller program to create our installer (well, we're evaluating it currently, but will definitely purchase a license soon), and although it has special support for Java applications, it is geared more towards repackaging them a... | [
{
"answer_id": 271622,
"author": "bdumitriu",
"author_id": 35415,
"author_profile": "https://Stackoverflow.com/users/35415",
"pm_score": 2,
"selected": false,
"text": "java ... ..\\..\\jre\\bin\\java ..."
}
] | 2008/11/07 | [
"https://Stackoverflow.com/questions/271596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14302/"
] |
271,598 | <p>How do I save a Tlistviews layout in Delphi 2007?</p>
<p>I have been asked to write some code to allow users to re-order columns in a TListview (well all TListviews in our application), I have the code working (by manipulating the columns index and setting width to zero to hide columns not needed) but now I need a ... | [
{
"answer_id": 271619,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 2,
"selected": false,
"text": "[Settings]\n\n[Col_1]\nposition=1\nwidth=500\ntitle=hello world\nalign=left\nsort=ascending\n\n.. etc for more fields... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2098/"
] |
271,609 | <p>We have a couple of applications running on Java 5 and would like now to bring in an application based on Java 6. Can both java versions live together under Windows? </p>
<p>Is there any control panel to set the appropriate Java version for different applications, or any other way to set up, what version of Java wi... | [
{
"answer_id": 271623,
"author": "reallyinsane",
"author_id": 35407,
"author_profile": "https://Stackoverflow.com/users/35407",
"pm_score": 7,
"selected": true,
"text": "java ...\n JAVA6HOME C:\\java\\java6 %JAVA6HOME%\\bin\\java ...\n"
},
{
"answer_id": 271630,
"author": "Ru... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35061/"
] |
271,612 | <p>I have the following file/line:</p>
<pre><code>pc=1 ct=1 av=112 cv=1100 cp=1700 rec=2 p=10001 g=0 a=0 sz=5 cr=200
pc=1 ct=1 av=113 cv=1110 cp=1800 rec=2 p=10001 g=0 a=10 sz=5 cr=200
</code></pre>
<p>and so on.
I wish to parse this and take the key value pairs and put them in a structure:</p>
<pre><code>struct pk... | [
{
"answer_id": 271654,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 4,
"selected": true,
"text": "std::string line;\nstd::map<std::string, std::string> props;\nstd::ifstream file(\"foo.txt\");\nwhile(std::g... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35416/"
] |
271,613 | <p>I was reading <em><a href="http://java.sun.com/docs/books/performance/1st_edition/html/JPAppGC.fm.html" rel="nofollow noreferrer">Java Platform Performance</a></em> (sadly the link seems to have disappeared from the internet since I originally posed this question) and section A.3.3 worried me.</p>
<p>I had been wor... | [
{
"answer_id": 271824,
"author": "Rasmus Faber",
"author_id": 5542,
"author_profile": "https://Stackoverflow.com/users/5542",
"pm_score": 4,
"selected": true,
"text": "public class TestInvisibleObject{\n public static class PrintWhenFinalized{\n private String s;\n public PrintWhe... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271613",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7938/"
] |
271,615 | <p>I have two lists of custom objects and want to update a field for all objects in one list if there is an object in the other list which matches on another pair of fields.</p>
<p>This code explains the problem better and produces the results I want. However for larger lists 20k, and a 20k list with matching objects,... | [
{
"answer_id": 271645,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 4,
"selected": true,
"text": "adjList propList ToLookup ToDictionary adjList ToDictionary var adjDictionary = adjList.ToDictionary(av => av.PropName);\... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2006748/"
] |
271,657 | <p>I have many emails coming in from different sources.
they all have attachments, many of them have attachment names in chinese, so these
names are converted to base64 by their email clients.</p>
<p>When I receive these emails, I wish to decode the name. but there are other names which are
not base64. How can I diffe... | [
{
"answer_id": 271832,
"author": "bobince",
"author_id": 18936,
"author_profile": "https://Stackoverflow.com/users/18936",
"pm_score": 5,
"selected": true,
"text": "Content-Transfer-Encoding Content-Transfer-Encoding =?gb2312?B?uLGxvmhlbrixsb5nLnhscw==?=\n email.header.decode_header impo... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21537/"
] |
271,661 | <p>I have a problem with Lucene.NET. During an index, I receive the error 'Access to the path segments is denied'. Or sometimes 'Access to the path deletable is denied'. I eventually gave 'Everyone' full security rights to the index directory, but the problem still existed.</p>
<p>I then found out that during the inde... | [
{
"answer_id": 1325676,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": " doc.Add(new Field(\"URL\", \"C:/Users/blabla/(convert-csharp)/IMssg\", Field.Store.YES, Field.Index.TOKENIZED));\n\n writer.... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
271,665 | <p>I have a client sending me requests without HTTP chunking (they use content-length). When my server responds, chunking is enabled, and the client can't handle this - even though they should be able to as they are using HTTP 1.1..... </p>
<p>I have tried to disable chunking by removing the entry below from the ax... | [
{
"answer_id": 1394439,
"author": "Chochos",
"author_id": 10165,
"author_profile": "https://Stackoverflow.com/users/10165",
"pm_score": 2,
"selected": false,
"text": "myStub._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED, false);"
}
] | 2008/11/07 | [
"https://Stackoverflow.com/questions/271665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
271,668 | <p>Is there a way of converting special folder paths to a full file name (and back) or do I need to code my own (not hard I know, but no point if it exists)</p>
<p>e.g. I want to store the file name of a template for an application, which the user can then change, it exists in the LocalApplicationData folder.</p>
<p>... | [
{
"answer_id": 271683,
"author": "chakrit",
"author_id": 3055,
"author_profile": "https://Stackoverflow.com/users/3055",
"pm_score": 3,
"selected": true,
"text": "static void Main(string[] args)\n{\n var values = Enum.GetValues(typeof(Environment.SpecialFolder));\n\n foreach (Envir... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6684/"
] |
271,672 | <p>I tried this on J2ME</p>
<pre><code>try {
Image immutableThumb = Image.createImage( temp, 0, temp.length);
} catch (Exception ex) {
System.out.println(ex);
}
</code></pre>
<p>I hit this error:
<code>java.lang.IllegalArgumentException:</code></p>
<p>How do I solve this?</p>
| [
{
"answer_id": 2461625,
"author": "Cipi",
"author_id": 191164,
"author_profile": "https://Stackoverflow.com/users/191164",
"pm_score": 0,
"selected": false,
"text": "FFD8 FFD8 createImage() (temp[0] == 0xFF && temp[1] == 0xD8) temp temp FFD8 FFD9 temp temp"
}
] | 2008/11/07 | [
"https://Stackoverflow.com/questions/271672",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
271,675 | <p>I have a binded DataGridView where depending on some BoundItem property value that line will be read only. What is the best way to implement this?
Thanks</p>
| [
{
"answer_id": 271679,
"author": "CestLaGalere",
"author_id": 6684,
"author_profile": "https://Stackoverflow.com/users/6684",
"pm_score": 0,
"selected": false,
"text": "private sub MyView_RowEnter(...) handles MyView.RowEnter\n MyView.Rows(e.Rowindex).ReadOnly = (condition)\nend sub\n... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
271,688 | <p><a href="http://dl.getdropbox.com/u/240752/stars.gif" rel="nofollow noreferrer">My screenshot http://dl.getdropbox.com/u/240752/stars.gif</a></p>
<p>I want to have it so that only the text is underlined. The only way I can see of doing this is this:</p>
<pre><code>.no-underline {
text-decoration:none;
}
.underl... | [
{
"answer_id": 271697,
"author": "Lasar",
"author_id": 9438,
"author_profile": "https://Stackoverflow.com/users/9438",
"pm_score": 4,
"selected": true,
"text": "<a href=\"#\" class=\"imgLink\"><span>Link Text</span> <img src=\"...\"></a>\n\na.imgLink { text-decoration: none; }\na.imgLink... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271688",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26107/"
] |
271,699 | <p>Is there any way to (unit) test my own HtmlHelpers? In case when I'd like to have custom control (rendered by HtmlHelper) and I know requierements for that control how could I write tests first - and then write code? Is there a specific (nice) way to do that? </p>
<p>Is it worth?</p>
| [
{
"answer_id": 747186,
"author": "Marc Climent",
"author_id": 58791,
"author_profile": "https://Stackoverflow.com/users/58791",
"pm_score": 6,
"selected": true,
"text": " public static HtmlHelper CreateHtmlHelper(ViewDataDictionary viewData)\n {\n var mocks = new MockReposit... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3182/"
] |
271,700 | <p>As far as i know the EAP editions of JBoss Application Server (AS) are just a bunch of community edition JBoss projects with some sugar.</p>
<p>So, what is the <strong>community edition</strong> of the JBoss Application Server that <strong>JBoss EAP 4.3.0</strong> corresponds to?</p>
| [
{
"answer_id": 17274131,
"author": "Ondra Žižka",
"author_id": 145989,
"author_profile": "https://Stackoverflow.com/users/145989",
"pm_score": 1,
"selected": false,
"text": "settings.xml"
}
] | 2008/11/07 | [
"https://Stackoverflow.com/questions/271700",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23428/"
] |
271,706 | <p>I basically have a page which shows a "processing" screen which has been flushed to the browser. Later on I need to redirect this page, currently we use meta refresh and this normally works fine. </p>
<p>With a new payment system, which includes 3D secure, we potentially end up within an iframe being directed bac... | [
{
"answer_id": 271902,
"author": "Ben Lynch",
"author_id": 15363,
"author_profile": "https://Stackoverflow.com/users/15363",
"pm_score": 3,
"selected": true,
"text": "<script type=\"text/javascript\" language=\"javascript\">\n if (top.frames.length>0)\n setTimeout(\"top.location = ... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15363/"
] |
271,710 | <p>The code looks like below:</p>
<pre><code>namespace Test
{
public interface IMyClass
{
List<IMyClass> GetList();
}
public class MyClass : IMyClass
{
public List<IMyClass> GetList()
{
return new List<IMyClass>();
}
}
}
</code></pr... | [
{
"answer_id": 271711,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": false,
"text": "IList<T> ICollection<T> IEnumerable<T>"
},
{
"answer_id": 271719,
"author": "Tamas Czinege",
"author_id"... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271710",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11135/"
] |
271,718 | <p>In a detailsview, how can I prepopulate one of the textboxes on the insertcommand (When the user clicks insert and the view is insert).</p>
<p>I think this would work for codebehind:</p>
<p>Dim txtBox As TextBox = FormView1.FindControl("txtbox")</p>
<p>txtbox.Text = "Whatever I want"</p>
<p>Is this right? What d... | [
{
"answer_id": 684039,
"author": "Anthony K",
"author_id": 1682,
"author_profile": "https://Stackoverflow.com/users/1682",
"pm_score": 0,
"selected": false,
"text": "dvDetails.ChangeMode(DetailsViewMode.Insert)\npnlDetailMenu.Visible = True\nDim ColumnTextBox As TextBox\nColumnTextBox = ... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32484/"
] |
271,724 | <p>I am playing around with ASP.NET MVC for the first time, so I apologize in advance if this sounds academic. </p>
<p>I have created a simple content management system using ASP.NET MVC. The url to retrieve a list of content, in this case, announcements, looks like:</p>
<pre><code>http://www.mydomain.com/announcem... | [
{
"answer_id": 684039,
"author": "Anthony K",
"author_id": 1682,
"author_profile": "https://Stackoverflow.com/users/1682",
"pm_score": 0,
"selected": false,
"text": "dvDetails.ChangeMode(DetailsViewMode.Insert)\npnlDetailMenu.Visible = True\nDim ColumnTextBox As TextBox\nColumnTextBox = ... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1768/"
] |
271,725 | <p>I'm working on a search module that searches in text columns that contains html code. The queries are constructed like: WHERE htmlcolumn LIKE '% searchterm %';</p>
<p>Default the modules searches with spaces at both end of the searchterms, with wildcards at the beginning and/or the end of the searchterms these spac... | [
{
"answer_id": 272043,
"author": "Incidently",
"author_id": 34187,
"author_profile": "https://Stackoverflow.com/users/34187",
"pm_score": 1,
"selected": false,
"text": "SELECT * FROM `t` WHERE `htmlcolumn` REGEXP '[[:<:]]term[[:>:]]'\n"
}
] | 2008/11/07 | [
"https://Stackoverflow.com/questions/271725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21238/"
] |
271,730 | <p>I run a website where users can post items (e.g. pictures). The items are stored in a MySQL database. </p>
<p>I want to query for the last ten posted items BUT with the constraint of a maximum of 3 items can come from any single user. </p>
<p>What is the best way of doing it? My preferred solution is a constraint ... | [
{
"answer_id": 271768,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 2,
"selected": false,
"text": "SELECT\n i.UserId,\n i.ImageId\nFROM\n UserSuppliedImages i\nWHERE\n /* second valid ImageId */\n ImageId = (\n SE... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/103373/"
] |
271,736 | <p>Given a html document, what is the most correct and concise regular expression pattern to remove the query strings from each url in the document?</p>
| [
{
"answer_id": 271778,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 0,
"selected": false,
"text": "/href=\"([^\\?\"]*?)\\?[^\\\"]*\"/\n href=\"\\1\"\n <link>"
}
] | 2008/11/07 | [
"https://Stackoverflow.com/questions/271736",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6691/"
] |
271,741 | <p>I'm trying to parse a html page and extract 2 values from a table row.
The html for the table row is as follows: -</p>
<pre><code><tr>
<td title="Associated temperature in (ºC)" class="TABLEDATACELL" nowrap="nowrap" align="Left" colspan="1" rowspan="1">Max Temperature (ºC)</td>
<td class="TABLE... | [
{
"answer_id": 271748,
"author": "siukurnin",
"author_id": 35273,
"author_profile": "https://Stackoverflow.com/users/35273",
"pm_score": 0,
"selected": false,
"text": "<td[^<]+?> <td[^>]*>"
},
{
"answer_id": 271750,
"author": "The Archetypal Paul",
"author_id": 21755,
... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
271,742 | <p>What are the advantages of rendering a control like this:</p>
<pre><code><% Html.RenderPartial("MyControl") %> or
<%=Html.TextBox("txtName", Model.Name) %>
</code></pre>
<p>over the web Forms style:</p>
<pre><code><uc1:MyControl ID=MyControl runat=server />
</code></pre>
<p>I understand that pe... | [
{
"answer_id": 272531,
"author": "Santiago Corredoira",
"author_id": 4264,
"author_profile": "https://Stackoverflow.com/users/4264",
"pm_score": 0,
"selected": false,
"text": "<custom:HtmlTextBox ID=\"txtName\" runat=\"server\" />\n if(this.Model != null) \n{\n this.txtName.Text = Mode... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4264/"
] |
271,743 | <p>What's the difference between <code><b></code> and <code><strong></code>, <code><i></code> and <code><em></code> in HTML/XHTML? When should you use each?</p>
| [
{
"answer_id": 271755,
"author": "Tony Andrews",
"author_id": 18747,
"author_profile": "https://Stackoverflow.com/users/18747",
"pm_score": 8,
"selected": false,
"text": "<b> <i> <strong> <em>"
},
{
"answer_id": 271756,
"author": "James",
"author_id": 7837,
"author_pr... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271743",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21709/"
] |
271,747 | <p>I'd like to send mail without bothering with the SMTP-Server which is used for delivery.</p>
<p>So <a href="http://java.sun.com/products/javamail/" rel="noreferrer">JavaMail API</a> doesn't work for me because I have to specify a SMTP server to connect to.</p>
<p>I'd like the library to find out on its own which S... | [
{
"answer_id": 271829,
"author": "Eduard Wirch",
"author_id": 17428,
"author_profile": "https://Stackoverflow.com/users/17428",
"pm_score": 4,
"selected": false,
"text": "<dependency>\n <groupId>dnsjava</groupId>\n <artifactId>dnsjava</artifactId>\n <version>2.0.1</version>\n</d... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17428/"
] |
271,762 | <p>Can someone supply me with a regex to match a search term that is not preceded or followed by <code>[a-z]</code> and <code>[A-Z]</code>? (Other characters are OK.) I.e., when searching for <code>key</code>, I don't want <code>keyboard</code> in my search results, but <code>key.</code> is okay.</p>
| [
{
"answer_id": 271769,
"author": "siukurnin",
"author_id": 35273,
"author_profile": "https://Stackoverflow.com/users/35273",
"pm_score": 1,
"selected": false,
"text": "\\b m/\\bkey\\b/\n"
},
{
"answer_id": 271770,
"author": "Greg",
"author_id": 24181,
"author_profile"... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21238/"
] |
271,767 | <p>I have in my Form constructor, after the InitializeComponent the following code:</p>
<pre><code>using (WebClient client = new WebClient())
{
client.DownloadDataCompleted += new DownloadDataCompletedEventHandler(client_DownloadDataCompleted);
client.DownloadDataAsync("http://example.com/version.txt");
}
</co... | [
{
"answer_id": 271790,
"author": "Robert Wagner",
"author_id": 10784,
"author_profile": "https://Stackoverflow.com/users/10784",
"pm_score": 0,
"selected": false,
"text": " int a, b;\n ThreadPool.GetMaxThreads(out a, out b);\n"
},
{
"answer_id": 5544274,
"author": "Roma... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4386/"
] |
271,815 | <p>Is there a better way to write this code? </p>
<p>I want to show a default value ('No data') for any empty fields returned by the query:</p>
<pre><code>$archivalie_id = $_GET['archivalie_id'];
$query = "SELECT
a.*,
ip.description AS internal_project,
o.descript... | [
{
"answer_id": 271826,
"author": "Stefan Gehrig",
"author_id": 11354,
"author_profile": "https://Stackoverflow.com/users/11354",
"pm_score": 3,
"selected": true,
"text": "function dbValue($value, $default=null)\n{\n if ($default===null) {\n $default='<span class=\"no-data\">No ... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271815",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4196/"
] |
271,821 | <p>I have a site that usually has news items at the top of the homepage, and sometimes (for specific periods) will have one or more 'quicklinks' beneath the news items, to guide users to pages of topical interest. Beneath those is the usual blurb.</p>
<p>We have alternative language versions of these sites, which ofte... | [
{
"answer_id": 271827,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 3,
"selected": true,
"text": ".top100 {top: 100px;}\n.top150 {top: 150px;}\n.top200 {top: 200px;}\n.top250 {top: 250px;}\n .news {top: 100px; etc...... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6898/"
] |
271,843 | <p>Does that mean that I can't share a Form between delphi 2007 and 2009?</p>
| [
{
"answer_id": 275156,
"author": "Ondrej Kelle",
"author_id": 11480,
"author_profile": "https://Stackoverflow.com/users/11480",
"pm_score": 4,
"selected": false,
"text": "unit Delphi2009Form;\n\ninterface\n\nuses\n Windows, Classes, SysUtils, Controls, Forms;\n\ntype\n{$IFDEF VER200}\n ... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/727/"
] |
271,850 | <p>After upgrading a project from Delphi 2007 to Delphi 2009 I'm getting an Unknown memory leak, so far I've been tryin to track it down using fastMM, here is what fastMM stack trace reports:</p>
<pre><code>A memory block has been leaked. The size is: 20
This block was allocated by thread 0x111C, and the stack trace ... | [
{
"answer_id": 272370,
"author": "zendar",
"author_id": 25732,
"author_profile": "https://Stackoverflow.com/users/25732",
"pm_score": 1,
"selected": false,
"text": "@DynArraySetLength"
}
] | 2008/11/07 | [
"https://Stackoverflow.com/questions/271850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/727/"
] |
271,870 | <p>I have a form whose controls I want to enable/disable depending on the values in a ComboBox control. This ComboBox control is linked, like all the other controls in the form, to a table. Inside the ComboBox's Change event, I placed the code that enables/disables the other controls.</p>
<p>The problem I have is th... | [
{
"answer_id": 274294,
"author": "David-W-Fenton",
"author_id": 9787,
"author_profile": "https://Stackoverflow.com/users/9787",
"pm_score": 1,
"selected": false,
"text": " Private Sub cmbComboBox1_AfterUpdate()\n Dim strRowsource As String\n\n strRowsource = \"SELECT * FROM MyTab... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15884/"
] |
271,881 | <p>I am using a JEditorPane as an editor to write comments in my application. The content type is set "text/plain". When I am writing text in it and the text fills the available space and I go on typing, the text is not moving upward to show the cursor. So I dont know where I am typing and what I am typing since it wou... | [
{
"answer_id": 5837644,
"author": "Raze",
"author_id": 142716,
"author_profile": "https://Stackoverflow.com/users/142716",
"pm_score": 1,
"selected": false,
"text": "scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\nscrollPane.setVerticalScrollBarP... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22550/"
] |
271,888 | <p>In my database application I sometimes have to deal with <code>null</code> strings in the database. In most cases this is fine, but when it comes do displaying data in a form the Swing components - using <code>JTextField</code> for example - cannot handle null strings. (<code>.setText(null)</code> fails)</p>
<p>(<s... | [
{
"answer_id": 271921,
"author": "Ron Tuffin",
"author_id": 939,
"author_profile": "https://Stackoverflow.com/users/939",
"pm_score": 2,
"selected": false,
"text": "select ISNULL(column_name,'') from ...\n"
}
] | 2008/11/07 | [
"https://Stackoverflow.com/questions/271888",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23368/"
] |
271,892 | <p>I have a <select>. Using JavaScript, I need to get a specific <option> from the list of options, and all I know is the value of the option. The option may or may not be selected.</p>
<p>Here's the catch: there are thousands of options and I need to do this a few hundred times in a loop. Right now I loo... | [
{
"answer_id": 271903,
"author": "Davide Gualano",
"author_id": 28582,
"author_profile": "https://Stackoverflow.com/users/28582",
"pm_score": -1,
"selected": false,
"text": "$(\"#idselect option[value='yourval']\")\n"
},
{
"answer_id": 271906,
"author": "Lasar",
"author_i... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271892",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4641/"
] |
271,904 | <p>Say you have a class declaration, e.g.:</p>
<pre><code>
class MyClass
{
int myInt=7;
int myOtherInt;
}
</code></pre>
<p>Now, is there a way in generic code, using reflection (or any other means, for that matter), that I can deduce that myInt has a default value assigned, whereas myOtherInt does not?
Note the d... | [
{
"answer_id": 271919,
"author": "John Lemp",
"author_id": 12915,
"author_profile": "https://Stackoverflow.com/users/12915",
"pm_score": 2,
"selected": false,
"text": "class MyClass\n{\n int? myInt = 7;\n int? myOtherInt = null;\n}\n"
},
{
"answer_id": 271925,
"author": "Sa... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271904",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32136/"
] |
271,907 | <p>Is there a way to find out when in a LAN anyone plugs in a pendrive to the USB port?
Programatically (in C# preferably) or through some tool. Basically I'd imagine a client application sits on each terminal and monitors the USB ports and sends the information to the server. </p>
<p>a.) Can I get the details of the... | [
{
"answer_id": 272005,
"author": "MSalters",
"author_id": 15416,
"author_profile": "https://Stackoverflow.com/users/15416",
"pm_score": 5,
"selected": true,
"text": "DEV_BROADCAST_DEVICEINTERFACE dbcc_classguid=GUID_DEVINTERFACE_VOLUME RegisterDeviceNotification() DEV_BROADCAST_DEVICEINT... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20358/"
] |
271,938 | <p>Background: I have a kubuntu laptop right now that I can't use wirelessly, i.e. I haven't got wireless assistant installed. But I have a windows laptop that I can download the debian packages seperately on a USB memory stick.</p>
<p>How do I install a debian package on the computer locally?</p>
| [
{
"answer_id": 271952,
"author": "Powerlord",
"author_id": 15880,
"author_profile": "https://Stackoverflow.com/users/15880",
"pm_score": 3,
"selected": true,
"text": "dpkg --install /path/to/foo_VVV-RRR.deb\n"
},
{
"answer_id": 271989,
"author": "Sam Stokes",
"author_id":... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3713/"
] |
271,944 | <p>I have a scenario where users of my ASP.NET web application submit testimonials consisting of text info and images. The submit process has the following steps:</p>
<ul>
<li>First the user inputs the content and chooses a path to an image</li>
<li>When he clicks preview, the info is once again shown so that he can c... | [
{
"answer_id": 271994,
"author": "Seb Nilsson",
"author_id": 2429,
"author_profile": "https://Stackoverflow.com/users/2429",
"pm_score": 4,
"selected": true,
"text": "IsolatedStorageFileStream stream = \n new IsolatedStorageFileStream(ISOLATED_FILE_NAME, \n FileMode.Create, isoStore);\... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1801/"
] |
271,953 | <p>Got into a situation where in a schema i have a table, say table ACTION , while i got a synonym called ACTION as well which refers to another table to another schema.</p>
<p>Now, when i run the query</p>
<p>select * from ACTION</p>
<p>it will select the records from the table, but not the synonym.</p>
<p>Anyway ... | [
{
"answer_id": 271997,
"author": "Kieveli",
"author_id": 15852,
"author_profile": "https://Stackoverflow.com/users/15852",
"pm_score": 2,
"selected": false,
"text": "SELECT * from LOCAL_ACTION\nUNION\nSELECT * from otheruser.LOCAL_ACTION\n"
},
{
"answer_id": 272051,
"author":... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
271,954 | <p>I never use Access 2007 - until today.</p>
<p>I want to connect to an existing SQL Server 2008 database. I have tried using:</p>
<ul>
<li>External Data ODBC option - but get DSN errror</li>
<li>Upsizing wizard with ODBC - get an error</li>
<li>Upsizing wizard with SNAC - get ODBC error. So that one seems a none st... | [
{
"answer_id": 271984,
"author": "Eric Nelson",
"author_id": 5636,
"author_profile": "https://Stackoverflow.com/users/5636",
"pm_score": 0,
"selected": false,
"text": "[ODBC]\nDRIVER=SQL Server\nUID=ericnel\nDATABASE=AccessTest\nWSID=ERICNEL1\nAPP=2007 Microsoft Office system\nTrusted_Co... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5636/"
] |
271,957 | <p>I got a row structure looks like ID bigint, ScanRept XML</p>
<p>I want to wind up with a file named 4.xml containing just the xml from the ScanRept column where the ID number is 4.</p>
<p>I don't want to do it interactively (by going into Manager Studio, finding the row, right-clicking the field and doing Save AS)... | [
{
"answer_id": 271984,
"author": "Eric Nelson",
"author_id": 5636,
"author_profile": "https://Stackoverflow.com/users/5636",
"pm_score": 0,
"selected": false,
"text": "[ODBC]\nDRIVER=SQL Server\nUID=ericnel\nDATABASE=AccessTest\nWSID=ERICNEL1\nAPP=2007 Microsoft Office system\nTrusted_Co... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35458/"
] |
271,965 | <p>Is there a function in glut which moves the mouse to a specific position?
There is a similar function in SDL (SDL_WarpMouse) but I want to stick to glut.</p>
| [
{
"answer_id": 271975,
"author": "Alexander Stolz",
"author_id": 2450,
"author_profile": "https://Stackoverflow.com/users/2450",
"pm_score": 4,
"selected": true,
"text": "glutWarpPointer(middleX, middleY)"
}
] | 2008/11/07 | [
"https://Stackoverflow.com/questions/271965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2450/"
] |
271,966 | <p>There are no builtin matrix functions in C#, but there are in the F# powerpack.</p>
<p>Rather than using a third party or open source C# library, I wonder about rolling my own in F#, and exposing the useful bits to C#. </p>
<p>Wondered if anybody has already thought of this, or tried it, and whether it's a good id... | [
{
"answer_id": 272250,
"author": "Hath",
"author_id": 5186,
"author_profile": "https://Stackoverflow.com/users/5186",
"pm_score": 4,
"selected": true,
"text": "Microsoft.FSharp.Math.BigInt class.\n Microsoft.FSharp.Math.Matrix<A> class\n"
}
] | 2008/11/07 | [
"https://Stackoverflow.com/questions/271966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11410/"
] |
271,971 | <p>Through profiling I've discovered that the sprintf here takes a long time. Is there a better performing alternative that still handles the leading zeros in the y/m/d h/m/s fields?</p>
<pre><code>SYSTEMTIME sysTime;
GetLocalTime( &sysTime );
char buf[80];
for (int i = 0; i < 100000; i++)
{
sprintf(buf, ... | [
{
"answer_id": 271993,
"author": "Roddy",
"author_id": 1737,
"author_profile": "https://Stackoverflow.com/users/1737",
"pm_score": 3,
"selected": false,
"text": "buf[0] = (sysTime.wYear / 1000) % 10 + '0' ;\nbuf[1] = (sysTime.wYear / 100) % 10 + '0';\nbuf[2] = (sysTime.wYear / 10) % 10 +... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271971",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9328/"
] |
271,979 | <p>I need to pull some BLOB data from a SQL Server 2005 database and generate a SQL script to insert this same data in another database, in another server.</p>
<p>I am only allowed to do this using SQL scripts, I can't use any other utility or write a program in Java or .NET to do it.</p>
<p>The other big restriction... | [
{
"answer_id": 271999,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 1,
"selected": false,
"text": "CREATE PROCEDURE sp_textcopy (\n @srvname varchar (30),\n @login varchar (30),\n @password varchar (30),\n ... | 2008/11/07 | [
"https://Stackoverflow.com/questions/271979",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/407003/"
] |
272,003 | <p>I have a MS-access database. But it is on the shared drive. And it is required that only some selected number of people can use it. Is there a way to authenticate the user?</p>
| [
{
"answer_id": 417801,
"author": "Mike",
"author_id": 51350,
"author_profile": "https://Stackoverflow.com/users/51350",
"pm_score": 0,
"selected": false,
"text": "AuthorizedUser = True\nSelect Case user\n Case \"USER_A\":\n Case \"USER_B\":\n Case \"USER_C\": \n Case Else... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6613/"
] |
272,007 | <p>I am using jQuery to try and trigger a method when an <a href="http://en.wikipedia.org/wiki/ASP.NET" rel="nofollow noreferrer">ASP.NET</a> (2.0) dropdown list's change event is handled by jQuery. The problem is that the drop down list is located inside a gridview and even then only when a user has decided to edit a ... | [
{
"answer_id": 272311,
"author": "MrKurt",
"author_id": 35296,
"author_profile": "https://Stackoverflow.com/users/35296",
"pm_score": 3,
"selected": true,
"text": "$() $(#some-generated-id) $(document).ready(function() //when DOM is ready, run containing code\n{\n <% if (grvTimeSheets.E... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35454/"
] |
272,010 | <p>I'm looking for a PHP (with MYSQL) nested sets class with all needed functions.
For example:</p>
<p>createLeftNode, createRightNode,createRootNode, createSubNode,deleteNode and <strong>moveTree</strong>. Not only 1 left, 1 right, 1 up and 1 down but also a part of a tree in a nother tree.</p>
<p>Thanks!</p>
| [
{
"answer_id": 42076840,
"author": "Kim Pepper",
"author_id": 668727,
"author_profile": "https://Stackoverflow.com/users/668727",
"pm_score": 0,
"selected": false,
"text": "revision_id"
}
] | 2008/11/07 | [
"https://Stackoverflow.com/questions/272010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35459/"
] |
272,013 | <p>Why is it called a single in VB.net? I'm sure there is a good reason but it doesn't seem intuitive to a non formally trained programmer like me.</p>
| [
{
"answer_id": 272023,
"author": "chakrit",
"author_id": 3055,
"author_profile": "https://Stackoverflow.com/users/3055",
"pm_score": 2,
"selected": false,
"text": "shorthand \"Single-precision\" Double Double-precision\" C-style int float \"integer\" \"floating point\""
},
{
"ans... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2763/"
] |
272,030 | <p>I have a VS 2005 C# project that uses a special Plugin folder to load extra DLLs (for use as nodes in an asset conversion process).</p>
<p>I have a mixture of C# and C++ DLLs in this folder.</p>
<p>The issue I have is that when Shadow Copying is enabled, the C++ DLLs refuse to load using Assembly.LoadFrom. I have ... | [
{
"answer_id": 272307,
"author": "Sunlight",
"author_id": 33650,
"author_profile": "https://Stackoverflow.com/users/33650",
"pm_score": 1,
"selected": false,
"text": "/clr:safe caspol -s"
}
] | 2008/11/07 | [
"https://Stackoverflow.com/questions/272030",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35444/"
] |
272,035 | <p>I have a form that displays file information in a TabControl, and I'd like the pages to have the file's icon in their tab. How do I get the icon associated with a file type?</p>
<p>I'd prefer solutions that don't involve looking things up in the registry, but if that's the only way then so be it.</p>
| [
{
"answer_id": 272044,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 5,
"selected": true,
"text": "FileAssociationInfo ProgramAssociationInfo pai FileAssociationInfo fai = new FileAssociationInfo(\".bob\");\nProgramA... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15371/"
] |
272,036 | <p>I've accidentally removed Win2K compatibility from an application by using <a href="http://msdn.microsoft.com/en-us/library/ms683215(VS.85).aspx" rel="nofollow noreferrer">GetProcessID</a>.</p>
<p>I use it like this, to get the main HWND for the launched application.</p>
<pre><code>ShellExecuteEx(&info); // La... | [
{
"answer_id": 280533,
"author": "Roddy",
"author_id": 1737,
"author_profile": "https://Stackoverflow.com/users/1737",
"pm_score": 2,
"selected": false,
"text": "#include \"Winternl.h\"\n\ntypedef DWORD (WINAPI* pfnGetProcID)(HANDLE h);\n\ntypedef NTSTATUS (WINAPI* pfnQueryInformationPro... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272036",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1737/"
] |
272,038 | <p>In my Seam application, I have a Seam component that returns a (<code>@Datamodel</code>) list of items I want to transform into a set of <code><li></code> HTML elements. I have this working without a problem. </p>
<p>But now, I want to split up the list according to an EL expression. So the EL expression dete... | [
{
"answer_id": 483930,
"author": "phloopy",
"author_id": 8507,
"author_profile": "https://Stackoverflow.com/users/8507",
"pm_score": 0,
"selected": false,
"text": "<!-- before your loop, open your first <ul> if the (@Datamodel) is not empty -->\n\n<s:fragment rendered=\"#{action.isNewLis... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6400/"
] |
272,045 | <p>I have two tables A and B. I would like to delete all the records from table A that are returned in the following query:</p>
<pre><code>SELECT A.*
FROM A , B
WHERE A.id = B.a_id AND
b.date < '2008-10-10'
</code></pre>
<p>I have tried:</p>
<pre><code>DELETE A
WHERE id in (
SELECT a_id
FROM B
... | [
{
"answer_id": 272056,
"author": "Fred",
"author_id": 33630,
"author_profile": "https://Stackoverflow.com/users/33630",
"pm_score": 1,
"selected": false,
"text": "DELETE FROM A\nWHERE A.id in (\n SELECT B.a_id \n FROM B\n WHERE B.date < '2008-10-10');\n"
},
{
"answer_id"... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/939/"
] |
272,097 | <p>How do I dynamically reload the app.config in a .net Windows application? I need to turn logging on and off dynamically and not just based upon the value at application start.</p>
<p>ConfigurationManager.RefreshSection("appSettings") does not work and I've also tried explicitly opening the config file using OpenEx... | [
{
"answer_id": 272114,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 6,
"selected": true,
"text": "ConfigurationManager.RefreshSection(\"yoursection/subsection\");\n"
},
{
"answer_id": 272120,
"autho... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
272,109 | <p>I have a csv file of the format:</p>
<pre><code>270291014011 ED HARDY - TRUE TO MY LOVE - Cap NEU 2008 NEU 0,00 € 0,00 € 0 1 0 22.10.2008 03:37:10 21.11.2008 02:37:10 21.11.2008 02:42:10 50 0 0 0 39,99 € http://i7.ebayimg.com/02/i/001/16/0d/68af_1.JPG?set_id=800005007 0 2 8.10.2008 13... | [
{
"answer_id": 272353,
"author": "Axeman",
"author_id": 11289,
"author_profile": "https://Stackoverflow.com/users/11289",
"pm_score": 2,
"selected": true,
"text": "perl -pe 's/<\\/?(?>[^p]|p\\w+)[^>]*>//ig'\n perl -pe 's/<embed\\s+src=\"(.*?\\.swf)\"\\/?>/<a href=\"$1\">Click here for ex... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1246613/"
] |
272,118 | <p>I know, it depends on the webapp. But in the normal case, what do you do: one servlet, that serves different pages (like an standalone-application with changing content) or for every page a single servlet.</p>
<p>Take for instance a blog. There is the start-page with the most recent blog-entries, an article-view fo... | [
{
"answer_id": 272506,
"author": "Miguel Ping",
"author_id": 22992,
"author_profile": "https://Stackoverflow.com/users/22992",
"pm_score": 3,
"selected": false,
"text": "@Controller\npublic class MyController {\n @RequestMapping(\"/viewPosts\")\n public void doViewPosts(HttpRequest r, Ht... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21005/"
] |
272,124 | <p>since JTree & TreeModel don't provide tooltips straight out-of-the-box, what do you think, what would be the best way to have item-specific tooltips for JTree?</p>
<p>Edit: (Answering my own question afterwards.) </p>
<p>@Zarkonnen: Thanks for the getTooltipText idea. </p>
<p>I found out another (maybe still ... | [
{
"answer_id": 1774609,
"author": "Agustin",
"author_id": 215965,
"author_profile": "https://Stackoverflow.com/users/215965",
"pm_score": 1,
"selected": false,
"text": "onMouseMoved"
},
{
"answer_id": 46084789,
"author": "Matthieu",
"author_id": 1098603,
"author_profi... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28482/"
] |
272,131 | <h2>Setup</h2>
<p>I have a website that draws RSS feeds and displays them on the page. Currently, I use percentages on the divs that contain each feed, so that multiples can appear next to each other.</p>
<p>However, I only have two next to each other, and if the window resizes, there can be some ugly empty space on ... | [
{
"answer_id": 272351,
"author": "Raithlin",
"author_id": 6528,
"author_profile": "https://Stackoverflow.com/users/6528",
"pm_score": 0,
"selected": false,
"text": "var columns = $(\".feed\").size();\nvar size = 100/columns;\n$(\".feed\").css(\"width\",size+\"%\");\n"
},
{
"answe... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4418/"
] |
272,152 | <p>What do I have to do to convert a DIB to a BMP?</p>
| [
{
"answer_id": 18292271,
"author": "Jeff Barnes",
"author_id": 1919288,
"author_profile": "https://Stackoverflow.com/users/1919288",
"pm_score": 2,
"selected": false,
"text": "BITMAPFILEHEADER *bmp = ...;\nchar * bmpBytes = reinterpret_cast<char *>(bmp);\nvoid * myDib = (void *)bmpBytes ... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272152",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1100/"
] |
272,153 | <p>If I define a struct in C# using automatic properties like this:</p>
<pre><code>public struct Address
{
public Address(string line1, string line2, string city, string state, string zip)
{
Line1 = line1;
Line2 = line2;
City = city;
State = state;
Zip = zip;
}
... | [
{
"answer_id": 272164,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 7,
"selected": true,
"text": "this()"
},
{
"answer_id": 12676594,
"author": "supercat",
"author_id": 363751,
"author_profile": "htt... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272153",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6146/"
] |
272,157 | <p>I have a triangle mesh that has no texture, but a set color (sort of blue) and alpha (0.7f). This mesh is run time generated and the normals are correct. I find that with lighting on, the color of my object changes as it moves around the level. Also, the lighting doesn't look right. When I draw this object, this is ... | [
{
"answer_id": 277381,
"author": "DavidG",
"author_id": 25893,
"author_profile": "https://Stackoverflow.com/users/25893",
"pm_score": 0,
"selected": false,
"text": "// Vertices!\nglEnableClientState(GL_VERTEX_ARRAY);\n\n// Depth func\nglEnable(GL_DEPTH_TEST);\nglDepthFunc( GL_LESS );\n\n... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25893/"
] |
272,159 | <p>I have the following one route, registered in my global.asax.</p>
<pre><code>routes.MapRoute(
"Home", // Unique name
"", // Root url
new { controller = "Home", action = "Index",
tag = string.Empty, page = 1 }
);
</code></pre>
<p>kewl. when I start the site, it correctly picks up this route.</p... | [
{
"answer_id": 272527,
"author": "Torkel",
"author_id": 24425,
"author_profile": "https://Stackoverflow.com/users/24425",
"pm_score": 2,
"selected": true,
"text": "return RedirectToRoute(\"IndexDefault\", new {page = \"2\"}); \n"
},
{
"answer_id": 272917,
"author": "Ben Schei... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30674/"
] |
272,161 | <p>When I write code like this in VS 2008:<br><br></p>
<pre><code>.h
struct Patterns {
string ptCreate;
string ptDelete;
string ptDrop;
string ptUpdate;
string ptInsert;
string ptSelect;
};
class QueryValidate {
string query;
string pattern;
static ... | [
{
"answer_id": 272240,
"author": "Pieter",
"author_id": 5822,
"author_profile": "https://Stackoverflow.com/users/5822",
"pm_score": 4,
"selected": true,
"text": "Patterns QueryValidate::pts = {\"CREATE\", \"DELETE\"}; // etc. for every string\n struct Patterns {\n Patterns() { /*...*/ ... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28298/"
] |
272,188 | <p>I have already visited <a href="https://stackoverflow.com/questions/191673/preferred-python-unit-testing-framework">Preferred Python unit-testing framework</a>. I am not just looking at Python Unit Testing Framework, but also code coverage with respect to unit tests. So far I have only come across <a href="http://ne... | [
{
"answer_id": 288711,
"author": "orip",
"author_id": 37020,
"author_profile": "https://Stackoverflow.com/users/37020",
"pm_score": 0,
"selected": false,
"text": "--coverage"
}
] | 2008/11/07 | [
"https://Stackoverflow.com/questions/272188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30289/"
] |
272,190 | <p>I basically created some tables to play around with: I have Two main tables, and a Many-Many join table. Here is the DDL: (I am using HSQLDB)</p>
<pre><code>CREATE TABLE PERSON
(
PERSON_ID INTEGER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
NAME VARCHAR(50), MAIN_PERSON_ID INTEGER
)
CREATE TABLE JOB
... | [
{
"answer_id": 272243,
"author": "Cade Roux",
"author_id": 18255,
"author_profile": "https://Stackoverflow.com/users/18255",
"pm_score": 3,
"selected": true,
"text": "JOB JOB_PERSON JOB PERSON JOB_PERSON JOB PERSON JOB JOB_PERSON DELETE FROM JOB\nWHERE JOB_ID NOT IN (\n SELECT JOB_ID\... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33863/"
] |
272,194 | <p>My webapp is part of a larger EAR that is deployed into a websphere server. The server hosts number of other apps on the same virtual server. My webapp has some initialisation/health checks in a servletContextListener->contextInitialized method. I want to make the webapp unavailable if initialisation/health checks f... | [
{
"answer_id": 272747,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 4,
"selected": true,
"text": "RuntimeException ServletContextListener.contextInitialized"
}
] | 2008/11/07 | [
"https://Stackoverflow.com/questions/272194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33434/"
] |
272,199 | <p>I have a solution which contains many class libraries and an ASP .NET website which references those assemblies.</p>
<p>When I build the solution from within the IDE, all assemblies referenced by the website end up in the bin directory. Great!</p>
<p>When I use MsBuild from the command line, all the referenced ass... | [
{
"answer_id": 287900,
"author": "kenny",
"author_id": 3225,
"author_profile": "https://Stackoverflow.com/users/3225",
"pm_score": 0,
"selected": false,
"text": "%windir%\\Microsoft.Net\\framework\\v2.0.50727\\aspnet_compiler -v \\%~n1 -f -p .\\%1 .\\Website\n"
},
{
"answer_id":... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272199",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5449/"
] |
272,203 | <p>I'm thinking of using PDO in all of my future webapp. Currently (using what I've learned from SO so far), what I have in my site to handle database connection is a Singleton class like this :</p>
<pre><code>class DB {
private static $instance = NULL;
private static $dsn = "mysql:host=localhost;dbname=... | [
{
"answer_id": 272274,
"author": "Noah Goodrich",
"author_id": 20178,
"author_profile": "https://Stackoverflow.com/users/20178",
"pm_score": 2,
"selected": false,
"text": "class DB extends PDO \n{\n // Allows implementation of the singleton pattern -- ndg 5/24/2008\n private static... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26721/"
] |
272,207 | <p>I have a weird issue. I had a web service that was compiled under the 2.0 framework that was being consumed by a windows app that was compiled with the 1.1 framework. This worked just fine. Now, after upgrading the web service to the 3.5 framework, the windows app is no longer able to call it.</p>
<p>Creating a litt... | [
{
"answer_id": 274277,
"author": "denis phillips",
"author_id": 748,
"author_profile": "https://Stackoverflow.com/users/748",
"pm_score": 1,
"selected": false,
"text": " // Put this override in the generated Reference.cs of the client proxy\n protected override System.Net.WebReques... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2849/"
] |
272,210 | <p>What is the accepted practice for indenting SQL statements? For example, consider the following SQL statement:</p>
<pre><code>SELECT column1, column2
FROM table1
WHERE column3 IN
(
SELECT TOP(1) column4
FROM table2
INNER JOIN table3
ON table2.column1 = table3.column1
)
</code></pre>
<p>How should this be indented... | [
{
"answer_id": 272227,
"author": "LeppyR64",
"author_id": 16592,
"author_profile": "https://Stackoverflow.com/users/16592",
"pm_score": 4,
"selected": false,
"text": "SELECT\n column1,\n column2\nFROM\n table1\nWHERE\n column3 IN ( \n SELECT TOP(1)\n column4\n FROM\n ... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272210",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35483/"
] |
272,270 | <pre><code> <object height="25" width="75" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param value="http://click-here-to-listen.com/players/iaPlay13.swf?x=1058286910FTRZGK" name="movie"/>
... | [
{
"answer_id": 272308,
"author": "Vincent Ramdhanie",
"author_id": 27439,
"author_profile": "https://Stackoverflow.com/users/27439",
"pm_score": 2,
"selected": false,
"text": "<P> <!-- First, try the Python applet -->\n<OBJECT title=\"The Earth as seen from space\" \n ... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26107/"
] |
272,313 | <p>I have the requirement to support different Master pages on my application (ASP.NET MVC).
What is the recommended way to:</p>
<ol>
<li>Pass the master page name to the view from.</li>
<li>Store the master page (in session, or something) so it sticks during a user's visit.</li>
</ol>
| [
{
"answer_id": 460828,
"author": "Slee",
"author_id": 34548,
"author_profile": "https://Stackoverflow.com/users/34548",
"pm_score": 4,
"selected": true,
"text": "Public Class CustomBaseController\n Inherits System.Web.Mvc.Controller\n\n Protected Overrides Function View(ByVal viewN... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7277/"
] |
272,360 | <p>If so, does it effectively deprecate the <code>visibility</code> property?</p>
<p>(I realize that Internet Explorer does not yet support this CSS2 property.)
<br/>
<a href="http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(CSS)#Properties" rel="noreferrer">Comparisons of layout engines</a></p>
<p><a href=... | [
{
"answer_id": 272380,
"author": "Andrew Bullock",
"author_id": 28543,
"author_profile": "https://Stackoverflow.com/users/28543",
"pm_score": 2,
"selected": false,
"text": "opacity: 0.6;\n-moz-opacity: 0.6;\nfilter: alpha(opacity=60);\n"
},
{
"answer_id": 272381,
"author": "D... | 2008/11/07 | [
"https://Stackoverflow.com/questions/272360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14749/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.