qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
228,377
<p>I want to run a psychological study for which participants have to look at large images.</p> <p>The experiment is done on the web and therefore in a browser window. Is it possible to tell the browser to go into fullscreen, for example on button press?</p> <p>I know there is the possibility to open a fixed-size pop...
[ { "answer_id": 228390, "author": "Darryl Hein", "author_id": 5441, "author_profile": "https://Stackoverflow.com/users/5441", "pm_score": 3, "selected": false, "text": "<script type=\"text/javascript\">\n<!--\nfunction popup(url) \n{\n params = 'width='+screen.width;\n params += ', heigh...
2008/10/23
[ "https://Stackoverflow.com/questions/228377", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21974/" ]
228,404
<p>I'm writing in second-person just because its easy, for you. </p> <p>You are working with a game engine and really wish a particular engine class had a new method that does 'bla'. But you'd rather not spread your 'game' code into the 'engine' code.</p> <p>So you could derive a new class from it with your one new...
[ { "answer_id": 228546, "author": "Tom Barta", "author_id": 29839, "author_profile": "https://Stackoverflow.com/users/29839", "pm_score": 4, "selected": true, "text": "std::string" } ]
2008/10/23
[ "https://Stackoverflow.com/questions/228404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/168235/" ]
228,424
<p>I have the following query:</p> <pre><code>SELECT c.* FROM companies AS c JOIN users AS u USING(companyid) JOIN jobs AS j USING(userid) JOIN useraccounts AS us USING(userid) WHERE j.jobid = 123; </code></pre> <p>I have the following questions:</p> <ol> <li>Is the USING syntax synonymous with ON syntax?</li> <li>A...
[ { "answer_id": 228473, "author": "luke", "author_id": 25920, "author_profile": "https://Stackoverflow.com/users/25920", "pm_score": 0, "selected": false, "text": "SELECT c.*\nFROM companies AS c \n JOIN (SELECT * FROM users AS u \n JOIN (SELECT * FROM jobs AS j USING(userid) \...
2008/10/23
[ "https://Stackoverflow.com/questions/228424", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2056/" ]
228,441
<p>I am working on rails project and I am trying to get exceptions to be logged to the rails log files. I know I can call <code>logger.error $!</code> to get the first line of the exception logged to the file. But, I want to get the entire trace stack logged as well. How do I log the entire trace back of an exceptio...
[ { "answer_id": 228467, "author": "Redbeard", "author_id": 14977, "author_profile": "https://Stackoverflow.com/users/14977", "pm_score": 3, "selected": false, "text": "logger.error caller.join(\"\\n\")" }, { "answer_id": 236350, "author": "Ian Terrell", "author_id": 9269, ...
2008/10/23
[ "https://Stackoverflow.com/questions/228441", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5004/" ]
228,476
<p>Taking over some code from my predecessor and I found a query that uses the Like operator:</p> <pre><code>SELECT * FROM suppliers WHERE supplier_name like '%'+name+%'; </code></pre> <p>Trying to avoid SQL Injection problem and parameterize this but I am not quite sure how this would be accomplished. Any suggestions ...
[ { "answer_id": 228488, "author": "Matt Hamilton", "author_id": 615, "author_profile": "https://Stackoverflow.com/users/615", "pm_score": 3, "selected": false, "text": "SELECT * FROM suppliers WHERE supplier_name like '%' + @name + '%'\n" }, { "answer_id": 228490, "author": "v...
2008/10/23
[ "https://Stackoverflow.com/questions/228476", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10676/" ]
228,477
<p>I would like to determine the operating system of the host that my Java program is running programmatically (for example: I would like to be able to load different properties based on whether I am on a Windows or Unix platform). What is the safest way to do this with 100% reliability?</p>
[ { "answer_id": 228481, "author": "C. K. Young", "author_id": 13, "author_profile": "https://Stackoverflow.com/users/13", "pm_score": 10, "selected": true, "text": "System.getProperty(\"os.name\")\n class ShowProperties {\n public static void main(String[] args) {\n System.getPr...
2008/10/23
[ "https://Stackoverflow.com/questions/228477", "https://Stackoverflow.com", "https://Stackoverflow.com/users/318/" ]
228,518
<p>The goal: Any language. The smallest function which will return whether a string is a palindrome. Here is mine in <b>Python</b>:</p> <pre><code>R=lambda s:all(a==b for a,b in zip(s,reversed(s))) </code></pre> <p>50 characters.</p> <p>The accepted answer will be the current smallest one - this will change as small...
[ { "answer_id": 228526, "author": "Menkboy", "author_id": 29539, "author_profile": "https://Stackoverflow.com/users/29539", "pm_score": 5, "selected": false, "text": "p\n xor %eax, %eax\nmov %esi, %edi\n#cld not necessary, assume DF=0 as per x86 ABI\nrepne scasb\nscan:\n dec %edi\n ...
2008/10/23
[ "https://Stackoverflow.com/questions/228518", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15055/" ]
228,523
<p>Following on from <a href="https://stackoverflow.com/questions/223832/check-a-string-to-see-if-all-characters-are-hexadecimal-values">this question</a> what would be the best way to write a Char.IsHex() function in C#. So far I've got this but don't like it:</p> <pre><code>bool CharIsHex(char c) { c = Char.ToLo...
[ { "answer_id": 228531, "author": "Paige Ruten", "author_id": 813, "author_profile": "https://Stackoverflow.com/users/813", "pm_score": 5, "selected": true, "text": "bool is_hex_char = (c >= '0' && c <= '9') ||\n (c >= 'a' && c <= 'f') ||\n (c >= 'A' &&...
2008/10/23
[ "https://Stackoverflow.com/questions/228523", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1463/" ]
228,532
<p>What's the difference between <code>Char.IsDigit()</code> and <code>Char.IsNumber()</code> in C#?</p>
[ { "answer_id": 228538, "author": "Guy", "author_id": 1463, "author_profile": "https://Stackoverflow.com/users/1463", "pm_score": 6, "selected": false, "text": "DecimalDigitNumber LetterNumber OtherNumber Char.IsDigit DecimalDigitNumber Char.IsNumber DecimalDigitNumber LetterNumber OtherN...
2008/10/23
[ "https://Stackoverflow.com/questions/228532", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1463/" ]
228,534
<p>Is there someway to set the default file permission in Linux? That is, the file permission for a newly created file (regardless of the context for which it was created ). I know about putting umask in the shell startup but that only works for shell sessions. When I transfer files to a Linux box using <strong>pscp</s...
[ { "answer_id": 228564, "author": "Matt Curtis", "author_id": 17221, "author_profile": "https://Stackoverflow.com/users/17221", "pm_score": 4, "selected": false, "text": ".bash_profile .zshenv .tcshrc" } ]
2008/10/23
[ "https://Stackoverflow.com/questions/228534", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24396/" ]
228,544
<p>If I want to check for the null string I would do</p> <pre><code>[ -z $mystr ] </code></pre> <p>but what if I want to check whether the variable has been defined at all? Or is there no distinction in Bash scripting?</p>
[ { "answer_id": 228552, "author": "Vinko Vrsalovic", "author_id": 5190, "author_profile": "https://Stackoverflow.com/users/5190", "pm_score": 5, "selected": false, "text": "~> if [ -z $FOO ]; then echo \"EMPTY\"; fi\nEMPTY\n~> FOO=\"\"\n~> if [ -z $FOO ]; then echo \"EMPTY\"; fi\nEMPTY\n~...
2008/10/23
[ "https://Stackoverflow.com/questions/228544", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30636/" ]
228,545
<p>A legacy backend requires the email body with a .tif document, no tif and it fails. So i need to generate a blank .tif, is there a fast way to do this with ghostscript? </p> <hr> <p>edit: make once in project installation use when i need it.</p>
[ { "answer_id": 229044, "author": "PhiLho", "author_id": 15459, "author_profile": "https://Stackoverflow.com/users/15459", "pm_score": 3, "selected": true, "text": "gswin32c.exe -q -dNOPAUSE -sDEVICE=tiffpack -g1x1 -sOutputFile=small.tif -c newpath 0 0 moveto 1 1 lineto closepath stroke s...
2008/10/23
[ "https://Stackoverflow.com/questions/228545", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21537/" ]
228,549
<p>I have GridView which I can select a row. I then have a button above the grid called Edit which the user can click to popup a window and edit the selected row. So the button will have Javascript code behind it along the lines of</p> <pre><code>function editRecord() { var gridView = document.getElementById("&lt;%=...
[ { "answer_id": 228556, "author": "Dave K", "author_id": 19864, "author_profile": "https://Stackoverflow.com/users/19864", "pm_score": 1, "selected": false, "text": "function editRecord(clientId)\n{ ....\n <input type=\"button\" onclick=\"editRecord(your-rows-client-id-goes-here)\" />\n" ...
2008/10/23
[ "https://Stackoverflow.com/questions/228549", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27294/" ]
228,559
<p>currently i obtain the below result from the following C# line of code when in es-MX Culture</p> <pre><code> Thread.CurrentThread.CurrentCulture = Thread.CurrentThread.CurrentUICulture = new CultureInfo("es-mx"); &lt;span&gt;&lt;%=DateTime.Now.ToLongDateString()%&gt;&lt;/span&gt; </code><...
[ { "answer_id": 228582, "author": "jfs", "author_id": 718, "author_profile": "https://Stackoverflow.com/users/718", "pm_score": 1, "selected": false, "text": "dddd, dd' de 'MMMM' de 'yyyy" }, { "answer_id": 228597, "author": "jaircazarin-old-account", "author_id": 20915, ...
2008/10/23
[ "https://Stackoverflow.com/questions/228559", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14440/" ]
228,567
<p>I have a section of makefile that has this sort of structure:</p> <pre><code> bob: ifdef DEBUG @echo running endif @echo chug chug chug ifdef DEBUG @echo done endif bobit: @echo "before" @make bob @echo "after" </code></pre> <p>I'm simplifying greatly here, all the echo's are actually ...
[ { "answer_id": 233014, "author": "Gordon Wrigley", "author_id": 10471, "author_profile": "https://Stackoverflow.com/users/10471", "pm_score": 3, "selected": true, "text": "\ndefine BOB_BODY\n @if [[ -n \"$(DEBUG)\" ]]; then \\\n echo running; \\\n fi;\n @echo chug chug ch...
2008/10/23
[ "https://Stackoverflow.com/questions/228567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10471/" ]
228,574
<p>I am tasked with updating a family of web sites that promote scientific conferences that cater to a niche scientific field. The sites are currently written with some modest CSS layout for the shared common page template structure, but the details of each page are a mishmash of &lt;p&gt;, &lt;br&gt;, and &amp;nbsp; ...
[ { "answer_id": 234895, "author": "Bryan M.", "author_id": 4636, "author_profile": "https://Stackoverflow.com/users/4636", "pm_score": 3, "selected": true, "text": "<br/> line-height" }, { "answer_id": 242221, "author": "dewde", "author_id": 2640, "author_profile": "ht...
2008/10/23
[ "https://Stackoverflow.com/questions/228574", "https://Stackoverflow.com", "https://Stackoverflow.com/users/404/" ]
228,590
<p>A couple of the options are:</p> <pre><code>$connection = {my db connection/object}; function PassedIn($connection) { ... } function PassedByReference(&amp;$connection) { ... } function UsingGlobal() { global $connection; ... } </code></pre> <p>So, passed in, passed by reference, or using global. I'm th...
[ { "answer_id": 228596, "author": "Paige Ruten", "author_id": 813, "author_profile": "https://Stackoverflow.com/users/813", "pm_score": 0, "selected": false, "text": "mysql" }, { "answer_id": 228652, "author": "Richard Harrison", "author_id": 19624, "author_profile": "...
2008/10/23
[ "https://Stackoverflow.com/questions/228590", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5441/" ]
228,595
<p>I have an ADO.Net Data Service that I am using to do a data import. There are a number of entities that are linked to by most entities. To do that during import I create those entities first, save them and then use .SetLink(EntityImport, "NavigationProperty", CreatedEntity). Now the first issue that I ran into wa...
[ { "answer_id": 228800, "author": "Davy Landman", "author_id": 11098, "author_profile": "https://Stackoverflow.com/users/11098", "pm_score": 3, "selected": false, "text": "public static class EntityObjectExtensions\n{\n public static Boolean IsTracked(this EntityObject self)\n {\n ...
2008/10/23
[ "https://Stackoverflow.com/questions/228595", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25719/" ]
228,614
<p>This is a bit of a lazyweb question but you get the rep so :-)</p> <p>I have a Java class that returns instances of itself to allow chaining (e.g. ClassObject.doStuff().doStuff())</p> <p>For instance:</p> <pre><code>public class Chainer { public Chainer doStuff() { /* Do stuff ... */ return...
[ { "answer_id": 228632, "author": "VonC", "author_id": 6309, "author_profile": "https://Stackoverflow.com/users/6309", "pm_score": 1, "selected": false, "text": "public class Test {\n\n public static void main(String[] args) {\n // TODO Auto-generated method stub\n Chaine...
2008/10/23
[ "https://Stackoverflow.com/questions/228614", "https://Stackoverflow.com", "https://Stackoverflow.com/users/364/" ]
228,617
<p>I need a cross platform solution for clearing the console in both Linux and Windows written in C++. Are there any functions in doing this? Also make note that I don't want the end-user programmer to have to change any code in my program to get it to clear for Windows vs Linux (for example if it has to pick between t...
[ { "answer_id": 228621, "author": "worbel", "author_id": 62575, "author_profile": "https://Stackoverflow.com/users/62575", "pm_score": 2, "selected": false, "text": "#include <windows.h> void clrscr()\n{\n HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);\n COORD coord = {0, 0};\n ...
2008/10/23
[ "https://Stackoverflow.com/questions/228617", "https://Stackoverflow.com", "https://Stackoverflow.com/users/62575/" ]
228,620
<p>I keep hearing people complaining that C++ doesn't have garbage collection. I also hear that the C++ Standards Committee is looking at adding it to the language. I'm afraid I just don't see the point to it... using RAII with smart pointers eliminates the need for it, right?</p> <p>My only experience with garbage co...
[ { "answer_id": 229619, "author": "David Cournapeau", "author_id": 11465, "author_profile": "https://Stackoverflow.com/users/11465", "pm_score": 3, "selected": false, "text": "#include <signal.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n\n#include <memory>\n\nusing n...
2008/10/23
[ "https://Stackoverflow.com/questions/228620", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12193/" ]
228,623
<p>This may be a simple fix - but I'm trying to sum together all the nodes (Size property from the Node class) on the binary search tree. Below in my BST class I have the following so far, but it returns 0:</p> <pre><code> private long sum(Node&lt;T&gt; thisNode) { if (thisNode.Left == null &amp;&amp; t...
[ { "answer_id": 228631, "author": "Vinko Vrsalovic", "author_id": 5190, "author_profile": "https://Stackoverflow.com/users/5190", "pm_score": 1, "selected": false, "text": " if (thisNode.Left == null && thisNode.Right == null)\n return thisNode.Size;\n" }, { "answer_id":...
2008/10/23
[ "https://Stackoverflow.com/questions/228623", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30649/" ]
228,642
<p>Python is quite cool, but unfortunately, its debugger is not as good as perl -d. </p> <p>One thing that I do very commonly when experimenting with code is to call a function from within the debugger, and step into that function, like so:</p> <pre><code># NOTE THAT THIS PROGRAM EXITS IMMEDIATELY WITHOUT CALLING FO...
[ { "answer_id": 228653, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 6, "selected": false, "text": "~> cat -n /tmp/test_python.py\n 1 #!/usr/local/bin/python\n 2\n 3 def foo():\n 4 print \"hi\"\n 5 ...
2008/10/23
[ "https://Stackoverflow.com/questions/228642", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
228,648
<p>I'm new to ruby and I'm playing around with the IRB.</p> <p>I found that I can list methods of an object using the ".methods" method, and that self.methods sort of give me what I want (similar to Python's dir(<strong>builtins</strong>)?), but how can I find the methods of a library/module I've loaded via include an...
[ { "answer_id": 228903, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 0, "selected": false, "text": "self.methods self.class File.methods" }, { "answer_id": 232272, "author": "two-bit-fool", "author_id": 23899, ...
2008/10/23
[ "https://Stackoverflow.com/questions/228648", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24718/" ]
228,672
<p>I am part of a team creating a web application using PHP and MySQL. The application will have multiple users with different roles. The application will also be used in a geographically distributed manner. Accordingly we need to create an access control system that operates at the following two levels:</p> <ol> <li>...
[ { "answer_id": 325805, "author": "Michał Niedźwiedzki", "author_id": 2169, "author_profile": "https://Stackoverflow.com/users/2169", "pm_score": 5, "selected": true, "text": "IAuthorizable" } ]
2008/10/23
[ "https://Stackoverflow.com/questions/228672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22009/" ]
228,680
<p>How does one import CSV files via Excel VBA in a set, in groups or in multiple individual files, rather than one at a time?</p>
[ { "answer_id": 228973, "author": "dbb", "author_id": 25675, "author_profile": "https://Stackoverflow.com/users/25675", "pm_score": 1, "selected": false, "text": "Open \"myfile.csv\" For Input As 1\nDim Txt As String\nTxt = Input(LOF(1), 1)\nClose #1\nDim V As Variant\nV = Split(Txt, \",\...
2008/10/23
[ "https://Stackoverflow.com/questions/228680", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
228,684
<p>If I have a source.c file with a struct:</p> <pre><code>struct a { int i; struct b { int j; } }; </code></pre> <p>How can this struct be used in another file (i.e. <code>func.c</code>)?</p> <p>Should I create a new header file, declare the struct there and include that header in <code>func.c<...
[ { "answer_id": 228689, "author": "fmsf", "author_id": 26004, "author_profile": "https://Stackoverflow.com/users/26004", "pm_score": 3, "selected": false, "text": "#ifndef A_H\n#define A_H\n\nstruct a { \n int i;\n struct b {\n int j;\n }\n};\n\n#endif\n" }, { "ans...
2008/10/23
[ "https://Stackoverflow.com/questions/228684", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
228,702
<p>Say I have the classic 4-byte signed integer, and I want something like</p> <pre><code>print hex(-1) </code></pre> <p>to give me something like</p> <blockquote> <p>0xffffffff</p> </blockquote> <p>In reality, the above gives me <code>-0x1</code>. I'm dawdling about in some lower level language, and python commandline...
[ { "answer_id": 228708, "author": "paxdiablo", "author_id": 14860, "author_profile": "https://Stackoverflow.com/users/14860", "pm_score": 6, "selected": true, "text": ">>> print(hex (-1 & 0xffffffff))\n0xffffffff\n >>> def hex3(n):\n... return \"0x%s\"%(\"00000000%s\"%(hex(n&0xfffffff...
2008/10/23
[ "https://Stackoverflow.com/questions/228702", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23648/" ]
228,705
<p>I know I'm gonna get down votes, but I have to make sure if this is logical or not.</p> <p>I have three tables A, B, C. B is a table used to make a many-many relationship between A and C. But the thing is that A and C are also related directly in a 1-many relationship</p> <p>A customer added the following requirem...
[ { "answer_id": 228739, "author": "jdecuyper", "author_id": 296, "author_profile": "https://Stackoverflow.com/users/296", "pm_score": 1, "selected": false, "text": "SELECT * FROM relAC RAC\n INNER JOIN tableA A ON A.id_class = RAC.id_class \n INNER JOIN tableC C ON C.id_class = RAC.id_c...
2008/10/23
[ "https://Stackoverflow.com/questions/228705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23146/" ]
228,723
<p>Now that Silverlight 2 has finally shipped. I'm wondering if anyone has put together any logging frameworks for it, maybe something like <a href="http://msdn.microsoft.com/en-us/library/ff647183.aspx" rel="noreferrer">enterprise library logging</a> or <a href="http://logging.apache.org/log4net/" rel="noreferrer">log...
[ { "answer_id": 905607, "author": "Rene Schulte", "author_id": 79954, "author_profile": "https://Stackoverflow.com/users/79954", "pm_score": 3, "selected": false, "text": " // http://kodierer.blogspot.com.es/2009/05/silverlight-logging-extension-method.html\n public static string Lo...
2008/10/23
[ "https://Stackoverflow.com/questions/228723", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30664/" ]
228,724
<p>Im creating a report using crystal report in vb.net.</p> <p>The report contained a crosstab which I have 3 data: 1. Dealer - row field 2. Month - column 3. Quantity Sales - summarize field</p> <p>How can I arrange this by ascending order based on the Quantity Sales - summarize field?</p> <p>thanks</p>
[ { "answer_id": 234541, "author": "thismat", "author_id": 14045, "author_profile": "https://Stackoverflow.com/users/14045", "pm_score": 2, "selected": false, "text": "SELECT customer, sum(amountdue) AS total FROM invoices \nGROUP BY customer\nORDER BY total ASC\n" } ]
2008/10/23
[ "https://Stackoverflow.com/questions/228724", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
228,726
<p>The coding is done using VS2008 There are two divs in my page namely "dvLeftContent" and "dvRightContent". I cannot statically set the height of the pages since "dvRightContent" have variable heights on various pages (Master Pages are used here) Is there a client side function(javascript or jquery) that takes the he...
[ { "answer_id": 234541, "author": "thismat", "author_id": 14045, "author_profile": "https://Stackoverflow.com/users/14045", "pm_score": 2, "selected": false, "text": "SELECT customer, sum(amountdue) AS total FROM invoices \nGROUP BY customer\nORDER BY total ASC\n" } ]
2008/10/23
[ "https://Stackoverflow.com/questions/228726", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17447/" ]
228,730
<p>As an example, lets say I wanted to list the frequency of each letter of the alphabet in a string. What would be the easiest way to do it?</p> <p>This is an example of what I'm thinking of... the question is how to make allTheLetters equal to said letters without something like allTheLetters = "abcdefg...xyz". In m...
[ { "answer_id": 228734, "author": "Jacob Krall", "author_id": 3140, "author_profile": "https://Stackoverflow.com/users/3140", "pm_score": 2, "selected": false, "text": "for letter in range(ord('a'), ord('z') + 1):\n print chr(letter) + \":\", lowertext.count(chr(letter))\n" }, { ...
2008/10/23
[ "https://Stackoverflow.com/questions/228730", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1512/" ]
228,775
<p>I'm trying to do some async stuff in a webservice method. Let say I have the following API call: <a href="http://www.example.com/api.asmx" rel="nofollow noreferrer">http://www.example.com/api.asmx</a></p> <p>and the method is called <em>GetProducts()</em>.</p> <p>I this GetProducts methods, I do some stuff (eg. ge...
[ { "answer_id": 228798, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 5, "selected": true, "text": "BackgroundWorker ThreadPool ThreadPool public void SendDataAsync()\n{\n ThreadPool.QueueUserWorkItem(delegate\n ...
2008/10/23
[ "https://Stackoverflow.com/questions/228775", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30674/" ]
228,783
<p>It's common in C++ to name member variables with some kind of prefix to denote the fact that they're member variables, rather than local variables or parameters. If you've come from an MFC background, you'll probably use <code>m_foo</code>. I've also seen <code>myFoo</code> occasionally.</p> <p>C# (or possibly just...
[ { "answer_id": 228797, "author": "Martin York", "author_id": 14065, "author_profile": "https://Stackoverflow.com/users/14065", "pm_score": 11, "selected": true, "text": "std __ ::std #undef errno math_errhandling setjmp va_end E is to LC_ f l SIG SIG_ str mem wcs PRI SCN X _t _t _t" },...
2008/10/23
[ "https://Stackoverflow.com/questions/228783", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8446/" ]
228,795
<p>If I have the following code (this was written in .NET)</p> <pre><code>double i = 0.1 + 0.1 + 0.1; </code></pre> <p>Why doesn't <code>i</code> equal <code>0.3</code>?<br> Any ideas?</p>
[ { "answer_id": 228802, "author": "paxdiablo", "author_id": 14860, "author_profile": "https://Stackoverflow.com/users/14860", "pm_score": 3, "selected": false, "text": "if (abs(a-b) < epsilon) { ...\n" }, { "answer_id": 228808, "author": "Nico", "author_id": 22970, "au...
2008/10/23
[ "https://Stackoverflow.com/questions/228795", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
228,796
<p>I want to write a odometer-like method in a C#-style-language, but not just using 0-9 for characters, but any set of characters. It will act like a brute-force application, more or less.</p> <p>If I pass in a char-array of characters from <strong>0</strong> to <strong>J</strong>, and set length to 5, I want results...
[ { "answer_id": 228815, "author": "leppie", "author_id": 15541, "author_profile": "https://Stackoverflow.com/users/15541", "pm_score": 0, "selected": false, "text": "for (int i = 0; i < (1 << 24); i++)\n string s = i.ToString(\"X6\");\n" }, { "answer_id": 228825, "author": "J...
2008/10/23
[ "https://Stackoverflow.com/questions/228796", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2429/" ]
228,814
<p>I need a little help on this subject.</p> <p>I have a Web application written in ASP.NET plus I have the .bak file of the SQL Express database, my question is: How can I install this in a simple click and go way in the client?</p> <p>how can I write a script that will create a new database, restore the bak file in...
[ { "answer_id": 232487, "author": "Adrian Clark", "author_id": 148, "author_profile": "https://Stackoverflow.com/users/148", "pm_score": 1, "selected": false, "text": "App_Data" } ]
2008/10/23
[ "https://Stackoverflow.com/questions/228814", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28004/" ]
228,835
<p>what is the best practice for multilanguage website using DOM Manipulating with javascript? I build some dynamic parts of the website using javascript. My first thought was using an array with the text strings and the language code as index. Is this a good idea?</p>
[ { "answer_id": 228879, "author": "nickf", "author_id": 9021, "author_profile": "https://Stackoverflow.com/users/9021", "pm_score": 7, "selected": true, "text": "// lang.en.js\nlang = {\n greeting : \"Hello\"\n};\n\n// lang.fr.js\nlang = {\n greeting : \"Bonjour\"\n};\n document.onl...
2008/10/23
[ "https://Stackoverflow.com/questions/228835", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3214/" ]
228,851
<p>Has anybody tried creating <code>RawSocket</code> in <code>Android</code> and have succeeded ?</p>
[ { "answer_id": 246911, "author": "Alnitak", "author_id": 6782, "author_profile": "https://Stackoverflow.com/users/6782", "pm_score": 3, "selected": false, "text": "Socket DatagramSocket java.net" } ]
2008/10/23
[ "https://Stackoverflow.com/questions/228851", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
228,863
<p>I am considering creating some JSP-tags that will always give the same output. For example:</p> <pre><code>&lt;foo:bar&gt;baz&lt;/foo:bar&gt; </code></pre> <p>Will always output:</p> <pre><code>&lt;div class="bar"&gt;baz&lt;/div&gt; </code></pre> <p>Is there any way to get a JSP-tag to behave just like static ou...
[ { "answer_id": 239624, "author": "myplacedk", "author_id": 28683, "author_profile": "https://Stackoverflow.com/users/28683", "pm_score": 2, "selected": true, "text": "package XX.XX.XX.XX\n\nimport java.io.IOException;\n\nimport javax.servlet.jsp.JspException;\nimport javax.servlet.jsp.ta...
2008/10/23
[ "https://Stackoverflow.com/questions/228863", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28683/" ]
228,875
<p>I have data coming from the database in the form of a <code>DataSet</code>. I then set it as the <code>DataSource</code> of a grid control before doing a <code>DataBind()</code>. I want to sort the <code>DataSet</code>/<code>DataTable</code> on one column. The column is to complex to sort in the database but I was h...
[ { "answer_id": 228890, "author": "Toby", "author_id": 291137, "author_profile": "https://Stackoverflow.com/users/291137", "pm_score": 2, "selected": false, "text": "var dt = new DataTable();\ngvWhatever.DataSource = dt.Select().ToList().Sort();\n" }, { "answer_id": 228892, "a...
2008/10/23
[ "https://Stackoverflow.com/questions/228875", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18107/" ]
228,908
<p>Recently, I noticed some people mentioning that <code>std::list::size()</code> has a linear complexity.<br> According to <a href="http://www.cplusplus.com/reference/stl/list/size.html" rel="noreferrer">some</a> <a href="http://bytes.com/forum/thread60248.html" rel="noreferrer">sources</a>, this is in fact implementa...
[ { "answer_id": 228914, "author": "Michael Burr", "author_id": 12711, "author_profile": "https://Stackoverflow.com/users/12711", "pm_score": 7, "selected": true, "text": "list::size() list::size() list::size() list::splice() list::size() list::size() size() list::size() size() size() size...
2008/10/23
[ "https://Stackoverflow.com/questions/228908", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27596/" ]
228,912
<p>Using SQLite3 with Python 2.5, I'm trying to iterate through a list and pull the weight of an item from the database based on the item's name.</p> <p>I tried using the "?" parameter substitution suggested to prevent SQL injections but it doesn't work. For example, when I use:</p> <pre><code>for item in self.invent...
[ { "answer_id": 228961, "author": "Blauohr", "author_id": 22176, "author_profile": "https://Stackoverflow.com/users/22176", "pm_score": 2, "selected": false, "text": "for item in self.inventory_names:\n t = (item,)\n self.cursor.execute(\"SELECT weight FROM Equipment WHERE name = ?\...
2008/10/23
[ "https://Stackoverflow.com/questions/228912", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18676/" ]
228,926
<p>How do you find out the local time of the user browsing your website in ASP.NET? </p>
[ { "answer_id": 229020, "author": "Dave Anderson", "author_id": 371, "author_profile": "https://Stackoverflow.com/users/371", "pm_score": 4, "selected": true, "text": "function setNow(hiddenInputId)\n{\n var now = new Date();\n var input = document.getElementById(hiddenInputId);\n...
2008/10/23
[ "https://Stackoverflow.com/questions/228926", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16628/" ]
228,931
<p>I'm using this code, to make a request to a given URL:</p> <pre><code>private static string GetWebRequestContent(string url) { string sid = String.Empty; HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(url); req.KeepAlive = false; using (HttpWebResponse res = (HttpWebResponse)req.GetResponse())...
[ { "answer_id": 228954, "author": "MartinHN", "author_id": 2972, "author_profile": "https://Stackoverflow.com/users/2972", "pm_score": 4, "selected": true, "text": "ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;\n" } ]
2008/10/23
[ "https://Stackoverflow.com/questions/228931", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2972/" ]
228,945
<p>I find System.Monitor very confusing, although I understand threading, locks, deadlocks, race conditions, dining philosophers and all that jazz. Normally I use a ManualResetEvent() to do inter-thread co-ordination, but I know that that's a heavyweight kernel object, and that System.Monitor (Enter/Pulse, etc.) is mu...
[ { "answer_id": 228983, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 4, "selected": true, "text": "Wait Worker Main Worker Pulse Main Worker Main lock(obj) {...} Monitor.Enter Monitor.Exit lock(sync) static void M...
2008/10/23
[ "https://Stackoverflow.com/questions/228945", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25462/" ]
228,969
<p>I am getting the following error when I post back a page from the client-side. I have JavaScript code that modifies an asp:ListBox on the client side.</p> <p>How do we fix this?</p> <p>Error details below:</p> <pre><code>Server Error in '/XXX' Application. --------------------------------------------------------...
[ { "answer_id": 245512, "author": "Andy C.", "author_id": 28541, "author_profile": "https://Stackoverflow.com/users/28541", "pm_score": 5, "selected": false, "text": "<select> <asp:ListBox> <select>" }, { "answer_id": 275724, "author": "Community", "author_id": -1, "au...
2008/10/23
[ "https://Stackoverflow.com/questions/228969", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13370/" ]
228,978
<p>I have this Perl script with many defined constants of configuration files. For example:</p> <pre><code>use constant { LOG_DIR =&gt; "/var/log/", LOG_FILENAME =&gt; "/var/log/file1.log", LOG4PERL_CONF_FILE =&gt; "/etc/app1/log4perl.conf", CONF_FIL...
[ { "answer_id": 228991, "author": "Leon Timmermans", "author_id": 4727, "author_profile": "https://Stackoverflow.com/users/4727", "pm_score": 2, "selected": false, "text": "constant->import use constant LOG_DIR CONF_DIR" }, { "answer_id": 229061, "author": "Ovid", "author_...
2008/10/23
[ "https://Stackoverflow.com/questions/228978", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13523/" ]
228,987
<p>We try to convert from string to <code>Byte[]</code> using the following Java code:</p> <pre><code>String source = "0123456789"; byte[] byteArray = source.getBytes("UTF-16"); </code></pre> <p>We get a byte array of length 22 bytes, we are not sure where this padding comes from. How do I get an array of length 20?<...
[ { "answer_id": 229006, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 7, "selected": true, "text": "String source = \"0123456789\";\nbyte[] byteArray = source.getBytes(\"UTF-16LE\"); // Or UTF-16BE\n" } ]
2008/10/23
[ "https://Stackoverflow.com/questions/228987", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30704/" ]
229,007
<p>I am running the free version of Helicon ISAPI Rewrite on IIS and have several sites running through the same set of rewrite rules. Up 'til now this has been fine as all the rules have applied to all the sites. I have recently added a new site which I don't want to run through all the rules. Is there any way to make...
[ { "answer_id": 229026, "author": "Zebra North", "author_id": 17440, "author_profile": "https://Stackoverflow.com/users/17440", "pm_score": 2, "selected": false, "text": "RewriteCond Host: (?:www\\.)?mysite\\.com\nRewriteRule ^(.*)$ $1 [QSA,L]\n" }, { "answer_id": 229523, "a...
2008/10/23
[ "https://Stackoverflow.com/questions/229007", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2179408/" ]
229,009
<p>Is there a way I can access (for printout) a list of sub + module to arbitrary depth of sub-calls preceding a current position in a Perl script?</p> <p>I need to make changes to some Perl modules (.pm's). The workflow is initiated from a web-page thru a cgi-script, passing input through several modules/objects end...
[ { "answer_id": 229030, "author": "Ovid", "author_id": 8003, "author_profile": "https://Stackoverflow.com/users/8003", "pm_score": 7, "selected": true, "text": "use Devel::StackTrace;\nmy $trace = Devel::StackTrace->new;\nprint $trace->as_string; # like carp\n" }, { "answer_id": 2...
2008/10/23
[ "https://Stackoverflow.com/questions/229009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15161/" ]
229,010
<pre><code>$("#dvMyDIV").bind("resize", function(){ alert("Resized"); }); </code></pre> <p>or</p> <pre><code>$("#dvMyDIV").resize(function(){ alert("Resized"); }); </code></pre> <p>The questions</p> <ol> <li>Why is this not working at FireFox, Chrome and Safari?</li> <li>Can this be considered a jQuery bug ...
[ { "answer_id": 229028, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 6, "selected": true, "text": "$(window).resize(function() { });" }, { "answer_id": 229054, "author": "Svante Svenson", "author_id": 19707, ...
2008/10/23
[ "https://Stackoverflow.com/questions/229010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17447/" ]
229,012
<p>How can I convert a relative path to an absolute path in C on Unix? Is there a convenient system function for this?</p> <p>On Windows there is a <code>GetFullPathName</code> function that does the job, but I didn't find something similar on Unix...</p>
[ { "answer_id": 229038, "author": "xsl", "author_id": 11387, "author_profile": "https://Stackoverflow.com/users/11387", "pm_score": 7, "selected": true, "text": "realpath() file_name . .. {PATH_MAX} resolved_name resolved_name realpath() #include <stdlib.h>\n...\nchar *symlinkpath = \"/tm...
2008/10/23
[ "https://Stackoverflow.com/questions/229012", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9280/" ]
229,015
<p>Is there any free java library which I can use to convert string in one encoding to other encoding, something like <a href="https://en.wikipedia.org/wiki/Iconv" rel="nofollow noreferrer"><code>iconv</code></a>? I'm using Java version 1.3.</p>
[ { "answer_id": 229022, "author": "VonC", "author_id": 6309, "author_profile": "https://Stackoverflow.com/users/6309", "pm_score": 5, "selected": false, "text": "CharsetDecoder ISO-8859-1 ISO-Latin-1 Charset UTF16 US-ASCII ISO-8859-1 ISO-LATIN-1 UTF-8 UTF-16BE UTF-16LE UTF-16 ISO-8859-1 B...
2008/10/23
[ "https://Stackoverflow.com/questions/229015", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15878/" ]
229,021
<p>We want to show a hint for a JList that the user can select multiple items with the platform dependent key for multiselect. </p> <p>However I have not found any way to show the OS X COMMAND symbol in a JLabel, which means the symbol that's printed on the apple keyboard on the command key, also called apple key.</p>...
[ { "answer_id": 232786, "author": "Steve McLeod", "author_id": 2959, "author_profile": "https://Stackoverflow.com/users/2959", "pm_score": 0, "selected": false, "text": "add( new JLabel( MessageFormat.format(\n \"With {0} you can select multiple items\", \n getMetaKeyHint(),\n BorderLa...
2008/10/23
[ "https://Stackoverflow.com/questions/229021", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16193/" ]
229,031
<p>I need to test a web form that takes a file upload. The filesize in each upload will be about 10 MB. I want to test if the server can handle over 100 simultaneous uploads, and still remain responsive for the rest of the site.</p> <p>Repeated form submissions from our office will be limited by our local DSL line. Th...
[ { "answer_id": 229051, "author": "Henrik Paul", "author_id": 2238, "author_profile": "https://Stackoverflow.com/users/2238", "pm_score": 0, "selected": false, "text": "/dev/urandom" }, { "answer_id": 323983, "author": "Liam", "author_id": 18333, "author_profile": "htt...
2008/10/23
[ "https://Stackoverflow.com/questions/229031", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18333/" ]
229,058
<p>When using something like <code>object.methods.sort.to_yaml</code> I'd like to have irb interpret the \n characters rather than print them. </p> <p>I currently get the following output:</p> <pre><code>--- \n- "&amp;"\n- "*"\n- +\n- "-"\n- "&lt;&lt;"\n- &lt;=&gt;\n ... </code></pre> <p>What I'd like is something s...
[ { "answer_id": 229064, "author": "Jonathan Lonowski", "author_id": 15031, "author_profile": "https://Stackoverflow.com/users/15031", "pm_score": 0, "selected": false, "text": "return print puts" }, { "answer_id": 229065, "author": "Konrad Rudolph", "author_id": 1968, ...
2008/10/23
[ "https://Stackoverflow.com/questions/229058", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17453/" ]
229,069
<p>How would you go about dead code detection in C/C++ code? I have a pretty large code base to work with and at least 10-15% is dead code. Is there any Unix based tool to identify this areas? Some pieces of code still use a lot of preprocessor, can automated process handle that?</p>
[ { "answer_id": 562957, "author": "Thomas L Holaday", "author_id": 29403, "author_profile": "https://Stackoverflow.com/users/29403", "pm_score": 2, "selected": false, "text": "int foo() { \n return 21; // point a\n}\n\nint bar() {\n int a = 7;\n return a;\n a += 9; // point b\n re...
2008/10/23
[ "https://Stackoverflow.com/questions/229069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3579/" ]
229,071
<p>how to show all values of a particular field in a text box ??? ie. for eg. when u run the SP, u'll be getting 3 rows. and i want to show the (eg.empname) in a textbox each value separated by a comma. (ram, john, sita). </p>
[ { "answer_id": 229282, "author": "CaRDiaK", "author_id": 15628, "author_profile": "https://Stackoverflow.com/users/15628", "pm_score": 1, "selected": false, "text": "Structure; \nID TYPE TEXT\n1 1 Ram\n2 1 Jon\n3 2 Sita\n4 2 Joe\n\n\nExpecteed Output;\nID TYPE TEXT\n1 1 Ram, Jon\n2 2 Sit...
2008/10/23
[ "https://Stackoverflow.com/questions/229071", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29867/" ]
229,078
<p>The code below gives me this mysterious error, and i cannot fathom it. I am new to regular expressions and so am consequently stumped. The regular expression should be validating any international phone number.</p> <p>Any help would be much appreciated.</p> <pre><code>function validate_phone($phone) { $phonere...
[ { "answer_id": 229089, "author": "Konrad Rudolph", "author_id": 1968, "author_profile": "https://Stackoverflow.com/users/1968", "pm_score": 2, "selected": true, "text": "preg preg_match return preg_match($regex, $phone) !== 0;\n ereg return ereg($regex, $phone) !== FALSE;\n FALSE ereg bo...
2008/10/23
[ "https://Stackoverflow.com/questions/229078", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
229,080
<p>Is there a best-practice or common way in JavaScript to have class members as event handlers?</p> <p>Consider the following simple example:</p> <pre><code>&lt;head&gt; &lt;script language="javascript" type="text/javascript"&gt; ClickCounter = function(buttonId) { this._clickCount = 0; ...
[ { "answer_id": 229110, "author": "pawel", "author_id": 4879, "author_profile": "https://Stackoverflow.com/users/4879", "pm_score": 6, "selected": true, "text": "ClickCounter = function(buttonId) {\n this._clickCount = 0;\n var that = this;\n document.getElementById(buttonId).onc...
2008/10/23
[ "https://Stackoverflow.com/questions/229080", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30056/" ]
229,117
<p>I <em>sometimes</em> get the following exception for a custom control of mine:</p> <p><code>XamlParseException occurred</code> <code>Unknown attribute Points in element SectionClickableArea [Line: 10 Position 16]</code></p> <p>The stack trace:</p> <pre><code>{System.Windows.Markup.XamlParseException: Unknown attr...
[ { "answer_id": 1063206, "author": "Nikolay R", "author_id": 18635, "author_profile": "https://Stackoverflow.com/users/18635", "pm_score": 1, "selected": false, "text": "<UserControl.Resources>\n <customNamespace:InheritedControl x:Name=\"dummyInstance\"/>\n</UserControl.Resources>\n" ...
2008/10/23
[ "https://Stackoverflow.com/questions/229117", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23222/" ]
229,137
<p>This question is related to another question which I asked yesterday! </p> <p><a href="https://stackoverflow.com/questions/220796/list-all-links-in-web-site">List all links in web site</a></p> <p>I think renaming all the .html files to .asp and changing the links is not good for SEP purposes. Some one told me that...
[ { "answer_id": 293110, "author": "TAG", "author_id": 36400, "author_profile": "https://Stackoverflow.com/users/36400", "pm_score": 1, "selected": false, "text": "<redirect url=\"^(.+)\\.html(.+)$\" to=\"$1.aspx$2\" permanent='true' />\n" } ]
2008/10/23
[ "https://Stackoverflow.com/questions/229137", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12178/" ]
229,153
<pre><code>&lt;div&gt; &lt;h1&gt;Title&lt;/h1&gt; &lt;table&gt; ... &lt;/table&gt; &lt;/div&gt; </code></pre> <p>Now, the</p> <pre><code>&lt;h1&gt; </code></pre> <p>has a margin: 0; so it is at the top of the div. The height of the div is 300px.</p> <p>However I'd like the table to be placed at the bottom of the di...
[ { "answer_id": 229184, "author": "Darryl Hein", "author_id": 5441, "author_profile": "https://Stackoverflow.com/users/5441", "pm_score": 0, "selected": false, "text": "<style type=\"text/css\">\n#container { \n position: absolute; \n margin: 0;\n height:300px;\n border:1px so...
2008/10/23
[ "https://Stackoverflow.com/questions/229153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21559/" ]
229,168
<p>I find print_r in PHP extremely useful, but wonder if there is anything remotely equivalent in Perl?</p>
[ { "answer_id": 229175, "author": "Vinko Vrsalovic", "author_id": 5190, "author_profile": "https://Stackoverflow.com/users/5190", "pm_score": 6, "selected": true, "text": "use Data::Dumper;\n\npackage Foo;\nsub new {bless {'a' => 1, 'b' => sub { return \"foo\" }}, $_[0]};\n\npackage Fuz; ...
2008/10/23
[ "https://Stackoverflow.com/questions/229168", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1693/" ]
229,186
<p>How do I limit <code>os.walk</code> to only return files in the directory I provide it?</p> <pre><code>def _dir_list(self, dir_name, whitelist): outputList = [] for root, dirs, files in os.walk(dir_name): for f in files: if os.path.splitext(f)[1] in whitelist: outputList....
[ { "answer_id": 229192, "author": "Greg Hewgill", "author_id": 893, "author_profile": "https://Stackoverflow.com/users/893", "pm_score": 4, "selected": false, "text": "os.listdir() os.stat()" }, { "answer_id": 229219, "author": "Yuval Adam", "author_id": 24545, "author...
2008/10/23
[ "https://Stackoverflow.com/questions/229186", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21537/" ]
229,201
<p>I would like to do remote deployment from my build machine onto a server. The remoting can be done via ssh commands from a script, but I would rather use phing and a deploy.xml file that would do the automation.</p> <p>What alternatives do I have to do ssh (and also scp) tasks from within a phing build file?</p>
[ { "answer_id": 229372, "author": "user30684", "author_id": 30684, "author_profile": "https://Stackoverflow.com/users/30684", "pm_score": 3, "selected": false, "text": "<exec command=\"scp -i keys/id_rsa myfile user@$server:myfile\" dir=\".\" />\n" }, { "answer_id": 26971137, ...
2008/10/23
[ "https://Stackoverflow.com/questions/229201", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26639/" ]
229,206
<p>I have some code which needs to ensure some data is in a mysql enum prior to insertion in the database. The cleanest way I've found of doing this is the following code:</p> <pre><code>sub enum_values { my ( $self, $schema, $table, $column ) = @_; # don't eval to let the error bubble up my $columns = $...
[ { "answer_id": 229278, "author": "Leon Timmermans", "author_id": 4727, "author_profile": "https://Stackoverflow.com/users/4727", "pm_score": 2, "selected": false, "text": "my @fields = $type =~ / ' ([^']+) ' (?:,|\\z) /msgx;\n" }, { "answer_id": 229561, "author": "John Siracu...
2008/10/23
[ "https://Stackoverflow.com/questions/229206", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8003/" ]
229,254
<p>I have a server application that receives information over a network and processes it. The server is multi-threaded and handles multiple sockets at time, and threads are created without my control through BeginInvoke and EndInvoke style methods, which are chained by corresponding callback functions.</p> <p>I'm tryi...
[ { "answer_id": 229292, "author": "Hath", "author_id": 5186, "author_profile": "https://Stackoverflow.com/users/5186", "pm_score": 3, "selected": false, "text": " c = <your control>\n if (c.InvokeRequired)\n {\n c.BeginInvoke((MethodInvoker)delegate\n ...
2008/10/23
[ "https://Stackoverflow.com/questions/229254", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
229,269
<p>PHP 4.4 and PHP 5.2.3 under Apache 2.2.4 on ubuntu.</p> <p>I am running Moodle 1.5.3 and have recently had a problem when updating a course. The $_POST variable is empty but only if a lot of text was entered into the textarea on the form. If only a short text is entered it works fine.</p> <p>I have increased the p...
[ { "answer_id": 229431, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 1, "selected": false, "text": "file_get_contents('php://input');\n" }, { "answer_id": 229618, "author": "Till", "author_id": 2859, "autho...
2008/10/23
[ "https://Stackoverflow.com/questions/229269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30738/" ]
229,272
<pre><code>&lt;div style="width: 300px"&gt; &lt;div id="one" style="float: left"&gt;saved&lt;/div&gt;&lt;input type="submit" id="two" style="float: right" value="Submit" /&gt; &lt;/div&gt; </code></pre> <p>I would like div#one to be centred in the space between the left edge of the parent div and the left edge of the ...
[ { "answer_id": 229277, "author": "Paul Dixon", "author_id": 6521, "author_profile": "https://Stackoverflow.com/users/6521", "pm_score": 1, "selected": false, "text": "<div style=\"width: 300px\">\n<div id=\"one\" style=\"float: left;text-align:center;width:80%\">saved</div>\n<input type=...
2008/10/23
[ "https://Stackoverflow.com/questions/229272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21559/" ]
229,310
<p>I'm trying to read a file to produce a DOM Document, but the file has whitespace and newlines and I'm trying to ignore them, but I couldn't:</p> <pre><code>DocumentBuilderFactory docfactory=DocumentBuilderFactory.newInstance(); docfactory.setIgnoringElementContentWhitespace(true); </code></pre> <p>I see in Javadoc...
[ { "answer_id": 5851888, "author": "jjnguy", "author_id": 2598, "author_profile": "https://Stackoverflow.com/users/2598", "pm_score": 3, "selected": false, "text": "NodeList private static class NdLst implements NodeList, Iterable<Node> {\n\n private List<Node> nodes;\n\n public NdL...
2008/10/23
[ "https://Stackoverflow.com/questions/229310", "https://Stackoverflow.com", "https://Stackoverflow.com/users/518/" ]
229,346
<p>I have a String which I would like to modify in some way. For example: reverse it or upcase it. </p> <p>I have discovered that the fastest way to do this is by using a unsafe block and pointers. </p> <p>For example: </p> <pre><code> unsafe { fixed (char* str = text) { ...
[ { "answer_id": 229351, "author": "Sam Saffron", "author_id": 17174, "author_profile": "https://Stackoverflow.com/users/17174", "pm_score": 5, "selected": true, "text": "String.intern // these strings get interned\n string hello = \"hello\";\n string hello2 = \"hell...
2008/10/23
[ "https://Stackoverflow.com/questions/229346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17174/" ]
229,352
<p>I am using Python to extract the filename from a link using rfind like below:</p> <pre><code>url = "http://www.google.com/test.php" print url[url.rfind("/") +1 : ] </code></pre> <p>This works ok with links without a / at the end of them and returns "test.php". I have encountered links with / at the end like so "...
[ { "answer_id": 229386, "author": "Tim Pietzcker", "author_id": 20670, "author_profile": "https://Stackoverflow.com/users/20670", "pm_score": -1, "selected": false, "text": "print url[url.rstrip(\"/\").rfind(\"/\") +1 : ]\n" }, { "answer_id": 229394, "author": "Steve Moyer", ...
2008/10/23
[ "https://Stackoverflow.com/questions/229352", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
229,353
<p>In my main page (call it <code>index.aspx</code>) I call </p> <pre><code>&lt;%Html.RenderPartial("_PowerSearch", ViewData.Model);%&gt; </code></pre> <p>Here the <code>viewdata.model != null</code> When I arrive at my partial:</p> <pre><code>&lt;%=ViewData.Model%&gt; </code></pre> <p>Says <code>viewdata.model ==...
[ { "answer_id": 229367, "author": "Simon Steele", "author_id": 4591, "author_profile": "https://Stackoverflow.com/users/4591", "pm_score": 2, "selected": true, "text": " /// <summary>\n /// Renders a LoggingWeb user control.\n /// </summary>\n /// <param name=\"helper\">Helper...
2008/10/23
[ "https://Stackoverflow.com/questions/229353", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11333/" ]
229,357
<p>What is the best way in <strong>Perl</strong> to copy files to a yet-to-be-created destination directory tree?</p> <p>Something like</p> <pre><code>copy("test.txt","tardir/dest1/dest2/text.txt"); </code></pre> <p>won't work since the directory <em>tardir/dest1/dest2</em> does not yet exist. What is the best way t...
[ { "answer_id": 229382, "author": "Leon Timmermans", "author_id": 4727, "author_profile": "https://Stackoverflow.com/users/4727", "pm_score": 3, "selected": false, "text": "use File::Basename qw/dirname/;\nuse File::Copy;\n\nsub mkdir_recursive {\n my $path = shift;\n mkdir_recursiv...
2008/10/23
[ "https://Stackoverflow.com/questions/229357", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6511/" ]
229,362
<p>I am trying to call out to a legacy dll compiled from FORTRAN code. I am new to Interop, but I've read some articles on it and it seems like my case should be fairly straightforward. </p> <p>The method I really want to call has a complex method signature, but I can't even call this simple GetVersion method withou...
[ { "answer_id": 229525, "author": "brien", "author_id": 4219, "author_profile": "https://Stackoverflow.com/users/4219", "pm_score": 2, "selected": true, "text": "[DllImport(\"GeoConvert.dll\", \n EntryPoint=\"_get_version@4\", \n CallingConvention=CallingConv...
2008/10/23
[ "https://Stackoverflow.com/questions/229362", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4219/" ]
229,385
<p>Visual Studio gives many navigation hotkeys: <kbd>F8</kbd> for next item in current panel (search results, errors ...), <kbd>Control</kbd>+<kbd>K</kbd>, <kbd>N</kbd> for bookmarks, <kbd>Alt</kbd>+<kbd>-</kbd> for going back and more.</p> <p>There is one hotkey that I can't find, and I can't even find the menu-comma...
[ { "answer_id": 1211782, "author": "Oleg Svechkarenko", "author_id": 148405, "author_profile": "https://Stackoverflow.com/users/148405", "pm_score": 4, "selected": false, "text": "PreviousStackFrame NextStackFrame Function StackFrameIndex(ByRef aFrames As EnvDTE.StackFrames, ByRef aFrame ...
2008/10/23
[ "https://Stackoverflow.com/questions/229385", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
229,395
<p>I have an array of 1000 strings to load into a combo box. What is the fastest way to load the array of strings into the combo box?</p> <p>Is there some way other than iterating over the list of strings, putting each string into the combo box one at a time?</p> <p>And how to copy the combo box data once loaded to s...
[ { "answer_id": 229490, "author": "Hapkido", "author_id": 27646, "author_profile": "https://Stackoverflow.com/users/27646", "pm_score": 0, "selected": false, "text": "#define NB_ITEM 1000\n#define ITEM_LENGTH 10\n\nvoid CMFCComboDlg::InitMyCombo()\n{\n CString _strData;\n m_cbMyComb...
2008/10/23
[ "https://Stackoverflow.com/questions/229395", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22076/" ]
229,404
<p>I am trying to extract a table of values from an excel (2003) spreadsheet using vb6, the result of which needs to be stored in a (adodb) recordset. The table looks like this:</p> <pre> Name Option.1 Option.2 Option.3 Option.4 Option.5 Option.6 --------------------------------------------------------...
[ { "answer_id": 229477, "author": "Tomalak", "author_id": 18771, "author_profile": "https://Stackoverflow.com/users/18771", "pm_score": 2, "selected": false, "text": "MaxScanRows=0" } ]
2008/10/23
[ "https://Stackoverflow.com/questions/229404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30757/" ]
229,423
<p>We have a need to take dozens of different protocols from systems such as security systems, fire alarms, camera systems etc.. and integrate them into a single common protocol.</p> <p>I would like this to be a messaging server that many systems could subscribe to and or communicate through.</p> <ul> <li>polling and...
[ { "answer_id": 229793, "author": "James Strachan", "author_id": 2068211, "author_profile": "https://Stackoverflow.com/users/2068211", "pm_score": 3, "selected": true, "text": "// route all messages from foo\n// to a single queue on JMS\nfrom(\"foo://somehost:1234\").\n to(\"jms:MyQueue\...
2008/10/23
[ "https://Stackoverflow.com/questions/229423", "https://Stackoverflow.com", "https://Stackoverflow.com/users/445087/" ]
229,425
<p>I'm trying to populate a DataTable, to build a LocalReport, using the following:<br></p> <pre><code>MySqlCommand cmd = new MySqlCommand(); cmd.Connection = new MySqlConnection(Properties.Settings.Default.dbConnectionString); cmd.CommandType = CommandType.Text; cmd.CommandText = "SELECT ... LEFT JOIN ... WHERE ...";...
[ { "answer_id": 241423, "author": "thismat", "author_id": 14045, "author_profile": "https://Stackoverflow.com/users/14045", "pm_score": 0, "selected": false, "text": " Dim deals As New DealsProvider()\n Dim adapter As New ReportingDataTableAdapters.ReportDealsAdapter\n ...
2008/10/23
[ "https://Stackoverflow.com/questions/229425", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26155/" ]
229,432
<p>Is there a way of programmatically determining a rough geographical position of a mobile phone using J2ME application, for example determining the current cell? This question especially applies to non-GPS enabled devices. </p> <p>I am not looking for a set of geographical coordinates, but an ability for a user to d...
[ { "answer_id": 250008, "author": "user32691", "author_id": 32691, "author_profile": "https://Stackoverflow.com/users/32691", "pm_score": 3, "selected": false, "text": "System.getProperty(String arg) try{\n String[] cellIDTags = {\"com.sonyericsson.net.cellid\", \"phone.cid\", \"Siemens....
2008/10/23
[ "https://Stackoverflow.com/questions/229432", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22088/" ]
229,438
<p>I am just embarking on my first large-scale refactor, and need to split an (unfortunately large) class into two, which then communicate only via an interface. (My Presenter has turned out to be a Controller, and needs to split GUI logic from App logic). Using C# in VisualStudio 2008 and Resharper, what is the easies...
[ { "answer_id": 229634, "author": "Ilya Ryzhenkov", "author_id": 18575, "author_profile": "https://Stackoverflow.com/users/18575", "pm_score": 0, "selected": false, "text": "class PresenterAndController\n {\n public void Control()\n {\n Present();\n }\n\n public void Pre...
2008/10/23
[ "https://Stackoverflow.com/questions/229438", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6091/" ]
229,441
<p>in my application (c# 3.5) there are various processes accessing a single xml file (read and write) very frequently. the code accessing the file is placed in an assembly referenced by quite a couple of other applications. for example a windows service might instanciate the MyFileReaderWriter class (locatied in the p...
[ { "answer_id": 229476, "author": "biozinc", "author_id": 30698, "author_profile": "https://Stackoverflow.com/users/30698", "pm_score": 1, "selected": false, "text": "public static object GetReadWriteToken(String fileName)\n{\n //use a hashtable to retreive an object, with filename as ...
2008/10/23
[ "https://Stackoverflow.com/questions/229441", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16440/" ]
229,443
<p>I've made a custom DataGridViewCell that displays a custom control instead of the cell; but if the DataGridView uses shared rows, then the custom control instance is also shared, so you get strange behaviour (for example, hovering over buttons highlights all the buttons). Also, I can't access the DataGridViewCell.S...
[ { "answer_id": 1820040, "author": "Ptr", "author_id": 221369, "author_profile": "https://Stackoverflow.com/users/221369", "pm_score": 1, "selected": false, "text": "DataGridViewRowCollection.AddRange(params DataGridViewRow[] dataGridViewRows)\n new[]{someDataGridviewRow}\n" } ]
2008/10/23
[ "https://Stackoverflow.com/questions/229443", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15371/" ]
229,446
<p>On our site, we get a large amount of photos uploaded from various sources. </p> <p>In order to keep the file sizes down, we strip all <a href="http://en.wikipedia.org/wiki/Exif" rel="noreferrer">exif data</a> from the source using <a href="http://www.imagemagick.org/www/mogrify.html" rel="noreferrer">mogrify</a>:<...
[ { "answer_id": 230480, "author": "Ciaran", "author_id": 5048, "author_profile": "https://Stackoverflow.com/users/5048", "pm_score": 5, "selected": true, "text": "2#110#Credit=\"My Company\"\n2#05#Object Name=\"THE_OBJECT_NAME\"\n2#55#Date Created=\"2011-02-03 12:45\"\n2#80#By-line=\"BY-L...
2008/10/23
[ "https://Stackoverflow.com/questions/229446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2287/" ]
229,447
<p>How can I efficiently create a unique index on two fields in a table like this: create table t (a integer, b integer);</p> <p>where any unique combination of two different numbers cannot appear more than once on the same row in the table.</p> <p>In order words if a row exists such that a=1 and b=2, another row can...
[ { "answer_id": 229521, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 2, "selected": false, "text": "BEFORE UPDATE CREATE TRIGGER tr_CheckDuplicates_insert\nBEFORE INSERT ON t\nFOR EACH ROW\nBEGIN\n DECLARE rowCount INT;\n ...
2008/10/23
[ "https://Stackoverflow.com/questions/229447", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6475/" ]
229,468
<p>I am new to programming, and am wondering if there is a correct way to order your control structure logic.</p> <p>It seems more natural to check for the most likely case first, but I have the feeling that some control structures won't work unless they check everything that's false to arrive at something that's true...
[ { "answer_id": 229493, "author": "Dave DuPlantis", "author_id": 8174, "author_profile": "https://Stackoverflow.com/users/8174", "pm_score": 3, "selected": false, "text": "if( condition is true ) {\n do something small;\n} else { \n do something;\n and something else; \n . . ....
2008/10/23
[ "https://Stackoverflow.com/questions/229468", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4196/" ]
229,491
<pre><code>foreach($arrayOne as $value){ do function } </code></pre> <p>In the above example, I'd like to pass $arrayOne into a loop, have a function operate that removes some elements of $arrayOne and then have the loop pass over the reduced $arrayOne on the elements that are left until the loop returns false.</p...
[ { "answer_id": 229799, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 3, "selected": true, "text": "$arrayOne = array('example', 'listing of', 'stuff');\n\nforeach ($arrayOne as $key => &$value) {\n $value .= ' alteration';\...
2008/10/23
[ "https://Stackoverflow.com/questions/229491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1149/" ]
229,508
<p>Can anyone tell me why this code behaves the way it does? See comments embedded in the code...</p> <p>Am I missing something really obvious here?</p> <pre><code>using System; namespace ConsoleApplication3 { public class Program { static void Main(string[] args) { var c = new MyC...
[ { "answer_id": 229537, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 3, "selected": false, "text": "using System;\n\ndelegate void MyDelegate();\n\npublic class Program\n{\n static void Main(string[] args)\n {\n ...
2008/10/23
[ "https://Stackoverflow.com/questions/229508", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24207/" ]
229,534
<p>I have to migrate a table from MSSQL Server to MySql. The problem is that the table is quite big (65 millions records) and the whole process takes too much time. Does anyone have any idea how to speed things up ? Any useful tools that could improve this?</p>
[ { "answer_id": 229570, "author": "SWD", "author_id": 3034, "author_profile": "https://Stackoverflow.com/users/3034", "pm_score": 1, "selected": true, "text": "'/somefolder/text_file_with_data.txt' '\\t' '\\n' '/somefolder_on_the_mysql_server/text_file_with_data.txt' '\\t' '\\n'" }, {...
2008/10/23
[ "https://Stackoverflow.com/questions/229534", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29891/" ]
229,551
<p>I have a string in Bash:</p> <pre class="lang-sh prettyprint-override"><code>string=&quot;My string&quot; </code></pre> <p>How can I test if it contains another string?</p> <pre class="lang-sh prettyprint-override"><code>if [ $string ?? 'foo' ]; then echo &quot;It's there!&quot; fi </code></pre> <p>Where <code>??<...
[ { "answer_id": 229585, "author": "Marcus Griep", "author_id": 28645, "author_profile": "https://Stackoverflow.com/users/28645", "pm_score": 9, "selected": false, "text": "case \"$string\" in \n *foo*)\n # Do stuff\n ;;\nesac\n" }, { "answer_id": 229606, "author": "Adam...
2008/10/23
[ "https://Stackoverflow.com/questions/229551", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30773/" ]
229,554
<p>Just wondering what the difference between <code>BeginInvoke()</code> and <code>Invoke()</code> are? </p> <p>Mainly what each one would be used for.</p> <p>EDIT: What is the difference between creating a threading object and calling invoke on that and just calling <code>BeginInvoke()</code> on a delegate? or are t...
[ { "answer_id": 229558, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 10, "selected": true, "text": "Delegate.Invoke BeginInvoke Control.Invoke BeginInvoke Delegate.Invoke Delegate.BeginInvoke threadpool Control.Invoke Co...
2008/10/23
[ "https://Stackoverflow.com/questions/229554", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6335/" ]
229,565
<p>The Mutex class is very misunderstood, and Global mutexes even more so.</p> <p>What is good, safe pattern to use when creating Global mutexes?</p> <p>One that will work</p> <ul> <li>Regardless of the locale my machine is in</li> <li>Is guaranteed to release the mutex properly</li> <li>Optionally does not hang for...
[ { "answer_id": 229567, "author": "Sam Saffron", "author_id": 17174, "author_profile": "https://Stackoverflow.com/users/17174", "pm_score": 10, "selected": true, "text": "using System.Runtime.InteropServices; //GuidAttribute\nusing System.Reflection; //Assembly\nusing Sys...
2008/10/23
[ "https://Stackoverflow.com/questions/229565", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17174/" ]
229,571
<p>I'm involved in creating a web based business solution. The idea is that the customers will use it, get their business processes and information into one place and also receive added business value by inter-system communication. In short they will use it as a core tool in their daily work and will depend highly upon...
[ { "answer_id": 229737, "author": "Blade", "author_id": 30004, "author_profile": "https://Stackoverflow.com/users/30004", "pm_score": 3, "selected": true, "text": "Which of these things do you think we should do in house and which should be out sourced? We will develop the core system our...
2008/10/23
[ "https://Stackoverflow.com/questions/229571", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
229,622
<p>I am working on a stored procedure with several optional parameters. Some of these parameters are single values and it's easy enough to use a WHERE clause like:</p> <pre><code>WHERE (@parameter IS NULL OR column = @parameter) </code></pre> <p>However, in some instances, the WHERE condition is more complicated:</p...
[ { "answer_id": 229641, "author": "GvS", "author_id": 11492, "author_profile": "https://Stackoverflow.com/users/11492", "pm_score": 3, "selected": false, "text": "if (@parameter IS NULL) then begin\n select * from foo\nend\nelse begin\n select * from foo where value = @parameter\nend\...
2008/10/23
[ "https://Stackoverflow.com/questions/229622", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11780/" ]
229,623
<pre><code>&lt;input type="submit"/&gt; &lt;style&gt; input { background: url(tick.png) bottom left no-repeat; padding-left: 18px; } &lt;/style&gt; </code></pre> <p>But the bevel goes away, how can I add an icon to submit button and keep the bevel?<br> Edit: I want it to look like the browser default.</p>
[ { "answer_id": 229640, "author": "NotMe", "author_id": 2424, "author_profile": "https://Stackoverflow.com/users/2424", "pm_score": 0, "selected": false, "text": "INPUT.button {\n BORDER-RIGHT: #999999 1px solid;\n BORDER-TOP: #999999 1px solid;\n FONT-SIZE: 11px;\n BACKGROUND...
2008/10/23
[ "https://Stackoverflow.com/questions/229623", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21559/" ]
229,627
<p>I have looked over the Repository pattern and I recognized some ideas that I was using in the past which made me feel well.</p> <p>However now I would like to write an application that would use this pattern <strong>BUT I WOULD LIKE TO HAVE THE ENTITY CLASSES DECOUPLED</strong> from the repository provider.</p> <p...
[ { "answer_id": 232759, "author": "Mark Cidade", "author_id": 1659, "author_profile": "https://Stackoverflow.com/users/1659", "pm_score": 3, "selected": false, "text": " <?xml version=\"1.0\" encoding=\"utf-8\"?>\n <Database Name=\"DbName\" \n xmlns=\"http://schemas.microsoft.co...
2008/10/23
[ "https://Stackoverflow.com/questions/229627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1796/" ]