qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
122,175 | <p>I'm trying to setup some friendly URLs on a SharePoint website. I know that I can do the ASP.Net 2.0 friendly URLs using RewritePath, but I was wondering if it was possible to make use of the System.Web.Routing that comes with ASP.NET 3.5 SP1. </p>
<p>I think I've figured out how to get my route table loaded, but I... | [
{
"answer_id": 127897,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "var route = new Route(\"blah/{*path}\", new MyRouteHandler());\nRouteTable.Routes.Add(route);\n\npublic class MyRouteHandler :... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10893/"
] |
122,192 | <p>I have a list control in GTK+ (a <code>gtk.TreeView</code> with one column), with "find-as-you type" enabled (so typing any text will open a small search field for searching through the list entries). Now, if the user enters some search text like "abc", should I search only for entries <em>starting</em> with "abc", ... | [
{
"answer_id": 122246,
"author": "Wayne",
"author_id": 8236,
"author_profile": "https://Stackoverflow.com/users/8236",
"pm_score": 0,
"selected": false,
"text": "Shining, The - King, Stephen\nThe Shining - Stephen King\nKing, Stephen - The Shining\n"
},
{
"answer_id": 122907,
... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2148773/"
] |
122,208 | <p>In C++, what's the easiest way to get the local computer's IP address and subnet mask?</p>
<p>I want to be able to detect the local machine's IP address in my local network. In my particular case, I have a network with a subnet mask of 255.255.255.0 and my computer's IP address is 192.168.0.5. I need to get these ha... | [
{
"answer_id": 122225,
"author": "Brian R. Bondy",
"author_id": 3153,
"author_profile": "https://Stackoverflow.com/users/3153",
"pm_score": 4,
"selected": false,
"text": "//Example: b1 == 192, b2 == 168, b3 == 0, b4 == 100\nstruct IPv4\n{\n unsigned char b1, b2, b3, b4;\n};\n\nbool ge... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4880/"
] |
122,215 | <p>In my tests I need to test what happens when an OracleException is thrown (due to a stored procedure failure). I am trying to setup Rhino Mocks to </p>
<pre><code>Expect.Call(....).Throw(new OracleException());
</code></pre>
<p>For whatever reason however, OracleException seems to be sealed with no public constru... | [
{
"answer_id": 122231,
"author": "Matt Howells",
"author_id": 16881,
"author_profile": "https://Stackoverflow.com/users/16881",
"pm_score": 2,
"selected": false,
"text": "new OracleException()\n object[] args = ... ;\n(OracleException)Activator.CreateInstance(typeof(OracleException), arg... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5056/"
] |
122,229 | <p>I'm the only developer supporting a website that's a mix of classic asp and .NET. I had to add some .net pages to a classic asp application. This application requires users to login. The login page, written in classic asp, creates a cookie that .net pages use to identify the logged in user and stores information in ... | [
{
"answer_id": 2906948,
"author": "Toby Artisan",
"author_id": 243992,
"author_profile": "https://Stackoverflow.com/users/243992",
"pm_score": 1,
"selected": false,
"text": "Page.Response.Redirect(\"~/alpha\");\n Page.Response.Redirect(Page.ResolveUrl(\"~/alpha\").ToLower());\n"
},
{... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122229",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9809/"
] |
122,238 | <p>JSF is setting the ID of an input field to <code>search_form:expression</code>. I need to specify some styling on that element, but that colon looks like the beginning of a pseudo-element to the browser so it gets marked invalid and ignored. Is there anyway to escape the colon or something?</p>
<pre><code>input#sea... | [
{
"answer_id": 122266,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 8,
"selected": true,
"text": "input#search_form\\:expression { ///...}\n"
},
{
"answer_id": 122268,
"author": "Wayne",
"author_id": 82... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122238",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4893/"
] |
122,239 | <p>Within a table cell that is vertical-align:bottom, I have one or two divs. Each div is floated right.<br>
Supposedly, the divs should not align to the bottom, but they do (which I don't understand, but is good).<br>
However, when I have two floated divs in the cell, they align themselves to the same top line.<br>
I... | [
{
"answer_id": 122263,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "https://Stackoverflow.com/users/15459",
"pm_score": 0,
"selected": false,
"text": "clear: both"
},
{
"answer_id": 127277,
"author": "Tom Ritter",
"author_id": 8435,
"author_profile": "ht... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8435/"
] |
122,253 | <p>After installing a third-party SDK, it very discourteously makes one if its templates the default item in "Add New Item..." dialog in Visual Studio 2005. This is also the case for all other similar dialogs - "Add Class...", "Add User Control..." etc.</p>
<p>Is there a way to change this behavior?</p>
| [
{
"answer_id": 122270,
"author": "Asaf R",
"author_id": 6827,
"author_profile": "https://Stackoverflow.com/users/6827",
"pm_score": -1,
"selected": false,
"text": "HKEY_CURRENT_USER\\Software\\Microsoft\\VisualStudio\\\n HKEY_CURRENT_USER\\Software\\Microsoft\\VisualStudio\\9.0\n"
},
... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15497/"
] |
122,254 | <p>I have a class that defines the names of various session attributes, e.g.</p>
<pre><code>class Constants {
public static final String ATTR_CURRENT_USER = "current.user";
}
</code></pre>
<p>I would like to use these constants within a JSP to test for the presence of these attributes, something like:</p>
<pre><... | [
{
"answer_id": 122863,
"author": "Matt N",
"author_id": 20605,
"author_profile": "https://Stackoverflow.com/users/20605",
"pm_score": -1,
"selected": false,
"text": "<c:set var=\"nullUser\" \n scope=\"session\" \n value=\"${sessionScope[Constants.ATTR_CURRENT_USER] eq null}\" />\n\... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2648/"
] |
122,267 | <p>(using the IMAP commands, not with the assistance of any other mail package)</p>
| [
{
"answer_id": 122296,
"author": "Sec",
"author_id": 20555,
"author_profile": "https://Stackoverflow.com/users/20555",
"pm_score": 5,
"selected": true,
"text": "a login a s\nb select source\nc copy 1 othermbox\nd store 1 +flags (\\Deleted)\ne expunge\n"
},
{
"answer_id": 3156528,... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/116/"
] |
122,271 | <p>when putting a ScrollViewer inside a window(not keeping all the window's size)
inside the ScrollViewer there's (with other stuff) a WinFormsHost and a control inside (let's say a DateTimePicker). when scrolling, the inner winforms control keeps being visible when there's no longer a reason (it's outside of the scrol... | [
{
"answer_id": 2638614,
"author": "Kamilos",
"author_id": 177156,
"author_profile": "https://Stackoverflow.com/users/177156",
"pm_score": -1,
"selected": false,
"text": "VerticalScrollBarVisibility=\"Auto\"\n"
},
{
"answer_id": 40342629,
"author": "Ron16",
"author_id": 30... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21243/"
] |
122,273 | <p>Does anyone have any code examples on how to create controllers that have parameters other than using a Dependency Injection Container? </p>
<p>I see plenty of samples with using containers like StructureMap, but nothing if you wanted to pass in the dependency class yourself.</p>
| [
{
"answer_id": 122361,
"author": "Ben Scheirman",
"author_id": 3381,
"author_profile": "https://Stackoverflow.com/users/3381",
"pm_score": 5,
"selected": true,
"text": "public ProductController() : this( new Foo() )\n{\n //the framework calls this\n}\n\npublic ProductController(IFoo foo... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17902/"
] |
122,276 | <p>I want to be able to quickly check whether I both have sudo access and my password is already authenticated. I'm not worried about having sudo access specifically for the operation I'm about to perform, but that would be a nice bonus.</p>
<p>Specifically what I'm trying to use this for is a script that I want to be... | [
{
"answer_id": 122329,
"author": "Oli",
"author_id": 12870,
"author_profile": "https://Stackoverflow.com/users/12870",
"pm_score": -1,
"selected": false,
"text": "getent group admin | grep $particular_user\n"
},
{
"answer_id": 1677127,
"author": "bobomastoras",
"author_id... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14528/"
] |
122,277 | <p>I switched from Perl to Python about a year ago and haven't looked back. There is only <i>one</i> idiom that I've ever found I can do more easily in Perl than in Python:</p>
<pre><code>if ($var =~ /foo(.+)/) {
# do something with $1
} elsif ($var =~ /bar(.+)/) {
# do something with $1
} elsif ($var =~ /baz(.+)... | [
{
"answer_id": 122294,
"author": "Thomas Wouters",
"author_id": 17624,
"author_profile": "https://Stackoverflow.com/users/17624",
"pm_score": 4,
"selected": false,
"text": "r = re.compile(r'(?P<cmd>foo|bar|baz)(?P<data>.+)')\n\ndef do_foo(data):\n ...\n\ndef do_bar(data):\n ...\n\n... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20789/"
] |
122,301 | <p>Is there an easy way to get a conflict summary after running a <code>cvs update</code>? </p>
<p>I work on a large project and after doing some work I need to do an update. The list of changes coming back from the cvs update command is several pages long and I'd like to see only the list of conflicts (starts with ... | [
{
"answer_id": 169551,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 3,
"selected": true,
"text": "tmp=${TMPDIR:-/tmp}/cvsupd.$$\ntrap \"rm -f $tmp; exit 1\" 0 1 2 3 13 15\ncvs update \"$@\" | tee $tmp\nif grep -s... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6180/"
] |
122,302 | <p>According to select name from system_privilege_map System has been granted:</p>
<pre><code>SELECT ANY TABLE
</code></pre>
<p>...and lots of other * ANY TABLES.</p>
<p>Plainly running</p>
<pre><code>select * from the_table;
select * from the_table;
</code></pre>
<p>...nets the given response:</p>
<blockquote>
... | [
{
"answer_id": 122309,
"author": "Tony Andrews",
"author_id": 18747,
"author_profile": "https://Stackoverflow.com/users/18747",
"pm_score": 4,
"selected": true,
"text": "select * from some_user.the_table;\n"
},
{
"answer_id": 122310,
"author": "cagcowboy",
"author_id": 19... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122302",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
122,313 | <p>I'm getting confused with the include/exclude jargon, and my actual SVN client doesn't seem to have (or I've been unable to find it easily) a simple option to add or remove a certain type of files for version control.</p>
<p>Let's say for example I've added the entire Visual Studio folder, with its solutions, proje... | [
{
"answer_id": 122330,
"author": "Max Cantor",
"author_id": 16034,
"author_profile": "https://Stackoverflow.com/users/16034",
"pm_score": 3,
"selected": false,
"text": "~/.subversion/config svn propset svn propedit ~/.subversion/config [miscellany]"
},
{
"answer_id": 122331,
... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6992/"
] |
122,316 | <p>In C# we can define a generic type that imposes constraints on the types that can be used as the generic parameter. The following example illustrates the usage of generic constraints:</p>
<pre><code>interface IFoo
{
}
class Foo<T> where T : IFoo
{
}
class Bar : IFoo
{
}
class Simpson
{
}
class Program
{
... | [
{
"answer_id": 122386,
"author": "Daniel Spiewak",
"author_id": 9815,
"author_profile": "https://Stackoverflow.com/users/9815",
"pm_score": 6,
"selected": false,
"text": "template <class T>\nint compute_length(T *value)\n{\n return value->length();\n}\n length() int string s = \"test\... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6508/"
] |
122,327 | <p>How do I find the location of my <code>site-packages</code> directory?</p>
| [
{
"answer_id": 122340,
"author": "Daryl Spitzer",
"author_id": 4766,
"author_profile": "https://Stackoverflow.com/users/4766",
"pm_score": 9,
"selected": false,
"text": "python -c \"from distutils.sysconfig import get_python_lib; print(get_python_lib())\"\n from distutils.sysconfig impor... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122327",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4766/"
] |
122,348 | <p>I have a command which includes an includegraphics command - I can pass an image to my command, and it will do some standard formatting for me before actually including the image. Some of the images that I'm including via this command are smaller than \textwidth, while some are larger. I'd like to scale the larger... | [
{
"answer_id": 123184,
"author": "ChrisN",
"author_id": 3853,
"author_profile": "https://Stackoverflow.com/users/3853",
"pm_score": 6,
"selected": true,
"text": "\\newlength{\\imgwidth}\n\\settowidth{\\imgwidth}{\\includegraphics{img}}\n \\usepackage{graphicx}\n\\usepackage{calc}\n\n\\ne... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1322/"
] |
122,362 | <p>If I am trying to determine the read speed of a drive, I can code a routine to write files to a filesystem and then read those files back. Unfortunately, this doesn't give an accurate read speed because Windows does disk read caching. </p>
<p>Is there a way to flush the disk read cache of a drive in C# / .Net (or p... | [
{
"answer_id": 128523,
"author": "Pretzel",
"author_id": 21244,
"author_profile": "https://Stackoverflow.com/users/21244",
"pm_score": 4,
"selected": false,
"text": " [DllImport(\"kernel32\", SetLastError=true)]\n static extern unsafe SafeFileHandle CreateFile(\n string File... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21244/"
] |
122,367 | <p>Can I simulate in C#/C++ code <kbd>Control</kbd>+<kbd>Alt</kbd>+<kbd>Delete</kbd> sequence in Vista?
When UAC enabled/disabled?
How it is done in XP?</p>
<p>Can you provide a code sample that works in Vista?</p>
| [
{
"answer_id": 47656659,
"author": "fdioff",
"author_id": 2027913,
"author_profile": "https://Stackoverflow.com/users/2027913",
"pm_score": 0,
"selected": false,
"text": "HDESK desktop = OpenDesktopW(L\"Winlogon\", 0, TRUE,\n DESKTOP_CREATEMENU | DESKTOP_CREATEWINDOW | DESKTOP_ENUMERA... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20257/"
] |
122,400 | <p>I'm not asking about general syntactic rules for file names. I mean gotchas that jump out of nowhere and bite you. For example, trying to name a file "COM<n>" on Windows?</p>
| [
{
"answer_id": 122427,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 3,
"selected": false,
"text": "gzip -9vf -- -mydashedfilename\n"
},
{
"answer_id": 122429,
"author": "Branan",
"author_id": 13894,
... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3474/"
] |
122,404 | <p>I used to often find myself coping a piece of code from a website/Word document etc only to discover that when doing Paste I would end up with the desired code plus some extra HTML tags/text, basically extra formatting information.</p>
<p>To get rid of that extra ballast I would paste the text to the Notepad and th... | [
{
"answer_id": 132761,
"author": "eugensk",
"author_id": 17495,
"author_profile": "https://Stackoverflow.com/users/17495",
"pm_score": 2,
"selected": false,
"text": "ctrl-escape,arrdown,enter,shift-f4,$,enter\nshift-insert,ctrl-insert,alt-backspace,\nf10,enter\n"
},
{
"answer_id"... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3241/"
] |
122,407 | <p>I have a method that's about ten lines of code. I want to create more methods that do exactly the same thing, except for a small calculation that's going to change one line of code. This is a perfect application for passing in a function pointer to replace that one line, but Java doesn't have function pointers. W... | [
{
"answer_id": 122414,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 9,
"selected": true,
"text": "String int interface StringFunction {\n int func(String param);\n}\n StringFunction public void takingMethod(StringFunctio... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1288/"
] |
122,422 | <p>Is there any way to change the default datatype when importing an Excel file into Access? (I'm using Access 2003, by the way).</p>
<p>I know that I sometimes have the freedom to assign any datatype to each column that is being imported, but that could only be when I'm importing non-Excel files. </p>
<p><strong>EDI... | [
{
"answer_id": 122504,
"author": "DK.",
"author_id": 16886,
"author_profile": "https://Stackoverflow.com/users/16886",
"pm_score": 3,
"selected": true,
"text": "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Jet\\4.0\\Engines\\Excel]\n\"TypeGuessRows\"=dword:00000000\n"
},
{
"answer_i... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122422",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3930756/"
] |
122,424 | <p>Right now, we are using Perforce for version control. It has the handy feature of a strictly increasing change number that we can use to refer to builds, eg "you'll get the bugfix if your build is at least 44902".</p>
<p>I'd like to switch over to using a distributed system (probably git) to make it easier to branc... | [
{
"answer_id": 122673,
"author": "webmat",
"author_id": 6349,
"author_profile": "https://Stackoverflow.com/users/6349",
"pm_score": 2,
"selected": false,
"text": "git tag git push git push --tags"
},
{
"answer_id": 123594,
"author": "CB Bailey",
"author_id": 19563,
"a... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14528/"
] |
122,445 | <p>I'm implementing charts using <a href="http://www.ziya.liquidrail.com/" rel="nofollow noreferrer">The Ziya Charts Gem</a>. Unfortunately, the documentation isn't really helpful or I haven't had enough coffee to figure out theming. I know I can set a theme using</p>
<pre><code>chart.add(:theme, 'whatever')
</code></... | [
{
"answer_id": 122491,
"author": "Matthias Winkelmann",
"author_id": 4494,
"author_profile": "https://Stackoverflow.com/users/4494",
"pm_score": 0,
"selected": false,
"text": "svn co svn://rubyforge.org/var/svn/liquidrail/samples/charting \n"
},
{
"answer_id": 122795,
"author... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4494/"
] |
122,451 | <p>My ClickOnce application uses a third party tool that requires the Visual C++ 2005 redistributable. The third party tool will not work if only the VC++ 2008 redistributable is installed. However, in Visual Studio 2008, the ClickOnce prerequisites do not allow a version to be specified for the VC++ redistributable; i... | [
{
"answer_id": 154033,
"author": "codeConcussion",
"author_id": 1321,
"author_profile": "https://Stackoverflow.com/users/1321",
"pm_score": 4,
"selected": true,
"text": "_ _ <String Name=\"DisplayName\">"
},
{
"answer_id": 25278441,
"author": "Der_Meister",
"author_id": 9... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122451",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19357/"
] |
122,463 | <p>I have an XML file that starts like this:</p>
<pre><code><Elements name="Entities" xmlns="XS-GenerationToolElements">
</code></pre>
<p>I'll have to open a lot of these files. Each of these have a different namespace but will only have one namespace at a time (I'll never find two namespaces defined in one xml... | [
{
"answer_id": 123005,
"author": "JeniT",
"author_id": 6739,
"author_profile": "https://Stackoverflow.com/users/6739",
"pm_score": 8,
"selected": true,
"text": "namespace:: /*/namespace::*[name()='']\n namespace:: namespace-uri() namespace-uri(/*)\n local-name() //*[local-name() = 'Eleme... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20335/"
] |
122,483 | <p>In crontab, I can use an asterisk to mean every value, or "*/2" to mean every even value.</p>
<p>Is there a way to specify every <strong>odd</strong> value? (Would something like "1+*/2" work?)</p>
| [
{
"answer_id": 122496,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 2,
"selected": false,
"text": "1-23/2\n"
},
{
"answer_id": 122499,
"author": "zigdon",
"author_id": 4913,
"author_profile": "https... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4465/"
] |
122,514 | <p>I have already posted something similar <a href="https://stackoverflow.com/questions/118051/c-grid-binding-not-update">here</a> but I would like to ask the question more general over here.</p>
<p>Have you try to serialize an object that implement INotifyPropertyChanged and to get it back from serialization and to b... | [
{
"answer_id": 179462,
"author": "Scott Weinstein",
"author_id": 25201,
"author_profile": "https://Stackoverflow.com/users/25201",
"pm_score": 3,
"selected": true,
"text": "DataContractSerializer [OnDeserialized]\nprivate void OnDeserialized(StreamingContext c) {}\n"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/122514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13913/"
] |
122,523 | <p>Howdy, I have a DataRow pulled out of a DataTable from a DataSet. I am accessing a column that is defined in SQL as a float datatype. I am trying to assign that value to a local variable (c# float datatype) but am getting an InvalidCastExecption </p>
<pre><code>DataRow exercise = _exerciseDataSet.Exercise.FindB... | [
{
"answer_id": 33133446,
"author": "dubrowgn",
"author_id": 4704196,
"author_profile": "https://Stackoverflow.com/users/4704196",
"pm_score": 0,
"selected": false,
"text": "exercise[\"DefaultAccelLimit\"] (double) (float) (double)(float)object_var"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/122523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1048/"
] |
122,571 | <p>Right now I'm making an extremely simple website- about 5 pages. Question is if it's overkill and worth the time to integrate some sort of database mapping solution or if it would be better to just use plain old JNDI. I'll have maybe a dozen things I need to read/write from the database. I guess I have a basic under... | [
{
"answer_id": 122888,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": "https://Stackoverflow.com/users/20654",
"pm_score": 5,
"selected": true,
"text": "+findById( id ): Employee\n+insert( Employee ) \n+update( Employee )\n+delete( Employee ) \n+findAll():List<Employee>\n se... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17614/"
] |
122,582 | <p>I'm using a lat/long SRID in my PostGIS database (-4326). I would like to find the nearest points to a given point in an efficient manner. I tried doing an</p>
<pre><code>ORDER BY ST_Distance(point, ST_GeomFromText(?,-4326))
</code></pre>
<p>which gives me ok results in the lower 48 states, but up in Alaska i... | [
{
"answer_id": 123166,
"author": "nathaniel",
"author_id": 11947,
"author_profile": "https://Stackoverflow.com/users/11947",
"pm_score": 2,
"selected": false,
"text": "ALTER function [dbo].[getCoordinateDistance]\n (\n @Latitude1 decimal(16,12),\n @Longitude1 decimal(16,12),\n ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3333/"
] |
122,593 | <p>Is it possible to throw an exception in a JSP without using scriptlet code?</p>
| [
{
"answer_id": 122608,
"author": "Swati",
"author_id": 12682,
"author_profile": "https://Stackoverflow.com/users/12682",
"pm_score": 0,
"selected": false,
"text": "<c:out value=\"${1/0}\" />\n <c:catch>"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/122593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2648/"
] |
122,607 | <p>I need to consume an external web service from my VB6 program. I want to be able to deploy my program without the SOAP toolkit, if possible, but that's not a requirement. I do not have the web service source and I didn't create it. It is a vendor-provided service.</p>
<p>So outside of the SOAP toolkit, what is the ... | [
{
"answer_id": 122645,
"author": "Martin",
"author_id": 1529,
"author_profile": "https://Stackoverflow.com/users/1529",
"pm_score": 2,
"selected": false,
"text": " set SoapObj = GetObject\n (\"soap:wsdl=http://www.xmethods.net/sd/TemperatureService.wsdl\")\n WScript.Echo \"Fair... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7565/"
] |
122,616 | <p>Is there a clean, preferably standard method of trimming leading and trailing whitespace from a string in C? I'd roll my own, but I would think this is a common problem with an equally common solution.</p>
| [
{
"answer_id": 122721,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 9,
"selected": true,
"text": "// Note: This function returns a pointer to a substring of the original string.\n// If the given string was allocated... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14463/"
] |
122,639 | <p>I have a temp table with the exact structure of a concrete table <code>T</code>. It was created like this: </p>
<pre><code>select top 0 * into #tmp from T
</code></pre>
<p>After processing and filling in content into <code>#tmp</code>, I want to copy the content back to <code>T</code> like this: </p>
<pre><code... | [
{
"answer_id": 122661,
"author": "Jasmine",
"author_id": 5255,
"author_profile": "https://Stackoverflow.com/users/5255",
"pm_score": 1,
"selected": false,
"text": "set identity_insert on\n"
},
{
"answer_id": 122699,
"author": "Cade Roux",
"author_id": 18255,
"author_p... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10088/"
] |
122,641 | <p>I have email addresses encoded with HTML character entities. Is there anything in .NET that can convert them to plain strings?</p>
| [
{
"answer_id": 122650,
"author": "Daniel Schierbeck",
"author_id": 20321,
"author_profile": "https://Stackoverflow.com/users/20321",
"pm_score": 3,
"selected": false,
"text": "Server.HtmlDecode < > Server.HtmlEncode"
},
{
"answer_id": 122658,
"author": "Quintin Robinson",
... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122641",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7883/"
] |
122,649 | <p>I'm looking for a simple, easy to understand algorithm to alphabetically sort an array of characters in C.</p>
| [
{
"answer_id": 122671,
"author": "dacracot",
"author_id": 13930,
"author_profile": "https://Stackoverflow.com/users/13930",
"pm_score": 0,
"selected": false,
"text": "int[] bubble(int a[])\n {\n for (int i = a.length; --i>=0; )\n {\n for (int j = 0; j<i; j++)\n ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122649",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6992/"
] |
122,690 | <p>I've been too lax with performing DB backups on our internal servers. </p>
<p>Is there a simple command line program that I can use to backup certain databases in SQL Server 2005? Or is there a simple VBScript? </p>
| [
{
"answer_id": 122705,
"author": "GateKiller",
"author_id": 383,
"author_profile": "https://Stackoverflow.com/users/383",
"pm_score": 3,
"selected": false,
"text": "Use Master\n\nDeclare @ToExecute VarChar(8000)\n\nSelect @ToExecute = Coalesce(@ToExecute + 'Backup Database ' + [Name] + '... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/338/"
] |
122,695 | <p>For example, I have an ASP.NET form that is called by another aspx:</p>
<pre><code>string url = "http://somewhere.com?P1=" + Request["param"];
Response.Write(url);
</code></pre>
<p>I want to do something like this:</p>
<pre><code>string url = "http://somewhere.com?P1=" + Request["param"];
string str = GetResponse... | [
{
"answer_id": 122707,
"author": "John Sheehan",
"author_id": 1786,
"author_profile": "https://Stackoverflow.com/users/1786",
"pm_score": 3,
"selected": false,
"text": "WebClient client = new WebClient();\nstring response = client.DownloadString(url);\n"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/122695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20682/"
] |
122,714 | <p>When I try the following lookup in my code:</p>
<pre><code>Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
return (DataSource) envCtx.lookup("jdbc/mydb");
</code></pre>
<p>I get the following exception:</p>
<pre><code>java.sql.SQLException: QueryResults: Unable... | [
{
"answer_id": 6264195,
"author": "Kirijav",
"author_id": 787306,
"author_profile": "https://Stackoverflow.com/users/787306",
"pm_score": 1,
"selected": false,
"text": "<mbean code=\"org.jboss.naming.NamingAlias\" name=\"jboss.jmx:alias=testDatasource\">\n <attribute name=\"FromName\"... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5917/"
] |
122,728 | <p>I have a dilemma, I'm using Java and Oracle and trying to keep queries on PL/SQL side. Everything is OK, until I have these complex queries which may and may not have conditions. <br></p>
<p>It's not hard in Java to put together <code>WHERE</code> clause with conditions, but it's not nice.
And on PL/SQL side I also... | [
{
"answer_id": 122759,
"author": "Kyle Burton",
"author_id": 19784,
"author_profile": "https://Stackoverflow.com/users/19784",
"pm_score": 1,
"selected": false,
"text": "String selectQuery =\n (new SelectQuery())\n .addColumns(t1Col1, t1Col2, t2Col1)\n .addJoin(SelectQuery.JoinType.IN... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122728",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13114/"
] |
122,736 | <p>I have a stored procedure that consists of a single select query used to insert into another table based on some minor math that is done to the arguments in the procedure. Can I generate the plan used for this query by referencing the procedure somehow, or do I have to copy and paste the query and create bind varia... | [
{
"answer_id": 122817,
"author": "Mike McAllister",
"author_id": 16247,
"author_profile": "https://Stackoverflow.com/users/16247",
"pm_score": 4,
"selected": true,
"text": "alter session set tracefile_identifier = 'something-unique'\nalter session set sql_trace = true;\nalter session set... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122736",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9940/"
] |
122,741 | <p>OK, I have been working on a random image selector and queue system (so you don't see the same images too often).</p>
<p>All was going swimmingly (as far as my crappy code does) <strong>until</strong> I got to the random bit. I wanted to test it, but how do you test for it? There is no <code>Debug.Assert(i.IsRandom)... | [
{
"answer_id": 122854,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 3,
"selected": false,
"text": "Item[] foo = …\nfor (int idx = foo.size(); idx > 1; --idx) {\n /* Pick random number from half-open interval [0, idx) */\n... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/832/"
] |
122,749 | <p>I've been creating snapins with the new MMC 3.0 classes and C#. I can't seem to find any examples of how to get rid of the "Console Root" node when creating the *.msc files. I looked through the examples in the SDK, but I can't seem to find anything for this.</p>
<p>I have seen other snapins that do what I want, bu... | [
{
"answer_id": 494402,
"author": "Mark",
"author_id": 37923,
"author_profile": "https://Stackoverflow.com/users/37923",
"pm_score": 4,
"selected": true,
"text": "New Window from Here"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/122749",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12829/"
] |
122,752 | <p>I've seen <a href="https://stackoverflow.com/questions/55622/best-tools-for-working-with-docbook-xml-documents">Best tools for working with DocBook XML documents</a>, but my question is slightly different. Which is the currently recommended formatting toolchain - as opposed to editing tool - for XML DocBook?</p>
<... | [
{
"answer_id": 122922,
"author": "Gustavo Carreno",
"author_id": 8167,
"author_profile": "https://Stackoverflow.com/users/8167",
"pm_score": 5,
"selected": true,
"text": "AC_INIT(Makefile.in)\n\nFOP=fop.sh\nHHC=hhc\nXSLTPROC=xsltproc\n\nAC_ARG_WITH(fop, [ --with-fop Where to find Apach... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15168/"
] |
122,763 | <p>I have a dict, that looks like this:</p>
<pre><code>{
'foo': {
'opt1': 1,
'opt2': 2,
},
'foo/bar': {
'opt3': 3,
'opt4': 4,
},
'foo/bar/baz': {
'opt5': 5,
'opt6': 6,
}
}
</code></pre>
<p>And I need to get it to look like:</p>
<... | [
{
"answer_id": 122785,
"author": "Armin Ronacher",
"author_id": 19990,
"author_profile": "https://Stackoverflow.com/users/19990",
"pm_score": 4,
"selected": true,
"text": "def nest(d):\n rv = {}\n for key, value in d.iteritems():\n node = rv\n for part in key.split('/... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18866/"
] |
122,767 | <p>How can I mount a floppy image file using cygwin. I would like to mount the image, copy a file to the mounted drive, and then unmount it from the command line. </p>
<p>I know you can use <a href="http://chitchat.at.infoseek.co.jp/vmware/vfd.html#beta" rel="nofollow noreferrer">Virtual Floppy Drive</a> in windows,... | [
{
"answer_id": 56815490,
"author": "fjardon",
"author_id": 657700,
"author_profile": "https://Stackoverflow.com/users/657700",
"pm_score": 1,
"selected": false,
"text": "./configure LIBS = -liconv\n"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/122767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/415/"
] |
122,772 | <p>When I try to display the contents of a LOB (large object) column in SQL*Plus, it is truncated. How do I display the whole thing?</p>
| [
{
"answer_id": 122776,
"author": "Anonymoose",
"author_id": 2391,
"author_profile": "https://Stackoverflow.com/users/2391",
"pm_score": 7,
"selected": true,
"text": "SQL> set long 30000\nSQL> show long\nlong 30000\n"
},
{
"answer_id": 7272671,
"author": "Kevin O'Donnell",
... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2391/"
] |
122,778 | <p>Under VS's external tools settings there is a "Use Output Window" check box that captures the tools command line output and dumps it to a VS tab.</p>
<p>The question is: <em>can I get the same processing for my program when I hit F5?</em></p>
<p><strong>Edit:</strong> FWIW I'm in C# but if that makes a difference ... | [
{
"answer_id": 123067,
"author": "Mark",
"author_id": 4405,
"author_profile": "https://Stackoverflow.com/users/4405",
"pm_score": 2,
"selected": true,
"text": "void my_printf(const char *format, ...)\n{\n char buf[2048];\n\n // get the arg list and format it into a string\n va_s... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122778",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1343/"
] |
122,781 | <p>I have a page in my desktop app, and I've implemented simple grab-and-pan. It works great.</p>
<p>When you are panning in this way and you are release, the page stops dead where you dropped it.</p>
<p>I'd like it to continue slightly with some momentum, and stop eventually. Rather like the 'throw' in the iPhone ... | [
{
"answer_id": 123067,
"author": "Mark",
"author_id": 4405,
"author_profile": "https://Stackoverflow.com/users/4405",
"pm_score": 2,
"selected": true,
"text": "void my_printf(const char *format, ...)\n{\n char buf[2048];\n\n // get the arg list and format it into a string\n va_s... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15721/"
] |
122,782 | <p>I'm looking to have two versions of BOOST compiled into a project at the same time. Ideally they should be usable along these lines:</p>
<pre><code>boost_1_36_0::boost::shared_ptr<SomeClass> someClass = new SomeClass();
boost_1_35_0::boost::regex expression("[0-9]", boost_1_35_0::boost::regex_constants::basi... | [
{
"answer_id": 122843,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 1,
"selected": false,
"text": "objcopy"
},
{
"answer_id": 123233,
"author": "Eclipse",
"author_id": 8701,
"author_profile": "htt... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8701/"
] |
122,799 | <p>There is no summary available of the big O notation for operations on the most common data structures including arrays, linked lists, hash tables etc.</p>
| [
{
"answer_id": 17410009,
"author": "Mobiletainment",
"author_id": 1265240,
"author_profile": "https://Stackoverflow.com/users/1265240",
"pm_score": 6,
"selected": false,
"text": "+----------------------+----------+------------+----------+--------------+\n| | Insert ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/340748/"
] |
122,815 | <p>I'm looking for a groovy equivalent on .NET
<a href="http://boo.codehaus.org/" rel="nofollow noreferrer">http://boo.codehaus.org/</a></p>
<p>So far Boo looks interesting, but it is statically typed, yet does include some of the metaprogramming features I'd be looking for.</p>
<p>Can anyone comment on the experienc... | [
{
"answer_id": 17410009,
"author": "Mobiletainment",
"author_id": 1265240,
"author_profile": "https://Stackoverflow.com/users/1265240",
"pm_score": 6,
"selected": false,
"text": "+----------------------+----------+------------+----------+--------------+\n| | Insert ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122815",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1129162/"
] |
122,821 | <p>I've got a Sharepoint WebPart which loads a custom User Control. The user control contains a Repeater which in turn contains several LinkButtons. </p>
<p>In the RenderContent call in the Webpart I've got some code to add event handlers:</p>
<pre><code> ArrayList nextPages = new ArrayList();
//popula... | [
{
"answer_id": 122948,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 4,
"selected": true,
"text": "protected override void OnLoad(EventArge e)\n { base.OnLoad(e);\n EnsureChildControls();\n\n var linkButtons = from c... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21299/"
] |
122,826 | <p>Suppose you have a fairly large (~2.2 MLOC), fairly old (started more than 10 years ago) Windows desktop application in C/C++. About 10% of modules are external and don't have sources, only debug symbols.</p>
<p>How would you go about reducing application's memory footprint in half? At least, what would you do to f... | [
{
"answer_id": 123054,
"author": "Doug T.",
"author_id": 8123,
"author_profile": "https://Stackoverflow.com/users/8123",
"pm_score": 0,
"selected": false,
"text": "Object arrayOfObjs[MAX_THAT_WILL_EVER_BE_USED];\n"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/122826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20310/"
] |
122,834 | <p>Suppose there are two scripts Requester.php and Provider.php, and Requester requires processing from Provider and makes an http request to it (Provider.php?data="data"). In this situation, Provider quickly finds the answer, but to maintain the system must perform various updates throughout the database. Is there a w... | [
{
"answer_id": 122966,
"author": "Michał Niedźwiedzki",
"author_id": 2169,
"author_profile": "https://Stackoverflow.com/users/2169",
"pm_score": 0,
"selected": false,
"text": "ProviderCore ProviderInterface ProviderInterface ProviderCore ProviderCore"
},
{
"answer_id": 122997,
... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8880/"
] |
122,853 | <p>I want to get the size of an http:/.../file before I download it. The file can be a webpage, image, or a media file. Can this be done with HTTP headers? How do I download just the file HTTP header?</p>
| [
{
"answer_id": 122874,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 5,
"selected": false,
"text": "Content-Length HEAD GET HttpWebRequest req = (HttpWebRequest)WebRequest.Create(\"http://example.com/\");\nreq.Method ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
122,855 | <p>Anyone know if it is possible to write an app that uses the Java Sound API on a system that doesn't actually have a hardware sound device?</p>
<p>I have some code I've written based on the API that manipulates some audio and plays the result but I am now trying to run this in a server environment, where the audio w... | [
{
"answer_id": 122874,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 5,
"selected": false,
"text": "Content-Length HEAD GET HttpWebRequest req = (HttpWebRequest)WebRequest.Create(\"http://example.com/\");\nreq.Method ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8063/"
] |
122,856 | <p>Is there a built in dll that will give me a list of links from a string. I want to send in a string with valid html and have it parse all the links. I seem to remember there being something built into either .net or an unmanaged library.</p>
<p>I found a couple open source projects that looked promising but I thoug... | [
{
"answer_id": 124524,
"author": "Jacob Proffitt",
"author_id": 1336,
"author_profile": "https://Stackoverflow.com/users/1336",
"pm_score": 3,
"selected": false,
"text": "<a> List<Uri> findUris(string message)\n{\n string anchorPattern = \"<a[\\\\s]+[^>]*?href[\\\\s]?=[\\\\s\\\\\\\"\\... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1514/"
] |
122,865 | <p>I have a <code>div</code> and an <code>iframe</code> on the page
the <code>div</code> has</p>
<pre><code>z-index: 0;
</code></pre>
<p>the <code>iframe</code> has its content with a popup having a <code>z-index</code> of 1000</p>
<pre><code>z-index: 1000;
</code></pre>
<p>However, the <code>div</code> still overs... | [
{
"answer_id": 123199,
"author": "Rich Adams",
"author_id": 10018,
"author_profile": "https://Stackoverflow.com/users/10018",
"pm_score": 1,
"selected": false,
"text": "position: absolute;"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/122865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2486/"
] |
122,877 | <p>So I've got some C code:</p>
<pre><code>#include <stdio.h>
#include <string.h>
/* putting one of the "char*"s here causes a segfault */
void main() {
char* path = "/temp";
char* temp;
strcpy(temp, path);
}
</code></pre>
<p>This compiles, runs, and behaves as it looks. However, if one or both of ... | [
{
"answer_id": 122885,
"author": "terminus",
"author_id": 9232,
"author_profile": "https://Stackoverflow.com/users/9232",
"pm_score": 3,
"selected": false,
"text": "temp = (char *)malloc(TEMP_SIZE);\n"
},
{
"answer_id": 122903,
"author": "Martin York",
"author_id": 14065,... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122877",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12926/"
] |
122,882 | <p>What is the proper technique to have <strong>ThreadA</strong> signal <strong>ThreadB</strong> of some event, without having <strong>ThreadB</strong> sit blocked waiting for an event to happen?</p>
<p>i have a background thread that will be filling a shared List<T>. i'm trying to find a way to asynchronously s... | [
{
"answer_id": 123205,
"author": "Leandro Oliveira",
"author_id": 16610,
"author_profile": "https://Stackoverflow.com/users/16610",
"pm_score": 1,
"selected": false,
"text": "AutoResetEvent ev = new AutoResetEvent(false);\n...\nif(ev.WaitOne(0, false)) {\n // event happened\n}\nelse {\n... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
122,883 | <p>Could someone please demystify interfaces for me or point me to some good examples? I keep seeing interfaces popup here and there, but I haven't ever really been exposed to good explanations of interfaces or when to use them.</p>
<p>I am talking about interfaces in a context of interfaces vs. abstract classes.</p>
| [
{
"answer_id": 122941,
"author": "Bob King",
"author_id": 6897,
"author_profile": "https://Stackoverflow.com/users/6897",
"pm_score": 5,
"selected": false,
"text": "Public Interface IRollOver\n Sub RollOver()\nEnd Interface\n\nPublic Class Dog Implements IRollOver\n Public Sub Roll... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16820/"
] |
122,902 | <p>As someone who is only barely proficient in javascript, is jQuery right for me? Is there a better library to use? I've seen lots of posts related to jQuery and it seems to be the most effective way to incorporate javascript into ASP.NET applications.</p>
<p>I've been out to <a href="http://jquery.com/" rel="noref... | [
{
"answer_id": 3312695,
"author": "Nash",
"author_id": 363842,
"author_profile": "https://Stackoverflow.com/users/363842",
"pm_score": 0,
"selected": false,
"text": " Many plug-Ins.\n\n Only 15KB on the client Side.\n\n Community is pretty huge to guide you.\n\n Easy to work with Ser... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19251/"
] |
122,909 | <p>I have a file. I want to get its contents into a blob column in my oracle database or into a blob variable in my PL/SQL program. What is the best way to do that?</p>
| [
{
"answer_id": 123017,
"author": "cagcowboy",
"author_id": 19629,
"author_profile": "https://Stackoverflow.com/users/19629",
"pm_score": 0,
"selected": false,
"text": "// Need as OracleConnection in mConnection\n\n// Set an EMPTY_BLOB()\nString update = \"UPDATE tablename\"+\n ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13693/"
] |
122,914 | <p>Does anyone know any implementation of a templated cache of objects?</p>
<ul>
<li>You use a key to find object (the same as in std::map<>)</li>
<li>You specify a maximum number of objects that can be in the cache at the same time</li>
<li>There are facilities to create an object not found in the cache</li>
<li>T... | [
{
"answer_id": 35187400,
"author": "Straw1239",
"author_id": 3482801,
"author_profile": "https://Stackoverflow.com/users/3482801",
"pm_score": 1,
"selected": false,
"text": "template<typename K, typename V, typename Map = std::unordered_map<K, typename std::list<K>::iterator>>\nclass LRU... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18800/"
] |
122,919 | <p>I have this bit of javascript written with jQuery 1.2.5. It's contained inside the main function() of a plugin that I wrote. The plugin is a horizontal gallery scroller very similar to jCarousel. It does alot of auto calculating of widths and determines how many to scroll based on that and the size of the images,... | [
{
"answer_id": 123091,
"author": "Jim",
"author_id": 8427,
"author_profile": "https://Stackoverflow.com/users/8427",
"pm_score": 4,
"selected": true,
"text": "var busy = false;\n$(\"...\").onclick(function() {\n if (busy) return false;\n busy = true;\n $(\"...\").animate(..., ..... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122919",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13611/"
] |
122,920 | <p>I'd like to line up items approximately like this:</p>
<pre><code>item1 item2 i3 longitemname
i4 longitemname2 anotheritem i5
</code></pre>
<p>Basically items of varying length arranged in a table like structure. The tricky part is the container for these can vary in size and I'... | [
{
"answer_id": 123405,
"author": "cllpse",
"author_id": 20946,
"author_profile": "https://Stackoverflow.com/users/20946",
"pm_score": 0,
"selected": false,
"text": "<ul style=\"float: left;\">\n <li>Short</li>\n <li>Loooong</li>\n <li>Even longer</li>\n</ul>\n<ul style=\"float: ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13055/"
] |
122,942 | <p>I have a table <code>UserAliases</code> (<code>UserId, Alias</code>) with multiple aliases per user. I need to query it and return all aliases for a given user, the trick is to return them all in one column.</p>
<p>Example:</p>
<pre><code>UserId/Alias
1/MrX
1/MrY
1/MrA
2/Abc
2/Xyz
</code></pre>
<p>I wan... | [
{
"answer_id": 122980,
"author": "CodeRedick",
"author_id": 17145,
"author_profile": "https://Stackoverflow.com/users/17145",
"pm_score": 0,
"selected": false,
"text": "declare @result varchar(max)\n\n--must \"initialize\" result for this to work\nselect @result = ''\n\nselect @result = ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122942",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3661/"
] |
122,951 | <p>I received the following exception when I was using the Regex class with the regular expression: (?'named a'asdf)</p>
<pre><code>System.ArgumentException: parsing \"(?'named a'asdf)\" - Invalid group name: Group names must begin with a word character.
</code></pre>
<p>What is the problem with my regular expression... | [
{
"answer_id": 145351,
"author": "hurst",
"author_id": 10991,
"author_profile": "https://Stackoverflow.com/users/10991",
"pm_score": 2,
"selected": false,
"text": "(?<name> subexpression)"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/122951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12834/"
] |
122,982 | <p>Which checksum algorithm can you recommend in the following use case?</p>
<p>I want to generate checksums of small JPEG files (~8 kB each) to check if the content changed. Using the filesystem's <em>date modified</em> is unfortunately not an option.<br/>
The checksum <strong>need not</strong> be cryptographically s... | [
{
"answer_id": 5126944,
"author": "Engin",
"author_id": 264152,
"author_profile": "https://Stackoverflow.com/users/264152",
"pm_score": 3,
"selected": false,
"text": "static const uint32_t crctab[] = {\n 0x0,\n 0x04c11db7, 0x09823b6e, 0x0d4326d9, 0x130476dc, 0x17c56b6b,\n 0x1a86... | 2008/09/23 | [
"https://Stackoverflow.com/questions/122982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4308/"
] |
123,002 | <p>So I've got maybe 10 objects each of which has 1-3 dependencies (which I think is ok as far as loose coupling is concerned) but also some settings that can be used to define behavior (timeout, window size, etc).</p>
<p>Now before I started using an Inversion of Control container I would have created a factory and m... | [
{
"answer_id": 142182,
"author": "Lee",
"author_id": 13943,
"author_profile": "https://Stackoverflow.com/users/13943",
"pm_score": 4,
"selected": true,
"text": "Number of constructor arguments Number of classes\n 0 57\n 1 ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123002",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5056/"
] |
123,003 | <p>I need to determine the ID of a form field from within an action handler. The field is a part of a included facelets component and so the form will vary.</p>
<p><strong>included.xhtml</strong> </p>
<pre><code><ui:component>
<h:inputText id="contained_field"/>
<h:commandButton actionListener="#{b... | [
{
"answer_id": 266221,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "public void update(javax.faces.event.ActionEvent ac) {\n javax.faces.component.UIComponent myCommand = ac.getComponent( )... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4893/"
] |
123,007 | <p>I can't quite figure this out. Microsoft Access 2000, on the report total section I have totals for three columns that are just numbers. These <code>=Sum[(ThisColumn1)], 2, 3</code>, etc and those grand totls all work fine. </p>
<p>I want to have another column that says <code>=Sum([ThisColumn1])+Sum([ThisColumn2]... | [
{
"answer_id": 123022,
"author": "Gordon Bell",
"author_id": 16473,
"author_profile": "https://Stackoverflow.com/users/16473",
"pm_score": 3,
"selected": true,
"text": "=[GrandTotal1] + [GrandTotal2] + [GrandTotal3]\n =Sum(Nz([ThisColumn1], 0))\n"
},
{
"answer_id": 123032,
"a... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
123,057 | <p>I have been having some issues with LINQ-To-SQL around memory usage. I'm using it in a Windows Service to do some processing, and I'm looping through a large amount of data that I'm pulling back from the context. Yes - I know I could do this with a stored procedure but there are reasons why that would be a less th... | [
{
"answer_id": 123081,
"author": "Amy B",
"author_id": 8155,
"author_profile": "https://Stackoverflow.com/users/8155",
"pm_score": 5,
"selected": false,
"text": "IDisposable Dispose using using(DataContext myDC = new DataContext)\n{\n // Do stuff\n} //DataContext is disposed\n"
},
... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/146/"
] |
123,075 | <p>How to do paging in Pervasive SQL (version 9.1)? I need to do something similar like:</p>
<pre><code>//MySQL
SELECT foo FROM table LIMIT 10, 10
</code></pre>
<p>But I can't find a way to define offset.</p>
| [
{
"answer_id": 123168,
"author": "Jasmine",
"author_id": 5255,
"author_profile": "https://Stackoverflow.com/users/5255",
"pm_score": 0,
"selected": false,
"text": "create table #keys (rownum int identity(1,1), key varchar(10))\n\ninsert #keys (key)\nselect TOP 89 key from myTable ORDER B... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5468/"
] |
123,078 | <p>On destruction of a restful resource, I want to guarantee a few things before I allow a destroy operation to continue? Basically, I want the ability to stop the destroy operation if I note that doing so would place the database in a invalid state? There are no validation callbacks on a destroy operation, so how does... | [
{
"answer_id": 123190,
"author": "Airsource Ltd",
"author_id": 18017,
"author_profile": "https://Stackoverflow.com/users/18017",
"pm_score": 7,
"selected": true,
"text": "class Booking < ActiveRecord::Base\n has_many :booking_payments\n ....\n def destroy\n raise \"Cannot delete ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21317/"
] |
123,080 | <p>I know that this is somewhat subjective, but I wonder if there is a generally accepted standard for naming assemblies which contain some "core" functions.</p>
<p>Let's say you got a larger Projects, with Assemblies like</p>
<ul>
<li>Company.Product.WebControls.dll</li>
<li>Company.Product.Net.dll</li>
<li>Company.... | [
{
"answer_id": 123150,
"author": "Quintin Robinson",
"author_id": 12707,
"author_profile": "https://Stackoverflow.com/users/12707",
"pm_score": 2,
"selected": false,
"text": "Root CompanyName.Root\n SomethingMeaningfulToMe.Root\n"
},
{
"answer_id": 146578,
"author": "Seb Nils... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91/"
] |
123,088 | <p><strong>C#6 Update</strong></p>
<p>In <a href="https://msdn.microsoft.com/en-us/magazine/dn802602.aspx" rel="nofollow noreferrer">C#6 <code>?.</code> is now a language feature</a>:</p>
<pre><code>// C#1-5
propertyValue1 = myObject != null ? myObject.StringProperty : null;
// C#6
propertyValue1 = myObject?.String... | [
{
"answer_id": 123140,
"author": "Swati",
"author_id": 12682,
"author_profile": "https://Stackoverflow.com/users/12682",
"pm_score": 0,
"selected": false,
"text": "if( obj1.NullCompare( obj2, (x,y) => x.Property == y.Property ) \n"
},
{
"answer_id": 123496,
"author": "James C... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/905/"
] |
123,105 | <p>Is there a window manager for <a href="http://en.wikipedia.org/wiki/Microsoft_Visual_Studio#Visual_Studio_2008" rel="nofollow noreferrer">Visual Studio 2008</a> like <a href="http://www.codeplex.com/VSWindowManager" rel="nofollow noreferrer">this one</a>. I really liked it, and that's all I used in <a href... | [
{
"answer_id": 338016,
"author": "pettys",
"author_id": 27846,
"author_profile": "https://Stackoverflow.com/users/27846",
"pm_score": 1,
"selected": false,
"text": "Sub DualMonitorConfiguration_Save()\n SaveWindowConfiguration(\"Dual Monitor Layout\")\nEnd Sub\n\nSub DualMonitorConfig... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14642/"
] |
123,111 | <p>I recently moved my website to a shared hosting solution at <a href="http://asmallorange.com" rel="nofollow noreferrer">asmallorange.com</a>, but I had to set my domain to use their provided nameservers in order for the site to properly resolve. I was determined to keep control of the domain's DNS but I could find ... | [
{
"answer_id": 123133,
"author": "cjm",
"author_id": 8355,
"author_profile": "https://Stackoverflow.com/users/8355",
"pm_score": 4,
"selected": true,
"text": "Host: topleveldomain.com"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/123111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1339/"
] |
123,114 | <p>So I have logical entities (person, country, etc.), GUI elements / controls, data and navigation controllers / managers, then things like quad-trees and timers, and I always struggle with cleanly separating these things into logical namespaces.</p>
<p>I usually have something like this:</p>
<ul>
<li>Leviathan.GUI.... | [
{
"answer_id": 123138,
"author": "Lou Franco",
"author_id": 3937,
"author_profile": "https://Stackoverflow.com/users/3937",
"pm_score": 2,
"selected": false,
"text": "Company.Product.Tier.Sub.Sub\n Company.Product.LogicalFeatureGrouping\n Company.Product.Addon\n Company.Product.LogicalFe... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13466/"
] |
123,127 | <p>I am running my junit tests via ant and they are running substantially slower than via the IDE. My ant call is:</p>
<pre><code> <junit fork="yes" forkmode="once" printsummary="off">
<classpath refid="test.classpath"/>
<formatter type="brief" usefile="false"/>
<batchte... | [
{
"answer_id": 140974,
"author": "bsanders",
"author_id": 22200,
"author_profile": "https://Stackoverflow.com/users/22200",
"pm_score": 2,
"selected": false,
"text": "<jvmarg> -Xmx"
},
{
"answer_id": 377899,
"author": "Risser",
"author_id": 7773,
"author_profile": "ht... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6180/"
] |
123,144 | <p>I have a custom server control that loads data from a web service into a GridView. Works fine on my page. I want to be able to click on a row and pop a popupcontrol with more detail on the clicked row. I am using the client side events of the DevExpress gridview to handle the onclick. And from JavaScript I am cal... | [
{
"answer_id": 140974,
"author": "bsanders",
"author_id": 22200,
"author_profile": "https://Stackoverflow.com/users/22200",
"pm_score": 2,
"selected": false,
"text": "<jvmarg> -Xmx"
},
{
"answer_id": 377899,
"author": "Risser",
"author_id": 7773,
"author_profile": "ht... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20581/"
] |
123,154 | <p>I'm working on a .NET WinForms app that needs to print a FEDEX shipping label. As part of the FedEx api, I can get raw label data for the printer. </p>
<p>I just don't know how to send that data to the printer through .NET (I'm using C#). To be clear, the data is already pre formatted into ZPL (Zebra printer lang... | [
{
"answer_id": 123200,
"author": "Austin Salonen",
"author_id": 4068,
"author_profile": "https://Stackoverflow.com/users/4068",
"pm_score": 1,
"selected": false,
"text": "private void SendPrintJob(string job)\n{\n TcpClient client = null;\n NetworkStream ns = null;\n byte[] byte... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123154",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21325/"
] |
123,159 | <p>Has anyone done this? Basically, I want to use the html by keeping basic tags such as h1, h2, em, etc; clean all non http addresses in the img and a tags; and HTMLEncode every other tag. </p>
<p>I'm stuck at the HTML Encoding part. I know to remove a node you do a "node.ParentNode.RemoveChild(node);" where node ... | [
{
"answer_id": 123522,
"author": "Derek Slager",
"author_id": 18636,
"author_profile": "https://Stackoverflow.com/users/18636",
"pm_score": 1,
"selected": false,
"text": "node.AppendChild(new HtmlTextNode { Text = HttpUtility.HtmlEncode(nodeToDelete.OuterHtml) });\n"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/123159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10352/"
] |
123,181 | <p>Is there a way to test if an object is a dictionary?</p>
<p>In a method I'm trying to get a value from a selected item in a list box. In some circumstances, the list box might be bound to a dictionary, but this isn't known at compile time.</p>
<p>I would like to do something similar to this:</p>
<pre><code>if (l... | [
{
"answer_id": 123191,
"author": "Guvante",
"author_id": 16800,
"author_profile": "https://Stackoverflow.com/users/16800",
"pm_score": 4,
"selected": false,
"text": "if (listBox.ItemsSource is IDictionary)\n{\n DictionaryEntry pair = (DictionaryEntry)listBox.SelectedItem;\n object ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12999/"
] |
123,188 | <p>In C# when I am done entering the fields of a snippet, I can hit Enter to get to the next line. What is the equivalent Key in VB?</p>
<p>Edit: I prefer not to use the mouse.</p>
| [
{
"answer_id": 123390,
"author": "Nescio",
"author_id": 14484,
"author_profile": "https://Stackoverflow.com/users/14484",
"pm_score": 3,
"selected": true,
"text": "private _$PropertyName$ As $PropertyType$\nPublic WriteOnly Property $PropertyName$() As $PropertyType$\n Set(ByVal valu... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14484/"
] |
123,198 | <p>How do I copy a file in Python?</p>
| [
{
"answer_id": 123212,
"author": "Swati",
"author_id": 12682,
"author_profile": "https://Stackoverflow.com/users/12682",
"pm_score": 13,
"selected": true,
"text": "shutil import shutil\n\nshutil.copyfile(src, dst)\n\n# 2nd option\nshutil.copy(src, dst) # dst can be a folder; use shutil.... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17693/"
] |
123,216 | <p>I can't make td "Date" to have fixed height. If there is less in Body section td Date element is bigger than it should be - even if I set Date height to 10% and Body height to 90%. Any suggestions?</p>
<pre><code><tr>
<td class="Author" rowspan="2">
<a href="#">Claude</a><br />
... | [
{
"answer_id": 123245,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 0,
"selected": false,
"text": ".Date {\n height: 50px;\n}\n"
},
{
"answer_id": 123248,
"author": "roryf",
"author_id": 270,
"... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123216",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3182/"
] |
123,235 | <p>I was trying to remove all the lines of a file except the last line but the following command did not work, although file.txt is not empty.</p>
<pre><code>$cat file.txt |tail -1 > file.txt
$cat file.txt
</code></pre>
<p>Why is it so?</p>
| [
{
"answer_id": 123249,
"author": "Lewis Baumstark",
"author_id": 12000,
"author_profile": "https://Stackoverflow.com/users/12000",
"pm_score": 0,
"selected": false,
"text": "$cat file.txt | tail -1 > anotherfile.txt\n"
},
{
"answer_id": 123260,
"author": "Charles Duffy",
... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
123,236 | <p>We have a customer requesting data in XML format. Normally this is not required as we usually just hand off an Access database or csv files and that is sufficient. However in this case I need to automate the exporting of proper XML from a dozen tables.</p>
<p>If I can do it out of SQL Server 2005, that would be pre... | [
{
"answer_id": 123282,
"author": "ConroyP",
"author_id": 2287,
"author_profile": "https://Stackoverflow.com/users/2287",
"pm_score": 0,
"selected": false,
"text": "Const acExportTable = 0\n\nSet objAccess = CreateObject(\"Access.Application\")\nobjAccess.OpenCurrentDatabase \"C:\\Scripts... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8345/"
] |
123,239 | <p>This is a sample (edited slightly, but you get the idea) of my XML file:</p>
<pre><code><HostCollection>
<ApplicationInfo />
<Hosts>
<Host>
<Name>Test</Name>
<IP>192.168.1.1</IP>
</Host>
<Host>
<Name>Test</Name>... | [
{
"answer_id": 123275,
"author": "kitsune",
"author_id": 13466,
"author_profile": "https://Stackoverflow.com/users/13466",
"pm_score": 3,
"selected": true,
"text": "Dim doc As XmlDocument = New XmlDocument()\ndoc.Load(\"hosts.xml\")\nDim nodeList as XmlNodeList\nnodeList = doc.SelectNode... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5473/"
] |
123,263 | <p>I'm reading text from a flat file in c# and need to test whether certain values are dates. They could be in either YYYYMMDD format or MM/DD/YY format. What is the simplest way to do this in .Net?</p>
| [
{
"answer_id": 123294,
"author": "Paul van Brenk",
"author_id": 1837197,
"author_profile": "https://Stackoverflow.com/users/1837197",
"pm_score": 6,
"selected": true,
"text": "string[] formats = {\"yyyyMMdd\", \"MM/dd/yy\"};\nvar Result = DateTime.ParseExact(input, formats, CultureInfo.C... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123263",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20625/"
] |
123,323 | <p>How many messages does the queue for a standard window hold? What happens when the queue overflows?</p>
<p>The documentation for <code>GetMessage</code> and relatives doesn't say anything about this, and <code>PeekMessage</code> only gives you a yes/no for certain classes of messages, not a message count.</p>
<p><... | [
{
"answer_id": 123331,
"author": "Corey Trager",
"author_id": 9328,
"author_profile": "https://Stackoverflow.com/users/9328",
"pm_score": 5,
"selected": true,
"text": "PostMessage"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/123323",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1319/"
] |
123,334 | <p>NOTE: I am not set on using VI, it is just the first thing that came to mind that might be able to do what I need. Feel free to suggest any other program.</p>
<p>I have a form with nearly 100 fields that I would like to auto-fill with PHP. I know how to do the autofill, but I would like to avoid manually adding the... | [
{
"answer_id": 123373,
"author": "Zsolt Botykai",
"author_id": 11621,
"author_profile": "https://Stackoverflow.com/users/11621",
"pm_score": 2,
"selected": false,
"text": ":%s:\\(<input name=\"\\([^\"]\\+\\)\" id=\"[^\"]\\+\" type=\"text\" \\)/>:\\1value=\"<?php echo $data ['\\2']; ?>\" ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16292/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.