qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
324,245 | <p>I have a asp.net web application which has a number of versions deployed on different customer servers inside their networks. One practice that we have is to have clients email screenshots when they have issues.</p>
<p>In the old asp.net 1.1 days, we could grab details of the build DLL, using reflection, and show ... | [
{
"answer_id": 324279,
"author": "g .",
"author_id": 6944,
"author_profile": "https://Stackoverflow.com/users/6944",
"pm_score": 5,
"selected": true,
"text": "Assembly assembly = Assembly.GetExecutingAssembly();\nstring version = assembly.GetName().Version.ToString();\nstring buildDate =... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24126/"
] |
324,258 | <p>I find the .Net FileSystemWatcher class really handy for writing utilities that automatically come to life when files show up in their watched folders. Is there any equivalent to this functionality in the *nix world that would allow me to watch a folder (and possibly all of its subdirectories)?</p>
<p><strong>Edit:... | [
{
"answer_id": 4501060,
"author": "J Mills",
"author_id": 1121437,
"author_profile": "https://Stackoverflow.com/users/1121437",
"pm_score": 4,
"selected": false,
"text": "using System;\nusing System.Collections.Generic;\nusing System.Collections;\nusing System.Text;\nusing System.IO;\nus... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/327/"
] |
324,261 | <p>I'm compiling a vc8 C++ project in a WinXp VmWare session. It's a hell of a lot slower than gcc3.2 in a RedHat VmWare session, so I'm looking at Task Manager. It's saying a very large percentage of my compile process is spent in the kernel. That doesn't sounds right to me.</p>
<p>Is there an equivalent of strace... | [
{
"answer_id": 324298,
"author": "Barry Kelly",
"author_id": 3712,
"author_profile": "https://Stackoverflow.com/users/3712",
"pm_score": 2,
"selected": false,
"text": "SRV*C:\\symbolcache*http://msdl.microsoft.com/download/symbols\n"
},
{
"answer_id": 324452,
"author": "atzz"... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324261",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23434/"
] |
324,267 | <p>How do I create a batch file to delete files older than a specified date?</p>
<p>This does not seem to work;</p>
<pre><code>:: --------DELOLD.BAT----------
@echo off
SET OLDERTHAN=%1
IF NOT DEFINED OLDERTHAN GOTO SYNTAX
for /f "tokens=2" %%i in ('date /t') do set thedate=%%i
type %1
pause
set mm=%thedate:~0,2%
se... | [
{
"answer_id": 324349,
"author": "e.James",
"author_id": 33686,
"author_profile": "https://Stackoverflow.com/users/33686",
"pm_score": 3,
"selected": false,
"text": "REM del_old.bat\nREM usage: del_old MM-DD-YYY\nfor /f \"tokens=*\" %%a IN ('xcopy *.* /d:%1 /L /I null') do if exist %%~nx... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
324,284 | <p>What's the best way to throw an exception in objective-c/cocoa?</p>
| [
{
"answer_id": 324301,
"author": "e.James",
"author_id": 33686,
"author_profile": "https://Stackoverflow.com/users/33686",
"pm_score": 10,
"selected": true,
"text": "[NSException raise:format:]"
},
{
"answer_id": 324451,
"author": "Peter Hosey",
"author_id": 30461,
"a... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36182/"
] |
324,289 | <p>If I have several <code>Section</code> elements in an XML document, what XQuery do I use to get a list of all the <code>name</code> values?</p>
<pre><code><Section name="New Clients" filePath="XNEWCUST.TXT" skipSection="False">
</code></pre>
| [
{
"answer_id": 324299,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 0,
"selected": false,
"text": " /Section/@name\n"
},
{
"answer_id": 324339,
"author": "Dimitre Novatchev",
"author_id": 36305,
"... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324289",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8741/"
] |
324,303 | <p>I have html code that looks roughly like this:</p>
<pre><code><div id="id1">
<div id="id2">
<p>some html</p>
<span>maybe some more</span>
</div>
<div id="id3">
<p>different text here</p>
<input type="text">
<span>maybe... | [
{
"answer_id": 324308,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 7,
"selected": true,
"text": "document.getElementById('id1').appendChild(document.getElementById('id2'));"
},
{
"answer_id": 46595686,
"author":... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41435/"
] |
324,311 | <p>How can I give a general rule that includes all the expressions below?
E.g one expression, another one for sub and one for mult.
I need to use recursion but i got confused...</p>
<pre><code>simplify :: Expr->Expr
simplify (Mult (Const 0)(Var"x"))
= Const 0
simplify (Mult (Var "x") (Const 0))
= Const 0
simpli... | [
{
"answer_id": 324354,
"author": "Andru Luvisi",
"author_id": 5922,
"author_profile": "https://Stackoverflow.com/users/5922",
"pm_score": 0,
"selected": false,
"text": "simplify (Plus x y) = simplify_one_level (Plus (simplify x) (simplify y))\n"
},
{
"answer_id": 324567,
"aut... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41000/"
] |
324,315 | <p>I have a degrafa surface into a canvas container.
I want to link both width and height.
When i use binding like it works as expected:</p>
<pre><code>// binding
BindingUtils.bindProperty(rect,"height",this,"height");
BindingUtils.bindProperty(rect,"width",this,"width");
</code></pre>
<p>Now, someone told me... | [
{
"answer_id": 324551,
"author": "coulix",
"author_id": 32032,
"author_profile": "https://Stackoverflow.com/users/32032",
"pm_score": 0,
"selected": false,
"text": "public class RectangleShape extends BaseShape \n{\npublic function RectangleShape(fillColor:int) {\n super.name = shapeN... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324315",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32032/"
] |
324,341 | <p>I may be going about this backwards...
I have a class which is like a document and another class which is like a template. They both inherit from the same base class and I have a method to create a new document from a template (or from another document, the method it is in the base class).
So, if I want to create a... | [
{
"answer_id": 324356,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 4,
"selected": true,
"text": "public static Instance CreateInstance(int id)\n{\n MyTemplate def = new MyTemplate();\n return def.GetInstance(id);... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324341",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11534/"
] |
324,344 | <p>I'm a bit flabbergasted at this, so I'm wondering if any SOers have encountered it before.</p>
<p>I have an essentially flat page with a number of input=text seeded in the markup with default values of say A,B,C,D,E in order. The markup looks like this in view source:</p>
<pre><code><td class="action invoice"&g... | [
{
"answer_id": 379211,
"author": "Kenan Banks",
"author_id": 43089,
"author_profile": "https://Stackoverflow.com/users/43089",
"pm_score": 0,
"selected": false,
"text": "autocomplete=\"off\""
}
] | 2008/11/27 | [
"https://Stackoverflow.com/questions/324344",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13018/"
] |
324,353 | <p>Why are the split lists always empty in this program? (It is derived from the code on the <a href="http://en.wikipedia.org/wiki/Linked_List#Language_support" rel="nofollow noreferrer">Wikipedia</a> page on Linked Lists.)</p>
<pre><code>/*
Example program from wikipedia linked list article
Modified to find... | [
{
"answer_id": 324380,
"author": "Rob Walker",
"author_id": 3631,
"author_profile": "https://Stackoverflow.com/users/3631",
"pm_score": 3,
"selected": false,
"text": " temp = list_nth(current, ind);\n\n while (current != NULL) {\n count = count+step;\n temp->next = list_nth... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324353",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
324,358 | <p>I need to cast single figures (1 to 9) to (01 to 09). I can think of a way but its big and ugly and cumbersome. I'm sure there must be some concise way. Any Suggestions</p>
| [
{
"answer_id": 324368,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 8,
"selected": false,
"text": "Double"
},
{
"answer_id": 324402,
"author": "LeppyR64",
"author_id": 16592,
"author_profile": "ht... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324358",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
324,373 | <p>I have written an ASP.NET composite control which includes some Javascript which communicates with a web service.</p>
<p>I have packaged the classes for the control and the service into a DLL to make it nice and easy for people to use it in other projects.</p>
<p>The problem I'm having is that as well as referenci... | [
{
"answer_id": 324462,
"author": "John Sheehan",
"author_id": 1786,
"author_profile": "https://Stackoverflow.com/users/1786",
"pm_score": 3,
"selected": false,
"text": "<configuration>\n <system.web>\n <httpHandlers>\n <add verb=\"*\" path=\"*WebService.asmx\" type=\"MyHan... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/475/"
] |
324,381 | <p>This is a multi-site problem. I have a lot of sites with .htaccess files with multiple line similar to:</p>
<pre><code>rewriterule ^(page-one|page-two|page-three)/?$ /index.php?page=$1 [L]
</code></pre>
<p>This means that both www.domain.com/page-one and www.domain.com/page-one/ will both load www.domain.com/inde... | [
{
"answer_id": 324390,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 1,
"selected": false,
"text": "RewriteRule ^(.*[^/])$ $1/\nRewriteRule ^(page-one|page-two|page-three)?$ /index.php?page=$1 [L]\n"
},
{
"ans... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/428190/"
] |
324,386 | <p>We have cases wherein we write a lot of log files to the host increasing the i/o on a host. Are there any good open source logging over the wire solutions.</p>
<p>The application language is C++ on Red Hat Linux 3.</p>
| [
{
"answer_id": 324806,
"author": "Andrew Edgecombe",
"author_id": 11694,
"author_profile": "https://Stackoverflow.com/users/11694",
"pm_score": 2,
"selected": false,
"text": "openlog()"
}
] | 2008/11/27 | [
"https://Stackoverflow.com/questions/324386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
324,400 | <p>I have an existing htaccess that works fine:</p>
<pre><code>RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule (.*) /default.php
DirectoryIndex index.php /default.php
</code></pre>
<p>I wish to modify this so that all urls that start with /test/ go to /test/default... | [
{
"answer_id": 324410,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 2,
"selected": false,
"text": "/test/"
},
{
"answer_id": 324427,
"author": "Ken",
"author_id": 20074,
"author_profile": "https:/... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
324,428 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/324311/symbolic-simplification-in-haskell-using-recursion">Symbolic simplification in Haskell (using recursion?)</a> </p>
</blockquote>
<p>The simplifications I have in mind are</p>
<pre><code>0*e = e*0 = 0
1*... | [
{
"answer_id": 324440,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 2,
"selected": false,
"text": "simplify (Plus (Const 0) (Expr x)) = simplify (Expr x)\nsimplify (Plus (Expr x) (Const 0)) = simplify (Expr x)\nsimpl... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41000/"
] |
324,436 | <p>There's this program, pdftotext, that can convert a pdf file to a text file. To use it directly on the linux console:</p>
<pre><code>pdftotext file.pdf
</code></pre>
<p>That will generate a file.txt on the same directory as the pdf file. I was looking for a way to do it from inside a php program, and after some go... | [
{
"answer_id": 324472,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 4,
"selected": true,
"text": "<?php\n system('pdftotext file.pdf 2>&1');\n?>\n"
}
] | 2008/11/27 | [
"https://Stackoverflow.com/questions/324436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27090/"
] |
324,457 | <p>I've been looking into adopting Carbon Emacs for use on my Mac, and the only stumbling block I've run into is the annoying scroll beep when you try to scroll past the end of the document. I've looked online but I can't seem to find what I should add to my .emacs that will stop it from beeping when scrolling. I don't... | [
{
"answer_id": 324501,
"author": "Svante",
"author_id": 31615,
"author_profile": "https://Stackoverflow.com/users/31615",
"pm_score": 2,
"selected": false,
"text": "ring-bell-function"
},
{
"answer_id": 331590,
"author": "wunki",
"author_id": 34020,
"author_profile": ... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/658/"
] |
324,463 | <p>How can I display something over all other application. I want to to display something over all form of my program and all other programs open on my desktop (not mine).</p>
<p><strong>*Top Most doesn't work I have tested and my browser can go OVER my application :S</strong></p>
<p>Here is an image of when I use To... | [
{
"answer_id": 324464,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 5,
"selected": true,
"text": "[System.Runtime.InteropServices.DllImport(\"user32.dll\")]\npublic static extern bool SetForegroundWindow(IntPtr... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21386/"
] |
324,466 | <p>I have installed Delphi Prism and XNA Game Studio 3.0. I have managed to translate to Delphi Prism XNA Tutorial 1 "Displaying a 3D Model on the Screen" (<a href="http://msdn.microsoft.com/en-us/library/bb197293.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/bb197293.aspx</a>).
Project compi... | [
{
"answer_id": 17538490,
"author": "sav",
"author_id": 2040876,
"author_profile": "https://Stackoverflow.com/users/2040876",
"pm_score": 0,
"selected": false,
"text": "method Game1.LoadContent;\nvar\n importer : TextureImporter;\n texContent : Texture2DContent;\n cc : ContentCom... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15733/"
] |
324,470 | <p>A custom HTTP header is being passed to a Servlet application for authentication purposes. The header value must be able to contain accents and other non-ASCII characters, so must be in a certain encoding (ideally UTF-8).</p>
<p>I am provided with this piece of Java code by the developers who control the authentica... | [
{
"answer_id": 331187,
"author": "ebruchez",
"author_id": 5144,
"author_profile": "https://Stackoverflow.com/users/5144",
"pm_score": 2,
"selected": false,
"text": "=?UTF-8?Q?...?=\n"
}
] | 2008/11/27 | [
"https://Stackoverflow.com/questions/324470",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5144/"
] |
324,477 | <p>In a Django form, how do I make a field read-only (or disabled)?</p>
<p>When the form is being used to create a new entry, all fields should be enabled - but when the record is in update mode some fields need to be read-only.</p>
<p>For example, when creating a new <code>Item</code> model, all fields must be edita... | [
{
"answer_id": 325038,
"author": "Daniel Naab",
"author_id": 32638,
"author_profile": "https://Stackoverflow.com/users/32638",
"pm_score": 10,
"selected": true,
"text": "readonly"
},
{
"answer_id": 331550,
"author": "muhuk",
"author_id": 42188,
"author_profile": "http... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11452/"
] |
324,482 | <p>I'm working on a tool to simplify an application's deployment. Hence I'm aiming to automate the build of the setup project.</p>
<p>The Situation:
When I use Visual Studio to build the setup project this, creates the msi and exe files and concludes successfully. The problem occurs when I run a command in the command... | [
{
"answer_id": 324846,
"author": "jageall",
"author_id": 27036,
"author_profile": "https://Stackoverflow.com/users/27036",
"pm_score": 2,
"selected": false,
"text": "devenv [solutionname] /build\n"
}
] | 2008/11/27 | [
"https://Stackoverflow.com/questions/324482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30339/"
] |
324,486 | <p>I would like to return a string with all of the contents of a CSS rule, like the format you'd see in an inline style. I'd like to be able to do this without knowing what is contained in a particular rule, so I can't just pull them out by style name (like <code>.style.width</code> etc.) </p>
<p>The CSS:</p>
<pre><c... | [
{
"answer_id": 324527,
"author": "scunliffe",
"author_id": 6144,
"author_profile": "https://Stackoverflow.com/users/6144",
"pm_score": 0,
"selected": false,
"text": "alert(classes[x].style.cssText);\n"
},
{
"answer_id": 324533,
"author": "nsdel",
"author_id": 40807,
"... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12579/"
] |
324,498 | <p>Given:</p>
<pre><code>my @mylist1;
push(@mylist1,"A");
push(@mylist1,"B");
push(@mylist1,"C");
my @mylist2;
push(@mylist2,"A");
push(@mylist2,"D");
push(@mylist2,"E");
</code></pre>
<p>What's the quickest way in Perl to insert in mylist2 all elements that are in mylist1 and not already in mylist2 (ABCDE). </p>
| [
{
"answer_id": 324522,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 5,
"selected": true,
"text": "my %k;\nmap { $k{$_} = 1 } @mylist1;\nmap { $k{$_} = 1 } @mylist2;\n@mylist2 = keys %k;\n"
},
{
"answer_id": 324534,
... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5195/"
] |
324,499 | <p>I am running JVM 1.5.0 (Mac OS X Default), and I am monitoring my Java program in the Activity Monitor. I have the following:</p>
<pre><code>import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Date;
public class MemoryTest {
pu... | [
{
"answer_id": 324505,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 5,
"selected": true,
"text": "-XX:MinHeapFreeRatio"
}
] | 2008/11/27 | [
"https://Stackoverflow.com/questions/324499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10675/"
] |
324,506 | <p>I have the following problem:</p>
<pre><code> # line is a line from a file that contains ["baa","beee","0"]
line = TcsLine.split(",")
NumPFCs = eval(line[2])
if NumPFCs==0:
print line
</code></pre>
<p>I want to print all the lines from the file if the second position of the list has a value == 0.</p>
... | [
{
"answer_id": 324524,
"author": "Dustin",
"author_id": 39975,
"author_profile": "https://Stackoverflow.com/users/39975",
"pm_score": 0,
"selected": false,
"text": "line=TcsLine.split(\",\")\nif line[2] == \"0\":\n print line\n"
},
{
"answer_id": 324525,
"author": "Kozyarc... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
324,518 | <p>How do you look up a user in Active Directory?</p>
<p>Some example usernames are:</p>
<ul>
<li>avatopia\ian</li>
<li>avatar\ian</li>
<li>ian@avatopia.com</li>
<li>ian@avatopia.local</li>
<li>avatopia.com\ian</li>
</ul>
<p>It's important to note that i don't know the name of the domain, <a href="https://stackoverf... | [
{
"answer_id": 324585,
"author": "Ian G",
"author_id": 31765,
"author_profile": "https://Stackoverflow.com/users/31765",
"pm_score": 4,
"selected": true,
"text": " /// This is some imaginary code to show you how to use it\n\n Session[\"USER\"] = User.Identity.Name.ToString();\n... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
324,539 | <p>For the moment my batch file look like this:</p>
<pre><code>myprogram.exe param1
</code></pre>
<p>The program starts but the DOS Window remains open. How can I close it?</p>
| [
{
"answer_id": 324540,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 8,
"selected": true,
"text": "start myProgram.exe param1\nexit\n"
},
{
"answer_id": 324545,
"author": "Lasse V. Karlsen",
"aut... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14441/"
] |
324,572 | <p>I am trying to set one bindable variable to be bound to another. Essentially I want to create an alias. I would give up, but this seems like something that would be good to know.</p>
<p>essentially, I want changes in model.configView to be reflected in view, so that things bound to view.... behave the same as thi... | [
{
"answer_id": 324577,
"author": "Simon",
"author_id": 24039,
"author_profile": "https://Stackoverflow.com/users/24039",
"pm_score": 1,
"selected": false,
"text": "view"
},
{
"answer_id": 340916,
"author": "Jérémy Reynaud",
"author_id": 43051,
"author_profile": "https... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40397/"
] |
324,604 | <p>Greetings!</p>
<p>If I have XML such as this:</p>
<pre><code><Root>
<AlphaSection>
.
.
.
</AlphaSection>
<BetaSection>
<Choices>
<SetA>
<Choice id="choice1">Choice One</Choice>
<Choice i... | [
{
"answer_id": 324616,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 4,
"selected": true,
"text": "var choiceList = myXDoc.Root\n .Element(\"BetaSection\")\n .Descendants(\"Cho... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27870/"
] |
324,605 | <p>I have a trigger in which I want to have a variable that holds an INT I get from a <code>SELECT</code>, so I can use it in two IF statements instead of calling the <code>SELECT</code> twice. How do you declare/use variables in MySQL triggers?</p>
| [
{
"answer_id": 324715,
"author": "IgorS",
"author_id": 1476181,
"author_profile": "https://Stackoverflow.com/users/1476181",
"pm_score": 3,
"selected": false,
"text": "`CREATE TRIGGER `category_before_ins_tr` BEFORE INSERT ON `category`\n FOR EACH ROW\nBEGIN\n **SET @tableId= (SELECT... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
324,612 | <p>The comments on <a href="http://steve-yegge.blogspot.com/" rel="nofollow noreferrer">Steve Yegge</a>'s <a href="http://steve-yegge.blogspot.com/2008/06/rhinos-and-tigers.html" rel="nofollow noreferrer">post</a> about <a href="http://www.mozilla.org/rhino/" rel="nofollow noreferrer">server-side Javascript</a> started... | [
{
"answer_id": 324635,
"author": "Barry Kelly",
"author_id": 3712,
"author_profile": "https://Stackoverflow.com/users/3712",
"pm_score": 4,
"selected": true,
"text": "let f x y = x + y;;\n"
},
{
"answer_id": 324663,
"author": "Daniel Spiewak",
"author_id": 9815,
"auth... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3366/"
] |
324,624 | <p>I have a MFC application in which I want to add internationalization support. The project is configured to use the "multi-byte character set" (the "unicode character set" is not an option in my situation).</p>
<p>Now, I would expect the CWnd::OnChar() function to send me multi-byte characters if I set my keyboard ... | [
{
"answer_id": 325025,
"author": "Michael Burr",
"author_id": 12711,
"author_profile": "https://Stackoverflow.com/users/12711",
"pm_score": 2,
"selected": false,
"text": "SetThreadLocale()"
},
{
"answer_id": 338634,
"author": "Martin Cote",
"author_id": 9936,
"author_... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324624",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9936/"
] |
324,627 | <p>What is the best way to include data in an HTML page? The data is not human-readable and will be processed by a script once the page has loaded. The options I can think of are:</p>
<ul>
<li><p>Using class and title attributes on hidden/empty <code><div></code> or <code><span></code> elements within the ... | [
{
"answer_id": 325025,
"author": "Michael Burr",
"author_id": 12711,
"author_profile": "https://Stackoverflow.com/users/12711",
"pm_score": 2,
"selected": false,
"text": "SetThreadLocale()"
},
{
"answer_id": 338634,
"author": "Martin Cote",
"author_id": 9936,
"author_... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324627",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30119/"
] |
324,633 | <p>I really love WeakReference's. But I wish there was a way to tell the CLR how much (say, on a scale of 1 to 5) how weak you consider the reference to be. That would be brilliant.</p>
<p>Java has SoftReference, WeakReference and I believe also a third type called a "phantom reference". That's 3 levels right there wh... | [
{
"answer_id": 7102321,
"author": "Adam Gawne-Cain",
"author_id": 899870,
"author_profile": "https://Stackoverflow.com/users/899870",
"pm_score": 4,
"selected": false,
"text": "-Xmx128M"
}
] | 2008/11/27 | [
"https://Stackoverflow.com/questions/324633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
324,641 | <p>I have a border element with rounded corners containing a 3x3 grid. The corners of the grid are sticking out of the border. How can I fix that? I tried using ClipToBounds but didn't get anywhere.
Thanks for your help</p>
| [
{
"answer_id": 325003,
"author": "Micah",
"author_id": 17744,
"author_profile": "https://Stackoverflow.com/users/17744",
"pm_score": 7,
"selected": true,
"text": " /// <Remarks>\n /// As a side effect ClippingBorder will surpress any databinding or animation of \n /// ... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324641",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28029/"
] |
324,643 | <p>In C++ often do something like this:</p>
<pre><code>typedef map<int, vector<int> > MyIndexType;
</code></pre>
<p>Where I then use it like this:</p>
<pre><code>MyIndexType myIndex;
for( ... some loop ...)
{
myIndex[someId].push_back(someVal);
}
</code></pre>
<p>If there was no entry in the map the c... | [
{
"answer_id": 324648,
"author": "Alastair",
"author_id": 31038,
"author_profile": "https://Stackoverflow.com/users/31038",
"pm_score": 3,
"selected": false,
"text": "myIndex = {}\nfor (someId,someVal) in collection:\n myIndex.setdefault(someId, []).append(someVal)\n"
},
{
"an... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324643",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7743/"
] |
324,649 | <p>Some examples I found that apparently worked with older versions of mvc suggest that there was a length parameter of sorts:</p>
<pre><code><%=Html.TextBox("test", 50)%>
</code></pre>
<p>But that may have been mistakenly setting the value.</p>
<p>How do this work in the current release? Passing in the style ... | [
{
"answer_id": 324751,
"author": "Tim Scott",
"author_id": 29493,
"author_profile": "https://Stackoverflow.com/users/29493",
"pm_score": 3,
"selected": false,
"text": "<%=Html.TextBox(\"test\", new { style=\"width:50px\" })%>\n"
},
{
"answer_id": 324774,
"author": "Drejc",
... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324649",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9913/"
] |
324,665 | <p>Is it faster to do the following:</p>
<pre><code> if ($var != 'test1' && $var != 'test2' && $var != 'test3' && $var != 'test4') { ... }
</code></pre>
<p>Or:</p>
<pre><code> if (!in_array($var, array('test1', 'test2', 'test3', 'test4') { ... }
</code></pre>
<p>Is there a number of values a... | [
{
"answer_id": 324669,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 5,
"selected": true,
"text": "in_array()"
},
{
"answer_id": 324671,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stack... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
324,666 | <p>When implementing an +initialize or +load method in one of your Objective-C classes, should you <em>always</em> start with this kind of guard?:</p>
<pre><code>@implementation MyClass
+ (void)initialize {
if (self == [MyClass class]) {
...
}
}
...
@end
</code></pre>
<p>Seems like code in +load and... | [
{
"answer_id": 324719,
"author": "Matt Gallagher",
"author_id": 36103,
"author_profile": "https://Stackoverflow.com/users/36103",
"pm_score": 3,
"selected": true,
"text": "id myGlobalObject = nil;\n\n+(void)initialize\n{\n if (myGlobalObject == nil)\n {\n myGlobalObject = [[... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34934/"
] |
324,670 | <p>We perform updates of large text files by writing new records to a temp file, then replacing the old file with the temp file. A heavily abbreviated version:</p>
<pre><code>var tpath = Path.GetTempFileName();
try
{
using (var sf = new StreamReader(sourcepath))
using (var tf = new StreamWriter(tpath))
{
... | [
{
"answer_id": 324760,
"author": "jyoung",
"author_id": 14841,
"author_profile": "https://Stackoverflow.com/users/14841",
"pm_score": 0,
"selected": false,
"text": "class Program {\n static void Main( string[] args ) {\n using( var ft = new FileTransaction( @\"C:\\MyDir\\MyFile... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22437/"
] |
324,677 | <p>I have clustered applications that requires one of the nodes to be designated as the master. The cluster nodes are tracked in a table with <strong>nodeID</strong>, <strong>isMaster</strong>, <strong>lastTimestamp</strong> columns.</p>
<p>Each node in the cluster will try to become a master every <strong>X</strong> ... | [
{
"answer_id": 324760,
"author": "jyoung",
"author_id": 14841,
"author_profile": "https://Stackoverflow.com/users/14841",
"pm_score": 0,
"selected": false,
"text": "class Program {\n static void Main( string[] args ) {\n using( var ft = new FileTransaction( @\"C:\\MyDir\\MyFile... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41465/"
] |
324,682 | <p>I'm trying to add HyperLinkColumns dynamically to my GridView. I have the following code:</p>
<pre><code>HyperLinkColumn objHC = new HyperLinkColumn();
objHC.DataNavigateUrlField = "title";
objHC.DataTextField = "Link text";
objHC.DataNavigateUrlFormatString = "id, title";
objHC.DataTextFormatString = "{2}";
GridV... | [
{
"answer_id": 324717,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 3,
"selected": false,
"text": "protected void yourGrid_RowDataBound(object sender, GridViewRowEventArgs e)\n{\n HyperLink hlControl = n... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
324,695 | <p>When building an application with a CLI, it is useful to avoid using tokens that are commonly used for shell features.</p>
<p>For example, <code>|</code> is used for piping output of one application to input of the next.</p>
<p>Please supply a complete list of tokens that would need to be escaped to be used?</p>
... | [
{
"answer_id": 324983,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 1,
"selected": false,
"text": "A-Z a-z 0-9 _ - . , / + @\n"
},
{
"answer_id": 324988,
"author": "Sparr",
"author_id": 13675,
... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9360/"
] |
324,704 | <p>How do I access the user R13 and R14 which are saved when supervisor mode is entered? I am using an ARM7TDMI. </p>
<p>I.E. I do not want to access supervisor R14 which now contains the return address to user mode, instead want the value of user mode's link register. This is part of a debugger I am writing.</p>
<p>... | [
{
"answer_id": 326314,
"author": "Tarski",
"author_id": 27653,
"author_profile": "https://Stackoverflow.com/users/27653",
"pm_score": 2,
"selected": false,
"text": "stmfd r13, {r13-r14}^ ;store r13 and r14 usermode\nnop\nsub r13, r13, #8 ;update stack pointer\n"
}
] | 2008/11/27 | [
"https://Stackoverflow.com/questions/324704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27653/"
] |
324,711 | <p>I'm currently using <code>std::ofstream</code> as follows:</p>
<pre><code>std::ofstream outFile;
outFile.open(output_file);
</code></pre>
<p>Then I attempt to pass a <code>std::stringstream</code> object to <code>outFile</code> as follows:</p>
<pre><code>GetHolesResults(..., std::ofstream &outFile){
float x... | [
{
"answer_id": 324975,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 8,
"selected": true,
"text": "outFile << ss.rdbuf();\n"
},
{
"answer_id": 13760222,
"author": "2ndshot",
"author_id": 1884... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324711",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6367/"
] |
324,726 | <p>I want to execute a php-script from php that will use different constants and different versions of classes that are already defined.</p>
<p>Is there a sandbox php_module where i could just:</p>
<pre><code>sandbox('script.php'); // run in a new php environment
</code></pre>
<p>instead of </p>
<pre><code>include(... | [
{
"answer_id": 325500,
"author": "Vegard Larsen",
"author_id": 1606,
"author_profile": "https://Stackoverflow.com/users/1606",
"pm_score": 2,
"selected": false,
"text": "$sOutput = `php script_to_run.php`;\n"
},
{
"answer_id": 10189122,
"author": "hakre",
"author_id": 367... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324726",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19165/"
] |
324,748 | <p>I'm developing class to represent special kind of matrix:</p>
<pre><code>type
DifRecord = record
Field: String;
Number: Byte;
Value: smallint;
end;
type
TData = array of array of MainModule.DataRecord;
type
TDifference = array of DifRecord;
type
TFogelMatrix = class
private
M: Byte;
... | [
{
"answer_id": 324753,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 4,
"selected": true,
"text": "array of"
},
{
"answer_id": 325251,
"author": "PatrickvL",
"author_id": 12170,
"author_profile": "... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28298/"
] |
324,758 | <p>I'm interested in selectively parsing Mediawiki XML markup to generate a customized HTML page that's some subset of the HTML produced by the actual PHP Mediawiki render engine.</p>
<p>I want it for BzReader, an offline Mediawiki compressed dump reader written in C#. So a C# parser would be ideal, but any good code... | [
{
"answer_id": 532324,
"author": "Chris S",
"author_id": 21574,
"author_profile": "https://Stackoverflow.com/users/21574",
"pm_score": 3,
"selected": false,
"text": "public static class Formatter {\n\n}\n"
}
] | 2008/11/27 | [
"https://Stackoverflow.com/questions/324758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7483/"
] |
324,776 | <p>I want to pass some parameters to a Crystal Report like this:</p>
<pre><code>ReportDocument.DataDefinition.FormulaFields[parameterName].Text = 'Text';
</code></pre>
<p>This workes fine unless I want to pass a multiline textbox from ASPX
(containing \n and \r chars.)</p>
<p>The reportviewer reports that "The ma... | [
{
"answer_id": 351201,
"author": "user35193",
"author_id": 35193,
"author_profile": "https://Stackoverflow.com/users/35193",
"pm_score": 2,
"selected": false,
"text": "\"<html>\" + Replace({?ParameterField}, \"___\", \"<br>\") + \"<html/>\""
}
] | 2008/11/27 | [
"https://Stackoverflow.com/questions/324776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
324,779 | <p>One of my API calls can result in updates to a large number of objects (Django models). I'm running into performance issues with this since I'm updating each item individually, saving, and moving on to the next:</p>
<pre><code>for item in Something.objects.filter(x='y'):
item.a="something"
item.save()
</cod... | [
{
"answer_id": 325066,
"author": "Jonny Buchanan",
"author_id": 6760,
"author_profile": "https://Stackoverflow.com/users/6760",
"pm_score": 5,
"selected": true,
"text": "save"
}
] | 2008/11/27 | [
"https://Stackoverflow.com/questions/324779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13055/"
] |
324,786 | <p>I've read the several discussions about storing code snippets but I did't find the info that I'm looking for, so let's define it:</p>
<ul>
<li>At home, I have several side projects, most of them quite small, one large, and numerous little examples that demonstrate a specific language feature (for example, some temp... | [
{
"answer_id": 324811,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 1,
"selected": false,
"text": "svn:externals"
}
] | 2008/11/27 | [
"https://Stackoverflow.com/questions/324786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34752/"
] |
324,797 | <p>Say for example I have the following string:</p>
<p>var testString = "Hello, world";</p>
<p>And I want to call the following methods:</p>
<p>var newString = testString.Replace("Hello", "").Replace("world", "");</p>
<p>Is there some code construct that simplifies this, so that I only have to specify the Replace m... | [
{
"answer_id": 324809,
"author": "Vincent Van Den Berghe",
"author_id": 39259,
"author_profile": "https://Stackoverflow.com/users/39259",
"pm_score": 3,
"selected": true,
"text": "String"
},
{
"answer_id": 324813,
"author": "terjetyl",
"author_id": 29519,
"author_prof... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23341/"
] |
324,803 | <p>Is there a way to detect that a DirectShow filtergraph has reached the end of its file? By end of its file, I mean that a filtergraph with a SampleGrabber filter will never receive another SampleCB call.</p>
<p>Here are some things that don't work:</p>
<ul>
<li>Trust <code>IMediaDet::get_StreamLength</code> (it's... | [
{
"answer_id": 324810,
"author": "Greg Beech",
"author_id": 13552,
"author_profile": "https://Stackoverflow.com/users/13552",
"pm_score": 1,
"selected": false,
"text": "WaitForSingleObject"
}
] | 2008/11/27 | [
"https://Stackoverflow.com/questions/324803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25050/"
] |
324,822 | <p>I have something like this:</p>
<pre><code><node TEXT=" txt A "/>
<node TEXT="
txt X
"/>
<node>
<html>
<p>
txt Y
</p>
</html>
</node>
<node TEXT="txt B"/>
</code></pre>
<p>and i want to use XSLT to get this:</p>
<pre><cod... | [
{
"answer_id": 324869,
"author": "Vincent Ramdhanie",
"author_id": 27439,
"author_profile": "https://Stackoverflow.com/users/27439",
"pm_score": 0,
"selected": false,
"text": " <xsl:strip-space elements=\"node\"/>\n"
},
{
"answer_id": 325245,
"author": "Dimitre Novatchev",
... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8986/"
] |
324,831 | <p>If I have a for loop which is nested within another, how can I efficiently come out of both loops (inner and outer) in the quickest possible way?</p>
<p>I don't want to have to use a boolean and then have to say go to another method, but rather just to execute the first line of code after the outer loop.</p>
<p>Wh... | [
{
"answer_id": 324837,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 9,
"selected": true,
"text": "goto"
},
{
"answer_id": 324840,
"author": "David Rodríguez - dribeas",
"author_id": 36565,
"author... | 2008/11/27 | [
"https://Stackoverflow.com/questions/324831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32484/"
] |
324,860 | <p>I'm using a custom <code>tintColor</code> on my <code>UINavigationController</code>'s navigation bar, and because the color is so light I need to use dark colored text. It's relatively easy to swap out the title view, and the custom buttons I've added on the right hand side, but I can't seem to get a custom view to ... | [
{
"answer_id": 2113404,
"author": "Skotch V",
"author_id": 256242,
"author_profile": "https://Stackoverflow.com/users/256242",
"pm_score": 2,
"selected": false,
"text": "UIBarButtonItem * backItem = [[UIBarButtonItem alloc] initWithImage:backImage style:UIBarButtonItemStylePlain target:n... | 2008/11/28 | [
"https://Stackoverflow.com/questions/324860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41497/"
] |
324,867 | <p>Kind of a basic question but I'm having troubles thinking of a solution so I need a push in the right direction.</p>
<p>I have an input file that I'm pulling in, and I have to put it into one string variable. The problem is I need to split this string up into different things. There will be 3 strings and 1 int. ... | [
{
"answer_id": 324883,
"author": "peterchen",
"author_id": 31317,
"author_profile": "https://Stackoverflow.com/users/31317",
"pm_score": 1,
"selected": false,
"text": "string SplitToken(string & body, char separator)\n"
},
{
"answer_id": 324938,
"author": "Johannes Schaub - l... | 2008/11/28 | [
"https://Stackoverflow.com/questions/324867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28392/"
] |
324,904 | <p>I added the following to my web.config to redirect the user to the login page if they aren't authenticated, but going to the URL does cause a redirect?</p>
<pre><code> <location path="user/add">
<system.web>
<authorization>
<deny users="?" />
</authorization>
... | [
{
"answer_id": 324914,
"author": "Mark Glorie",
"author_id": 952,
"author_profile": "https://Stackoverflow.com/users/952",
"pm_score": 0,
"selected": false,
"text": "<authentication>"
},
{
"answer_id": 325231,
"author": "Community",
"author_id": -1,
"author_profile": ... | 2008/11/28 | [
"https://Stackoverflow.com/questions/324904",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
324,905 | <p>Using Microsoft's AntiXssLibrary, how do you handle input that needs to be edited later?</p>
<p>For example:</p>
<p>User enters:
<code><i>title</i></code></p>
<p>Saved to the database as:
<code><i>title</i></code></p>
<p>On an edit page, in a text box it displays something like:
... | [
{
"answer_id": 869244,
"author": "Josef Pfleger",
"author_id": 98401,
"author_profile": "https://Stackoverflow.com/users/98401",
"pm_score": 3,
"selected": true,
"text": "<input type=\"text\" value=\"<%= AntiXss.HtmlAttributeEncode(\"<i>title</i>\") %>\" />"
}
] | 2008/11/28 | [
"https://Stackoverflow.com/questions/324905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32892/"
] |
324,923 | <p>I'm trying to gauge the possibility of a patch to WebKit which would allow all rendered graphics to be rendered onto a fully transparent background.</p>
<p>The desired effect is to render web content without any background at all, it should appear to float over the desktop (or whatever is displayed behind the brows... | [
{
"answer_id": 843156,
"author": "Paul D. Waite",
"author_id": 20578,
"author_profile": "https://Stackoverflow.com/users/20578",
"pm_score": 2,
"selected": false,
"text": "defaults write com.apple.Safari IncludeDebugMenu 1"
},
{
"answer_id": 1133455,
"author": "Mark Renouf",
... | 2008/11/28 | [
"https://Stackoverflow.com/questions/324923",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/758/"
] |
324,935 | <p>I'm trying to use MySQL to create a view with the "WITH" clause</p>
<pre><code>WITH authorRating(aname, rating) AS
SELECT aname, AVG(quantity)
FROM book
GROUP BY aname
</code></pre>
<p>But it doesn't seem like MySQL supports this.</p>
<p>I thought this was pretty standard and I'm sure Oracle supports thi... | [
{
"answer_id": 324964,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": false,
"text": "WITH emps as (SELECT * FROM Employees)\nSELECT * FROM emps WHERE ID < 20\nUNION ALL\nSELECT * FROM emps where Sex = 'F'\n"
}... | 2008/11/28 | [
"https://Stackoverflow.com/questions/324935",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
324,949 | <p>I'm working on a social networking system that will have comments coming from several different locations. One could be friends, one could be events, one could be groups--much like Facebook. What I'm wondering is, from a practical standpoint, what would be the simplest way to write a comments table? Should I do i... | [
{
"answer_id": 324972,
"author": "Matt Campbell",
"author_id": 41110,
"author_profile": "https://Stackoverflow.com/users/41110",
"pm_score": 3,
"selected": true,
"text": "SELECT * FROM Comment c\nJOIN CommentedItem ci on c.CommentedItemId = ci.CommentedItemId\nJOIN Friend f on f.Commente... | 2008/11/28 | [
"https://Stackoverflow.com/questions/324949",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
324,957 | <p>We have a legacy ASP.net powered site running on a IIS server, the site was developed by a central team and is used by multiple customers. Each customer however has their own copy of the site's aspx files plus a web.config file. This is causing problems as changes made by well meaning support engineers to the copie... | [
{
"answer_id": 325030,
"author": "Corbin March",
"author_id": 7625,
"author_profile": "https://Stackoverflow.com/users/7625",
"pm_score": 4,
"selected": true,
"text": "<YourCustomConfigSection>\n <Customers>\n <Customer Name=\"Customer1\" SomeSetting=\"A\" Another=\"1\" />\n <C... | 2008/11/28 | [
"https://Stackoverflow.com/questions/324957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39040/"
] |
324,959 | <p>Is it possible to pass a query string to Namescape's <a href="http://www.namescape.com/Products/rDirectory/Default.aspx" rel="nofollow noreferrer">rDirectory</a>? I'd like to build a web-app that can do a search and display the results in rDirectory, rather than first launching rDirectory and doing said search.</p>
| [
{
"answer_id": 325030,
"author": "Corbin March",
"author_id": 7625,
"author_profile": "https://Stackoverflow.com/users/7625",
"pm_score": 4,
"selected": true,
"text": "<YourCustomConfigSection>\n <Customers>\n <Customer Name=\"Customer1\" SomeSetting=\"A\" Another=\"1\" />\n <C... | 2008/11/28 | [
"https://Stackoverflow.com/questions/324959",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5473/"
] |
324,961 | <p>I am looking for a regex pattern that would match several different combinations of
zeros such as 00-00-0000 or 0 or 0.0 or 00000 </p>
<p>Please help</p>
<p>Thanks!</p>
<p>EDIT:</p>
<p>Well, I have web service that returns me a result set, based on what it returns me I can decide if the result is worth displayi... | [
{
"answer_id": 324963,
"author": "SoapBox",
"author_id": 36384,
"author_profile": "https://Stackoverflow.com/users/36384",
"pm_score": 3,
"selected": false,
"text": "0([-.]?0+)*"
},
{
"answer_id": 324994,
"author": "Timothy Khouri",
"author_id": 11917,
"author_profile... | 2008/11/28 | [
"https://Stackoverflow.com/questions/324961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41508/"
] |
324,974 | <p>When I connect my digital camera with my computer, a dialog box containing all the registered programs can be used to get images from the camera will appear. Now I want to add my own program in the list, so that when I click the item of my program, I can use my own program to get images from the digital camera.</p>
... | [
{
"answer_id": 1051861,
"author": "RBerteig",
"author_id": 68204,
"author_profile": "https://Stackoverflow.com/users/68204",
"pm_score": 3,
"selected": false,
"text": "IWiaDevMgr"
}
] | 2008/11/28 | [
"https://Stackoverflow.com/questions/324974",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26404/"
] |
324,980 | <p>I am having difficulty determining if the body of a text email message is base64 encoded.
if it is then use this line of code;
making use of jython 2.2.1</p>
<pre><code>dirty=base64.decodebytes(dirty)
</code></pre>
<p>else continue as normal.</p>
<p>This is the code I have atm. What line of code will allow me to ... | [
{
"answer_id": 324989,
"author": "Harley Holcombe",
"author_id": 1057,
"author_profile": "https://Stackoverflow.com/users/1057",
"pm_score": 4,
"selected": true,
"text": "enc = msg['Content-Transfer-Encoding']\n"
},
{
"answer_id": 44186981,
"author": "Ricardo De Leon",
"a... | 2008/11/28 | [
"https://Stackoverflow.com/questions/324980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21537/"
] |
325,004 | <p>I have an onclick handler for an <a> element (actually, it's a jQuery-created handler, but that's not important). It looks like this:</p>
<pre><code>function handleOnClick() {
if(confirm("Are you sure?")) {
return handleOnClickConfirmed();
}
return false;
}
</code></pre>
<p>From this fun... | [
{
"answer_id": 325013,
"author": "Rob",
"author_id": 3542,
"author_profile": "https://Stackoverflow.com/users/3542",
"pm_score": 6,
"selected": true,
"text": "function handleOnClick() {\n if( confirm( \"Sure?\" ) ) {\n return handleOnClickConfirmed.call( this );\n }\n ret... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39992/"
] |
325,007 | <p>can anyone show me how to get the users within a certain group using sharepoint?</p>
<p>so i have a list that contains users and or groups. i want to retrieve all users in that list. is there a way to differentiate between whether the list item is a group or user. if its a group, i need to get all the users within ... | [
{
"answer_id": 326218,
"author": "Pedrin",
"author_id": 36183,
"author_profile": "https://Stackoverflow.com/users/36183",
"pm_score": 5,
"selected": true,
"text": "SPSite site;\nSPWeb web;\nSPListItem item;\n"
},
{
"answer_id": 5273938,
"author": "Sergey Turin",
"author_i... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23491/"
] |
325,020 | <p>WinForms C#.. am getting some JSON in the format below (bottom of message) and trying to deserialise using:</p>
<p>using System.Web.Script.Serialization;</p>
<p>When I had simply this json returned:</p>
<pre><code>{
"objects": [
{
"categoryid": "1",
"name": "funny",
"serverimageid": "1... | [
{
"answer_id": 325098,
"author": "Simon Buchan",
"author_id": 20135,
"author_profile": "https://Stackoverflow.com/users/20135",
"pm_score": 3,
"selected": true,
"text": "using System;\nusing System.Collections.Generic;\nusing System.Web.Script.Serialization;\n\nclass Program\n{\n stat... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26086/"
] |
325,035 | <p>This is a program I'm writing (myself as opposed to copying someone else's and thus not learning) as part of the ObjectiveC and Cocoa learning curve. I want to draw simple shapes on a NSView (limiting it to ovals and rectangles for now). The idea is that I record each NSBezierPath to an NSMutableArray so I can also ... | [
{
"answer_id": 325227,
"author": "Adam Ernst",
"author_id": 79,
"author_profile": "https://Stackoverflow.com/users/79",
"pm_score": 2,
"selected": false,
"text": "-(void)init {\n[super init];\n//set default color = black\ntoolColor.rd=1.0;\ntoolColor.grn=1.0;\ntoolColor.blu=1.0;\ntoolCol... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
325,041 | <p>I expect the column to be a VARCHAR2, in my Oracle Database.</p>
<p>US Zips are 9.</p>
<p>Canadian is 7.</p>
<p>I am thinking 32 characters would be reasonable upper limit</p>
<p>What am I missing?</p>
<p>[EDIT]
TIL: 12 is a reasonable answer to the question
Thanks to everyone who contributed.</p>
| [
{
"answer_id": 41374163,
"author": "PodTech.io",
"author_id": 1842743,
"author_profile": "https://Stackoverflow.com/users/1842743",
"pm_score": 2,
"selected": false,
"text": "Max 35 characters per line \n"
}
] | 2008/11/28 | [
"https://Stackoverflow.com/questions/325041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7734/"
] |
325,057 | <p>I'm trying to display the contents of an ordered array in something like a JTextField.</p>
<pre><code>for (int i=0; i<array.length; i++) {
this.textField.setText(array[i]);
}
</code></pre>
<p>This won't work for two reasons. The first minor reason: if the array length is 4 then jtextfield is getting it's va... | [
{
"answer_id": 325062,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": "https://Stackoverflow.com/users/20654",
"pm_score": 0,
"selected": false,
"text": "StringBuilder sb = new StringBuilder();\nfor( int i : array ) { // <-- alternative way to iterate the array\n sb.app... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
325,075 | <p>I am using a RichTextBox in WPF, and am trying to set the default paragraph spacing to 0 (so that there is no paragraph spacing). While I could do this in XAML, I would like to achieve it programmatically if possible. Any ideas?</p>
| [
{
"answer_id": 325080,
"author": "Ramesh Soni",
"author_id": 191,
"author_profile": "https://Stackoverflow.com/users/191",
"pm_score": 5,
"selected": false,
"text": "RichTextBox rtb = new RichTextBox(); \nParagraph p = rtb.Document.Blocks.FirstBlock as Paragraph; \np.LineHeight = 1... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/691/"
] |
325,081 | <p>How do I create an ASP.NET web service that returns JSON formatted data?</p>
| [
{
"answer_id": 325176,
"author": "Jon DellOro",
"author_id": 36456,
"author_profile": "https://Stackoverflow.com/users/36456",
"pm_score": 1,
"selected": false,
"text": "// enclosing html page has loaded this:\n<script type=\"text/javascript\" src=\"res/js/json2.js\"></script> \n\n// Inv... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41524/"
] |
325,082 | <p>If there is more than one way, please list them. I only know of one, but I'm wondering if there is a cleaner, in-Ruby way.</p>
| [
{
"answer_id": 325088,
"author": "Dustin",
"author_id": 39975,
"author_profile": "https://Stackoverflow.com/users/39975",
"pm_score": 7,
"selected": true,
"text": ">> Process.kill 0, 370\n=> 1\n>> Process.kill 0, 2\nErrno::ESRCH: No such process\n from (irb):5:in `kill'\n from (irb... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28558/"
] |
325,085 | <p>My requirement is just to display a set of values retrieved from database on a spread. I am using jquery.</p>
| [
{
"answer_id": 325141,
"author": "urig",
"author_id": 33404,
"author_profile": "https://Stackoverflow.com/users/33404",
"pm_score": 4,
"selected": false,
"text": "eval()"
}
] | 2008/11/28 | [
"https://Stackoverflow.com/questions/325085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16488/"
] |
325,086 | <p>Hi sometimes i encoutner this error after restarsting sun application server 8.2 domain anyone have any idea what could be the reason?</p>
<blockquote>
<p>javax.servlet.ServletException at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:255) at
javax.servlet.http.HttpServlet.service(HttpServle... | [
{
"answer_id": 366473,
"author": "Mark Renouf",
"author_id": 758,
"author_profile": "https://Stackoverflow.com/users/758",
"pm_score": 2,
"selected": false,
"text": "-Xss2M"
}
] | 2008/11/28 | [
"https://Stackoverflow.com/questions/325086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
325,087 | <p>Given a jQuery result set, how do you convert that back into plain HTML?</p>
<pre><code><div class="abc">
foo <strong>FOO</strong>
</div>
<div class="def">
bar
</div>
</code></pre>
<p>--</p>
<pre><code>var $mySet = $('div');
</code></pre>
<p>Given <code>$mySet</code>, ... | [
{
"answer_id": 325089,
"author": "strager",
"author_id": 39992,
"author_profile": "https://Stackoverflow.com/users/39992",
"pm_score": 0,
"selected": false,
"text": "var $mySet = $('div');\nvar html = $mySet.html();\n"
},
{
"answer_id": 325152,
"author": "Owen",
"author_i... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325087",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
325,099 | <p>I'd like to use visitor IP addresses into a company name. This will be used for displaying something like "Hello visitor from <strong>Apple Inc.</strong>" . Note I am looking for the company name, not the domain name. Extra points for determining the originating country. The app is written in Ruby on Rails, but exam... | [
{
"answer_id": 325101,
"author": "Dustin",
"author_id": 39975,
"author_profile": "https://Stackoverflow.com/users/39975",
"pm_score": 0,
"selected": false,
"text": "whois -h whois.arin.net 17.18.19.20\n"
}
] | 2008/11/28 | [
"https://Stackoverflow.com/questions/325099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
325,114 | <p>I have a Java file <code>TestThis.java</code> like the following:</p>
<pre><code>class A
{
public void foo()
{
System.out.println("Executing foo");
}
}
class B
{
public void bar()
{
System.out.println("Executing bar");
}
}
</code></pre>
<p>The above code file is compiling ... | [
{
"answer_id": 325121,
"author": "Ivan Dubrov",
"author_id": 31118,
"author_profile": "https://Stackoverflow.com/users/31118",
"pm_score": 4,
"selected": true,
"text": "public class Test {\n public static void main(String... args) {\n A a = new A();\n a.foo();\n B... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37626/"
] |
325,116 | <p>Here I am faced with an issue that I believe(or at least hope) was solved 1 million times already.
What I got as the input is a string that represents a length of an object in imperial units. It can go like this:</p>
<pre><code>$length = "3' 2 1/2\"";
</code></pre>
<p>or like this:</p>
<pre><code>$length = "1/2\... | [
{
"answer_id": 325131,
"author": "Claudiu",
"author_id": 15055,
"author_profile": "https://Stackoverflow.com/users/15055",
"pm_score": 1,
"selected": false,
"text": "\"([0-9]+)'\\s*([0-9]+)\\\"\"\n"
},
{
"answer_id": 325192,
"author": "Paige Ruten",
"author_id": 813,
... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35520/"
] |
325,122 | <p>I'm following the sample code in <em>CFNetwork Programming Guide</em>, specifically the section on <strong>Preventing Blocking When Working with Streams</strong>. my code is nearly identical to theirs (below) but, when I connect to my server, I get posix error 14 (bad address -- is that bad IP address (except it's ... | [
{
"answer_id": 325138,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 0,
"selected": false,
"text": "malloc()"
},
{
"answer_id": 325168,
"author": "Jason Coco",
"author_id": 34218,
"author_profile"... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325122",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34820/"
] |
325,158 | <p>Like this: const void * test = sqlite3_column_blob(stat, 1);
Can I delete or delete[] test?</p>
| [
{
"answer_id": 325163,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 0,
"selected": false,
"text": "free"
}
] | 2008/11/28 | [
"https://Stackoverflow.com/questions/325158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26404/"
] |
325,165 | <p>Writing a python script and it needs to find out what language a block of code is written in. <strong>I could easily write this myself, but I'd like to know if a solution already exists.</strong></p>
<p>Pygments is insufficient and unreliable.</p>
| [
{
"answer_id": 325224,
"author": "Gaurav",
"author_id": 27310,
"author_profile": "https://Stackoverflow.com/users/27310",
"pm_score": 2,
"selected": false,
"text": "vim/vim71/filetype.vim"
},
{
"answer_id": 325296,
"author": "dbr",
"author_id": 745,
"author_profile": ... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/432/"
] |
325,171 | <p>I have a project built and packaged with a specific version of jsp-apiand servlet-api jar files. Now I want these jars to be loaded when deploying the web project on any application server for example tomcat, WAS, Weblogic etc.</p>
<p>The behaviour I have seen on tomcat is that it gives messages that the packaged v... | [
{
"answer_id": 325178,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": "https://Stackoverflow.com/users/20654",
"pm_score": 3,
"selected": true,
"text": "java -Xbootclasspath/p:c:\\cutomjars\\myJar.jar;customjars\\myOtherJar.jar ..................... // the rest of the normal... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37626/"
] |
325,186 | <p>While looking at the <code>syntax-case</code> section in R6RS, I saw the keyword <code>make-variable-transformer</code>, described as an <em>identifier macro</em>. The example given is very minimal, and I am not groking why it is necessary, or what use-cases require it. Finding additional examples of its use is also... | [
{
"answer_id": 336499,
"author": "Joel Borggrén-Franck",
"author_id": 38222,
"author_profile": "https://Stackoverflow.com/users/38222",
"pm_score": 2,
"selected": false,
"text": "mac"
}
] | 2008/11/28 | [
"https://Stackoverflow.com/questions/325186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
325,190 | <p>Maybe this cannot be done, but please help or suggest how this can be achieved without writing something to disk.</p>
<p>Lets suppose there are two string values that I want to share between two independent applications.</p>
<p>You are welcome to provide code sample in any programming language.</p>
| [
{
"answer_id": 325195,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 4,
"selected": true,
"text": "CreateFileMapping"
},
{
"answer_id": 325198,
"author": "atzz",
"author_id": 23252,
"author_profile": "... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3535708/"
] |
325,200 | <p>I have 6 links on a page to an mp3.</p>
<p>The plugin I installed replaces those links with a swf and plays that mp3 inline.</p>
<p>The problem I <em>had</em> was that it was possible to activate all 6 links and have all audio playing at once. I <em>solved</em> that problem (I feel in a clumsy novice way though) b... | [
{
"answer_id": 325208,
"author": "strager",
"author_id": 39992,
"author_profile": "https://Stackoverflow.com/users/39992",
"pm_score": 1,
"selected": false,
"text": "function playerClicked() { \n // replace the <a> tag from the previous media player installation\n if (pr... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
325,202 | <p>I have a Jar file, which contains other nested Jars. When I invoke the new <code>JarFile()</code> constructor on this file, I get an exception which says:</p>
<blockquote>
<p>java.util.zip.ZipException: error in opening zip file</p>
</blockquote>
<p>When I manually unzip the contents of this Jar file and zip it ... | [
{
"answer_id": 325206,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": false,
"text": "Class-Path: one.jar two.jar three.jar\n"
},
{
"answer_id": 7508672,
"author": "JohnyCash",
"author_id": 486201,... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325202",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41536/"
] |
325,213 | <p>I've seen lots of ways to backup a single repository in subversion. Is there any way to backup all the repositories in one go. I have lots of repositories for different projects and don't want to have to create a script every time.</p>
| [
{
"answer_id": 325230,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 3,
"selected": false,
"text": "#!/bin/sh\nfor repo in /home/repositories/*; do\n backup-single-repository $repo\ndone\n"
}
] | 2008/11/28 | [
"https://Stackoverflow.com/questions/325213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23230/"
] |
325,241 | <p>I currently have a list view which has several rows of data and I have a contextmenustrip in C# .NET.</p>
<p>What I am having problems with is when you click on the menu strip item I want to know which row has been selected.</p>
| [
{
"answer_id": 325280,
"author": "netadictos",
"author_id": 31791,
"author_profile": "https://Stackoverflow.com/users/31791",
"pm_score": 3,
"selected": true,
"text": "foreach (ListViewItem item in lvFiles.SelectedItems)\n{\n....................................\n}\n"
}
] | 2008/11/28 | [
"https://Stackoverflow.com/questions/325241",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41541/"
] |
325,267 | <p>I have a question about using <code>new[]</code>.</p>
<p>Imagine this:</p>
<pre><code>Object.SomeProperty = new[] {"string1", "string2"};
</code></pre>
<p>Where SomeProperty expects an array of strings.</p>
<p>I know this code snippet will work. But i want to know what it does under the hood. Does <code>new[]</c... | [
{
"answer_id": 325274,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 4,
"selected": false,
"text": "Object.SomeProperty = new string[] {\"string1\", \"string2\"};\n"
},
{
"answer_id": 325279,
"author": "Da... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40676/"
] |
325,273 | <p>I want to design a web page with a banner and an iframe. I hope the iframe can fill all the remaining page height and be resized automatically as the browser is resizing. Is it possible to get it done without writing JavaScript code, only with CSS?</p>
<p>I tried to set <code>height:100%</code> on iframe, the result... | [
{
"answer_id": 325334,
"author": "Vilx-",
"author_id": 41360,
"author_profile": "https://Stackoverflow.com/users/41360",
"pm_score": 9,
"selected": true,
"text": "body, html {width: 100%; height: 100%; margin: 0; padding: 0}\n.row-container {display: flex; width: 100%; height: 100%; flex... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/288936/"
] |
325,278 | <p>What would be the best way to display & program simple game board (say chess, checkers and such) in C#? In terms of controls and underlying game logic. </p>
<p>An idea that came to my mind was to use <strong>Picture Box</strong> (or class inheriting from it) with Board & Field classes. </p>
<ul>
<li>Is tha... | [
{
"answer_id": 325286,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 3,
"selected": true,
"text": "Graphics"
}
] | 2008/11/28 | [
"https://Stackoverflow.com/questions/325278",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36890/"
] |
325,299 | <p>I'm using Java 1.5 and I'd like to launch the associated application to open the file. I know that Java 1.6 introduced the <a href="http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/desktop_api/" rel="noreferrer">Desktop API</a>, but I need a solution for <strong>Java 1.5</strong>.</p>
<p>So far ... | [
{
"answer_id": 325319,
"author": "boutta",
"author_id": 15108,
"author_profile": "https://Stackoverflow.com/users/15108",
"pm_score": 2,
"selected": false,
"text": "final Program p = Program.findProgram(fileExtension);\np.execute(file.getAbsolutePath());\n"
},
{
"answer_id": 3255... | 2008/11/28 | [
"https://Stackoverflow.com/questions/325299",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21348/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.