qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
386,713 | <p>I'm trying to make two XML attributes to be mutually exclusive. How can one create an XSD schema to capture this kind of scenario?</p>
<p>I would like to have one of these</p>
<pre><code><elem value="1" />
<elem ref="something else" />
</code></pre>
<p>but not</p>
<pre><code><elem value="1" ref="s... | [
{
"answer_id": 386717,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 3,
"selected": false,
"text": "<elem type=\"xxx\"> \n<elem ref=\"yyy\">\n"
},
{
"answer_id": 386732,
"author": "Daniel Silveira",
"author_i... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21704/"
] |
386,715 | <p>Our 32-Bit application launches Windows LNK files (Shell Links) via ShellExecute. When it tries to "launch" a link to a 64-Bit binary (such as the "Internet Explorer (64-Bit)" shortcut in Start Menu) it always ends up launching the 32-Bit binary. Internally, ShellExecute incorrectly resolves the link target: There's... | [
{
"answer_id": 1949087,
"author": "Andrew Sandoval",
"author_id": 205810,
"author_profile": "https://Stackoverflow.com/users/205810",
"pm_score": 0,
"selected": false,
"text": "#include <windows.h>\n#include <ShellAPI.h>\n#include <stdio.h>\n\nint main(int iArgc, const char *pArgv[])\n{\... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
386,728 | <p>I am using path-based authentication with svnserve, but it is giving me permission errors if I specify a repository. However, if I just specify a path then it authenticates.</p>
<p>In my authz file, if I do this it works:</p>
<pre><code>[/my/path]
my_username = r
</code></pre>
<p>If I do this, it does not work:</... | [
{
"answer_id": 386789,
"author": "LizB",
"author_id": 13616,
"author_profile": "https://Stackoverflow.com/users/13616",
"pm_score": 0,
"selected": false,
"text": "[bizlib:/branches/2.0.x]\n dev_login = r\n"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/386728",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
386,731 | <p>I would like to get the absolute position of an element in relation to the window/root element when it is double clicked. The element's relative position within it's parent is all I can seem to get to, and what I'm trying to get to is the point relative to the window. I've seen solutions of how to get a the point o... | [
{
"answer_id": 387034,
"author": "Oleg",
"author_id": 47856,
"author_profile": "https://Stackoverflow.com/users/47856",
"pm_score": -1,
"selected": false,
"text": "Mouse.GetPosition(IInputElement relativeTo)"
},
{
"answer_id": 387681,
"author": "Robert Macnee",
"author_id... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42858/"
] |
386,753 | <p>I am trying to talk to a device using python. I have been handed a tuple of bytes which contains the storage information. How can I convert the data into the correct values:</p>
<p>response = (0, 0, 117, 143, 6)</p>
<p>The first 4 values are a 32-bit int telling me how many bytes have been used and the last valu... | [
{
"answer_id": 386763,
"author": "Jay",
"author_id": 20840,
"author_profile": "https://Stackoverflow.com/users/20840",
"pm_score": 5,
"selected": true,
"text": "import struct\n\nresponse = (0, 0, 117, 143, 6)\nstruct.unpack(\">I\", ''.join([chr(x) for x in response[:-1]]))\n"
},
{
... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24459/"
] |
386,762 | <p>I have a class called DatabaseHelper that wraps a DbConnection. What's the proper way to setup this class for a using statement? I have implemented IDisposible, but I'm not sure when and where I should be calling Connection.Close() or Connection.Dispose().</p>
<p>When I simply call Connection.Dispose() in my own Di... | [
{
"answer_id": 386772,
"author": "Neil Barnwell",
"author_id": 26414,
"author_profile": "https://Stackoverflow.com/users/26414",
"pm_score": 4,
"selected": true,
"text": "public void Dispose()\n{\n Dispose(true);\n GC.SuppressFinalize(this);\n}\n\nprotected virtual void Dispose(boo... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31516/"
] |
386,783 | <p>I don't know why this method returns a blank string:</p>
<pre><code>- (NSString *)installedGitLocation {
NSString *launchPath = @"/usr/bin/which";
// Set up the task
NSTask *task = [[NSTask alloc] init];
[task setLaunchPath:launchPath];
NSArray *args = [NSArray arrayWithObject:@"git"];
[tas... | [
{
"answer_id": 386813,
"author": "codelogic",
"author_id": 43427,
"author_profile": "https://Stackoverflow.com/users/43427",
"pm_score": 2,
"selected": false,
"text": "which"
},
{
"answer_id": 387997,
"author": "Chris Hanson",
"author_id": 714,
"author_profile": "http... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41116/"
] |
386,792 | <p>In Java 1.4 you could use ((SunToolkit) Toolkit.getDefaultToolkit()).getNativeWindowHandleFromComponent() but that was removed.</p>
<p>It looks like you have to use JNI to do this now. Do you have the JNI code and sample Java code to do this?</p>
<p>I need this to call the Win32 GetWindowLong and SetWindowLong API... | [
{
"answer_id": 389734,
"author": "RealHowTo",
"author_id": 25122,
"author_profile": "https://Stackoverflow.com/users/25122",
"pm_score": 4,
"selected": false,
"text": "JNIEXPORT jint JNICALL Java_JavaHowTo_getHwnd\n (JNIEnv *env, jclass obj, jstring title){\n HWND hwnd = NULL;\n cons... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35264/"
] |
386,795 | <p>SQL Server 2005</p>
<p>I have 10 million rows in DB, and run a select (with lots of "where" and joints.. pretty complex). The results are presented in grid (think goolge results) and because of that, the user cannot possibly use more then 1000 results. </p>
<p>So I limit my SQL with a TOP 1000.</p>
<p><strong>Pro... | [
{
"answer_id": 386805,
"author": "Neil Barnwell",
"author_id": 26414,
"author_profile": "https://Stackoverflow.com/users/26414",
"pm_score": 3,
"selected": false,
"text": "-- Get the count\nselect count(*) from table where [criteria]\n\n-- Get the data\nselect [cols] from table where [cr... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386795",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/350/"
] |
386,826 | <p>This happens when compiling for Any Cpu as well as compiling to x86. Sections of the GUI doesn't redraw unless it's resized, for instance if the main form is maximized some of the controls don't resize with it, and others have sections that don't redraw and displays the what was previously there.</p>
<p>This works... | [
{
"answer_id": 555142,
"author": "Bids",
"author_id": 35996,
"author_profile": "https://Stackoverflow.com/users/35996",
"pm_score": 5,
"selected": true,
"text": "WM_SIZE"
},
{
"answer_id": 557418,
"author": "stusmith",
"author_id": 6604,
"author_profile": "https://Sta... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23822/"
] |
386,828 | <p>Now I know there are a lot of similar questions around SO but I think I've covered all the basics. Here's what I know:</p>
<p>My favicon is accessible through /favicon.ico (<a href="http://www.bandcmotors.co.uk/favicon.ico" rel="nofollow noreferrer">full link</a>)</p>
<p>The HTML is (<a href="http://www.bandcmotor... | [
{
"answer_id": 386870,
"author": "William Brendel",
"author_id": 2405,
"author_profile": "https://Stackoverflow.com/users/2405",
"pm_score": 0,
"selected": false,
"text": "<link rel=\"shortcut icon\" href=\"/favicon.ico\" type=\"image/x-icon\" />\n"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/386828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12870/"
] |
386,831 | <p>My MS Visual C# program was compiling and running just fine.
I close MS Visual C# to go off and do other things in life.</p>
<p>I reopen it and (before doing anything else) go to "Publish" my program and get the following error message:</p>
<blockquote>
<p>Program C:\myprogram.exe does not contain a static 'Main... | [
{
"answer_id": 386852,
"author": "configurator",
"author_id": 9536,
"author_profile": "https://Stackoverflow.com/users/9536",
"pm_score": 2,
"selected": false,
"text": "Build Action"
},
{
"answer_id": 386894,
"author": "Igal Tabachnik",
"author_id": 8205,
"author_prof... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44004/"
] |
386,834 | <p>I'm building an outlook control for an application, and am populating a treelist by recursively adding child folders. These folders are declared as Outlook.MAPIFolder. But the application only allows import from actual emails, so I want to exclude folders containing calendar items. I can right click on those fold... | [
{
"answer_id": 387448,
"author": "Oliver Giesen",
"author_id": 9784,
"author_profile": "https://Stackoverflow.com/users/9784",
"pm_score": 2,
"selected": false,
"text": "DefaultItemType"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/386834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30415/"
] |
386,838 | <p>I'm working on a PHP CMS like project and I'm trying to find out what's the most convenient way of dealing with the CRUD functionality in PHP.</p>
<p>The CMS is programmed completely in procedural PHP (no OOP - I know that many of you will not agree with this...) and was designed keeping everything as simple and li... | [
{
"answer_id": 386936,
"author": "dcousineau",
"author_id": 20265,
"author_profile": "https://Stackoverflow.com/users/20265",
"pm_score": 3,
"selected": true,
"text": "CREATE TABLE `content` (\n `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,\n `name` VARCHAR NOT NULL,\n `short_descriptio... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43923/"
] |
386,845 | <p>I've written a PHP script that handles file downloads, determining which file is being requested and setting the proper HTTP headers to trigger the browser to actually download the file (rather than displaying it in the browser).</p>
<p>I now have a problem where some users have reported certain files being identifi... | [
{
"answer_id": 386869,
"author": "OIS",
"author_id": 36175,
"author_profile": "https://Stackoverflow.com/users/36175",
"pm_score": 3,
"selected": false,
"text": "<?php\n\n$filename = $_GET['file'];\n\n// required for IE, otherwise Content-disposition is ignored\nif(ini_get('zlib.output_c... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386845",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5291/"
] |
386,854 | <p>I try to keep my fingers on home row as much as possible.</p>
<p>Typing all the parentheses makes me move away from there a fair bit. </p>
<p>I use Emacs; the parentheses themselves are no issue, I'm comfortable with them. And I don't like modes that type them for me automatically. </p>
<p>I've thought about rema... | [
{
"answer_id": 395961,
"author": "jamesnvc",
"author_id": 7699,
"author_profile": "https://Stackoverflow.com/users/7699",
"pm_score": 0,
"selected": false,
"text": "paredit-mode"
},
{
"answer_id": 397290,
"author": "jrockway",
"author_id": 8457,
"author_profile": "htt... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386854",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48419/"
] |
386,862 | <p>I've become very addicted to Project Euler recently and am trying to do <a href="http://projecteuler.net/index.php?section=problems&id=221" rel="nofollow noreferrer">this</a> one next! I've started some analysis on it and have reduced the problem down substantially already. Here's my working:</p>
<blockquote>
... | [
{
"answer_id": 388796,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "[5, 8, 10, 13, 16, 17, 20, 25, 26, 29, 32, 34, 37, 40, 41, 50, 52, 53, 58, 61, 64, 65, 68, 73, 74, 80, 82, 85, 89, 97, 100]\n"... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
386,867 | <p>I'm using LINQ to SQL to pull records from a database, sort them by a string field, then perform some other work on them. Unfortunately the Name field that I'm sorting by comes out of the database like this</p>
<pre><code>Name
ADAPT1
ADAPT10
ADAPT11
...
ADAPT2
ADAPT3
</code></pre>
<p>I'd like to sort the Name fie... | [
{
"answer_id": 386912,
"author": "bruno conde",
"author_id": 31136,
"author_profile": "https://Stackoverflow.com/users/31136",
"pm_score": 1,
"selected": false,
"text": "IComparer<string>"
},
{
"answer_id": 386924,
"author": "Amy B",
"author_id": 8155,
"author_profile... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18891/"
] |
386,874 | <p>I have to dump a large database over a network pipe that doesn't have that much bandwidth and other people need to use concurrently. If I try it it soaks up all the bandwidth and latency soars and everyone else gets messed up.</p>
<p>I'm aware of the --compress flag to mysqldump which help somewhat.</p>
<p>How can... | [
{
"answer_id": 397528,
"author": "dbr",
"author_id": 745,
"author_profile": "https://Stackoverflow.com/users/745",
"pm_score": 4,
"selected": true,
"text": "trickle"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/386874",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41613/"
] |
386,877 | <p>I've seen <a href="http://veloedit.sourceforge.net/" rel="noreferrer">Veloedit</a>, which seems to have good syntax highlighting but doesn't allow tab characters in the file being edited (wtf?) and also has no understanding of HTML.</p>
<p>With a little bit of googling I've found <a href="http://propsorter.sourcefo... | [
{
"answer_id": 18376563,
"author": "Jitendra Nandre",
"author_id": 1487697,
"author_profile": "https://Stackoverflow.com/users/1487697",
"pm_score": 1,
"selected": false,
"text": "http://code.google.com/p/veloeclipse/"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/386877",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4249/"
] |
386,885 | <p>Are there any client-side JavaScript <a href="https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller" rel="noreferrer">MVC</a> (micro-)frameworks?</p>
<p>I have a rather complicated HTML form, and it would benefit from the MVC pattern.</p>
<p>I imagine a good solution would provide the following:</p>
... | [
{
"answer_id": 9032567,
"author": "Sam Hasler",
"author_id": 2541,
"author_profile": "https://Stackoverflow.com/users/2541",
"pm_score": 3,
"selected": false,
"text": "MyApp.president = Ember.Object.create({\n name: \"Barack Obama\"\n});\n\nMyApp.country = Ember.Object.create({\n // En... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386885",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48424/"
] |
386,914 | <p>I'm creating a site that allows users to submit quotes. How would I go about creating a (relatively simple?) search that returns the most relevant quotes?</p>
<p>For example, if the search term was "turkey" then I'd return quotes where the word "turkey" appears twice before quotes where it only appears once.</p>
... | [
{
"answer_id": 386986,
"author": "Jeffrey Martinez",
"author_id": 29703,
"author_profile": "https://Stackoverflow.com/users/29703",
"pm_score": 2,
"selected": false,
"text": "SELECT * FROM Quotes\nWHERE the_quote LIKE \"%turkeyt%\";\n"
},
{
"answer_id": 386996,
"author": "dco... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1615/"
] |
386,930 | <p>What is the best compression algorithm with the following features:</p>
<ul>
<li>should take less time to decompress (can take reasonably more time compress)</li>
<li>should be able to compress sorted data (approx list of 3,000,000 strings/integers ...)</li>
</ul>
<p>Please suggest along with metrics: compression ... | [
{
"answer_id": 387011,
"author": "yogman",
"author_id": 24349,
"author_profile": "https://Stackoverflow.com/users/24349",
"pm_score": 1,
"selected": false,
"text": "1) Writes the literal \n2) for (backward position, length)=(m,n) pair, \n goes back, in the output buffer, m bytes, \n ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34590/"
] |
386,934 | <p>I have a string representing a path. Because this application is used on Windows, OSX and Linux, we've defined environment variables to properly map volumes from the different file systems. The result is:</p>
<pre><code>"$C/test/testing"
</code></pre>
<p>What I want to do is evaluate the environment variables in... | [
{
"answer_id": 386978,
"author": "jblocksom",
"author_id": 20626,
"author_profile": "https://Stackoverflow.com/users/20626",
"pm_score": 8,
"selected": true,
"text": ">>> os.path.expandvars('$C/test/testing')\n'/stackoverflow/test/testing'\n"
},
{
"answer_id": 68277049,
"auth... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386934",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46914/"
] |
386,944 | <p>Can anyone send me JavaScript code on how I can construct a time delay from the time I click a button on a page to the time the function called by the button click is executed. I am a novice with JavaScript, and I have some code that performs a function when I click a button, and I just want to have a time delay.</p... | [
{
"answer_id": 386951,
"author": "xtofl",
"author_id": 6610,
"author_profile": "https://Stackoverflow.com/users/6610",
"pm_score": 3,
"selected": false,
"text": " function myfunction() {\n alert( \"delayed\" );\n }\n\n var delay = 1000;\n\n setTimeout( myfunction, delay )\n"
},
{... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
386,945 | <p>I have the following problem: some processes, generated dynamically, have a tendency to eat 100% of CPU. I would like to limit all the process matching some criterion (e.g. process name) to a certain amount of CPU percentage.</p>
<p>The specific problem I'm trying to solve is harnessing folding@home worker processe... | [
{
"answer_id": 387391,
"author": "blabla999",
"author_id": 48469,
"author_profile": "https://Stackoverflow.com/users/48469",
"pm_score": 4,
"selected": false,
"text": "loop\n wait for some time tR\n send SIGSTOP to the process you want to be scheduled\n wait for some time tP\n ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/390180/"
] |
386,950 | <p>Can somebody point me to a tutorial and/or Getting Started document to get IronRuby running Rails? I'm particularly interested in a detailed, step-by-step reference, <em>not</em> general guidelines.</p>
| [
{
"answer_id": 388484,
"author": "Mike Woodhouse",
"author_id": 1060,
"author_profile": "https://Stackoverflow.com/users/1060",
"pm_score": 2,
"selected": false,
"text": "rails <projectName"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/386950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37474/"
] |
386,981 | <p>So I have the following code:</p>
<pre><code> return from a in DBContext.Acts
join artist in DBContext.Artists on a.ArtistID equals artist.ID into art
from artist in art.DefaultIfEmpty()
select new Shared.DO.Act
{
ID = a.ID,
Name = a.Name,
... | [
{
"answer_id": 387010,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": true,
"text": " Artist = new Shared.DO.Artist\n {\n ID = artist == null ? Guid.NewGuid() : artist.ID,\n ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46616/"
] |
386,982 | <p>I'm trying to use the library released by Novell (Novell.Directory.Ldap). Version 2.1.10.</p>
<p>What I've done so far: </p>
<ul>
<li><p>I tested the connection with an application (<a href="http://www.mcs.anl.gov/~gawor/ldap/index.html" rel="noreferrer">LdapBrowser</a>) and it's working, so its not a communicatio... | [
{
"answer_id": 440964,
"author": "ceetheman",
"author_id": 16154,
"author_profile": "https://Stackoverflow.com/users/16154",
"pm_score": 3,
"selected": true,
"text": "// This is the Callback handler - after \"Binding\" this is called\n public bool MySSLHandler(Syscert.X509Certific... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16154/"
] |
387,006 | <p>I'm trying to use the MSBuild NUnit community task to force tests to run on each build, but I now see that when I use ReSharper's test runner and it builds the project I'm running the tests twice. It works but is not really desirable.</p>
<p>Does anyone know of a variable or condition I can check within MSBuild so... | [
{
"answer_id": 469924,
"author": "Aaron Wagner",
"author_id": 3909,
"author_profile": "https://Stackoverflow.com/users/3909",
"pm_score": 3,
"selected": true,
"text": "DebugResharperTest"
},
{
"answer_id": 732459,
"author": "Paul Alexander",
"author_id": 76456,
"autho... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3909/"
] |
387,028 | <p>I'm looking for a tool that, given a bit of C, will tell you what symbols (types, precompiler definitions, functions, etc) are used from a given header file. I'm doing a port of a large driver from Solaris to Windows and figuring out where things are coming from is getting to be difficult, so this would be a huge h... | [
{
"answer_id": 393237,
"author": "dmckee --- ex-moderator kitten",
"author_id": 2509,
"author_profile": "https://Stackoverflow.com/users/2509",
"pm_score": 0,
"selected": false,
"text": "emacs"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/387028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4977/"
] |
387,070 | <p>Are there any conventions for formatting console output from a command line app for readability and consistency? For instance, do you indent sub-information, when do you print a blank line, if ever, how should you accent important statements.</p>
<p>I've found output can quickly degenerate into a chaotic blur. I... | [
{
"answer_id": 393237,
"author": "dmckee --- ex-moderator kitten",
"author_id": 2509,
"author_profile": "https://Stackoverflow.com/users/2509",
"pm_score": 0,
"selected": false,
"text": "emacs"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/387070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
387,076 | <p>How can I use Linq with Dataset.xsd files?</p>
<p>I've looked at Linq-to-Datasets and Linq-to-XSD but they don't really seem to work directly with the Visual Studio DataSet.xsd files.</p>
<p><strong>EDIT:</strong> I actually found a great link for this: <a href="http://msdn.microsoft.com/en-us/vbasic/bb738035.asp... | [
{
"answer_id": 387170,
"author": "Ryan Lundy",
"author_id": 5486,
"author_profile": "https://Stackoverflow.com/users/5486",
"pm_score": 3,
"selected": true,
"text": "Dim taFields As New TestDSTableAdapters.FieldTableAdapter()\nDim taFieldTypes As New TestDSTableAdapters.FieldTypesTableAd... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47167/"
] |
387,091 | <p>Here's my code:</p>
<pre><code>public class Sequence<T> {
protected List<T> sequence = new ArrayList<T>();
public Matrix<OrderedPair<T, ?>> createCartesianProduct(Sequence<?> secondSequence) {
Matrix<OrderedPair<T, ?>> result = new Matrix<OrderedP... | [
{
"answer_id": 387129,
"author": "Yuval Adam",
"author_id": 24545,
"author_profile": "https://Stackoverflow.com/users/24545",
"pm_score": 0,
"selected": false,
"text": "row.add(new OrderedPair<T, ?>(sequence.get(rowIndex), secondSequence.sequence.get(columnIndex)));\n"
},
{
"answ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
387,093 | <p>Every time I add a reference to a web project in visual studio 2008 that is in my GAC, it adds the reference as a GAC reference and doesn't copy the file to my bin directory. But for deployment purposes, I would like to add the reference as a non-GAC reference so it adds the dll to my bin directory. I've tried using... | [
{
"answer_id": 3444724,
"author": "frank hadder",
"author_id": 3617,
"author_profile": "https://Stackoverflow.com/users/3617",
"pm_score": 1,
"selected": false,
"text": "<Reference Include=\"Microsoft.Data.Entity.CTP, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, pro... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2849/"
] |
387,104 | <p>Does anyone have a good implementation of a stream cipher written in pure portable C? I am not terribly concerned with the strength of the cipher at this point in time because it is only for a proof of concept, but speed would be important. I've thought about just Xor'ing with a constant if I cannot find a decent ... | [
{
"answer_id": 387254,
"author": "e.James",
"author_id": 33686,
"author_profile": "https://Stackoverflow.com/users/33686",
"pm_score": 1,
"selected": false,
"text": "CycleKey"
},
{
"answer_id": 46253995,
"author": "Prateek Joshi",
"author_id": 4281711,
"author_profile... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387104",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42588/"
] |
387,112 | <p>Binding a List collection to a datagrid. How can you limit what properties will be displayed?</p>
<pre><code>DataGridViewAirport.DataSource = GlobalDisplayAirports
</code></pre>
| [
{
"answer_id": 387125,
"author": "JoshBerke",
"author_id": 26160,
"author_profile": "https://Stackoverflow.com/users/26160",
"pm_score": 3,
"selected": true,
"text": "<asp:GridView ID=\"myGrid\" runat=\"server\" AutoGenerateColumns=\"False\" CellSpacing=\"0\">\n <Columns>\n <asp:B... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38349/"
] |
387,113 | <p>I'm using VBA in the Excel VBE, but c# or vb are fine.
The concept should hold true across the languages.</p>
| [
{
"answer_id": 387700,
"author": "BradC",
"author_id": 21398,
"author_profile": "https://Stackoverflow.com/users/21398",
"pm_score": 3,
"selected": true,
"text": "Dim myrange As Range\nSet myrange = Range(\"B3:E10\")\n\nDim row As Integer, col As Integer\nFor row = myrange.Rows.Count To ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25197/"
] |
387,128 | <p>I'm trying to do precedence matching on a table within a stored procedure. The requirements are a bit tricky to explain, but hopefully this will make sense. Let's say we have a table called books, with id, author, title, date, and pages fields. </p>
<p>We also have a stored procedure that will match a query with ON... | [
{
"answer_id": 387169,
"author": "Tom H",
"author_id": 5696608,
"author_profile": "https://Stackoverflow.com/users/5696608",
"pm_score": 1,
"selected": false,
"text": "SELECT TOP 1\n author,\n title,\n date,\n pages\nFROM\n Books\nWHERE\n author = @author OR\n ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27689/"
] |
387,130 | <p>Working in academia publishing CS/math, you sooner or later find yourself trying to publish in a journal that will only accept .doc/.rtf. This means tedious, boring hours of translating line after line, especially equations, from LaTeX to an inferior format. Over the years I have tried a number of export tools for L... | [
{
"answer_id": 387169,
"author": "Tom H",
"author_id": 5696608,
"author_profile": "https://Stackoverflow.com/users/5696608",
"pm_score": 1,
"selected": false,
"text": "SELECT TOP 1\n author,\n title,\n date,\n pages\nFROM\n Books\nWHERE\n author = @author OR\n ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27126/"
] |
387,141 | <p>I'd like to check if the system is in standby mode, is there any Win32 API for that? I'm not sure if it's the same as the sleep mode.</p>
<p>There's some code that gets executed in my app, which causes it to hang when coming out of standby (it's executed during the standby mode), so I'd like to avoid running that c... | [
{
"answer_id": 387155,
"author": "Joachim Sauer",
"author_id": 40342,
"author_profile": "https://Stackoverflow.com/users/40342",
"pm_score": 3,
"selected": true,
"text": "int is_in_standby() {\n return 0;\n}\n"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/387141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20208/"
] |
387,142 | <p>I am writing a web server and client test stub for it. I have questions regarding memory management of the parameters.</p>
<p>From my client I am calling a soap function ns1_func1(input * pInput, output* pOutput)
Now both input and output class contain pointers to other structs.</p>
<p>For e.g </p>
<p>class Outpu... | [
{
"answer_id": 1634202,
"author": "benzado",
"author_id": 10947,
"author_profile": "https://Stackoverflow.com/users/10947",
"pm_score": 0,
"selected": false,
"text": "output * pOutput = NULL;\nns1_func1(&inp1, pOutput);\n"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/387142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
387,163 | <p>I know it might not be according to Apple's human interface guidelines for the iPhone, but I want to get rid of one level of pushing views and have a list of editable text fields. Further, I want the keyboard to be on screen from start when the view appears.</p>
<p>The problem is that when I have more than three su... | [
{
"answer_id": 1985865,
"author": "God of Biscuits",
"author_id": 145425,
"author_profile": "https://Stackoverflow.com/users/145425",
"pm_score": 1,
"selected": false,
"text": "- (BOOL)textFieldShouldReturn:(UITextField *)textField\n {\n if ( textField == self.firstNameField )\... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387163",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44639/"
] |
387,167 | <p>I have a custom server control with a property of Title. When using the control, I'd like to set the value of the title in the aspx page like so:</p>
<pre><code><cc1:customControl runat="server" Title='<%= PagePropertyValue%>' >
more content
</cc1:customControl>
</code></pre>
<p>When I do this, ... | [
{
"answer_id": 387179,
"author": "Zachary Yates",
"author_id": 8360,
"author_profile": "https://Stackoverflow.com/users/8360",
"pm_score": 1,
"selected": false,
"text": "<%# PagePropertyValue %>"
},
{
"answer_id": 387341,
"author": "jpsimard-nyx",
"author_id": 47109,
... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13100/"
] |
387,183 | <p>I've been a web developer for quite some time and what has helped me in learning is to visually see what is going on.</p>
<p>That's the reason for Tools like Aardvark, Web developer, Firebug and many others.</p>
<p>But when i saw the <a href="http://redivide.com/blog/gecko-reflow-awesome-visualization-of-web-page-... | [
{
"answer_id": 387251,
"author": "Steve Perks",
"author_id": 16124,
"author_profile": "https://Stackoverflow.com/users/16124",
"pm_score": 1,
"selected": false,
"text": "body { overflow: scroll; }"
},
{
"answer_id": 387295,
"author": "Kenan Banks",
"author_id": 43089,
... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387183",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22459/"
] |
387,198 | <p>I have an international company that has recently been added, which is named "BLA "BLAHBLAH" Ltd. (The double quotes are part of the name. )</p>
<p>Whenever a user tries to search for this company, by entering "Blah, or something to that affect, the search fails with a syntax error in SQL server.</p>
<p>How can I ... | [
{
"answer_id": 387218,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 2,
"selected": false,
"text": "// Bad code, do not use!\nstring sql = \"SELECT * FROM Foo WHERE X LIKE '\" + input + \"%'\";\n"
},
{
"answer_id... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32772/"
] |
387,223 | <p>In Rails, I'm coding a series of controllers to generate XML. Each time I'm passing a number of properties in to to_xml like:</p>
<pre><code>to_xml(:skip_types => true, :dasherize => false)
</code></pre>
<p>Is there a way I can set these as new default properties that will apply whenever to_xml is called in ... | [
{
"answer_id": 387308,
"author": "csexton",
"author_id": 19839,
"author_profile": "https://Stackoverflow.com/users/19839",
"pm_score": 3,
"selected": true,
"text": "def to_default_xml\n self.to_xml(:skip_types => true, :dasherize => false)\nend\n"
},
{
"answer_id": 1261888,
... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40956/"
] |
387,229 | <p>I'm using HTML emails for a client's newsletter. Not using HTML mails is <strong>not</strong> an option. I've used PHPMailer for mailing, but I've also tried using PHP's mail() function directly. In both instances, I get the same problem described below. I've tried sending as multipart as well as sending just the HT... | [
{
"answer_id": 389044,
"author": "Chase Seibert",
"author_id": 7679,
"author_profile": "https://Stackoverflow.com/users/7679",
"pm_score": 0,
"selected": false,
"text": "DomainKey-Status: no signature\nReceived: (qmail xxxx invoked by uid xxx); 22 Dec 2008 21:04:33 +0100\nTo: xxxxxxxxxxx... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387229",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7927/"
] |
387,233 | <p>I am working with ASP.NET doing some client side javascript.<br>
I have the following javascript to handle an XMLHTTPRequest callback. In certain situations, the page will be posted back, using the __doPostBack() function provided by ASP.NET, listed in the code below. However, I would like to be able to set the fo... | [
{
"answer_id": 401086,
"author": "stephenbayer",
"author_id": 18893,
"author_profile": "https://Stackoverflow.com/users/18893",
"pm_score": 1,
"selected": true,
"text": "protected void ddl_state_selectedValueChanged(Object sender, EventArgs e)\n{\n // ... here is all my code for the e... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18893/"
] |
387,234 | <p>There is a nice state machine tutorial called <a href="http://www.objectmentor.com/resources/articles/umlfsm.pdf" rel="nofollow noreferrer">UML Tutorial: Finite State Machines</a> by Robert C. Martin. But I can't compile the sample code it provides. I got *FsmTest.cpp(46) : error C2664: 'SetState' : cannot convert p... | [
{
"answer_id": 387264,
"author": "jmucchiello",
"author_id": 44065,
"author_profile": "https://Stackoverflow.com/users/44065",
"pm_score": 1,
"selected": false,
"text": "class TurnstileFSM {\n void SetState(TurnstileState* s);\n};\n\nvoid TurnstileFSM::SetState(TurnstileState* s) {its... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
387,260 | <p>I would like to stop images from loading, as in not even get a chance to download, using greasemonkey. Right now I have </p>
<pre><code>var images = document.getElementsByTagName('img');
for (var i=0; i<images.length; i++){
images[i].src = "";
}
</code></pre>
<p>but I don't think this actually stops the i... | [
{
"answer_id": 387388,
"author": "jfs",
"author_id": 4279,
"author_profile": "https://Stackoverflow.com/users/4279",
"pm_score": 3,
"selected": true,
"text": "// ==UserScript==\n// @name stop downloading images\n// @namespace http://stackoverflow.com/questions/387388\n// @... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41718/"
] |
387,309 | <p>We're migrating home folders to a new filesystem, and I am looking for a way to automate it using Perl or a shell script. I don't have much choice in programming languages as the systems are proprietary storage clusters that should remain as unchanged as possible.</p>
<p>Task: Under directory /home/ I have various ... | [
{
"answer_id": 387319,
"author": "codelogic",
"author_id": 43427,
"author_profile": "https://Stackoverflow.com/users/43427",
"pm_score": 4,
"selected": true,
"text": "cp"
},
{
"answer_id": 387331,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https:/... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18406/"
] |
387,318 | <p>After peeking at the SO <a href="http://view-source:" rel="nofollow noreferrer">source</a>, I noticed this tag:</p>
<pre><code><link rel="apple-touch-icon" href="/apple-touch-icon.png" />
</code></pre>
<p>Which after a quick Google <a href="http://allinthehead.com/retro/319/how-to-set-an-apple-touch-icon-for... | [
{
"answer_id": 387669,
"author": "Andy Bourassa",
"author_id": 44858,
"author_profile": "https://Stackoverflow.com/users/44858",
"pm_score": 5,
"selected": true,
"text": "<meta name=\"viewport\" content=\"width=320, initial-scale=2.3, user-scalable=no\">\n"
},
{
"answer_id": 4572... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387318",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6144/"
] |
387,334 | <p>I have a dataview defined as:</p>
<pre><code>DataView dvPricing = historicalPricing.GetAuctionData().DefaultView;
</code></pre>
<p>This is what I have tried, but it returns the name, not the value in the column:</p>
<pre><code>dvPricing.ToTable().Columns["GrossPerPop"].ToString();
</code></pre>
| [
{
"answer_id": 387354,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": false,
"text": "DataRow"
},
{
"answer_id": 19701389,
"author": "Ashay",
"author_id": 2940584,
"author_profile": "... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33690/"
] |
387,339 | <p>I am pretty well versed with SQL Server, MySQL, Oracle etc but putting these Database products aside, is there a resource that will help me design relational databases well? Is there something like patterns or best practices for database design?</p>
<p>I have seen a few times that database is often not scalable; pe... | [
{
"answer_id": 387484,
"author": "missaghi",
"author_id": 46706,
"author_profile": "https://Stackoverflow.com/users/46706",
"pm_score": 2,
"selected": false,
"text": "Select name from peeps where accountStatusId = 5\n"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/387339",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37494/"
] |
387,340 | <p>I am working on a .jar file library to implement a bunch of helper classes to interface a PC to a piece of external hardware. I'll also add some simple applications, either command-line or GUI, to handle common tasks using the library.</p>
<p>My question is, is there a recommended way to simplify the command-line i... | [
{
"answer_id": 387348,
"author": "Joachim Sauer",
"author_id": 40342,
"author_profile": "https://Stackoverflow.com/users/40342",
"pm_score": 3,
"selected": false,
"text": "-jar"
},
{
"answer_id": 387383,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": "htt... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44330/"
] |
387,356 | <p>Is there a utility out there that will create VB.NET classes from a Dataset.xsd file? And I don't mean like the XSD.exe utility does - all that does is convert the XML of an XSD file into classes in a .vb - it doesn't append any "extended" functionality. </p>
<p>I'm basically looking for something that will gener... | [
{
"answer_id": 626077,
"author": "Paul G",
"author_id": 162,
"author_profile": "https://Stackoverflow.com/users/162",
"pm_score": 2,
"selected": false,
"text": "xsd.exe -c -l:vb -n:Purchasing purchaseorder.xsd\n"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/387356",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47167/"
] |
387,389 | <p>I created a webservice when it hosted on my local computer it works fine, but when i publish it to the web host, it doesnt work any more, i guess its a question about how the webserver is configured, but can i make some changes in web.config so it will work?</p>
<h2>The error i get is below:</h2>
<p>Configuration ... | [
{
"answer_id": 387422,
"author": "Dillie-O",
"author_id": 71,
"author_profile": "https://Stackoverflow.com/users/71",
"pm_score": 0,
"selected": false,
"text": "<compilation debug=\"false\">\n <assemblies> \n <add assembly=\"MySql.Data, Version=5.0.9.0, Culture=neutral, Publ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387389",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36476/"
] |
387,417 | <p>I have several instances where that a section of legacy sql statements is based on a dependency. for example. </p>
<pre><code>if (x !=null)
{
SQL = "SELECT z WHERE x > y";
}
else
{
SQL = "SELECT z WHERE x <= y";
}
SQL2 = SQL + " JOIN a ON b";
</code></pre>
<p>I am creating PreparedStatements out of thi... | [
{
"answer_id": 387538,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 1,
"selected": false,
"text": "Zend_Db_Select"
},
{
"answer_id": 387587,
"author": "serg",
"author_id": 20128,
"author_profile": ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387417",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13491/"
] |
387,424 | <p>I'm always surprised that even after using C# for all this time now, I still manage to find things I didn't know about...</p>
<p>I've tried searching the internet for this, but using the "~" in a search isn't working for me so well and I didn't find anything on MSDN either (not to say it isn't there)</p>
<p>I saw ... | [
{
"answer_id": 387427,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 5,
"selected": false,
"text": "public enum PurchaseMethod\n{ \n All = ~0, // all bits of All are 1. the ~ operator just inverts bits\... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17091/"
] |
387,434 | <p>In SQL server you can use the DATENAME function to get the day of week as a string</p>
<pre><code>declare @date datetime
set @date = '12/16/08'
select datename(dw, @date)
</code></pre>
<p>which returns "Tuesday"</p>
<p>and you can use the DATEPART function to get the day of week as an integer</p>
<pre><code>decl... | [
{
"answer_id": 387518,
"author": "Russ Bradberry",
"author_id": 48450,
"author_profile": "https://Stackoverflow.com/users/48450",
"pm_score": 4,
"selected": false,
"text": "\nCREATE FUNCTION dbo.WeekDay(@DayOfWeek Varchar(9))\nRETURNS INT\n AS\n BEGIN\n DECLARE @iDayofWe... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17917/"
] |
387,438 | <p>i wonder if i've found a compiler bug? i was removing some old code from my app and now i get stackoverflow at "begin" (see code & disassembly below).</p>
<pre><code>procedure TfraNewRTMDisplay.ShowMeasurement;
var
iDummy, iDummy2, iDummy3:integer;
begin // STACK OVERFLOW BEFORE MY CODE STARTS
iDummy:=0... | [
{
"answer_id": 387493,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 2,
"selected": false,
"text": "m_SelectedRTMMenuData.ChannelMeasSet.MeasKV.ClearMeasurementData;\n"
},
{
"answer_id": 387532,
"author": "X-R... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14031/"
] |
387,451 | <p>I have a C# public API that is used by many third-party developers that have written custom applications on top of it. In addition, the API is used widely by internal developers.</p>
<p>This API wasn't written with testability in mind: most class methods aren't virtual and things weren't factored out into interface... | [
{
"answer_id": 388838,
"author": "Patrik Hägne",
"author_id": 46187,
"author_profile": "https://Stackoverflow.com/users/46187",
"pm_score": 1,
"selected": false,
"text": "public interface IUserRepository\n{\n IUserData GetData(string userName);\n}\n\npublic class UserRepository \n ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387451",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1869/"
] |
387,453 | <p>Does anyone know a way to display code in Microsoft Word documents that preserves coloring and formatting? Preferably, the method would also be unobtrusive and easy to update.</p>
<p>I have tried to include code as regular text which looks awful and gets in the way when editing regular text. I have also tried inse... | [
{
"answer_id": 2653406,
"author": "gargamel",
"author_id": 264597,
"author_profile": "https://Stackoverflow.com/users/264597",
"pm_score": 12,
"selected": true,
"text": "Insert"
},
{
"answer_id": 2653526,
"author": "Donal Fellows",
"author_id": 301832,
"author_profile... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387453",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13054/"
] |
387,466 | <p>I've got a submission page in php with an html form that points back to the same page. I'd like to be able to check if the required fields in the form aren't filled so I can inform the user. I'd like to know how to do that with php and javascript each. However, I imagine this is a common issue so any other answers a... | [
{
"answer_id": 387490,
"author": "Riho",
"author_id": 44715,
"author_profile": "https://Stackoverflow.com/users/44715",
"pm_score": 3,
"selected": true,
"text": " if(isset($_POST['save']))\n {\n $fields=array();\n $fields['Nimi'] = $_POST['name'];\n ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25680/"
] |
387,469 | <p>Is JSF being used in the enterprise, or at least growing in use?</p>
| [
{
"answer_id": 387490,
"author": "Riho",
"author_id": 44715,
"author_profile": "https://Stackoverflow.com/users/44715",
"pm_score": 3,
"selected": true,
"text": " if(isset($_POST['save']))\n {\n $fields=array();\n $fields['Nimi'] = $_POST['name'];\n ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387469",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13143/"
] |
387,471 | <p>In a Java web application I have a recurring message load of type A (e.g., 20,000 every hour). Then I have a second type of messages (type B) that show up occasionally but have a higher priority than type A (say, 3,000). I want to be able to process these messages on one or more machines using open source software... | [
{
"answer_id": 387828,
"author": "James Schek",
"author_id": 17871,
"author_profile": "https://Stackoverflow.com/users/17871",
"pm_score": 3,
"selected": true,
"text": "\"JMS does not require that a provider strictly implement priority ordering of messages; however, it should do its best... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3574/"
] |
387,476 | <p>I want our app to show the online help page (so it's always up to date) or even a local page. However, it's likely to be blocked by the Firewall (Zone Alarm).</p>
<p>BTW, I tested this with Zone Alarm. It blocked access to a local .html file as well as to an .asp file on the internet. (I.e., tried to display a page... | [
{
"answer_id": 387828,
"author": "James Schek",
"author_id": 17871,
"author_profile": "https://Stackoverflow.com/users/17871",
"pm_score": 3,
"selected": true,
"text": "\"JMS does not require that a provider strictly implement priority ordering of messages; however, it should do its best... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4906/"
] |
387,479 | <p>I've encountered a problem with my Netbeans 6.1 IDE.</p>
<p>After an unsuccessful update, Netbeans stopped recognizing Apache and Glassfish servers and requested me to resolve a missing server error, after which I opened a window to add a server, except there were none listed. Trying to add servers in the list yiel... | [
{
"answer_id": 387828,
"author": "James Schek",
"author_id": 17871,
"author_profile": "https://Stackoverflow.com/users/17871",
"pm_score": 3,
"selected": true,
"text": "\"JMS does not require that a provider strictly implement priority ordering of messages; however, it should do its best... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45651/"
] |
387,480 | <p>What is the best way to hide Tab headers when there is only a single visible Tab?</p>
<p>I want to hide TabControl chrome completely, while leaving the content of the Tab visible.</p>
| [
{
"answer_id": 387565,
"author": "Robert Macnee",
"author_id": 19273,
"author_profile": "https://Stackoverflow.com/users/19273",
"pm_score": 7,
"selected": true,
"text": "<Grid xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n xmlns:sys=\"clr-namespace:System;ass... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39068/"
] |
387,483 | <p>I'm trying to send an email to several recipients when a new row is inserted into a table. The list of recipients varies. I would like to be able to set this list using a select statement.
I also have installed Navicat which allows me to send email notifications but only to a predetermined set of people.</p>
<p>T... | [
{
"answer_id": 4101782,
"author": "Tony",
"author_id": 497770,
"author_profile": "https://Stackoverflow.com/users/497770",
"pm_score": 5,
"selected": false,
"text": "CREATE TRIGGER test.autosendfromdrop BEFORE INSERT ON test.emaildrop\nFOR EACH ROW BEGIN\n /* START THE WRITING OF TH... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48488/"
] |
387,485 | <p>I have a sidebar on my webpage that is supposed to span 100% of the page (vertically). It is then supposed to stay there, so when the rest of the content scrolls it does not. To do this, I used:</p>
<pre><code>body
{
height: 100%;
}
#sidebar
{
height: 100%;
width: 120px;
position: fixed;
top: 0... | [
{
"answer_id": 4101782,
"author": "Tony",
"author_id": 497770,
"author_profile": "https://Stackoverflow.com/users/497770",
"pm_score": 5,
"selected": false,
"text": "CREATE TRIGGER test.autosendfromdrop BEFORE INSERT ON test.emaildrop\nFOR EACH ROW BEGIN\n /* START THE WRITING OF TH... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
387,488 | <p>I am setting a cookie <code>Request.Cookies("TemplateName").value</code> on one of my pages(page 3) of my application. Now I can navigate from page 3 to page 4 and page 2 and retain the value of the cookie. But now when I logout and login again it still has the value, how can I reset the value of the cookie to be bl... | [
{
"answer_id": 387522,
"author": "cgreeno",
"author_id": 6088,
"author_profile": "https://Stackoverflow.com/users/6088",
"pm_score": 4,
"selected": true,
"text": "Response.Cookies[\"TemplateName\"].Value = \"\";\n\nResponse.Cookies[\"TemplateName\"].Expires = DateTime.Now;\n"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/387488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34219/"
] |
387,492 | <p>I am creating a MFC application in which there is a skin library which handles the UI effect of rendering the controls (it gets called in oninitdialog). But, meanwhile, I have also the requirement of displaying an icon on the buttons. For this, I am marking the buttons as ownerdrawn=true, and able to display icon, b... | [
{
"answer_id": 387522,
"author": "cgreeno",
"author_id": 6088,
"author_profile": "https://Stackoverflow.com/users/6088",
"pm_score": 4,
"selected": true,
"text": "Response.Cookies[\"TemplateName\"].Value = \"\";\n\nResponse.Cookies[\"TemplateName\"].Expires = DateTime.Now;\n"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/387492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
387,514 | <p>I need to create a Windows service that works just like the task scheduler in that I can configure what time it runs and it basically just calls a .NET class at that scheduled time (recurring). What is the recommended way to do this? Also, any information on installing/removing that service would be appreciated!</p>... | [
{
"answer_id": 392511,
"author": "faulty",
"author_id": 20007,
"author_profile": "https://Stackoverflow.com/users/20007",
"pm_score": 1,
"selected": false,
"text": "System.Threading.Timer"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/387514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47110/"
] |
387,534 | <p>I've got some javascript code that applies an alpha transparency. Before it does that it attempts to detect what type of transparency the browser supports and stores that in a variable for use later. Here's what the code looks like:</p>
<pre><code>// figure out the browser support for opacity
if (typeof br.backImg.... | [
{
"answer_id": 388601,
"author": "some",
"author_id": 36866,
"author_profile": "https://Stackoverflow.com/users/36866",
"pm_score": 4,
"selected": true,
"text": "var opacityType=(\n (typeof o.style.opacity !== 'undefined') ? 'opacity' :\n /*@cc_on @if (@_jscript)\n (typeof o.filters... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48413/"
] |
387,536 | <p>I've been programming in Ruby for a few months now, and I'm wondering when it is appropriate to use constants over class variables and vice versa. (I'm working in Rails, thinking about constants in models).</p>
<pre><code>class Category
TYPES = %w(listing event business).freeze
end
</code></pre>
<p>OR</p>
<pre>... | [
{
"answer_id": 52559053,
"author": "berkos",
"author_id": 2819355,
"author_profile": "https://Stackoverflow.com/users/2819355",
"pm_score": 2,
"selected": false,
"text": "FOO = 18\nprivate_constant :FOO\n"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/387536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6705/"
] |
387,547 | <p>I ran into this today when unit testing a generic dictionary.</p>
<pre><code>System.Collections.Generic.Dictionary<int, string> actual, expected;
actual = new System.Collections.Generic.Dictionary<int, string> { { 1, "foo" }, { 2, "bar" } };
expected = new System.Collections.Generic.Dictionary<int, s... | [
{
"answer_id": 387561,
"author": "Mike Scott",
"author_id": 43649,
"author_profile": "https://Stackoverflow.com/users/43649",
"pm_score": 2,
"selected": false,
"text": "Dictionary<T,T>.Equals"
},
{
"answer_id": 387569,
"author": "Lasse V. Karlsen",
"author_id": 267,
"... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2637/"
] |
387,589 | <p>Is there a method built in to NSString that tokenizes the string and searches the beginning of each token? the <code>compare</code> method seems to only do the beginning of a string, and using <code>rangeOfString</code> isn't really sufficient because it doesn't have knowledge of tokens. Right now I'm thinking the... | [
{
"answer_id": 387604,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": true,
"text": "@\" \""
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/387589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44858/"
] |
387,592 | <p>Hopefully, this will be an easy answer for someone with Javascript time behind them...</p>
<p>I have a log file that is being watched by a script that feeds new lines in the log out to any connected browsers. A couple people have commented that what they want to see is more of a 'tail -f' behavior - the latest lin... | [
{
"answer_id": 387610,
"author": "Russ Bradberry",
"author_id": 48450,
"author_profile": "https://Stackoverflow.com/users/48450",
"pm_score": 0,
"selected": false,
"text": "obj.scrollTop = obj.scrollHeight;\n"
},
{
"answer_id": 387734,
"author": "Adriana",
"author_id": 46... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30997/"
] |
387,594 | <p>I am considering releasing one of my class libraries written in C# as open source. Before doing that, I am trying to do some refactoring so that it meets the demands of the general public :)</p>
<p>I wonder what would be the best namespace schema to use? Basically, I see the following options:</p>
<ul>
<li>namespa... | [
{
"answer_id": 387615,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 0,
"selected": false,
"text": "MyTool"
},
{
"answer_id": 387652,
"author": "Kev",
"author_id": 419,
"author_profile": "https://S... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8954/"
] |
387,606 | <p>I need to design a program using python that will ask the user for a barcode. Then, using this barcode, it will search a mysql to find its corresponding product. </p>
<p>I am a bit stuck on how to get started. Does anyone have any tips for me?</p>
| [
{
"answer_id": 393356,
"author": "nosklo",
"author_id": 17160,
"author_profile": "https://Stackoverflow.com/users/17160",
"pm_score": 4,
"selected": true,
"text": "import MySQLdb\n\nuser_input = raw_input(\"Please enter barcode and press Enter button: \")\n\ndb = MySQLdb.connect(passwd=\... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387606",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47204/"
] |
387,619 | <p>I'm writing a script in python which basically queries WMI and updates the information in a mysql database. One of those "write something you need" to learn to program exercises.</p>
<p>In case something breaks in the middle of the script, for example, the remote computer turns off, it's separated out into functio... | [
{
"answer_id": 387759,
"author": "adolfojp",
"author_id": 20137,
"author_profile": "https://Stackoverflow.com/users/20137",
"pm_score": 1,
"selected": false,
"text": "for dataItem in dataSet:\n update(dataItem)\n"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/387619",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46063/"
] |
387,623 | <p>I have a file with 450,000+ rows of entries. Each entry is about 7 characters in length. What I want to know is the unique characters of this file.</p>
<p>For instance, if my file were the following;</p>
<blockquote>
<pre><code>Entry
-----
Yabba
Dabba
Doo
</code></pre>
</blockquote>
<p>Then the result would be</p... | [
{
"answer_id": 387630,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 3,
"selected": false,
"text": "set"
},
{
"answer_id": 387650,
"author": "Jough",
"author_id": 48501,
"author_profile": "https://... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
387,631 | <p>I know that a lot of us are familiar with setting the font size on the body element in our CSS to 62.5%. This means that 1em will equal 10px and helps for keeping things pixel perfect but also allows for scaling of fonts.</p>
<p>So wouldn't that mean that setting it to 6.25% would equate to 1em = 1px? Seems like an... | [
{
"answer_id": 387693,
"author": "Phil.Wheeler",
"author_id": 15609,
"author_profile": "https://Stackoverflow.com/users/15609",
"pm_score": 3,
"selected": false,
"text": "<h1>"
},
{
"answer_id": 387722,
"author": "cowgod",
"author_id": 6406,
"author_profile": "https:/... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/373916/"
] |
387,633 | <p>How should exceptions be dispatched so that error handling and diagnostics can be handled in a centralized, user-friendly manner?</p>
<p>For example:</p>
<ul>
<li>A DataHW class handles communication with some data acquisition hardware.</li>
<li>The DataHW class may throw exceptions based on a number of possible e... | [
{
"answer_id": 387667,
"author": "fizzer",
"author_id": 18167,
"author_profile": "https://Stackoverflow.com/users/18167",
"pm_score": 4,
"selected": true,
"text": "f()\n{\n try\n {\n // something\n }\n catch (...)\n {\n handle();\n }\n}\n\nvoid handle()\n{... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25507/"
] |
387,636 | <p>Let's say I have a table called Product, with three columns: Id, CustomerId, Name. Id is the primary key. The schema is outside of the control of my group, and we now have a requirement to always provide CustomerId as a parameter for all queries (selects, updates, deletes). It's a long story I'd rather not get int... | [
{
"answer_id": 389054,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": true,
"text": "UPDATE(...)"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/387636",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5416/"
] |
387,638 | <pre><code>print("select CustomerNo, CustomerName, Address, City, State, Zip,
Phone, Fax, ContactName, Email
from Customers where CustomerName like '%field%'");
</code></pre>
<p>Hi all. This is a simple question but I wasn't able to figure since I'm pretty new to tsql and sql in general.</p>
<p>I use the ab... | [
{
"answer_id": 387643,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 0,
"selected": false,
"text": "WHERE CustomerID LIKE '%1'\n"
},
{
"answer_id": 387647,
"author": "Bill Karwin",
"author_id": 20860,
... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28647/"
] |
387,646 | <p>Why is the compiler unable to infer the correct type for the result from Collections.emptySet() in the following example?</p>
<pre><code>import java.util.*;
import java.io.*;
public class Test {
public interface Option<A> {
public <B> B option(B b, F<A,B> f);
}
public interfa... | [
{
"answer_id": 387661,
"author": "GaryF",
"author_id": 1035,
"author_profile": "https://Stackoverflow.com/users/1035",
"pm_score": 4,
"selected": true,
"text": "print(\"Collections.<String>emptySet();\");\n"
},
{
"answer_id": 387662,
"author": "bradheintz",
"author_id": 4... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387646",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/390636/"
] |
387,654 | <p>In Z80 machine code, a cheap technique to initialize a buffer to a fixed value, say all blanks. So a chunk of code might look something like this.</p>
<pre><code>LD HL, DESTINATION ; point to the source
LD DE, DESTINATION + 1 ; point to the destination
LD BC, DESTINATION_SIZE - 1 ; copying ... | [
{
"answer_id": 387671,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 3,
"selected": false,
"text": "std::fill"
},
{
"answer_id": 387773,
"author": "Ned Batchelder",
"author_id": 14343,
"author_prof... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7734/"
] |
387,672 | <p>I've just started using NHibernate and fluent-NHibernate which I think is great. I've been configuring all my mappings to use LazyLoading for any relationships between classes because generally I find it isn't neccesary to load everything upfront. However sometimes you know 100% you will be loading all of the relati... | [
{
"answer_id": 402907,
"author": "John_",
"author_id": 26081,
"author_profile": "https://Stackoverflow.com/users/26081",
"pm_score": 4,
"selected": true,
"text": ".SetFetchMode(\"Prices\", FetchMode.Join)\n"
},
{
"answer_id": 2289821,
"author": "Gary Joynes",
"author_id":... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387672",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26081/"
] |
387,685 | <p>Here is the problem: We have all of our development under subversion, but our beta versions are just mish-mashed bits of exported files that were not all put there at the same time. Or, to put it another way, we make our changes to versioned files, and then when we think we are happy, we manually export them by simp... | [
{
"answer_id": 898713,
"author": "Dan",
"author_id": 54852,
"author_profile": "https://Stackoverflow.com/users/54852",
"pm_score": 0,
"selected": false,
"text": "FOR EACH of the exported files\n ITERATE backwards through the revisions of that file\n IF the revisioned file matches your ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20770/"
] |
387,686 | <ul>
<li>I have a <em>Client</em> and <em>Groupe</em> Model.</li>
<li>A <em>Client</em> can be part of multiple <em>groups</em>.</li>
<li><em>Clients</em> that are part of a group can use its group's free rental rate at anytime but only once. That is where the intermediary model (<em>ClientGroupe</em>) comes in with th... | [
{
"answer_id": 478384,
"author": "Vladimir Prudnikov",
"author_id": 29364,
"author_profile": "https://Stackoverflow.com/users/29364",
"pm_score": 0,
"selected": false,
"text": "clientgroupe = ClientGroupe.objects.create(client=client_instance, groupe=groupe_instance, dt=datetime.datetime... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48500/"
] |
387,702 | <p>Here's a scenario. You have a large amount of legacy scripts, all using a common library. Said scripts use the 'print' statement for diagnostic output. No changes are allowed to the scripts - they range far and wide, have their approvals, and have long since left the fruitful valleys of oversight and control.</p>... | [
{
"answer_id": 387767,
"author": "codelogic",
"author_id": 43427,
"author_profile": "https://Stackoverflow.com/users/43427",
"pm_score": 3,
"selected": false,
"text": "open my $fh, \">log.txt\";\nprint \"test1\\n\";\nmy $current_fh = select $fh;\nprint \"test2\\n\";\nselect $current_fh;\... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18097/"
] |
387,707 | <p>I prefer to use OOP in large scale projects like the one I'm working on right now. I need to create several classes in JavaScript but, if I'm not mistaken, there are at least a couple of ways to go about doing that. What would be the syntax and why would it be done in that way?</p>
<p>I would like to avoid using th... | [
{
"answer_id": 387733,
"author": "Kenan Banks",
"author_id": 43089,
"author_profile": "https://Stackoverflow.com/users/43089",
"pm_score": 11,
"selected": true,
"text": "// Define a class like this\nfunction Person(name, gender){\n\n // Add object properties like this\n this.name = n... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2494/"
] |
387,713 | <p>Java (and maybe the underlying C-ish code) has max capacity of Integer.MAX_VALUE (~ 2 billion) for arrays and containers in java.util. Are there other languages that feature containers with larger capacities?</p>
| [
{
"answer_id": 387718,
"author": "Joachim Sauer",
"author_id": 40342,
"author_profile": "https://Stackoverflow.com/users/40342",
"pm_score": 2,
"selected": false,
"text": "long"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/387713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
387,736 | <p>Consider the following:</p>
<pre><code><div onclick="alert('you clicked the header')" class="header">
<span onclick="alert('you clicked inside the header');">something inside the header</span>
</div>
</code></pre>
<p>How can I make it so that when the user clicks the span, it does not fir... | [
{
"answer_id": 387750,
"author": "James",
"author_id": 21677,
"author_profile": "https://Stackoverflow.com/users/21677",
"pm_score": 9,
"selected": true,
"text": "<span onclick=\"event.stopPropagation(); alert('you clicked inside the header');\">something inside the header</span>\n"
},... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387736",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43005/"
] |
387,772 | <p>I can't find the answer to this anywhere, and before I start pawing through generated code with Reflector I thought it'd be worth asking:</p>
<p>Suppose I have the following LINQ query run against DataTables in a DataSet:</p>
<pre><code>var list =
from pr in parentTable.AsEnumerable()
join cr in childTable.... | [
{
"answer_id": 388620,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": true,
"text": "DataRelation"
},
{
"answer_id": 389938,
"author": "Robert Rossney",
"author_id": 19403,
"author_pr... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19403/"
] |
387,775 | <p>Why doesn't the following work?</p>
<pre><code>(apply and (list #t #t #f))
</code></pre>
<p>While the following works just fine.</p>
<pre><code>(apply + (list 1 3 2))
</code></pre>
<p>This seems to be the case in both R5RS and R6RS?</p>
| [
{
"answer_id": 387805,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 5,
"selected": true,
"text": "and"
},
{
"answer_id": 387868,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://S... | 2008/12/22 | [
"https://Stackoverflow.com/questions/387775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1925263/"
] |
387,783 | <p>I'm trying to get my head around DI/IoC, NHibernate and getting them to work nicely together for an application that i'm developing. I'm quite new to both NHibernate and DI/IoC so not quite sure whether what i'm doing is the sensible way to be going about it. This is the scenario:</p>
<p>The application provides u... | [
{
"answer_id": 389382,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "public abstract class MarginCalculator\n{\n public abstract double CalculateMargin();\n}\n"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/387783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.