qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
240,242 | <p>I have a main window (#1) on my webpage from which I open a new browser window (#2) from which I open a new window (#3).</p>
<p>Now if my user closes window#2 before window#3, I have the problem that window#3 no longer can call function in its window.opener since it has gone away.</p>
<p>What I would like to do is... | [
{
"answer_id": 240275,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 1,
"selected": false,
"text": "window.opener function onLoad() {\n window.grandparent = window.opener.opener;\n}\n"
},
{
"answer_id": 240288,
... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/441556/"
] |
240,244 | <p>I want to read line n1->n2 from file foo.c into the current buffer.</p>
<p>I tried: <code>147,227r /path/to/foo/foo.c</code></p>
<p>But I get: "E16: Invalid range", though I am certain that foo.c contains more than 1000 lines.</p>
| [
{
"answer_id": 240262,
"author": "Stewart Johnson",
"author_id": 6408,
"author_profile": "https://Stackoverflow.com/users/6408",
"pm_score": 5,
"selected": false,
"text": ":147,227r /path/to/foo/foo.c\n /path/to/foo/foo.c"
},
{
"answer_id": 240274,
"author": "boxxar",
"au... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240244",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29405/"
] |
240,258 | <p>Ok, I am reading in dat files into a byte array. For some reason, the people who generate these files put about a half meg's worth of useless null bytes at the end of the file. Anybody know a quick way to trim these off the end?</p>
<p>First thought was to start at the end of the array and iterate backwards until... | [
{
"answer_id": 240289,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 2,
"selected": false,
"text": "Buffer.BlockCopy"
},
{
"answer_id": 240315,
"author": "Rob",
"author_id": 2595,
"author_profile":... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19038/"
] |
240,263 | <p>I am putting together some ideas for our automated testing platform and have been looking at Selenium for the test runner.</p>
<p>I am wrapping the recorded Selenium C# scripts in an MbUnit test, which is being triggered via the MbUnit NAnt task. The Selenium test client is created as follows:</p>
<pre><code>selen... | [
{
"answer_id": 446606,
"author": "Igor Brejc",
"author_id": 55408,
"author_profile": "https://Stackoverflow.com/users/55408",
"pm_score": 1,
"selected": false,
"text": " [FixtureSetUp]\n public virtual void TestFixtureSetup ()\n {\n BrowserType = (BrowserType) Enum.Parse ... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240263",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31412/"
] |
240,269 | <p>I'm hitting this error and I'm not really sure why. I have a minified version of excanvas.js and something is breaking in IE, specifically on:</p>
<p><code>
var b=a.createStyleSheet();
</code></p>
<p>I'm not sure why. Does anyone have any insight? I can provide more information, I'm just not sure what informati... | [
{
"answer_id": 652627,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "<html>\n<head>\n<title></title>\n<script>\nfor(var i=0;i<32;i++) {\ndocument.createStyleSheet();\n}\n</script>\n</head>\n<body>... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2484/"
] |
240,293 | <p>How would I achieve the pseudo-code below in JavaScript? I want to include the date check in the second code excerpt, where txtDate is for the BilledDate.</p>
<pre><code>If ABS(billeddate – getdate) > 31 then yesno “The date you have entered is more than a month from today, Are you sure the date is correct,”.... | [
{
"answer_id": 240337,
"author": "roenving",
"author_id": 23142,
"author_profile": "https://Stackoverflow.com/users/23142",
"pm_score": 3,
"selected": true,
"text": " var myDate = new Date(yearno, monthno-1, dayno);\n //you could put hour, minute, second and milliseconds in this to... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240293",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8741/"
] |
240,294 | <p>I'd like something like a generic, re-usable <code>getPosition()</code> method that will tell me the number of bytes read from the starting point of the stream. Ideally, I would prefer this to work with all InputStreams, so that I don't have to wrap each and every one of them as I get them from disparate sources.</... | [
{
"answer_id": 240312,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 2,
"selected": false,
"text": "InputStream"
},
{
"answer_id": 240431,
"author": "erickson",
"author_id": 3474,
"author_profile": "https... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23309/"
] |
240,314 | <p>I use Struts v1.3 and have following input form:</p>
<p>In struts-config.xml:</p>
<pre><code> <form-bean name="testForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="displayName" type="java.lang.String" />
</form-bean>
</code></pre>
<p... | [
{
"answer_id": 263444,
"author": "mana",
"author_id": 12016,
"author_profile": "https://Stackoverflow.com/users/12016",
"pm_score": 2,
"selected": false,
"text": "public void setDisplayName(String displayName) {\n this.displayName = displayName.trim();\n}\n"
}
] | 2008/10/27 | [
"https://Stackoverflow.com/questions/240314",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11662/"
] |
240,320 | <p>I have a method that I would like to call. However, I'm looking for a clean, simple way to kill it or force it to return if it is taking too long to execute.</p>
<p>I'm using Java.</p>
<p>to illustrate:</p>
<pre><code>logger.info("sequentially executing all batches...");
for (TestExecutor executor : builder.getE... | [
{
"answer_id": 240396,
"author": "krakatoa",
"author_id": 12223,
"author_profile": "https://Stackoverflow.com/users/12223",
"pm_score": 2,
"selected": false,
"text": "public void testStop(Runnable r) {\n Thread t = new Thread(r);\n t.start();\n try {\n t.join(2000);\n ... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20498/"
] |
240,333 | <p>I am trying to quantify "site slowness". In the olden days you just made sure that your HTML was lightweight, images optimized and servers not overloaded. In high end sites built on top of modern content management systems there are a lot more variables: third party advertising, trackers and various other callouts, ... | [
{
"answer_id": 241518,
"author": "bh213",
"author_id": 28912,
"author_profile": "https://Stackoverflow.com/users/28912",
"pm_score": 0,
"selected": false,
"text": "ab -c <number of CPUs on server> -n 1000 url"
}
] | 2008/10/27 | [
"https://Stackoverflow.com/questions/240333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/556/"
] |
240,341 | <p>I need a date formula in Oracle SQL or T-SQL that will return a date of the previous week (eg Last Monday's date).</p>
<p>I have reports with parameters that are run each week usually with parameter dates mon-friday or sunday-saturday of the previous week. I'd like to not have to type in the dates when i run the r... | [
{
"answer_id": 240368,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 2,
"selected": false,
"text": "SELECT \n DateColumn,\n DateColumn - CASE DATEPART(dw, DateColumn) \n WHEN 1 THEN 6\n ELSE... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240341",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
240,345 | <p>I have a ClickOnce deployed application I want to launch from VBScript, similar to launching Microsoft Word in the following example:</p>
<pre><code>Dim word
Set word = CreateObject("Word.Application")
word.Visible = True
</code></pre>
<p>The problem is I don't know what parameter to pass into the <code>CreateObje... | [
{
"answer_id": 265911,
"author": "Jeff",
"author_id": 13338,
"author_profile": "https://Stackoverflow.com/users/13338",
"pm_score": 1,
"selected": false,
"text": " Dim program As New Process\n\n 'Try to run a .Net click-once application\n Try\n Dim shortcut As String = En... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13338/"
] |
240,353 | <p>I'm looking for a way to convert a preprocessor token to a string.</p>
<p>Specifically, I've somewhere got:</p>
<pre><code>#define MAX_LEN 16
</code></pre>
<p>and I want to use it to prevent buffer overrun:</p>
<pre><code>char val[MAX_LEN+1]; // room for \0
sscanf(buf, "%"MAX_LEN"s", val);
</code></pre>
<p>I'm ... | [
{
"answer_id": 240361,
"author": "davenpcj",
"author_id": 4777,
"author_profile": "https://Stackoverflow.com/users/4777",
"pm_score": 5,
"selected": false,
"text": "#define VERSION_MAJOR 4\n#define VERSION_MINOR 47\n\n#define VERSION_STRING \"v\" #VERSION_MAJOR \".\" #VERSION_MINOR\n #de... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240353",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4777/"
] |
240,354 | <p>We have a POST to a PL/SQL database procedure that (a) does some database operations based on the POST parameters and (b) redirects the user to a page showing the results.</p>
<p>The problem is, when the user does a browser "refresh" of the results page, that still has the original request, so it calls the database... | [
{
"answer_id": 240361,
"author": "davenpcj",
"author_id": 4777,
"author_profile": "https://Stackoverflow.com/users/4777",
"pm_score": 5,
"selected": false,
"text": "#define VERSION_MAJOR 4\n#define VERSION_MINOR 47\n\n#define VERSION_STRING \"v\" #VERSION_MAJOR \".\" #VERSION_MINOR\n #de... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8051/"
] |
240,382 | <p>I need my .net application to use the .html extension instead of .aspx </p>
<p>I'm converting a php app and there are external applications which depend on that extension to function.</p>
<p>What is the best way to do this?</p>
<p>Thanks</p>
| [
{
"answer_id": 240441,
"author": "Sunny Milenov",
"author_id": 8220,
"author_profile": "https://Stackoverflow.com/users/8220",
"pm_score": 5,
"selected": true,
"text": "<httpHandlers>\n <remove verb=\"*\" path=\"*.html\" />\n <add verb=\"*\" path=\"*.html\" type=\"System.Web.UI.PageH... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240382",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2424/"
] |
240,393 | <p>I have the following SQL-statement:</p>
<pre><code>SELECT DISTINCT name FROM log WHERE NOT name = '' AND name LIKE '%.EDIT%';
</code></pre>
<p>It works fine on Postgres (returns all different names from log, which aren't empty and contain the string '.EDIT'). But on Oracle this statement doesn't work. Any idea why... | [
{
"answer_id": 240418,
"author": "RB.",
"author_id": 15393,
"author_profile": "https://Stackoverflow.com/users/15393",
"pm_score": 2,
"selected": false,
"text": " SELECT DISTINCT name \n FROM log\n WHERE name LIKE '%.EDIT%';\n"
},
{
"answer_id": 240430,
"author": "Tony Andrew... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21005/"
] |
240,394 | <p>In normal WebForms scenario, any root-relative URLs (e.g. ~/folder/file.txt) <strong>inside</strong> CSS files such as:</p>
<pre><code>.form { background-image: url(~/Content/Images/form_bg.gif); }
</code></pre>
<p>will automatically get resolved during runtime if I specify</p>
<pre><code><head runat="server"&... | [
{
"answer_id": 243765,
"author": "Boris Callens",
"author_id": 11333,
"author_profile": "https://Stackoverflow.com/users/11333",
"pm_score": 0,
"selected": false,
"text": "<link href=\"<%=PathHelper.CssUrl(\"FormulaIndex.css\")%>\" rel=\"Stylesheet\" type=\"text/css\"/>\n"
},
{
"... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3055/"
] |
240,411 | <p>In a class diagram, is there a way of specifying that a class is an internal class of another class ? </p>
<p>Or is it considered as a pure implementation choice ? </p>
| [
{
"answer_id": 240460,
"author": "Ray Hayes",
"author_id": 7093,
"author_profile": "https://Stackoverflow.com/users/7093",
"pm_score": 3,
"selected": false,
"text": "OuterClass vs OuterClass::InnerClass\n InnerClass::OuterClass"
}
] | 2008/10/27 | [
"https://Stackoverflow.com/questions/240411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20986/"
] |
240,419 | <p>I've got a VB.NET class that is invoked with a context menu extension in Internet Explorer. </p>
<p>The code has access to the object model of the page, and reading data is not a problem. This is the code of a test function...it changes the status bar text (OK), prints the page HTML (OK), changes the HTML by adding... | [
{
"answer_id": 240460,
"author": "Ray Hayes",
"author_id": 7093,
"author_profile": "https://Stackoverflow.com/users/7093",
"pm_score": 3,
"selected": false,
"text": "OuterClass vs OuterClass::InnerClass\n InnerClass::OuterClass"
}
] | 2008/10/27 | [
"https://Stackoverflow.com/questions/240419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22108/"
] |
240,425 | <p>When I merge the trunk into a feature-branch, a delete that occurred on the trunk will not be replicated to my working copy.</p>
<p>Why will a delete on trunk not delete the same file on a branch when merging?
I'm using subversion 1.5 client and server.</p>
<p>I'm assuming that changes to the file in the branch w... | [
{
"answer_id": 242636,
"author": "JXG",
"author_id": 15456,
"author_profile": "https://Stackoverflow.com/users/15456",
"pm_score": 1,
"selected": false,
"text": "svn status svn status"
},
{
"answer_id": 4337918,
"author": "RjOllos",
"author_id": 121694,
"author_profil... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240425",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/972/"
] |
240,428 | <p>What is people's prefered method of storing application configuration data in a database. From having done this in the past myself, I've utilised two ways of doing it.</p>
<ol>
<li>You can create a table where you store key/value pairs, where key is the name of the config option and value is its value. Pro's of thi... | [
{
"answer_id": 241703,
"author": "Tom",
"author_id": 13219,
"author_profile": "https://Stackoverflow.com/users/13219",
"pm_score": 0,
"selected": false,
"text": "CREATE TABLE [dbo].[MyOption] (\n [GUID] uniqueidentifier CONSTRAINT [dfMyOptions_GUID] DEFAULT newsequentialid() ROWGUIDCOL... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29086/"
] |
240,467 | <p>Of course, there are a whole range of possible errors relating to document validity, but my immediate stumbling block occurs when changing a paragraph (<code>p</code>) into an <code>address</code> element. My current method is (more-or-less):</p>
<pre><code>var p = $('p#test');
p.replaceWith('<address>' + p.h... | [
{
"answer_id": 240494,
"author": "Daniel Cassidy",
"author_id": 31662,
"author_profile": "https://Stackoverflow.com/users/31662",
"pm_score": 4,
"selected": true,
"text": "var p = $('p#test');\nvar a = $('<address>').\n append(p.contents());\np.replaceWith(a);\n"
}
] | 2008/10/27 | [
"https://Stackoverflow.com/questions/240467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5058/"
] |
240,470 | <p>I want to get user input in one page, store that in a php variable and use it in another php page. I have tried using 'sessions' but it doesn't seem to be working. Is there another safe alternative? This information is likely to be usernames and passwords.</p>
| [
{
"answer_id": 240503,
"author": "Ross",
"author_id": 2025,
"author_profile": "https://Stackoverflow.com/users/2025",
"pm_score": 5,
"selected": true,
"text": "<?php\nsession_start();\n\nif (isset($_POST['username'], $_POST['password']) {\n $_SESSION['username'] = $_POST['username'];\... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240470",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24391/"
] |
240,473 | <p>I have an unsorted list of noisy X, Y points. They do, however, form a path through the world. I would like an algorithm to draw an approximation of this data using line segments.</p>
<p>This is similar to how you would use a line -fitting algorithm to pick an approximation of linear data. My problem is only harder... | [
{
"answer_id": 274079,
"author": "Jay Kominek",
"author_id": 32878,
"author_profile": "https://Stackoverflow.com/users/32878",
"pm_score": 1,
"selected": false,
"text": "#lang scheme\n\n(require (only-in srfi/1 iota))\n\n; a bunch of trig\n(define (deg->rad d)\n (* pi (/ d 180)))\n\n(de... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240473",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/338/"
] |
240,510 | <p>I have a string from an email header, like <code>Date: Mon, 27 Oct 2008 08:33:29 -0700</code>. What I need is an instance of GregorianCalendar, that will represent the same moment. As easy as that -- how do I do it?</p>
<p>And for the fastest ones -- this is <strong>not</strong> going to work properly:</p>
<pre><c... | [
{
"answer_id": 240565,
"author": "Jack Leow",
"author_id": 31506,
"author_profile": "https://Stackoverflow.com/users/31506",
"pm_score": 5,
"selected": true,
"text": "DateTimeFormatter formatter =\n DateTimeFormat.forPattern(\"your pattern\").withOffsetParsed();\nDateTime dateTime = f... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3105/"
] |
240,531 | <p>I have a weird date rounding problem that hopefully someone can solve. My client uses a work week that runs from Monday through Sunday. Sunday's date is considered the end of the week, and is used to identify all records entered in a particular week (so anything entered last week would have a WEEKDATE value of '10... | [
{
"answer_id": 240560,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 3,
"selected": true,
"text": "public DateTime WeekNum(DateTime now)\n{\n DateTime NewNow = now.AddHours(-11).AddDays(6);\n\n return (NewNow.Ad... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240531",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14606/"
] |
240,537 | <p>Does anyone know of a simple web app that supports running ant tasks? Alternatively it could run command line programs. I need to allow the user to choose parameters for running the ant task. I effectively want a web interface to run the ant task and provide any parameters.</p>
<p>I can write one but this is gen... | [
{
"answer_id": 240558,
"author": "jakber",
"author_id": 29812,
"author_profile": "https://Stackoverflow.com/users/29812",
"pm_score": 0,
"selected": false,
"text": "echo shell_exec('ant');\n"
}
] | 2008/10/27 | [
"https://Stackoverflow.com/questions/240537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6770/"
] |
240,544 | <p>I have the following rails migration:</p>
<pre><code>create_table :articles do |t|
t.integer :user_id, :allow_null => false
t.integer :genre_id, :allow_null => false
t.string :url, :limit => 255, :allow_null => false
t.string :title, :limit => 60, :allow_null => false
t.text :summary, :l... | [
{
"answer_id": 240556,
"author": "Daniel Spiewak",
"author_id": 9815,
"author_profile": "https://Stackoverflow.com/users/9815",
"pm_score": 5,
"selected": true,
"text": "NULL"
}
] | 2008/10/27 | [
"https://Stackoverflow.com/questions/240544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31810/"
] |
240,546 | <p>Is there a good way to remove HTML from a Java string? A simple regex like</p>
<pre class="lang-js prettyprint-override"><code>replaceAll("\\<.*?>", "")
</code></pre>
<p>will work, but some things like <code>&amp;</code> won't be converted correctly and non-HTML between the two angle b... | [
{
"answer_id": 240630,
"author": "Chris Marasti-Georg",
"author_id": 96,
"author_profile": "https://Stackoverflow.com/users/96",
"pm_score": 7,
"selected": false,
"text": "<b>hey!</b> <b>hey!</b> hey! replaceAll(\"\\\\<[^>]*>\",\"\")\n <bhey!</b>"
},
{
"answer_id": 241757,
"a... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8973/"
] |
240,582 | <p>I have tried the following two statements:</p>
<ul>
<li><code>SELECT col FROM db.tbl WHERE col (LIKE 'str1' OR LIKE 'str2') AND col2 = num</code> results in a syntax error</li>
<li><code>SELECT col FROM db.tbl WHERE page LIKE ('str1' OR 'str2') AND col2 = num</code> results in "Truncated incorrect DOUBLE value: str... | [
{
"answer_id": 240585,
"author": "Tom Ritter",
"author_id": 8435,
"author_profile": "https://Stackoverflow.com/users/8435",
"pm_score": 7,
"selected": true,
"text": "SELECT col FROM db.tbl WHERE (col LIKE 'str1' OR col LIKE 'str2') AND col2 = num\n"
},
{
"answer_id": 240589,
... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
240,592 | <p>I'm working on a fiddly web interface which is mostly built with JavaScript. Its basically one (very) large form with many sections. Each section is built based on options from other parts of the form. Whenever those options change the new values are noted in a "registry" type object and the other sections re-popula... | [
{
"answer_id": 240663,
"author": "Ken",
"author_id": 20074,
"author_profile": "https://Stackoverflow.com/users/20074",
"pm_score": 2,
"selected": false,
"text": "$('body').change(function(event){\n /* do whatever you want with event.target here */\n console.debug(event.target); /* ... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30478/"
] |
240,648 | <p>I am trying to do a search in my Eclipse (Java) workspace to find all instances of static variables that are not final.</p>
<p>I tried various regexes but they do not result in any matches. Can someone suggest a regex that will match all lines containing <code>static</code> and not containing <code>final</code>, an... | [
{
"answer_id": 240687,
"author": "a2800276",
"author_id": 27408,
"author_profile": "https://Stackoverflow.com/users/27408",
"pm_score": 2,
"selected": false,
"text": "grep -r static . | grep -v final final"
},
{
"answer_id": 240848,
"author": "matt b",
"author_id": 4249,
... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31837/"
] |
240,659 | <p>I have a pretty generic Article model, with m2m relation to Tag model. I want to keep count of each tag usage, i think the best way would be to denormalise count field on Tag model and update it each time Article being saved. How can i accomplish this, or maybe there's a better way?</p>
| [
{
"answer_id": 241430,
"author": "Jonny Buchanan",
"author_id": 6760,
"author_profile": "https://Stackoverflow.com/users/6760",
"pm_score": 3,
"selected": true,
"text": "post_save post_delete Article Question User Question from django.contrib.auth.models import User\nfrom django.db impor... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240659",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7437/"
] |
240,660 | <p>I have an associative array in the form <code>key => value</code> where key is a numerical value, however it is not a sequential numerical value. The key is actually an ID number and the value is a count. This is fine for most instances, however I want a function that gets the human-readable name of the array and... | [
{
"answer_id": 240673,
"author": "Tom Ritter",
"author_id": 8435,
"author_profile": "https://Stackoverflow.com/users/8435",
"pm_score": 4,
"selected": false,
"text": "echo 'Widgets: ' . $data[$humanreadbleMapping['Widgets']];\n"
},
{
"answer_id": 240676,
"author": "KernelM",
... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
240,661 | <p>Do you think changing directories inside bash or Perl scripts is acceptable? Or should one avoid doing this at all costs?</p>
<p>What is the best practice for this issue?</p>
| [
{
"answer_id": 240703,
"author": "Hugo",
"author_id": 972,
"author_profile": "https://Stackoverflow.com/users/972",
"pm_score": 5,
"selected": true,
"text": "alias build-product1='(cd $working-copy/delivery; mvn package;)'\n"
},
{
"answer_id": 241489,
"author": "Schwern",
... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13523/"
] |
240,692 | <p>I am trying to download an xml.gz file from a remote server with HttpsURLConnection in java, but I am getting an empty response. Here is a sample of my code:</p>
<pre><code>URL server = new URL("https://www.myurl.com/path/sample_file.xml.gz");
HttpsURLConnection connection = (HttpsURLConnection)server.openConnecti... | [
{
"answer_id": 240871,
"author": "Ken Gentle",
"author_id": 8709,
"author_profile": "https://Stackoverflow.com/users/8709",
"pm_score": 2,
"selected": false,
"text": "response code connection.contentType"
},
{
"answer_id": 244318,
"author": "Zakir Hemraj",
"author_id": 29... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240692",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29752/"
] |
240,704 | <p>Does anyone have any suggestions for a good approach to finding all the CPAN dependencies that might have arisen in a bespoke development project. As tends to be the case your local development environment rarely matches your live one and as you build more and more projects you tend to build up a local library of in... | [
{
"answer_id": 240723,
"author": "Vagnerr",
"author_id": 3720,
"author_profile": "https://Stackoverflow.com/users/3720",
"pm_score": 3,
"selected": false,
"text": "perl -d:Modlist script.pl\n"
},
{
"answer_id": 240927,
"author": "KeyserSoze",
"author_id": 14116,
"auth... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3720/"
] |
240,713 | <p>I need to encrypt and decrypt a querystring in ASP.NET. </p>
<p>The querystring might look something like this:</p>
<blockquote>
<p><a href="http://www.mysite.com/report.aspx?id=12345&year=2008" rel="noreferrer">http://www.mysite.com/report.aspx?id=12345&year=2008</a></p>
</blockquote>
<p>How do I go ab... | [
{
"answer_id": 240730,
"author": "swilliams",
"author_id": 736,
"author_profile": "https://Stackoverflow.com/users/736",
"pm_score": 0,
"selected": false,
"text": "crypt"
},
{
"answer_id": 240751,
"author": "Brian Schmitt",
"author_id": 30492,
"author_profile": "https... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7072/"
] |
240,719 | <p>I'm running SQL Server 2000 and I need to export the SQL Statement from all the DTS objects so that they can be parsed and put into a wiki documentation if needed. </p>
<p>Is there a way to do that?</p>
<p>maybe dumping each DTS object out into a text file with the object name as the file name with the name of th... | [
{
"answer_id": 1070447,
"author": "eksortso",
"author_id": 446456,
"author_profile": "https://Stackoverflow.com/users/446456",
"pm_score": 2,
"selected": true,
"text": "outExt # from __future__ import with_statement # Version 2.5 requires this.\nimport os, re\n\ndef dump_sql(infile, out... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/730/"
] |
240,721 | <p>Has anyone used jQuery to populate an autocomplete list on a textbox using ASP.NET webforms? If so, can anyone recommend a good method? From my reading so far, it seems like most people are using delimited lists rather than JSON to bring the items back. I'm open to any ideas that will get me up and running rather qu... | [
{
"answer_id": 240882,
"author": "Pablo",
"author_id": 22696,
"author_profile": "https://Stackoverflow.com/users/22696",
"pm_score": 2,
"selected": true,
"text": "<BR/> > $(\"#input_box\").autocomplete(\"my_autocomplete_backend.php\");\n"
}
] | 2008/10/27 | [
"https://Stackoverflow.com/questions/240721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1284/"
] |
240,725 | <p>I have OS X 10.5 set up with the precompiled versions of PHP 5 and Apache 2. I'm trying to set up the Zend Debugger, but with no luck. Here's what I did:</p>
<ul>
<li>I downloaded <code>ZendDebugger-5.2.14-darwin8.6-uni.tar</code></li>
<li>I created the directory <code>/Developer/Extras/PHP</code> and set the per... | [
{
"answer_id": 270352,
"author": "inxilpro",
"author_id": 12549,
"author_profile": "https://Stackoverflow.com/users/12549",
"pm_score": 1,
"selected": false,
"text": "do shell script \"apachectl stop\" with administrator privileges\ndo shell script \"arch -i386 /usr/sbin/httpd\" with adm... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12549/"
] |
240,755 | <p>I have to create the sin function from scratch in my Comp Sci class, and I am getting close to a solution. However, I am still having a few problems. If I put in a value of .5PI or less it works, but otherwise I get the incorrect result. Here is the code I have so far:</p>
<pre><code>double i=1;
double sinSoFar = 0... | [
{
"answer_id": 240859,
"author": "Luiz Fernando Penkal",
"author_id": 4355,
"author_profile": "https://Stackoverflow.com/users/4355",
"pm_score": 4,
"selected": true,
"text": "public static long factorial(long n) {\n if (n < 0) throw new RuntimeException(\"Underflow error in... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31665/"
] |
240,764 | <p>I have seen some websites use the following tag:</p>
<pre><code><meta type="title" content="Title of the page" />
</code></pre>
<p>Is it needed when you have a <code><title></code>?</p>
<p>Also, what's the best formatting for a page title? Some ideas:</p>
<ul>
<li>Page Description :: Company Name</li... | [
{
"answer_id": 240867,
"author": "Leandro López",
"author_id": 22695,
"author_profile": "https://Stackoverflow.com/users/22695",
"pm_score": 2,
"selected": false,
"text": "<title>"
},
{
"answer_id": 404992,
"author": "cowgod",
"author_id": 6406,
"author_profile": "htt... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240764",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
240,765 | <p>I've got a lot of similar oracle jobs I need to create, and I'd like to do it programatically. </p>
<p>Where does the Oracle store the job library (schema/table)?</p>
<p>(yes, I know I might be running with scissors)</p>
| [
{
"answer_id": 240943,
"author": "Leigh Riffel",
"author_id": 27010,
"author_profile": "https://Stackoverflow.com/users/27010",
"pm_score": 4,
"selected": true,
"text": "dbms_job.submit(\nJOB OUT BINARY_INTEGER,\nWHAT IN VARCHAR2,\nNEXT_DATE IN DATE DEFAULT SYSDATE... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/685/"
] |
240,774 | <p>I'm having a small problem in Java. I have an interface called Modifiable. Objects implementing this interface are Modifiable.</p>
<p>I also have a ModifyCommand class (with the Command pattern) that receive two Modifiable objects (to swap them in a list further on - that's not my question, I designed that solution... | [
{
"answer_id": 240806,
"author": "Chris Marasti-Georg",
"author_id": 96,
"author_profile": "https://Stackoverflow.com/users/96",
"pm_score": 0,
"selected": false,
"text": "public Object clone() throws CloneNotSupportedException {\n return super.clone();\n}\n"
},
{
"answer_id":... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10687/"
] |
240,777 | <p>I've got a series of GIFs that I need to crop on the fly, I'm using a HTTP Handler in C# so I can better encapsulate the code - provide caching for the result etc.</p>
<p>Currently, when I draw the existing image to a new <code>Image</code> via the <code>Graphics</code> object all the transparency is lost.</p>
<p>... | [
{
"answer_id": 240939,
"author": "Ash",
"author_id": 31128,
"author_profile": "https://Stackoverflow.com/users/31128",
"pm_score": 0,
"selected": false,
"text": "Bitmap System.Drawing.Image SourceImage = System.Drawing.Image.FromFile(\"the.gif\");\nSystem.Drawing.Bitmap NewImage = new Sy... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5791/"
] |
240,778 | <p>I have a 4 side convex Polygon defined by 4 points in 2D, and I want to be able to generate random points inside it.</p>
<p>If it really simplifies the problem, I can limit the polygon to a parallelogram, but a more general answer is preferred.</p>
<p>Generating random points until one is inside the polygon wouldn... | [
{
"answer_id": 240790,
"author": "PierreBdR",
"author_id": 7136,
"author_profile": "https://Stackoverflow.com/users/7136",
"pm_score": 6,
"selected": true,
"text": "u v p = A + (u * AB) + (v * AD)\n AB AD (a,b,c,d) a+b+c+d=1 P P = a A + b B + c C + d D\n u+v=1"
},
{
"answer_id":... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240778",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1815/"
] |
240,788 | <p>Can I call a stored procedure in Oracle via a database link?</p>
<p>The database link is functional so that syntax such as...</p>
<pre><code>SELECT * FROM myTable@myRemoteDB
</code></pre>
<p>is functioning. But is there a syntax for...</p>
<pre><code>EXECUTE mySchema.myPackage.myProcedure('someParameter')@myRem... | [
{
"answer_id": 240798,
"author": "Justin Cave",
"author_id": 10397,
"author_profile": "https://Stackoverflow.com/users/10397",
"pm_score": 7,
"selected": true,
"text": "EXEC mySchema.myPackage.myProcedure@myRemoteDB( 'someParameter' );\n"
},
{
"answer_id": 9313996,
"author": ... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13930/"
] |
240,836 | <p>I'm currently working on a project where a section of the code looks like this:</p>
<pre><code>Select Case oReader.Name
Case "NameExample1"
Me.Elements.NameExample1.Value = oReader.ReadString
' ...
Case "NameExampleN"
Me.Elements.NameExampleN.Value = oReader.ReadSt... | [
{
"answer_id": 241143,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "Dictionary<string, PropertyInfo> GetProperty"
},
{
"answer_id": 15602458,
"author": "Jet",
"author_id": 1... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240836",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20/"
] |
240,850 | <p>I am having an issue when using <code>LoadControl( type, Params )</code>. Let me explain...</p>
<p>I have a super simple user control (ascx)</p>
<pre><code><%@ Control Language="C#" AutoEventWireup="True" Inherits="ErrorDisplay" Codebehind="ErrorDisplay.ascx.cs" EnableViewState="false" %>
<asp:Label runa... | [
{
"answer_id": 240998,
"author": "Ash",
"author_id": 31128,
"author_profile": "https://Stackoverflow.com/users/31128",
"pm_score": 6,
"selected": true,
"text": "protected void Page_Load(object sender, EventArgs e)\n{\n if (_ErrorMessage != null)\n {\n lblTitle.Text = _ErrorM... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31128/"
] |
240,863 | <p>So in a .NET app , i got about 2 million items that i need to hold them in memory for processing , 1 by 1, would holding these items in a Stack collection , is better than holding them in a List collection, assuming that the memory used by the stack object will be keep minimizing every time an item is poped out of t... | [
{
"answer_id": 240870,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 2,
"selected": false,
"text": "Stack<T> List<T> Queue<T> List<T> List<T> Stack<T>"
}
] | 2008/10/27 | [
"https://Stackoverflow.com/questions/240863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20006/"
] |
240,874 | <p>When you have a derived class, is there an simpler way to refer to a variable from a method other than:</p>
<pre><code>BaseClass::variable
</code></pre>
<p><strong>EDIT</strong>
<br>As it so happens, I found a page that explained this issue using functions instead:
<a href="http://www.parashift.com/c++-faq-lite/te... | [
{
"answer_id": 240881,
"author": "Dima",
"author_id": 13313,
"author_profile": "https://Stackoverflow.com/users/13313",
"pm_score": 4,
"selected": true,
"text": "\nclass Base\n{\nprotected:\n int a;\n\nprivate:\n int b;\n};\n\nclass Derived : public Base\n{\n void foo()\n {\n a = ... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240874",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/73/"
] |
240,876 | <p>I have this code</p>
<pre><code>#include <iostream>
using namespace std;
int main(int argc,char **argv) {
unsigned long long num1 = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999... | [
{
"answer_id": 241116,
"author": "Eclipse",
"author_id": 8701,
"author_profile": "https://Stackoverflow.com/users/8701",
"pm_score": 2,
"selected": false,
"text": "stringToBigUnsigned BigIntegerUtils.hh #include \"BigUnsigned.hh\"\n#include \"BigIntegerUtils.hh\" \n\n BigUnsigned nu... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8715/"
] |
240,887 | <p>I'm getting a whole bunch of linker errors in Visual studios for methods I'm not even calling directly. I'm a java developer by day, but I have a project I need to do in C++, intended to run on windows machines. Hence, I'm stuck messing about with Visual Studio.</p>
<p>Bascally, I have an os project that I added an... | [
{
"answer_id": 241047,
"author": "Rodney Schuler",
"author_id": 6188,
"author_profile": "https://Stackoverflow.com/users/6188",
"pm_score": 0,
"selected": false,
"text": "#pragma comment(lib, \"nafxcwd.lib\")\n"
},
{
"answer_id": 241137,
"author": "ChrisN",
"author_id": 3... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13825/"
] |
240,903 | <p>I'm looking for a library that can deal with RDF and OWL data.</p>
<p>So far I have found:</p>
<ul>
<li><a href="http://razor.occams.info/code/semweb/" rel="nofollow noreferrer">semweb</a> (no owl support for all I know)</li>
<li><a href="http://rowlex.nc3a.nato.int/HowToUse.aspx" rel="nofollow noreferrer">rowlex<... | [
{
"answer_id": 545739,
"author": "Mr. Lame",
"author_id": 24451,
"author_profile": "https://Stackoverflow.com/users/24451",
"pm_score": 5,
"selected": true,
"text": " RdfDocument rdfDoc = new RdfDocument();\n Car car = new Car(\"myCarUri\", rdfDoc);\n Vehicle vehicle = car; // i... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240903",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13466/"
] |
240,946 | <p>I want my WPF ComboBox's ItemsSource property to be bound to MyListObject's MyList property. The problem is that when I update the MyList property in code, the WPF ComboBox is not reflecting the update. I am raising the PropertyChanged event after I perform the update, and I thought WPF was supposed to automatical... | [
{
"answer_id": 240983,
"author": "Aaron Fischer",
"author_id": 5618,
"author_profile": "https://Stackoverflow.com/users/5618",
"pm_score": 3,
"selected": true,
"text": "Private obj As New MyListObject\n"
},
{
"answer_id": 240991,
"author": "Chris Porter",
"author_id": 134... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240946",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/132931/"
] |
240,948 | <p>I'm working on a small app where I can generate a list of barcodes. I have the correct fonts installed on my computer. Right now I am printing them directly to a webpage and it works properly in Chrome and IE 7, but not Firefox. Does anyone know what Firefox would be doing differently than IE and Chrome?</p>
<p>Her... | [
{
"answer_id": 241468,
"author": "Doug L.",
"author_id": 19179,
"author_profile": "https://Stackoverflow.com/users/19179",
"pm_score": 3,
"selected": false,
"text": "<IMG> <IMG> *574656* * 0 1 2 3 4 5 6 7 8 9 <html> \n <head> \n <title>Barcode Font Test</title> ... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1444511/"
] |
240,949 | <p>I have a set of templates for emails that my app sends out. The templates have codes embedded in them that correspond to properties of my business object. </p>
<p>Is there a more elegant way than calling </p>
<pre><code>string.Replace("{!MyProperty!}", item.MyProperty.ToString())
</code></pre>
<p>a zillion times... | [
{
"answer_id": 240973,
"author": "Wim",
"author_id": 30874,
"author_profile": "https://Stackoverflow.com/users/30874",
"pm_score": 1,
"selected": false,
"text": "string.Replace foreach (string property in properties)\n{\n string.Replace(\"{!\"+property+\"!}\",ReflectionHelper.GetStringV... | 2008/10/27 | [
"https://Stackoverflow.com/questions/240949",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
241,003 | <p>Is there some way to get a value from the last inserted row?</p>
<p>I am inserting a row where the PK will automatically increase, and I would like to get this PK. Only the PK is guaranteed to be unique in the table.</p>
<p>I am using Java with a JDBC and PostgreSQL.</p>
| [
{
"answer_id": 241016,
"author": "svrist",
"author_id": 86,
"author_profile": "https://Stackoverflow.com/users/86",
"pm_score": 3,
"selected": false,
"text": "currval(sequence)\n"
},
{
"answer_id": 241019,
"author": "BradC",
"author_id": 21398,
"author_profile": "http... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26567/"
] |
241,009 | <p>In a Visual Basic project, I created a homemade TabControl in order to fix a visual bug. The control works properly, however whenever I modify the form using my tab, Visual Studio adds MyProject in front of the control in its declaration:</p>
<pre><code>Me.tabMenu = New MyProject.MyClass 'Gives a BC30002 compile e... | [
{
"answer_id": 241077,
"author": "John Rudy",
"author_id": 14048,
"author_profile": "https://Stackoverflow.com/users/14048",
"pm_score": 0,
"selected": false,
"text": "MyProject"
},
{
"answer_id": 270041,
"author": "pipTheGeek",
"author_id": 28552,
"author_profile": "... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25818/"
] |
241,015 | <p>I have a backup server that automatically backs up my live site, both files and database.</p>
<p>On the live site, the text looks fine, but when you view the mirrored version of it, it displays '?' within some of the text. This text is stored within the news database table.</p>
<p>Here is a screenshot of it being on... | [
{
"answer_id": 241030,
"author": "IAdapter",
"author_id": 30453,
"author_profile": "https://Stackoverflow.com/users/30453",
"pm_score": 6,
"selected": true,
"text": "SET NAMES 'utf8';\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"
},
{
"answer_id":... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241015",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26130/"
] |
241,034 | <p>I have a very simple Java RMI Server that looks like the following:</p>
<pre><code> import java.rmi.*;
import java.rmi.server.*;
public class CalculatorImpl extends UnicastRemoteObject implements Calculator {
private String mServerName;
public CalculatorImpl(String serverName) throws R... | [
{
"answer_id": 241214,
"author": "Clayton",
"author_id": 1449,
"author_profile": "https://Stackoverflow.com/users/1449",
"pm_score": 5,
"selected": true,
"text": "public void exit() throws RemoteException\n{\n try{\n // Unregister ourself\n Naming.unbind(mServerName);\n\... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241034",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1449/"
] |
241,051 | <p>I have nant set up to build my ASP.NET MVC project and it works fine locally. I add nant to a tools folder and add it to version control. TeamCity picks up my changes and starts the build but it fails.</p>
<p>I believe I'm using the latest version of Nant and I have added the .net framework 3.5 to the nant.exe.co... | [
{
"answer_id": 3153659,
"author": "Matt Scully",
"author_id": 380555,
"author_profile": "https://Stackoverflow.com/users/380555",
"pm_score": 2,
"selected": false,
"text": "<directory name=\"${path::combine(sdkInstallRoot, 'bin')}\""
}
] | 2008/10/27 | [
"https://Stackoverflow.com/questions/241051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9938/"
] |
241,083 | <p>I used to have a class in 1.1 for the Datagrid that inherited from the DataGridColumn class. This allowed me to create a check box column with a client-side un/check-all box in the header. Then as I designed my grid I would just add my custom column.</p>
<p>I am currently on a project where I need similar functiona... | [
{
"answer_id": 241617,
"author": "AndyG",
"author_id": 27678,
"author_profile": "https://Stackoverflow.com/users/27678",
"pm_score": 0,
"selected": false,
"text": "<asp:DataGrid id=\"DG1\" runat = \"server\" DataKeyField = \"ID\">\n<Columns>\n<asp:TemplateColumn HeaderText=\"ProductName\... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30492/"
] |
241,086 | <p>I am setting up an Oracle connection for NHibernate for the first time. I have copied the Oracle.DataAccess.dll file into my bin folder. No matter what I try, I keep getting the same error:</p>
<pre><code>Could not load type >NHibernate.Driver.OracleDataClientDriver. Possible cause: no assembly name specified.
... | [
{
"answer_id": 241154,
"author": "Nelson Miranda",
"author_id": 1130097,
"author_profile": "https://Stackoverflow.com/users/1130097",
"pm_score": 0,
"selected": false,
"text": "hibernate <property name=\"hibernate.connection.provider\">NHibernate.Connection.DriverConnectionProvider</prop... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1284/"
] |
241,088 | <p>I have some Java code that uses curly braces in two ways</p>
<pre><code>// Curly braces attached to an 'if' statement:
if(node.getId() != null)
{
node.getId().apply(this);
}
// Curly braces by themselves:
{
List<PExp> copy = new ArrayList<PExp>(node.getArgs());
for(PExp e : copy)
{
... | [
{
"answer_id": 241097,
"author": "matt b",
"author_id": 4249,
"author_profile": "https://Stackoverflow.com/users/4249",
"pm_score": 8,
"selected": true,
"text": "List<PExp> copy List<PExp> copy"
},
{
"answer_id": 241182,
"author": "Hugo",
"author_id": 972,
"author_pro... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/85/"
] |
241,089 | <p>I need to respond to the events of minimizing / maximizing Eclipse window. How do I do that?</p>
| [
{
"answer_id": 241097,
"author": "matt b",
"author_id": 4249,
"author_profile": "https://Stackoverflow.com/users/4249",
"pm_score": 8,
"selected": true,
"text": "List<PExp> copy List<PExp> copy"
},
{
"answer_id": 241182,
"author": "Hugo",
"author_id": 972,
"author_pro... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/431/"
] |
241,100 | <p>I have a DataGridView with one DataGridViewComboBoxColumn in my WinForms application. I need to drop down (open) this DataGridViewComboBoxColumn manually, let's say after a button is clicked.</p>
<p>The reason I need this is I have set SelectionMode to FullRowSelect and I need to click 2-3 times to open the combo b... | [
{
"answer_id": 241218,
"author": "thismat",
"author_id": 14045,
"author_profile": "https://Stackoverflow.com/users/14045",
"pm_score": 6,
"selected": true,
"text": " Private Sub cell_Click(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles DataGridView1.CellCl... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241100",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20353/"
] |
241,102 | <p>I have been working on a webpage. It is the first I have actually tried to design using an image and then use proper CSS layout rather than tables.</p>
<p><a href="http://www.roccocammisola.com/proj/brunel/bgimage.html" rel="nofollow noreferrer">http://www.roccocammisola.com/proj/brunel/bgimage.html</a></p>
<p>I h... | [
{
"answer_id": 241115,
"author": "Larsenal",
"author_id": 337,
"author_profile": "https://Stackoverflow.com/users/337",
"pm_score": 1,
"selected": false,
"text": ".mainShadowRight {\n*/ your other stuff */\nurl('images/mainShadowRight.gif');\n}\n"
}
] | 2008/10/27 | [
"https://Stackoverflow.com/questions/241102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31866/"
] |
241,131 | <p>I've got a workspace with multiple RCP plugin projects.</p>
<p>We've set the target platform, so we can build against a standard set of plugins, but are not able to see source code and Javadoc for all the platform plugins.</p>
<p>The Windows -> Preferences -> Plug-in Development -> Target Platform -> Source Code L... | [
{
"answer_id": 241200,
"author": "jamesh",
"author_id": 4737,
"author_profile": "https://Stackoverflow.com/users/4737",
"pm_score": 0,
"selected": false,
"text": "-install"
},
{
"answer_id": 12535099,
"author": "lueders",
"author_id": 1689420,
"author_profile": "https... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4737/"
] |
241,134 | <p>I was recently working with a <code>DateTime</code> object, and wrote something like this:</p>
<pre><code>DateTime dt = DateTime.Now;
dt.AddDays(1);
return dt; // still today's date! WTF?
</code></pre>
<p>The intellisense documentation for <code>AddDays()</code> says it adds a day to the date, which it doesn't - i... | [
{
"answer_id": 241138,
"author": "Mitchel Sellers",
"author_id": 13279,
"author_profile": "https://Stackoverflow.com/users/13279",
"pm_score": 6,
"selected": false,
"text": "int x = 0;\nx = x++;\nreturn x;\n"
},
{
"answer_id": 241155,
"author": "tvanfosson",
"author_id": ... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14606/"
] |
241,141 | <p>I would like create my own collection that has all the attributes of python list and also knows how to save/load itself into/from a database. Also I want to make the load implicit and lazy, as in it doesn't happen at the point of creation of the list, but waits until its first used.</p>
<p>Is there a single<code>_... | [
{
"answer_id": 241169,
"author": "Alex Coventry",
"author_id": 1941213,
"author_profile": "https://Stackoverflow.com/users/1941213",
"pm_score": 2,
"selected": false,
"text": "__getattribute__"
},
{
"answer_id": 242111,
"author": "Glyph",
"author_id": 13564,
"author_p... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/52490/"
] |
241,142 | <p>i want to be a good developer citizen, <a href="http://blogs.msdn.com/oldnewthing/archive/2005/08/22/454487.aspx" rel="nofollow noreferrer">pay my taxes</a>, and disable things if we're running over Remote Desktop, or running on battery.</p>
<p>If we're running over remote desktop (or equivalently in a Terminal ser... | [
{
"answer_id": 241159,
"author": "driis",
"author_id": 13627,
"author_profile": "https://Stackoverflow.com/users/13627",
"pm_score": 3,
"selected": false,
"text": "using System;\nusing System.Runtime.InteropServices;\nnamespace PowerStateExample\n{\n [StructLayout(LayoutKind.Sequentia... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
241,144 | <p>I know that this is a very specific C++ and Qt related question, but maybe someone can help me, anyway ...</p>
<p>See the code below: I want to display an image within a scroll area. The view port of the scroll area shall have a defined initial size. That means, if the image's size is bigger than the initial size o... | [
{
"answer_id": 243561,
"author": "Caleb Huitt - cjhuitt",
"author_id": 9876,
"author_profile": "https://Stackoverflow.com/users/9876",
"pm_score": 0,
"selected": false,
"text": "area->resize( 300 + fudge, 300 + fudge )"
},
{
"answer_id": 250257,
"author": "mxcl",
"author_... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2012356/"
] |
241,145 | <p>How do you create a simple, custom rule using the jQuery Validate plugin (using <a href="http://jqueryvalidation.org/jQuery.validator.addMethod" rel="noreferrer"><code>addMethod</code></a>) that doesn't use a regex?</p>
<p>For example, what function would create a rule that validates only if at least one of a group... | [
{
"answer_id": 241202,
"author": "Mark Spangler",
"author_id": 456684,
"author_profile": "https://Stackoverflow.com/users/456684",
"pm_score": 9,
"selected": false,
"text": "jQuery.validator.addMethod(\"greaterThanZero\", function(value, element) {\n return this.optional(element) || (... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241145",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31869/"
] |
241,150 | <p>I want to filter the selectable dates on a datepicker. I basically need to filter by work days - i.e. make holidays and weekends not selectable.</p>
<p>I know you can specify dates using a function in the beforeShowDate: and you can also use $.datepicker.noWeekends.</p>
<p>Question is: can you do both?</p>
| [
{
"answer_id": 241244,
"author": "Randy",
"author_id": 9361,
"author_profile": "https://Stackoverflow.com/users/9361",
"pm_score": 4,
"selected": true,
"text": "function (date) { \n var day = date.getDay(); \n return [day > 0 && day < 6, \"\"]; \n}\n"
},
{
"answer_id": 1427... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1075/"
] |
241,152 | <p>I'm displaying a series of images in a UIScrollView. I pretty much want to replicate the Photos application.</p>
<p>My current architecture is:
<li> A parent UIScrollView with content size that is wide enough for <i>x</i> number of pages + some extra space for margins in between the images.</li>
<li> Each image is ... | [
{
"answer_id": 831262,
"author": "Andrey Tarantsov",
"author_id": 58146,
"author_profile": "https://Stackoverflow.com/users/58146",
"pm_score": 3,
"selected": false,
"text": "viewForZoomingInScrollView: scrollViewDidEndZooming:withView:atScale: typedef enum {\n ScrollViewModeNotInitia... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241152",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30896/"
] |
241,166 | <p>Question: Is there any reason Autocomplete=off on a ASP:Textbox would not be working in IE 7?</p>
<p>In case this is the best term for it, the IE Autocomplete feature is that drop down list like thing that drops down from textboxes and shows you past things you have typed in.</p>
<p>I need the IE Autocomplete feat... | [
{
"answer_id": 241172,
"author": "BoboTheCodeMonkey",
"author_id": 30532,
"author_profile": "https://Stackoverflow.com/users/30532",
"pm_score": 1,
"selected": false,
"text": "someTextbox.Attributes.Add(\"autocomplete\", \"off\");\n"
},
{
"answer_id": 241184,
"author": "Lea C... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21691/"
] |
241,178 | <p>I would like to know who is locking a file (win32). I know about <a href="http://www.dr-hoiby.com/WhoLockMe/" rel="noreferrer">WhoLockMe</a>, but I would like a <strong>command-line tool</strong> which does more or less the same thing.</p>
<p>I also looked at <a href="https://stackoverflow.com/questions/208283/is-i... | [
{
"answer_id": 30023333,
"author": "MacGyver",
"author_id": 640205,
"author_profile": "https://Stackoverflow.com/users/640205",
"pm_score": 4,
"selected": false,
"text": "PATH handle \"C:\\path\\path\\file.txt\"\n"
},
{
"answer_id": 55616304,
"author": "Augustas",
"author... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13051/"
] |
241,185 | <p>I'd like to write a MessageConverter class that can wrap another MessageConverter. This MessageConverter would call the child converter, which is assumed to generate a TextMessage. It would take the payload and GZIP compress it, creating a BytesMessage which is ultimately returned to the sender.</p>
<p>The problem ... | [
{
"answer_id": 241695,
"author": "nsayer",
"author_id": 13757,
"author_profile": "https://Stackoverflow.com/users/13757",
"pm_score": 2,
"selected": true,
"text": " private static class FakeTextMessage implements TextMessage {\n public FakeTextMessage(Message m) { this.chil... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13757/"
] |
241,193 | <p>Is there a .dll version of the <a href="http://t3.dotgnu.info/blog/php/messy-programmers-beware.html" rel="nofollow noreferrer">inclued</a> extension for <a href="http://us2.php.net/manual/en/intro.inclued.php" rel="nofollow noreferrer">PHP</a>?
The manual's link for <a href="http://pecl4win.php.net/ext.php/php_incl... | [
{
"answer_id": 241239,
"author": "Mark Biek",
"author_id": 305,
"author_profile": "https://Stackoverflow.com/users/305",
"pm_score": 3,
"selected": false,
"text": "ERROR: The DSP inclued.dsp does not exist.\n"
},
{
"answer_id": 243004,
"author": "Ross",
"author_id": 2025... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241193",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24181/"
] |
241,211 | <p>I have many instances of an application installed on an IIS 6.0, Windows Server 2003 box under the same application pool. They share many of the same assemblies and can not be joined in to a single application. </p>
<p>I recently added a new instance of the application and obtained a System.OutOfMemoryException whe... | [
{
"answer_id": 259427,
"author": "Christopher G. Lewis",
"author_id": 13532,
"author_profile": "https://Stackoverflow.com/users/13532",
"pm_score": 1,
"selected": false,
"text": "<system.web>\n <!--\n <deployment\n retail = \"false\" [true|false]\n />\n -->... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
241,222 | <p>For a particular application, I need the screen saver to be disabled while it's running. The operator COULD manually turn it off, and then back on later, but the easiest thing to do would be to just keep the screen saver at bay while the application is running.</p>
<p>How do I do this? I've found code for actually... | [
{
"answer_id": 1318629,
"author": "Serafeim",
"author_id": 119071,
"author_profile": "https://Stackoverflow.com/users/119071",
"pm_score": 5,
"selected": true,
"text": "SetThreadExecutionState(ES_DISPLAY_REQUIRED)"
},
{
"answer_id": 3739684,
"author": "Ohad Schneider",
"a... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8173/"
] |
241,238 | <p>Could someone supply some code that would get the xpath of a System.Xml.XmlNode instance?</p>
<p>Thanks!</p>
| [
{
"answer_id": 241291,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 7,
"selected": true,
"text": "using System;\nusing System.Text;\nusing System.Xml;\n\nclass Test\n{\n static void Main()\n {\n string xml ... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241238",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5653/"
] |
241,250 | <p>Is there explicit support for Single Table Inheritance in Django? Last I heard, the feature was still under development and debate. </p>
<p>Are there libraries/hacks I can use in the meantime to capture the basic behavior? I have a hierarchy that mixes different objects. The canonical example of a corporation struc... | [
{
"answer_id": 2383744,
"author": "James",
"author_id": 266572,
"author_profile": "https://Stackoverflow.com/users/266572",
"pm_score": 2,
"selected": false,
"text": "class Citrus(models.Model):\n how_acidic = models.PositiveIntegerField(max_value=100)\n skin_color = models.CharFie... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1227001/"
] |
241,269 | <p>I am writing a program that will be emailing reports out many (~100) clients which I want to test before I spam everyone.</p>
<p>I want to do a test run against my production data and actually send the messages to a SMTP server, but I don't want the SMTP server to actually deliver the messages. I want the server t... | [
{
"answer_id": 241355,
"author": "vmarquez",
"author_id": 10740,
"author_profile": "https://Stackoverflow.com/users/10740",
"pm_score": 0,
"selected": false,
"text": "/usr/lib/sendmail -bt -Ciu-testconfiguration.cf"
},
{
"answer_id": 253454,
"author": "George",
"author_id... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20267/"
] |
241,285 | <p>I'm developing an algorithm to parse a number out of a series of short-ish strings. These strings are somewhat regular, but there's a few different general forms and several exceptions. I'm trying to build a set of regexes that will handle the various forms and exceptions; I'll apply them one after another to see if... | [
{
"answer_id": 241288,
"author": "Kip",
"author_id": 18511,
"author_profile": "https://Stackoverflow.com/users/18511",
"pm_score": 2,
"selected": false,
"text": "X (\\(Y\\))? Z\n"
},
{
"answer_id": 241292,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3488/"
] |
241,311 | <p>The question is if a database connection should be passed in by reference or by value?</p>
<p>For me I'm specifically questioning a PHP to MySQL connection, but I think it applies to all databases.</p>
<p>I have heard that in PHP when you pass a variable to a function or object, that it is copied in memory and the... | [
{
"answer_id": 241330,
"author": "TJ L",
"author_id": 12605,
"author_profile": "https://Stackoverflow.com/users/12605",
"pm_score": 3,
"selected": false,
"text": "<?php\nClass Factory\n{\n private static $local_db;\n\n/**\n* Open new local database connection\n*\n* @return MySql\n*/\npu... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
241,325 | <p>When using <code>grep --color=always</code> I can get pretty color highlighting for regex matches.</p>
<p>However, <code>grep</code> only returns lines with at least one match. Instead, I am looking for a way to simply highlight regex matches, while leaving all other input alone, without dropping lines without any... | [
{
"answer_id": 241390,
"author": "boxxar",
"author_id": 15732,
"author_profile": "https://Stackoverflow.com/users/15732",
"pm_score": 2,
"selected": false,
"text": "function color_grep {\n sed s/$1/$fg[yellow]$1$terminfo[sgr0]/g\n}\n autoload colors zsh/terminfo\n"
},
{
"answe... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29701/"
] |
241,327 | <p>I'm looking for Python code that removes C and C++ comments from a string. (Assume the string contains an entire C source file.)</p>
<p>I realize that I could .match() substrings with a Regex, but that doesn't solve nesting <code>/*</code>, or having a <code>//</code> inside a <code>/* */</code>.</p>
<p>Ideally, I... | [
{
"answer_id": 241329,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 5,
"selected": false,
"text": "//.*?\\n|/\\*.*?\\*/\n Re.S def stripcomments(text):\n return re.sub('//.*?\\n|/\\*.*?\\*/', '', text, flags=re.S)... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241327",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26251/"
] |
241,334 | <p>I need to to iterate over the files in a directory and perform the following replacement.</p>
<p><strong>Before:</strong></p>
<blockquote>
<p>Hello ${USER_NAME}, you live at
${HOME_ADDRESS}. It is now ${TIME}</p>
</blockquote>
<p><strong>After:</strong></p>
<blockquote>
<p>Hello ${userName}, you live at
... | [
{
"answer_id": 241350,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 3,
"selected": true,
"text": "-i sed -i 's/USER_NAME/userName/g'\n sub convert {\n my $r = lc $_[0];\n $r =~ s/_(.)/\\U$1\\E/g;\n return $r;\n}... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2648/"
] |
241,339 | <p>Here's what <a href="https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/static-classes-and-static-class-members" rel="noreferrer">MSDN has to say under <em>When to Use Static Classes</em></a>:</p>
<blockquote>
<pre><code>static class CompanyInfo
{
public static string GetCompa... | [
{
"answer_id": 241372,
"author": "Mark S. Rasmussen",
"author_id": 12469,
"author_profile": "https://Stackoverflow.com/users/12469",
"pm_score": 11,
"selected": true,
"text": "new MyClass();"
},
{
"answer_id": 241411,
"author": "Rob",
"author_id": 2595,
"author_profil... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241339",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1266/"
] |
241,364 | <p>I admit - I'm a complete novice when it comes to unit testing. I can grasp the concepts easily enough (test one thing, break-fix-test-repeat, etc.), but I'm having a bit of a problem getting my mind around this one...</p>
<p>I've been tasked with rewriting a large section of our application, and I've got the class ... | [
{
"answer_id": 241383,
"author": "Igal Tabachnik",
"author_id": 8205,
"author_profile": "https://Stackoverflow.com/users/8205",
"pm_score": 2,
"selected": false,
"text": "InternalsVisibleTo internal [assembly: InternalsVisibleTo(\"MyApplication.Tests\")]"
}
] | 2008/10/27 | [
"https://Stackoverflow.com/questions/241364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2018855/"
] |
241,388 | <p>I'm looking at the following code snippet:</p>
<pre><code>my @ret = <someMethod>
return (undef) if( $DB_ERROR );
return (undef) unless ($#ret >= 0);
</code></pre>
<p>Does <code>$#</code> just give you a count of elements in a array?</p>
| [
{
"answer_id": 241394,
"author": "Ed Guiness",
"author_id": 4200,
"author_profile": "https://Stackoverflow.com/users/4200",
"pm_score": 7,
"selected": true,
"text": "$#arrayname @ret $#ret print scalar @ret;\n"
},
{
"answer_id": 241462,
"author": "Schwern",
"author_id": 1... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241388",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31301/"
] |
241,396 | <p>I produce server software and have been fine with all Linux environments so far, both for production and as deployment target. However, I want to provide a broader choice of target environments in the future and I'm also planning features that would consume and produce Office documents.</p>
<p>As a first step, I am... | [
{
"answer_id": 241394,
"author": "Ed Guiness",
"author_id": 4200,
"author_profile": "https://Stackoverflow.com/users/4200",
"pm_score": 7,
"selected": true,
"text": "$#arrayname @ret $#ret print scalar @ret;\n"
},
{
"answer_id": 241462,
"author": "Schwern",
"author_id": 1... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2077/"
] |
241,397 | <p>How do you answer the following questions from managers, testers and other people in your team:</p>
<p>In what build is bug #829 fixed? What tasks have been completed in our current test build?</p>
<p>So simply put, how do you achieve traceability of your requirements, tasks and bugs right from them being reported... | [
{
"answer_id": 241419,
"author": "Eoin Campbell",
"author_id": 30155,
"author_profile": "https://Stackoverflow.com/users/30155",
"pm_score": 3,
"selected": true,
"text": "Deployed On | Environment | Changeset\n--------------+-------------------------+-----------------------... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241397",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30874/"
] |
241,402 | <p>I'm wanting to add a class to the body tag without waiting for the DOM to load, but I'm wanting to know if the following approach would be valid. I'm more concerned with validity than whether the browsers support it for now.</p>
<pre><code><body>
$("body").addClass("active");
...
</body>
</code></pr... | [
{
"answer_id": 241418,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": "<body>\n <div id='topStories'></div>\n <script type='text/javascript'>\n $('div#topStories').addClass('active')... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16124/"
] |
241,403 | <p>How do I get a list of domain user accounts with win32 api? </p>
<p>In particular, I can't get this list when the computer is not the domain controller. Instead it is a member of the domain. </p>
| [
{
"answer_id": 241418,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": "<body>\n <div id='topStories'></div>\n <script type='text/javascript'>\n $('div#topStories').addClass('active')... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241403",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
241,405 | <p>I have a string that I need to convert to the equivalent array of bytes in .NET. </p>
<p>This ought to be easy, but I am having a brain cramp.</p>
| [
{
"answer_id": 241408,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 8,
"selected": true,
"text": "System.Text.Encoding System.Text.Encoding.Unicode var result = System.Text.Encoding.Unicode.GetBytes(text);\n"
},
... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23862/"
] |
241,407 | <p>For this xml (in a SQL 2005 XML column): </p>
<pre><code><doc>
<a>1</a>
<b ba="1" bb="2" bc="3" />
<c bd="3"/>
<doc>
</code></pre>
<p>I'd like to be able to retrieve the names of the attributes (ba, bb, bc, bd) rather than the values <em>inside SQL Server 2005</em>. Well, X... | [
{
"answer_id": 241687,
"author": "Ray Lu",
"author_id": 11413,
"author_profile": "https://Stackoverflow.com/users/11413",
"pm_score": 4,
"selected": true,
"text": "DECLARE @xml as xml\nDECLARE @path as varchar(max)\nDECLARE @index int, @count int\n\nSET @xml = \n'<doc>\n <a>1</a>\n <b ba... | 2008/10/27 | [
"https://Stackoverflow.com/questions/241407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30946/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.