qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
283,951 | <p>This may be a painfully simply question for which I will be mocked but I am having difficulty in using filepaths in master pages. I believe this is because if a page in a sub-directory to using the master page then the filepath is incorrect.</p>
<p>To fix this I need to get the filepath from the root but I can't see... | [
{
"answer_id": 283976,
"author": "Powerlord",
"author_id": 15880,
"author_profile": "https://Stackoverflow.com/users/15880",
"pm_score": 3,
"selected": true,
"text": "<script type=\"text/javascript\" src=\"/jQueryScripts/jquery.js\"></script>"
},
{
"answer_id": 284005,
"autho... | 2008/11/12 | [
"https://Stackoverflow.com/questions/283951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35454/"
] |
283,956 | <p>If for example you follow the link:</p>
<p><code>data:application/octet-stream;base64,SGVsbG8=</code></p>
<p>The browser will prompt you to download a file consisting of the data held as base64 in the hyperlink itself. Is there any way of suggesting a default name in the markup? If not, is there a JavaScript sol... | [
{
"answer_id": 283982,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 5,
"selected": false,
"text": "<a> download <a>"
},
{
"answer_id": 6171309,
"author": "ninjagecko",
"author_id": 711085,
"author_profil... | 2008/11/12 | [
"https://Stackoverflow.com/questions/283956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
283,961 | <p>I have a problem when I try to center the div block "products" because I don't know in advance the div width. Anybody have a solution?</p>
<p>Update: The problem I have is I don't know how many products I'll display, I can have 1, 2 or 3 products, I can center them if it was a fixed number as I'd know the width of... | [
{
"answer_id": 283974,
"author": "Arief",
"author_id": 34096,
"author_profile": "https://Stackoverflow.com/users/34096",
"pm_score": -1,
"selected": false,
"text": " margin: 0px auto;\n padding: 0px;\n border:0;\n width: 700px;\n"
},
{
"answer_id": 283985,
"author... | 2008/11/12 | [
"https://Stackoverflow.com/questions/283961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
283,965 | <p>for a server based j2ee application, I need to retrieve the number of pages from word documents.. any ideas what works?</p>
| [
{
"answer_id": 34554452,
"author": "Khalid Habib",
"author_id": 1533783,
"author_profile": "https://Stackoverflow.com/users/1533783",
"pm_score": 0,
"selected": false,
"text": "Document doc = new Document(\"C:\\\\Temp\\\\file.doc\"); \n int pageCount = doc.getPageCount();\n"
},
{
... | 2008/11/12 | [
"https://Stackoverflow.com/questions/283965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36906/"
] |
283,977 | <p>Does the C++ STL set data structure have a set difference operator?</p>
| [
{
"answer_id": 283989,
"author": "Ian G",
"author_id": 5764,
"author_profile": "https://Stackoverflow.com/users/5764",
"pm_score": 1,
"selected": false,
"text": "template <class InputIterator1, class InputIterator2, class OutputIterator>\nOutputIterator set_difference(InputIterator1 firs... | 2008/11/12 | [
"https://Stackoverflow.com/questions/283977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28462/"
] |
284,019 | <p>What is the best way to convert a fixed length string array to a fixed lengh integer array in C++ ?</p>
| [
{
"answer_id": 284040,
"author": "luke",
"author_id": 16434,
"author_profile": "https://Stackoverflow.com/users/16434",
"pm_score": 3,
"selected": false,
"text": "#include <algorithm>\nchar foo[9] = \"asdfasdf\";\nint bar[9];\nstd::copy(foo, foo+9, bar);\n #include <algorithm>\n#include ... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
284,029 | <p>I use SourceGear Vault and applyLabel="true" for a project so when it builds it will create a label in SourceGear Vault for the corresponding project.My questions are</p>
<p>I have a nightly builds so what if i don't have any changes made to that project for that day then how do I define my settings....</p>
<pre><... | [
{
"answer_id": 284068,
"author": "Scott Dorman",
"author_id": 1559,
"author_profile": "https://Stackoverflow.com/users/1559",
"pm_score": 2,
"selected": false,
"text": "<triggers> <triggers>\n <scheduleTrigger time=\"00:30\" buildCondition=\"IfModificationExists\"/>\n </trigger... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
284,038 | <p>I am currently modifying some jsf application. I have two beans.</p>
<ul>
<li>connectionBean</li>
<li>UIBean</li>
</ul>
<p>When I set my connection parameters in connectionBean the first time, the UIBean is able to read my connectionBean information and display the correct UI Tree.</p>
<p>However when I try to se... | [
{
"answer_id": 286577,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "protected Object getBackingBean( String name )\n{\n FacesContext context = FacesContext.getCurrentInstance();\n\n return... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
284,043 | <p>If I'm writing unit tests in Python (using the unittest module), is it possible to output data from a failed test, so I can examine it to help deduce what caused the error?</p>
<p>I am aware of the ability to create a customized message, which can carry some information, but sometimes you might deal with more comple... | [
{
"answer_id": 284110,
"author": "Ned Batchelder",
"author_id": 14343,
"author_profile": "https://Stackoverflow.com/users/14343",
"pm_score": 5,
"selected": false,
"text": "-s --nocapture"
},
{
"answer_id": 284192,
"author": "monkut",
"author_id": 24718,
"author_profi... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27415/"
] |
284,049 | <p>How do you get the current directory where your app is running? </p>
| [
{
"answer_id": 284142,
"author": "Kieron",
"author_id": 5791,
"author_profile": "https://Stackoverflow.com/users/5791",
"pm_score": 5,
"selected": true,
"text": "using System.IO;\nusing System.Reflection;\n\nnamespace Utilities\n{\n static public class DirectoryHelper\n {\n ... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284049",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7024/"
] |
284,052 | <p>Imagine the following. </p>
<ol>
<li>Html is parsed into a dom tree</li>
<li>Dom Nodes become available programmatically </li>
<li>Dom Nodes may-or-may-not be augmented programmatically</li>
<li>Augmented nodes are reserialised to html. </li>
</ol>
<p>I have primarily a question on how one would want the <b>"scrip... | [
{
"answer_id": 284130,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 1,
"selected": false,
"text": "my $html=<<'EOF'\n<script>\n//<!--<![CDATA[\nfoo\n//]]>-->\n</script>\nEOF\n#/# this line is here for the syntax high... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15614/"
] |
284,060 | <p>I am using a simple <a href="http://framework.zend.com/manual/en/zend.auth.html" rel="noreferrer">Zend_Auth</a> setup to authenticate users for one of my applications, using a check in the preDispatch() method in a <a href="http://framework.zend.com/manual/en/zend.controller.plugins.html" rel="noreferrer">controller... | [
{
"answer_id": 284130,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 1,
"selected": false,
"text": "my $html=<<'EOF'\n<script>\n//<!--<![CDATA[\nfoo\n//]]>-->\n</script>\nEOF\n#/# this line is here for the syntax high... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11568/"
] |
284,061 | <p>I am working on an application where I have an images folder relative to my application root. I want to be able to specify this relative path in the Properties -> Settings designer eg. "\Images\". The issue I am running into is in cases where the Environment.CurrentDirectory gets changed via an OpenFileDialog the re... | [
{
"answer_id": 284082,
"author": "Scott Dorman",
"author_id": 1559,
"author_profile": "https://Stackoverflow.com/users/1559",
"pm_score": 2,
"selected": true,
"text": "Environment.CurrentDirectory public string ExecutingAssemblyPath()\n{\n Assembly actualAssembly = Assembly.GetEntryAss... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20489/"
] |
284,063 | <p>I'm currently refactoring code to replace Convert.To's to TryParse.</p>
<p>I've come across the following bit of code which is creating and assigning a property to an object.</p>
<pre><code>List<Person> list = new List<Person>();
foreach (DataRow row in dt.Rows)
{
var p = new Person{ RecordID = C... | [
{
"answer_id": 284078,
"author": "yfeldblum",
"author_id": 12349,
"author_profile": "https://Stackoverflow.com/users/12349",
"pm_score": 4,
"selected": true,
"text": "public static Int32? ParseInt32(this string str) {\n Int32 k;\n if(Int32.TryParse(str, out k))\n return k;\n... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17692/"
] |
284,090 | <p>My class contains a <code>Dictionary<T, S> dict</code>, and I want to expose a <code>ReadOnlyCollection<T></code> of the keys. How can I do this without copying the <code>Dictionary<T, S>.KeyCollection dict.Keys</code> to an array and then exposing the array as a <code>ReadOnlyCollection</code>? <... | [
{
"answer_id": 284129,
"author": "Jb Evain",
"author_id": 36702,
"author_profile": "https://Stackoverflow.com/users/36702",
"pm_score": 4,
"selected": true,
"text": "var dictionary = ...;\nvar readonly_keys = new ReadOnlyCollection<T> (new CollectionListWrapper<T> (dictionary.Keys)\n);\n... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6091/"
] |
284,093 | <p>How do I build an escape sequence string in hexadecimal notation. </p>
<p>Example:</p>
<pre><code>string s = "\x1A"; // this will create the hex-value 1A or dec-value 26
</code></pre>
<p>I want to be able to build strings with hex-values between 00 to FF like this (in this example 1B)</p>
<pre><code>string s = "... | [
{
"answer_id": 284116,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 6,
"selected": true,
"text": "Byte value = 0x0FF;\nint value = 0x1B;\n string foo = String.Format(\"{0} hex test\", 0x0BB);\n"
},
{
"answer_id": 28... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36922/"
] |
284,094 | <p>I have an XML document something like :::</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microso... | [
{
"answer_id": 284123,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 3,
"selected": false,
"text": "<xsl:for-each select=\"//*[local-name() = 'Row']\">\n <xsl:copy-of select=\".\"/>\n</xsl:for-each>\n <xsl:for-each select... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284094",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2017/"
] |
284,115 | <p>What is the best way to do cross-platform handling of hidden files?
(preferably in Python, but other solutions still appreciated)</p>
<p>Simply checking for a leading '.' works for *nix/Mac, and file attributes work on Windows. However, this seems a little simplistic, and also doesn't account for alternative method... | [
{
"answer_id": 6365265,
"author": "Jason R. Coombs",
"author_id": 70170,
"author_profile": "https://Stackoverflow.com/users/70170",
"pm_score": 5,
"selected": false,
"text": "import ctypes\nimport os\n\ndef is_hidden(filepath):\n name = os.path.basename(os.path.abspath(filepath))\n ... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2963/"
] |
284,164 | <p>I am using a Flex dataGrid, and need to sort some of my columns numerically.<br>
Looking at the sortCompareFunction, it seems like i need to create a different function for each column that i want to sort, because my sort function has to know what field it is sorting on. </p>
<p>Is there any way that I can pass th... | [
{
"answer_id": 722563,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "private function xmlDataGridNumericSorter(field:String):Function \n{\n\n return function (obj1:Object, obj2:Object):int \n ... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284164",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32392/"
] |
284,201 | <p>I have a <a href="http://en.wikipedia.org/wiki/VBScript" rel="nofollow noreferrer">VBScript</a> script that starts a cmd prompt, telnets into a device and <a href="http://en.wikipedia.org/wiki/Trivial_File_Transfer_Protocol" rel="nofollow noreferrer">TFTP</a>'s the configuration to a server. It works when I am logge... | [
{
"answer_id": 295640,
"author": "Michael Galos",
"author_id": 29820,
"author_profile": "https://Stackoverflow.com/users/29820",
"pm_score": 1,
"selected": false,
"text": "telnet 10.10.40.139\nnetscreen\nnetscreen\nsave conf to tftp 10.10.40.139 palsg140.cf\nexit\n"
},
{
"answer_... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284201",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
284,220 | <pre><code>public class Item
{
private int _rowID;
private Guid _itemGUID;
public Item() { }
public int Rid
{
get
{
return _rowID;
}
set { }
}
public Guid IetmGuid
{
get
... | [
{
"answer_id": 284235,
"author": "TcKs",
"author_id": 20382,
"author_profile": "https://Stackoverflow.com/users/20382",
"pm_score": 1,
"selected": false,
"text": "foreach( object element in myList ) {\n Item itm = element as Item;\n if ( null == itm ) { continue; }\n Guid test =... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
284,234 | <p>Having played around a little with both Tkinter and wxPython, I like Tkinter much better in terms of how clean my source code looks. However, it doesn't seem to have as many features; in particular it doesn't have tabs (as in, the tabs at the top of a Firefox window).</p>
<p>A little Googling on the subject offers... | [
{
"answer_id": 284695,
"author": "tzot",
"author_id": 6899,
"author_profile": "https://Stackoverflow.com/users/6899",
"pm_score": 6,
"selected": true,
"text": "ttk Tk 8.5 ttk import ttk\n\nhelp(ttk.Notebook)\n ttk tkinter TkDocs from tkinter import ttk\nimport tkinter as tk\nfrom tkinter... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1694/"
] |
284,240 | <p>I have a project where there are multiple applications that have some common configuration values. I would like to have a shared .config file that is available to all of the applications using the .Net configuration object model. Each application would also have its own app.config file</p>
<p>How can this best be d... | [
{
"answer_id": 284517,
"author": "Thad",
"author_id": 24500,
"author_profile": "https://Stackoverflow.com/users/24500",
"pm_score": 3,
"selected": false,
"text": "<appSetting configSource=\"somefile.config\"/>\n"
}
] | 2008/11/12 | [
"https://Stackoverflow.com/questions/284240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35598/"
] |
284,245 | <p>So let's say you wanted to make a copy of a Web Form page within a .Net Project. </p>
<p>Is there an easier way than:</p>
<ol>
<li>Copy Source Page</li>
<li>Page Source Page within project to get new page</li>
<li>Exclude Source Page </li>
<li>Rename code behind class for new page</li>
<li>Add Source Page Back</l... | [
{
"answer_id": 284292,
"author": "Kon",
"author_id": 22303,
"author_profile": "https://Stackoverflow.com/users/22303",
"pm_score": 2,
"selected": false,
"text": "Inherits Page Page"
}
] | 2008/11/12 | [
"https://Stackoverflow.com/questions/284245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32113/"
] |
284,246 | <p>I'm currently working on a Google Maps project and am implementing a search function. In my search function I'm trying to have content on the side listing which search makers that were just added to the map correspond to each hall. However in assembling this string I run into a problem where my <code>side_bar_html</... | [
{
"answer_id": 284265,
"author": "Eli Courtwright",
"author_id": 1694,
"author_profile": "https://Stackoverflow.com/users/1694",
"pm_score": 3,
"selected": true,
"text": "side_bar_html onreadystatechange req.send(null) onreadystatechange side_bar_html side_bar_html side_bar_html onreadys... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284246",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36939/"
] |
284,247 | <p>Recently, I started maintaining a web application which unfortunately works only with IE 6. Most of the issues are related to CSS.</p>
<p>Is there any tool which can help me standardize the CSS classes to work with <strong>both</strong> <strong>IE 6 and IE 7</strong>? I understand I have to go through standards but... | [
{
"answer_id": 1177213,
"author": "se_pavel",
"author_id": 80917,
"author_profile": "https://Stackoverflow.com/users/80917",
"pm_score": 1,
"selected": false,
"text": "css-selector { code for all browsers }\n\n*html css-selector {code for IE6 browser }\n\n*+html css-selector {code for IE... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4337/"
] |
284,258 | <p>As part of our build process I need to set the version information for all of our compiled binaries. Some of the binaries already have version information (added at compile time) and some do not. </p>
<p>I want to be able to apply the following information:</p>
<ul>
<li>Company Name </li>
<li>Copyright Notice</li>... | [
{
"answer_id": 2111700,
"author": "filofel",
"author_id": 94816,
"author_profile": "https://Stackoverflow.com/users/94816",
"pm_score": 4,
"selected": false,
"text": "verpatch /va foodll.dll %VERSION% %FILEDESCR% %COMPINFO% %PRODINFO% %BUILDINFO%\n"
},
{
"answer_id": 18839527,
... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5449/"
] |
284,259 | <p>Years ago when I was starting a small development project, the other developers and I sat down and agreed on a compromise brace and indentation style. It wasn't anybody's favourite, but it was something that nobody really hated. I wrote a .indentrc configuration file to that style, and had a check-in trigger that ... | [
{
"answer_id": 284289,
"author": "Eli Courtwright",
"author_id": 1694,
"author_profile": "https://Stackoverflow.com/users/1694",
"pm_score": 3,
"selected": false,
"text": "int x = y * z;\n int x = y*z;\n int a = b*c + d*e;\n int a = b * c + d * e;\n"
},
{
"answer_id": 376100,
... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3333/"
] |
284,269 | <p>If I have an xmlreader instance how can I use it to read its current node and end up with a xmlElement instance?</p>
| [
{
"answer_id": 284406,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": true,
"text": "XmlDocument XmlDocument doc = new XmlDocument();\n doc.Load(reader);\n XmlElement el = doc.DocumentElement;\... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1946/"
] |
284,285 | <p>I have a GPS from u-blox.com with a USB-connection and driver. The driver installs a virual COM port that pops up when you plug the USB in. Using a hyperterminal I can then watch the flow of data from the GPS.</p>
<p>Then I want the data in my program, not so easy...</p>
<p>I have implemented some methods using th... | [
{
"answer_id": 286098,
"author": "Jon Norton",
"author_id": 4797,
"author_profile": "https://Stackoverflow.com/users/4797",
"pm_score": -1,
"selected": false,
"text": "SerialPort.WriteLine \\r\\n \\n SerialPort.Write \\n"
},
{
"answer_id": 593450,
"author": "Dan McClain",
... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36927/"
] |
284,310 | <p>We're using Infragistics grid (most probably, we'll have 8.2 version at the end) and we want to configure row/cells appearances "on-demand" in order to be able to provide sort of "dynamic appearance".</p>
<p>For example, I want some cell to be red or green, depending on its value. We might want to tweak other chara... | [
{
"answer_id": 284461,
"author": "John Rudy",
"author_id": 14048,
"author_profile": "https://Stackoverflow.com/users/14048",
"pm_score": 1,
"selected": false,
"text": "Paint Paint private void UltraGrid1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)\n{\n foreach (UltraGr... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2351099/"
] |
284,321 | <p>I have an application with 5 <code>UIViewController</code>s each inside a corresponding <code>UINavigationController</code>, all tucked inside a <code>UITabBarController</code> that displays 5 tabs at the bottom of the screen.</p>
<p>I want to display another <code>UIViewController</code> (inside a <code>UINavigati... | [
{
"answer_id": 284711,
"author": "wisequark",
"author_id": 33159,
"author_profile": "https://Stackoverflow.com/users/33159",
"pm_score": 4,
"selected": false,
"text": "UINavigationController UITabBarController UINavigationController UIViewController UINavigationController UITabBarControl... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33604/"
] |
284,324 | <p>How can I generate valid XML in C#?</p>
| [
{
"answer_id": 284331,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 10,
"selected": true,
"text": "XmlSerializer XDocument XmlWriter XDocument Console.WriteLine(\n new XElement(\"Foo\",\n new XAttribute(\"B... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19020/"
] |
284,325 | <p>Suppose I have a process which spawns exactly one child process. Now when the parent process exits for whatever reason (normally or abnormally, by kill, ^C, assert failure or anything else) I want the child process to die. How to do that correctly?</p>
<hr>
<p>Some similar question on stackoverflow:</p>
<ul>
<li>... | [
{
"answer_id": 284353,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 3,
"selected": false,
"text": "SIGKILL prctl(2)"
},
{
"answer_id": 284443,
"author": "qrdl",
"author_id": 28494,
"author_profile": "htt... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9403/"
] |
284,336 | <p>My colleague has written a DLL which drives Excel.<br />
When I reference his DLL in my .NET app, I get a warning:</p>
<pre><code>The dependency 'Microsoft.Office.Interop.Excel' could not be found.
</code></pre>
<p>My app will compile.<br />
However, when I get to the bit that uses my colleague's DLL to access Exce... | [
{
"answer_id": 284355,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 2,
"selected": false,
"text": "Microsoft.Office.Interop.Excel"
}
] | 2008/11/12 | [
"https://Stackoverflow.com/questions/284336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7211/"
] |
284,358 | <p>When serializing/de-serializing certain classes I've come across the need to flag or mark certain properties as CDATA elements (due to their content). I am currently handling this like so:</p>
<pre><code> <XmlElement("MessageText")> _
Public Property XmlContentLeft() As XmlCDataSection
Get
... | [
{
"answer_id": 284456,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 3,
"selected": true,
"text": "<XmlElement(\"MessageText\")> _\nPublic Property XmlContentLeft() As XmlCDataSection\n Get\n return GetCData(... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284358",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12842/"
] |
284,364 | <p>What's the easiest and most robust way of altering the .NET DateTimePicker control, to allow users to enter <code>null</code> values?</p>
| [
{
"answer_id": 284386,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 4,
"selected": true,
"text": "Value Null DateTime.MinValue MinValue MaxValue public class NullableDateTimePicker : System.Windows.Forms.DateTimePicker\n{\... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18071/"
] |
284,365 | <p>I'm trying to determine what situations MySQL updates an index. Say I have the following table:</p>
<pre><code>CREATE TABLE MyTable (
ID INT NOT NULL AUTO_INCREMENT,
MyIndexedColumn VARCHAR NOT NULL,
MyNonIndexedColumn VARCHAR,
PRIMARY KEY (ID),
INDEX MyNewIndex(MyIndexedColumn)
)
</code></pre>
<p>Then ... | [
{
"answer_id": 287880,
"author": "Ezran",
"author_id": 32883,
"author_profile": "https://Stackoverflow.com/users/32883",
"pm_score": 3,
"selected": false,
"text": "10k updates of an indexed column with a new value:\nA: 76.8 seconds\nB: 126.7 seconds\n\n10k updates of a non-indexed colum... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/650/"
] |
284,368 | <p>I'm trying to bind one of my model objects to the fields of a form, using Spring-MVC. Everything works fine, except that one of the attributes of the model object is an unordered collection. Doing something like</p>
<pre><code> <c:forEach items="${m.items}" var="i" varStatus="itemsRow">
<form:inpu... | [
{
"answer_id": 284549,
"author": "zmf",
"author_id": 13285,
"author_profile": "https://Stackoverflow.com/users/13285",
"pm_score": 1,
"selected": false,
"text": " <c:forEach items=\"${items}\" var=\"i\" varStatus=\"itemsRow\">\n <input name=\"items[${itemsRow.index}].fieldName\" t... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6069/"
] |
284,370 | <p>I'm trying to return all the child nodes of a set of navigation nodes in sharepoint, the SDK implies I should be doing something like this:</p>
<pre><code>NodeColl = objSite.Navigation.TopNavigationBar
Dim Node as SPNavigationNode
For Each Node In NodeColl
if Node.IsVisible then
Response.Write("<siteMapN... | [
{
"answer_id": 284549,
"author": "zmf",
"author_id": 13285,
"author_profile": "https://Stackoverflow.com/users/13285",
"pm_score": 1,
"selected": false,
"text": " <c:forEach items=\"${items}\" var=\"i\" varStatus=\"itemsRow\">\n <input name=\"items[${itemsRow.index}].fieldName\" t... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2208/"
] |
284,382 | <p>G'day!</p>
<p>I have one million different words which I'd like to query for in a table with 15 million rows. The result of synonyms together with the word is getting processed after each query.</p>
<p>table looks like this:</p>
<pre><code> synonym word
---------------------
ancient old
a... | [
{
"answer_id": 284399,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 3,
"selected": true,
"text": "select synonym from table where word in (select distinct word from table)\n process word process word select word, synonym \n... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284382",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36942/"
] |
284,385 | <p>I wrote a small PHP application that I'd like to distribute. I'm looking for best practices so that it can be installed on most webhosts with minimal hassle.</p>
<p>Briefly: It's simple tool that lets people download files once they login with a password.</p>
<p>So my questions are:</p>
<p>1) How should I handle ... | [
{
"answer_id": 284481,
"author": "Oli",
"author_id": 12870,
"author_profile": "https://Stackoverflow.com/users/12870",
"pm_score": 2,
"selected": false,
"text": "<?php ... ?> <?php echo \"...\"?> <? ... ?> <?= \"...\" ?>"
},
{
"answer_id": 284533,
"author": "Community",
"... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284385",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18158/"
] |
284,389 | <p>I'm using <a href="http://sourceforge.net/projects/nusoap/" rel="nofollow noreferrer">nusoap</a> to connect to a soap webservice. The xml that the class sends to the service is constructed from an array, ie:</p>
<pre><code>$params = array("param1" => "value1", "param2" => "value1");
$client->call('HelloWor... | [
{
"answer_id": 284436,
"author": "Powerlord",
"author_id": 15880,
"author_profile": "https://Stackoverflow.com/users/15880",
"pm_score": 2,
"selected": false,
"text": "$test_array = array(\"item\" => \"value 1\", \"item\" => \"value 2\");\n $params = array(\"items\" => array(\"item\" => ... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284389",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21238/"
] |
284,394 | <p>I am opening a XML file using .NET XmlReader and saving the file in another filename and it seems that the DOCTYPE declaration changes between the two files. While the newly saved file is still valid XML, I was wondering why it insisted on changing original tags.</p>
<pre><code>Dim oXmlSettings As Xml.XmlReaderSett... | [
{
"answer_id": 1070268,
"author": "Maurice Flanagan",
"author_id": 38791,
"author_profile": "https://Stackoverflow.com/users/38791",
"pm_score": 3,
"selected": false,
"text": " private class NullSubsetXmlTextWriter : XmlTextWriter\n {\n public NullSubsetXmlTextWriter(String ... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1508/"
] |
284,398 | <p>i've found how to bind an asp:Menu to XML. i've found how to bind an asp:Menu to a site map (which is really binding it to XML). How do you bind an asp:Menu to a database?</p>
<p>The .NET Framework provides multiple data sources:</p>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/system.web.ui.hierarchi... | [
{
"answer_id": 284410,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 3,
"selected": false,
"text": "protected void LoadData()\n{\n DataSet ds = new DataSet();\n string connStr = YOUR_CONNECTION_STRING_HERE;\n using... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
284,418 | <p>I'm using system catalog views such as SYS.ALL_ OBJECTS, SYS.FOREIGN_KEYS etc. to get information about my database structure in MS SQL 2005. </p>
<p>Are there equivalent functions/views for MySQL (v. 5) servers? </p>
| [
{
"answer_id": 284589,
"author": "Nelson Miranda",
"author_id": 1130097,
"author_profile": "https://Stackoverflow.com/users/1130097",
"pm_score": 4,
"selected": true,
"text": "SELECT * FROM information_schema.SCHEMATA S;\n SELECT * FROM information_schema.TABLE_CONSTRAINTS T;\n SELECT * ... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2899/"
] |
284,420 | <p>I would like to add a backcolor for specific line depending of a Property of the object binded.</p>
<p>The solution I have (and it works) is to use the Event <code>DataBindingComplete</code> but I do not think it's the best solution.</p>
<p>Here is the event:</p>
<pre><code> private void myGrid_DataBindingComp... | [
{
"answer_id": 284470,
"author": "John",
"author_id": 30006,
"author_profile": "https://Stackoverflow.com/users/30006",
"pm_score": 1,
"selected": false,
"text": "if(((MyObject)e.Item.DataItem).Special)\n e.Item.DefaultCellStyle.BackColor = Color.FromArgb(240, 128, 128);\n"
},
{
... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13913/"
] |
284,422 | <p>I am a new user of Extjs library, I created a grid successfully and it works just fine, now I want to use Ext.grid.GridFilters to add filtering to my grid, however I don't see this class in the Extjs source code files, where I can get the required files?</p>
| [
{
"answer_id": 48125182,
"author": "Sachet Patil",
"author_id": 4331748,
"author_profile": "https://Stackoverflow.com/users/4331748",
"pm_score": 0,
"selected": false,
"text": "store.filterBy(function(rec, id)) { return (rec.get(\"RecName\") ==\"FilterRecord\");}\n store.clearFilter();\n... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284422",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22449/"
] |
284,428 | <p>Objective-C 2.0 gave us @properties.</p>
<ul>
<li>They allow for introspection.</li>
<li>They allow for declarative programming.</li>
<li>The @synthesize and @dynamic mechanisms relieve use from having to write repetitive, stock accessors.</li>
<li>Finally, there is the ‘dot’ property syntax, which some love, and s... | [
{
"answer_id": 284689,
"author": "wisequark",
"author_id": 33159,
"author_profile": "https://Stackoverflow.com/users/33159",
"pm_score": 3,
"selected": false,
"text": "@interface @interface MyObject()\n\n@property(retain) NSArray *myArray;\n\n@end\n"
},
{
"answer_id": 284818,
... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
284,433 | <p>The type 'x' is defined in an assembly that is not referenced. You must add a reference to assembly 'abc123'.</p>
<p>I have a .NET 2.0 web application that references my assembly 'abc123'. The assembly exists in the GAC and I've verified that it is the correct(same) version. The rest of application has no issues ... | [
{
"answer_id": 285059,
"author": "Aaron Daniels",
"author_id": 37064,
"author_profile": "https://Stackoverflow.com/users/37064",
"pm_score": 6,
"selected": true,
"text": "<assemblies>\n <add assembly=\"MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=[MyPublicKeyToken]... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36970/"
] |
284,468 | <p>How come the following doesn't work?</p>
<pre><code>CREATE FUNCTION Test (@top integer)
RETURNS TABLE
AS
RETURN
SELECT TOP @top * FROM SomeTable
GO
</code></pre>
<p>I just want to be able to be able to specify the number of results to be returned. [SQL Server 2000.]</p>
<p>Thanks!</p>
| [
{
"answer_id": 284561,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 4,
"selected": true,
"text": "CREATE FUNCTION Test (@top integer)\n\nRETURNS TABLE\n\nAS\n\nSET ROWCOUNT @top\n\nRETURN SELECT * FROM SomeTable\n"
... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10675/"
] |
284,472 | <p>I have a base page, BasePage, that raises an event that displays messages to the user. Works great on all pages derived from BasePage. I want to do the same thing from user controls, but they don't inherit from BasePage. </p>
<p>What I want is a central place that I can call from anywhere and in that code it will... | [
{
"answer_id": 284561,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 4,
"selected": true,
"text": "CREATE FUNCTION Test (@top integer)\n\nRETURNS TABLE\n\nAS\n\nSET ROWCOUNT @top\n\nRETURN SELECT * FROM SomeTable\n"
... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3047/"
] |
284,475 | <p>I need to style a table to have rounded corners.</p>
<p>I'm just looking at how best to go about it:</p>
<p>Normally when I style a div to have rounded corners, I use 2 divs with empty comments at the top and bottom, and apply sizing & background image CSS to them.</p>
<p>The table, however, has internal bor... | [
{
"answer_id": 284497,
"author": "Eduardo Molteni",
"author_id": 2385,
"author_profile": "https://Stackoverflow.com/users/2385",
"pm_score": 1,
"selected": false,
"text": "<html>\n<head>\n <style>\n\n\n .cell1 {background: #f8f8f8 url(images/cell1.gif) no-repeat left top; heigh... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26107/"
] |
284,491 | <p>I have an assembly that may be used by more than one process at a time. If I am using a static class, would the multiple processes all use the same "instance" of that class? </p>
<p>Since the processes are separate, would these be running under difference Application Domains, hence have the static "instances" sep... | [
{
"answer_id": 284505,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 5,
"selected": true,
"text": "Monitor lock"
}
] | 2008/11/12 | [
"https://Stackoverflow.com/questions/284491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1048/"
] |
284,500 | <p>So here's my current code:</p>
<pre><code>List<string> rowGroups = GetFileGroups((int)row.Cells["document_security_type"].Value);
bool found = false;
System.Security.Principal.WindowsPrincipal p = new System.Security.Principal.WindowsPrincipal(System.Security.Principal.WindowsIdentity.GetCurrent());
foreach ... | [
{
"answer_id": 284505,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 5,
"selected": true,
"text": "Monitor lock"
}
] | 2008/11/12 | [
"https://Stackoverflow.com/questions/284500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21828/"
] |
284,511 | <p>When trying to invoke a method on an external webservice (over the Internet) it throws me
"The remote server returned an error: (407) Proxy Authentication Required."</p>
<p>To solve this, I used the following code to set the proxy we use in the office:</p>
<pre><code>//Set the system proxy with valid server addres... | [
{
"answer_id": 284544,
"author": "John",
"author_id": 30006,
"author_profile": "https://Stackoverflow.com/users/30006",
"pm_score": 2,
"selected": true,
"text": "Services.MyService service = new Services.MyService();\nservice.UseDefaultCredentials = true;\nservice.Proxy = new System.Net.... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284511",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7720/"
] |
284,514 | <p>What is a git topic branch? Does it differ from an ordinary branch in some way? Are there any branches that are not topic branches?</p>
| [
{
"answer_id": 284817,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 8,
"selected": true,
"text": "git fetch git pull"
}
] | 2008/11/12 | [
"https://Stackoverflow.com/questions/284514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18103/"
] |
284,519 | <p>I am trying to store a large amount of boolean information that is determined at run-time. I was wondering what the best method might be.</p>
<p>I have currently been trying to allocate the memory using: </p>
<p><code>pStatus = malloc((<number of data points>/8) + 1);</code> </p>
<p>thinking that this will... | [
{
"answer_id": 284536,
"author": "Ana Betts",
"author_id": 5728,
"author_profile": "https://Stackoverflow.com/users/5728",
"pm_score": 3,
"selected": false,
"text": "pStatus[element]\n pStatus[element/8] & (1 << (element % 8))\n"
},
{
"answer_id": 284541,
"author": "James Cur... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35767/"
] |
284,538 | <p>I am trying to access my WCF service on a server from my client console application for testing. I am getting the following error: </p>
<blockquote>
<p>The caller was not authenticated by
the service</p>
</blockquote>
<p>I am using <code>wsHttpBinding</code>. I'm not sure what kind of authentication the serv... | [
{
"answer_id": 285062,
"author": "Michael Kniskern",
"author_id": 26327,
"author_profile": "https://Stackoverflow.com/users/26327",
"pm_score": 5,
"selected": false,
"text": "<bindings>\n <basicHttpBinding>\n <binding name=\"MyBasicHttpBinding\">\n <security mode=\"N... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
284,545 | <p><code>Html.TextBox("ParentPassword", "", new { @class = "required" })</code></p>
<p>what the gosh darned heck is the @ for the @class.</p>
| [
{
"answer_id": 284570,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 5,
"selected": true,
"text": "class"
},
{
"answer_id": 284574,
"author": "yfeldblum",
"author_id": 12349,
"author_profile": "https://Stac... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1220/"
] |
284,556 | <p>I am writing a lib and a demo project. The project doesn't care which version of the lib I use (I can use sdl, directx or whatever I like as the gfx backend). To get the object I do </p>
<pre><code>Obj *obj = libname_newDevice();
</code></pre>
<p>Now, should I use delete or should I do <code>obj->deleteMe();</c... | [
{
"answer_id": 284565,
"author": "Jaywalker",
"author_id": 382974,
"author_profile": "https://Stackoverflow.com/users/382974",
"pm_score": 4,
"selected": false,
"text": "libname_newDevice() libname_destroyDevice (obj)"
},
{
"answer_id": 284584,
"author": "Serge Wautier",
... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
284,558 | <p>I have an existing Stored Procedure which I am trying to now call with LINQ to SQL, here is the stored procedure:</p>
<pre><code>ALTER procedure [dbo].[sp_SELECT_Security_ALL] (
@UID Varchar(15)
)
as
DECLARE @A_ID int
If ISNULL(@UID,'') = ''
SELECT DISTINCT
App_ID,
App_Name,
App_D... | [
{
"answer_id": 284565,
"author": "Jaywalker",
"author_id": 382974,
"author_profile": "https://Stackoverflow.com/users/382974",
"pm_score": 4,
"selected": false,
"text": "libname_newDevice() libname_destroyDevice (obj)"
},
{
"answer_id": 284584,
"author": "Serge Wautier",
... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20748/"
] |
284,566 | <p>I'm creating an interface wrapper for a class. The member within the class is a reference(to avoid copying the large structure). If I create a private constructor, what is the best way to initialize that reference to appease the compiler?</p>
<pre><code>struct InterfaceWrapper {
InterfaceWrapper( SomeHugeStru... | [
{
"answer_id": 284618,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 2,
"selected": false,
"text": "private:\n InterfaceWrapper();\n SomeHugeStructure& m_internal;\n"
}
] | 2008/11/12 | [
"https://Stackoverflow.com/questions/284566",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16496/"
] |
284,581 | <p>I've got a timer running in my Delphi MDI application and I'd like to use it to pop up a message if something changes in the background. But I don't want that message to pop up when the the application has a modal dialog in the foreground because the user couldn't do anything about it. </p>
<p>So what I'd like to k... | [
{
"answer_id": 284621,
"author": "mghie",
"author_id": 30568,
"author_profile": "https://Stackoverflow.com/users/30568",
"pm_score": 5,
"selected": true,
"text": "var\n ActForm: TCustomForm;\nbegin\n ActForm := Screen.ActiveForm;\n if (ActForm = nil) or not (fsModal in ActForm.FormSta... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1765/"
] |
284,608 | <p>I need more than the default diff! I have recently purchased "Beyond Compare" and I'd like to integrate it with svn, so its launched when I type:</p>
<p>svn diff foo.c</p>
<p>How do I do this?</p>
| [
{
"answer_id": 284666,
"author": "Ned Batchelder",
"author_id": 14343,
"author_profile": "https://Stackoverflow.com/users/14343",
"pm_score": 6,
"selected": true,
"text": "#!/bin/bash\n/usr/bin/bcompare $6 $7 &\nexit 0\n diff-cmd=/usr/bin/bcompare_svn\n"
},
{
"answer_id": 1424959... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284608",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3886/"
] |
284,609 | <p>I have a SQL Mobile database with one table. It has several columns with useful, often queried data and one column that stores a relatively large string per record (1000+ characters) that is not queried often.</p>
<p>Imagine this fake schema, the "lifeStory" field is the large one.</p>
<pre><code>table1
String fir... | [
{
"answer_id": 284666,
"author": "Ned Batchelder",
"author_id": 14343,
"author_profile": "https://Stackoverflow.com/users/14343",
"pm_score": 6,
"selected": true,
"text": "#!/bin/bash\n/usr/bin/bcompare $6 $7 &\nexit 0\n diff-cmd=/usr/bin/bcompare_svn\n"
},
{
"answer_id": 1424959... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3619/"
] |
284,619 | <p>i need write the code that runs when DllRegisterServer is called. i.e. when someone calls:</p>
<pre><code>regsvr32 myActiveX.ocx
</code></pre>
<p>i'm trying to find the definitive list of required registry entries (rather than just what i can cobble together by spellunking through the registry).</p>
<p>So far my ... | [
{
"answer_id": 284638,
"author": "Shog9",
"author_id": 811,
"author_profile": "https://Stackoverflow.com/users/811",
"pm_score": 3,
"selected": false,
"text": "HKEY_CLASSES_ROOT\\CLSID\\<clsid>\\"
},
{
"answer_id": 285060,
"author": "Ian Boyd",
"author_id": 12597,
"au... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284619",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
284,637 | <p>Into some view data i have put the result of an anonymous type:</p>
<pre><code> var projectData = from p in db.Projects
orderby p.title
select new
{
Title = p.title,
D... | [
{
"answer_id": 284646,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 0,
"selected": false,
"text": " var projectData = (from p in db.Projects\n orderby p.title\n select... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3193/"
] |
284,653 | <p>I've just wasted the past two hours of my life trying to create a table with an auto incrementing primary key bases on <a href="http://www.lifeaftercoffee.com/2006/02/17/how-to-create-auto-increment-columns-in-oracle/" rel="nofollow noreferrer">this tutorial</a>, The tutorial is great the issue I've been encounterin... | [
{
"answer_id": 284715,
"author": "tragomaskhalos",
"author_id": 31140,
"author_profile": "https://Stackoverflow.com/users/31140",
"pm_score": 1,
"selected": false,
"text": "timestamp xtimestamp"
},
{
"answer_id": 287012,
"author": "pablo",
"author_id": 16112,
"author_... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20400/"
] |
284,662 | <p>I want to transform <code>/foo/bar/..</code> to <code>/foo</code></p>
<p>Is there a bash command which does this?</p>
<hr>
<p>Edit: in my practical case, the directory does exist.</p>
| [
{
"answer_id": 284664,
"author": "Adam Liss",
"author_id": 29157,
"author_profile": "https://Stackoverflow.com/users/29157",
"pm_score": 6,
"selected": false,
"text": "realpath // realpath.c: display the absolute path to a file or directory.\n// Adam Liss, August, 2007\n// This program i... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284662",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21132/"
] |
284,678 | <p>I have an application where every now and then I'm getting a strange error.
This is the piece of code:</p>
<pre><code>Dim XMLWriter As New System.Xml.XmlTextWriter(Me.Context.Response.OutputStream, Encoding.UTF8)
XMLWriter.WriteStartDocument()
XMLWriter.WriteStartElement("Status")
Message.SerializeToXML(XMLWriter)... | [
{
"answer_id": 284687,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 0,
"selected": false,
"text": "Context.Response.OutputStream XmlTextWriter"
},
{
"answer_id": 344439,
"author": "Brian Rudolph",
"autho... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3314/"
] |
284,679 | <p>What's the easiest way to get the data for a single table, delete a single table or break up the whole dump file into files each containing individual tables? I usually end up doing a lot of vi regex munging, but I bet there are easier ways to do these things with awk/perl, etc. The first page of Google results brin... | [
{
"answer_id": 284702,
"author": "J.D. Fitz.Gerald",
"author_id": 11542,
"author_profile": "https://Stackoverflow.com/users/11542",
"pm_score": 3,
"selected": false,
"text": "mysqldump -T"
},
{
"answer_id": 285089,
"author": "mercutio",
"author_id": 1951,
"author_prof... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/556/"
] |
284,708 | <p>I have an <code>.xsd</code>, <code>.vb</code>, <code>.xsc</code>, and <code>.xss</code> file for a dataset in Visual Studio 2008 that I copied over from another Visual Studio project, however I need to make changes to the dataset. Thus I got into the XSD file, created new columns, deleted ones that aren't ... | [
{
"answer_id": 284764,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 0,
"selected": false,
"text": "*.designer.vb"
},
{
"answer_id": 284787,
"author": "Community",
"author_id": -1,
"author_profile":... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
284,716 | <p>I am working on an automated testing app, and am currently in the process of writing a function that compares values between two XML files that should be identical, but may not be. Here is a sample of the XML I'm trying to process:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<report xmlns="http:... | [
{
"answer_id": 284734,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 4,
"selected": true,
"text": "/report/subreport/record/field/value pXMLDoc->setProperty(_bstr_t(\"SelectionNamespaces\"),\n ... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284716",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24529/"
] |
284,722 | <p>I'm trying to insert a comment character into a string something similar to this:</p>
<pre><code>-CreateVideoTracker VT1 "vt name"
</code></pre>
<p>becomes</p>
<pre><code>-CreateVideoTracker VT1 # "vt name"
</code></pre>
<p>The VT1 word can actually be anything, so I'm using the regex</p>
<pre><code>$line =~ s/... | [
{
"answer_id": 284739,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 4,
"selected": true,
"text": "$line =~ s/^(\\-CreateVideoTracker)\\s+(\\w+)/$1 $2 #/;\n $1 $2"
},
{
"answer_id": 285921,
"author": "Brad Gilber... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284722",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23504/"
] |
284,732 | <p><strong>First a bit of background.</strong> </p>
<p>I have been working on the MS platform for my entire development career. Up until 2 weeks ago, I had never booted any other OS than 98/XP/Vista. I started using VSS long long ago, and made the change to SVN about 2 years ago. With SVN I use TortiseSVN and use the ... | [
{
"answer_id": 285216,
"author": "Orion Edwards",
"author_id": 234,
"author_profile": "https://Stackoverflow.com/users/234",
"pm_score": 3,
"selected": true,
"text": "config/environment.rb config.gem sudo rake gems:install environment.rb rake gems:unpack .c gcc"
},
{
"answer_id":... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23458/"
] |
284,740 | <p>What is the preferred way to insert strings that can contain both single and double quotes (",') into MySql using DBI? For example, <code>$val1</code> and <code>$val2</code> can contain quotes:</p>
<pre><code>my $dbh = DBI->connect( ... );
my $sql = "insert into tbl_name(col_one,col_two) values($val1, $val2)";
... | [
{
"answer_id": 284758,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 6,
"selected": true,
"text": "$sth = $dbh->prepare(\"insert into tbl_name(col_one,col_two) values(?,?)\");\n$sth->execute($val1, $val2);\n $dbh->quote... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
284,741 | <p>I have a j2me client that would post some chunked encoded data to a webserver. I'd like to process the data in python. The script is being run as a CGI one, but apparently apache will refuse a chunked encoded post request to a CGI script. As far as I could see mod_python, WSGI and FastCGI are no go too.</p>
<p>I'd ... | [
{
"answer_id": 1187738,
"author": "Nathan de Vries",
"author_id": 11109,
"author_profile": "https://Stackoverflow.com/users/11109",
"pm_score": 3,
"selected": false,
"text": "ProxyRequests Off\n\n<Proxy http://example.com:81>\n Order deny,allow\n Allow from all\n</Proxy>\n\n<VirtualHos... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5695/"
] |
284,744 | <p>I'm creating a control and need to pass it the current logon user as a parameter (declaratively)</p>
<p>I tried this but didn't work (I got "<%= User.Identity.Name %>" as value):</p>
<pre><code><cc1:MyControl id="myid" runat="server" User="<%= User.Identity.Name %>" />
</code></pre>
<p>Is there a w... | [
{
"answer_id": 284747,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 0,
"selected": false,
"text": "User=\"<%= User.Identity.Name %>\"\n"
},
{
"answer_id": 284767,
"author": "Josh Hinman",
"author_id": 2527,
... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1782/"
] |
284,748 | <p>Is there any way in a Win32 environment to "tune" the timeout on a socket <code>connect()</code> call? Specifically, I would like to increase the timeout length. The sockets in use are non-blocking. Thanks!</p>
| [
{
"answer_id": 286814,
"author": "fhe",
"author_id": 4445,
"author_profile": "https://Stackoverflow.com/users/4445",
"pm_score": 3,
"selected": true,
"text": "connect() select()"
},
{
"answer_id": 9867611,
"author": "kuchi",
"author_id": 903444,
"author_profile": "htt... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16457/"
] |
284,751 | <p>I am writing a quick and dirty application that reads all the files from a given directory. I'm currently using the OpenFileDialog to choose a directory and just culling off the file name that it provides. It seems like there should be a way to just choose directories though, but in a quick browsing of MSDN I didn... | [
{
"answer_id": 15790253,
"author": "Geoff",
"author_id": 2240898,
"author_profile": "https://Stackoverflow.com/users/2240898",
"pm_score": 4,
"selected": false,
"text": "using FORMS = System.Windows.Forms;\n\nvar dialog = new System.Windows.Forms.FolderBrowserDialog();\nFORMS.DialogResul... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284751",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1327/"
] |
284,761 | <p>I have an implementation of default handler. When it gets to a in the character data it stops parsing. Is there any reason that it is doing this? Are there additional properties that I need to set in order for it to deal with &nbsp?</p>
| [
{
"answer_id": 285075,
"author": "Ben Noland",
"author_id": 32899,
"author_profile": "https://Stackoverflow.com/users/32899",
"pm_score": 0,
"selected": false,
"text": "  "
},
{
"answer_id": 335689,
"author": "tcurdt",
"author_id": 33165,
"author_profile": ... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35140/"
] |
284,766 | <p>If I have a DrawingVisual in WPF with Opacity=0, is that enough for it not to be drawn? We have hundreds of DrawingVisuals on a Canvas, and are currently setting Opacity=0 on the visuals that are not to be displayed, and I wanted to make sure there is no rendering performance hit for rendering a DrawingVisual with O... | [
{
"answer_id": 716469,
"author": "eesh",
"author_id": 85666,
"author_profile": "https://Stackoverflow.com/users/85666",
"pm_score": 2,
"selected": false,
"text": "DrawingGroup Drawing DrawingGroup Drawing DrawingGroup Drawing DrawingCollection DrawingGroup.Children DrawingGroup.Children.... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284766",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18967/"
] |
284,774 | <p>How do you automate <a href="http://en.wikipedia.org/wiki/Integration_testing" rel="noreferrer">integration testing</a>? I use JUnit for some of these tests. This is one of the solutions or is totally wrong? What do you suggest?</p>
| [
{
"answer_id": 284851,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 3,
"selected": false,
"text": "@BeforeSuite @AfterSuite"
},
{
"answer_id": 285284,
"author": "Johannes Brodwall",
"author_id": 27658,
"... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36678/"
] |
284,775 | <p>How do I convert a DateTime structure to its equivalent <a href="http://www.w3.org/Protocols/rfc822/#z28" rel="noreferrer">RFC 822 date-time</a> formatted string representation <strong>and</strong> parse this string representation back to a DateTime structure in .NET? The RFC-822 date-time format is used in a number... | [
{
"answer_id": 284785,
"author": "Oppositional",
"author_id": 2029,
"author_profile": "https://Stackoverflow.com/users/2029",
"pm_score": 6,
"selected": true,
"text": "/// <summary>\n/// Provides methods for converting <see cref=\"DateTime\"/> structures \n/// to and from the equivalent ... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2029/"
] |
284,776 | <p>I'm automating some source control software functionality using a dot bat script but given that our svn repos are hosted in a *NIX box, I'm facing the eternal case problem between these two worlds.</p>
<p>Is there any cmd.exe function to convert the value of the Windows system variable %USERNAME% to lower case?</p>... | [
{
"answer_id": 284834,
"author": "Mauro",
"author_id": 2208,
"author_profile": "https://Stackoverflow.com/users/2208",
"pm_score": 4,
"selected": true,
"text": "@echo off\ngoto :end_remarks\n*************************************************************************************\n*\n*\n* ... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6992/"
] |
284,778 | <h2>Background</h2>
<p>There are several different <a href="http://msdn.microsoft.com/en-us/library/958x11bc.aspx" rel="noreferrer">debug flags</a> you can use with the Visual Studio C++ compiler. They are:</p>
<ul>
<li><strong>(none)</strong>
<ul>
<li>Create no debugging information</li>
<li>Faster compilation time... | [
{
"answer_id": 54529116,
"author": "Trass3r",
"author_id": 594456,
"author_profile": "https://Stackoverflow.com/users/594456",
"pm_score": 3,
"selected": false,
"text": "/Z7 /Zi /Z7 /Zi /Zi /Z7 .pdb vcxxx.pdb /ZI /Zi"
}
] | 2008/11/12 | [
"https://Stackoverflow.com/questions/284778",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2233/"
] |
284,784 | <p>Some databases support commands such as:</p>
<pre><code>SELECT TOP 10 START AT 10 * FROM <TABLE>
</code></pre>
<p>Essentially I need to pull the first 10 records, then the next 10, then the next 10 etc. Maybe there is another way to do this but in the past I've done it like the above for databases that supp... | [
{
"answer_id": 284789,
"author": "StingyJack",
"author_id": 16391,
"author_profile": "https://Stackoverflow.com/users/16391",
"pm_score": 2,
"selected": false,
"text": "SELECT Top 10 * \nFROM Table \nWHERE <primary key> Not IN (\n SELECT Top 10 <primaryKey> \n FROM Table \n ORDE... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5678/"
] |
284,786 | <p>I have the following equation</p>
<blockquote>
<p>1 - ((.5 * 0.83333333333333) ^ 2 + (.5 * 0.83333333333333) ^ 2 + (.5 * (1 - 0.83333333333333)) ^ 2 + (.5 * (1 - 0.83333333333333)) ^ 2) </p>
</blockquote>
<p>In Php5, this results in an answer of 1 as opposed to .63 (on two machines, OSx and Centos). Should I be... | [
{
"answer_id": 284824,
"author": "nlucaroni",
"author_id": 157,
"author_profile": "https://Stackoverflow.com/users/157",
"pm_score": 1,
"selected": false,
"text": " 83.3333333 = 100x\n 8.3333333 = 10x\n -----------------\n 75 = 90x\n x = 75 / 90 = 0.83333...\n"
},
{
... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
284,821 | <p>I have a Lotus Domino server with a truly astounding number of Domino databases on it, arranged in various folders. </p>
<p>Is there some means of exporting a list of all these databases, with their titles and creators' names, in a spreadsheet format of some kind? I have the Domino Admin and Domino Designer softwar... | [
{
"answer_id": 1046830,
"author": "Ed Schembor",
"author_id": 125484,
"author_profile": "https://Stackoverflow.com/users/125484",
"pm_score": 3,
"selected": false,
"text": "Sub Initialize\n Dim db As NotesDatabase\n Dim f As Integer\n f = Freefile\n Open \"c:\\dbExport.csv\" ... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25468/"
] |
284,826 | <p>I'm on a beginner level course in prolog, doing a map colouring problem. Here's my code.</p>
<pre><code>col(Colors,Map,Coloring) :-
checkMap(Colors,Map,Coloring).
checkMap(Colors,[Country1:Country2],Coloring) :-
goodColor(Country1:Country2,Coloring,Colors).
checkMap(Colors,[Country1:Country2|Rest],Coloring)... | [
{
"answer_id": 285001,
"author": "Nelson",
"author_id": 27366,
"author_profile": "https://Stackoverflow.com/users/27366",
"pm_score": 1,
"selected": false,
"text": "ground_terms([H|T1],[H|T2]) :- ground(H), !, ground_terms(T1,T2).\nground_terms(_,[]).\n col(Colors,Map,Coloring) :-\n c... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36990/"
] |
284,832 | <pre><code>For Each line As String In System.IO.File.ReadAllLines("file.txt")
'Do Something'
Next
</code></pre>
<p>and</p>
<pre><code>Using f As System.IO.FileStream = System.IO.File.OpenRead("somefile.txt")
Using s As System.IO.StreamReader = New System.IO.StreamReader(f)
While Not s.EndOfStream
... | [
{
"answer_id": 284866,
"author": "Mauro",
"author_id": 2208,
"author_profile": "https://Stackoverflow.com/users/2208",
"pm_score": 1,
"selected": false,
"text": "Dim Lines As String()\nLines = System.IO.File.ReadAllLines(\"file.txt\")\n Dim sr as New StreamReader(\"somefile.txt\")\nDim l... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
284,833 | <p>This is related to some other questions, such as: <a href="https://stackoverflow.com/questions/34987/how-to-declare-an-array-of-strings-in-c">this</a>, and some of my other questions.</p>
<p>In <a href="https://stackoverflow.com/questions/34987/how-to-declare-an-array-of-strings-in-c">this question</a>, and others,... | [
{
"answer_id": 284843,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 2,
"selected": false,
"text": "class DataProvider {\n enum { SIZEOF_VALUES = 4 };\n const char * values[SIZEOF_VALUES];\n\n publi... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15667/"
] |
284,837 | <p>If you have a sequence of block elements and you wanted to place margin in between them. </p>
<p>Which do you prefer, margin-top or margin-bottom or both? Why?</p>
| [
{
"answer_id": 284852,
"author": "Winston Smith",
"author_id": 35086,
"author_profile": "https://Stackoverflow.com/users/35086",
"pm_score": 5,
"selected": true,
"text": "margin-bottom"
},
{
"answer_id": 284865,
"author": "sblundy",
"author_id": 4893,
"author_profile"... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20300/"
] |
284,858 | <p>My project requires a file where I will store key/value pair data that should be able to be read and modified by the user. I want the program to just expect the keys to be there, and I want to parse them from the file as quickly as possible.</p>
<p>I could store them in XML, but XML is way to complex, and it would ... | [
{
"answer_id": 284881,
"author": "Jb Evain",
"author_id": 36702,
"author_profile": "https://Stackoverflow.com/users/36702",
"pm_score": 3,
"selected": false,
"text": "[Configuration]\nName = Jb Evain\nPhone = +330101010101\n var source = new IniConfigSource (\"Settings.ini\");\nvar confi... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29442/"
] |
284,868 | <p>I am writing event data to a log file in an asp.net httphandler by using the File.AppendAllText method. I am concerned with what will happen when multiple requests are received simultaneously. Does AppendAllText lock the file it's writing to?</p>
| [
{
"answer_id": 284897,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 4,
"selected": true,
"text": "public static object LockingTarget = new object();\n\npublic void LogToFile(string msg)\n{\n lock(LockingTarget)\n ... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
284,885 | <p>I am trying to gain a better understanding of tcp/ip sockets in c#, as i want to challenge myself to see if i can create a working MMO infrastructure (game world, map, players, etc) purely for educational purposes as i have no intention of being another one of those "OMGZ iz gonna make my r0x0r MMORPG that will be b... | [
{
"answer_id": 285986,
"author": "grieve",
"author_id": 34329,
"author_profile": "https://Stackoverflow.com/users/34329",
"pm_score": 6,
"selected": true,
"text": "+-------------------------+-------------------+-----------------+------------------------+\n| Length of Msg (4 bytes) | MsgT... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284885",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18811/"
] |
284,889 | <p>I am about to embark on a rewrite of a VB6 application in .NET 3.5sp1. The VB6 app is pretty well written and the data layer is completely based on stored procedures. I'd like to go with something automated like Linq2SQL/Entity Framework/NHibernate/SubSonic. Admittedly, I haven't used any of these tools in anythi... | [
{
"answer_id": 285030,
"author": "John Rudy",
"author_id": 14048,
"author_profile": "https://Stackoverflow.com/users/14048",
"pm_score": 2,
"selected": false,
"text": "where select * from foo SPs DataTable"
}
] | 2008/11/12 | [
"https://Stackoverflow.com/questions/284889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9382/"
] |
284,896 | <p>Is it a good idea (from a design POV) to nest constructor calls for overloaded New or Factory style methods? This is mostly for simple constructors, where each overload builds on the previous one. </p>
<pre><code>MyClass( arg1 ) {
_arg1 = arg1;
_otherField = true;
_color="Blue"
}
MyClass( arg1, ar... | [
{
"answer_id": 284905,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 7,
"selected": true,
"text": "public Foo(int x, int y)\n{\n this.x = x;\n this.y = y;\n precomputedValue = x * y;\n}\n\nprivate static int Def... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15127/"
] |
284,899 | <pre><code>private JButton jBtnDrawCircle = new JButton("Circle");
private JButton jBtnDrawSquare = new JButton("Square");
private JButton jBtnDrawTriangle = new JButton("Triangle");
private JButton jBtnSelection = new JButton("Selection");
</code></pre>
<p>How do I add action listeners to these buttons, so that from ... | [
{
"answer_id": 284925,
"author": "Alex B",
"author_id": 6180,
"author_profile": "https://Stackoverflow.com/users/6180",
"pm_score": 3,
"selected": false,
"text": "jBtnDrawCircle.addActionListener( /*class that implements ActionListener*/ );\n"
},
{
"answer_id": 284934,
"autho... | 2008/11/12 | [
"https://Stackoverflow.com/questions/284899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37037/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.