qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
201,355 | <p>I have a web application which provides Excel files via IE 7. It requests the files with an HTTP GET from a URL which returns the data with a content type of 'application/vnd.ms-excel'. It then opens the spreadsheets in an IFrame.</p>
<p>This all works fine unless Excel is already open when a spreadsheet is downloa... | [
{
"answer_id": 495387,
"author": "Matthew Murdoch",
"author_id": 4023,
"author_profile": "https://Stackoverflow.com/users/4023",
"pm_score": 2,
"selected": true,
"text": "response.setHeader(\"Content-Disposition\", \n \"attachment; filename=\\\"\" + filename + \"\\\"\");\n Content-Dis... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201355",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4023/"
] |
201,359 | <p>int l = strlen(s);</p>
<p>warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data</p>
<p>I need to replace strlen with an inline function
int l = new_strlen(s);</p>
<p>But how do I portably get the result of the strlen into the int without a warning, and without using pragmas? I can guar... | [
{
"answer_id": 201373,
"author": "John Dibling",
"author_id": 241536,
"author_profile": "https://Stackoverflow.com/users/241536",
"pm_score": 1,
"selected": false,
"text": "int i = (int) strlen(s);\n"
},
{
"answer_id": 201394,
"author": "Igor Semenov",
"author_id": 11401,... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
201,368 | <p>Not of the site collection itself, but the individual SPWeb's.</p>
| [
{
"answer_id": 201393,
"author": "Pascal Paradis",
"author_id": 1291,
"author_profile": "https://Stackoverflow.com/users/1291",
"pm_score": 3,
"selected": false,
"text": "private long GetWebSize(SPWeb web)\n{\n long total = 0;\n\n foreach (SPFolder folder in web.Folders)\n {\n ... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
201,370 | <p>On the site we are building. We need to be able to redirect the user to a default page when his session has ended.</p>
<p>At first sight we used the Session_End with a Response.Redirect to do this job.</p>
<pre><code>Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
Response.Redirect("~/global/exit... | [
{
"answer_id": 203951,
"author": "Schalk Versteeg",
"author_id": 15724,
"author_profile": "https://Stackoverflow.com/users/15724",
"pm_score": 2,
"selected": false,
"text": " private void IsAuthenticated()\n {\n string vFileName = Path.GetFileName(HttpContext.Current.Request.Pa... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1291/"
] |
201,374 | <p>I'm trying to work through Project Euler and I'm hitting a barrier on problem 03. I have an algorithm that works for smaller numbers, but problem 3 uses a very, very large number.</p>
<p><strong>Problem 03:</strong>
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 60085... | [
{
"answer_id": 201387,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 5,
"selected": true,
"text": "n = 27\nstart at floor(sqrt(27)) = 5\nis 5 a factor? no\nis 4 a factor? no\nis 3 a factor? yes. 27 / 3 = 9. 9 is also a factor.... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1444511/"
] |
201,377 | <p>For example, I am trying to get a min date, a max date, and a sum in different instances. I am trying to avoid hard coding a SQL string or looping through an IList to get these values.</p>
| [
{
"answer_id": 201387,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 5,
"selected": true,
"text": "n = 27\nstart at floor(sqrt(27)) = 5\nis 5 a factor? no\nis 4 a factor? no\nis 3 a factor? yes. 27 / 3 = 9. 9 is also a factor.... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1284/"
] |
201,386 | <p>On my reading spree, I stumbled upon something called <a href="http://en.wikipedia.org/wiki/Intentional_programming" rel="noreferrer">Intentional Programming</a>.
I understood it somewhat, but I not fully. If anyone can explain it in better detail, please do. Is it being used in any real application?</p>
| [
{
"answer_id": 4209826,
"author": "Igor Zevaka",
"author_id": 129404,
"author_profile": "https://Stackoverflow.com/users/129404",
"pm_score": 2,
"selected": false,
"text": "//C#, Normal version\nCustomer customer = CustomerService.Get(23);\n\nOrder order = new Order();\n//What is 0.1? Ne... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6613/"
] |
201,391 | <p>Why is the <em>CheckBoxList</em> removed from ASP.NET MVC preview release 5? </p>
<p>Currently I don't see any way in which I can create a list of checkboxes (with similar names but different id's) so people can select 0-1-more options from the list.</p>
<p>There is an <code>CheckBoxList</code> list present in the... | [
{
"answer_id": 201423,
"author": "Corin Blaikie",
"author_id": 1736,
"author_profile": "https://Stackoverflow.com/users/1736",
"pm_score": 4,
"selected": false,
"text": "<% foreach(Inhoud i in ViewData[\"InhoudList\"] as List<Inhoud>) { %>\n <input type=\"checkbox\" name=\"Inhoud\" valu... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27857/"
] |
201,392 | <p>I have a large number of files in a .tar.gz archive. Checking the file type with the command</p>
<pre><code>file SMS.tar.gz
</code></pre>
<p>gives the response</p>
<pre><code>gzip compressed data - deflate method , max compression
</code></pre>
<p>When I try to extract the archive with gunzip, after a delay I r... | [
{
"answer_id": 222943,
"author": "Liudvikas Bukys",
"author_id": 5845,
"author_profile": "https://Stackoverflow.com/users/5845",
"pm_score": 5,
"selected": false,
"text": "gunzip < SMS.tar.gz > SMS.tar.partial\n"
},
{
"answer_id": 18915270,
"author": "Anthony Palmer",
"au... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201392",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11787/"
] |
201,401 | <p>I am looking to improve the performance of my site, not because it is performing badly but just as a general exercise. The usual suggestion for asp.net sites is to remove viewstate wherever possible. I believe this can be done by each control on a page separately or for the whole page.</p>
<p>My question is if I di... | [
{
"answer_id": 204119,
"author": "PhilPursglove",
"author_id": 1738,
"author_profile": "https://Stackoverflow.com/users/1738",
"pm_score": 2,
"selected": false,
"text": "Imports System \nImports System.Web.UI\n\nPublic Class SessionPageStateAdapter\n Inherits System.Web.UI.Adapters.P... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16989/"
] |
201,413 | <p>Just because I'm curious--is there any C analog to the functionality of the STL in C++? I've seen mention of a <a href="http://www.gtk.org" rel="noreferrer">GTK+</a> library called glib that a few people consider fills the bill but are there other libraries that would provide STL functionality in C?</p>
| [
{
"answer_id": 201483,
"author": "Dan Lenski",
"author_id": 20789,
"author_profile": "https://Stackoverflow.com/users/20789",
"pm_score": 6,
"selected": true,
"text": "glib GObject gobject_set_property"
},
{
"answer_id": 63071045,
"author": "msune",
"author_id": 9321563,
... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2820/"
] |
201,436 | <p>I'm trying to get the following code working: </p>
<pre><code> string url = String.Format(@"SOMEURL");
string user = "SOMEUSER";
string password = "SOMEPASSWORD";
FtpWebRequest ftpclientRequest = (FtpWebRequest)WebRequest.Create(new Uri(url));
ftpclientRequest.Method = WebRequestMethods.Ftp.ListDirectory;... | [
{
"answer_id": 201847,
"author": "Kev",
"author_id": 419,
"author_profile": "https://Stackoverflow.com/users/419",
"pm_score": 5,
"selected": true,
"text": "if (m_PreviousServerPath != newServerPath) { \n if (!m_IsRootPath\n && m_LoginState == FtpLoginState.LoggedIn\n &&... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20754/"
] |
201,450 | <p>I've been working for years with VS's debugger, but every now and then I come across a feature I have never noticed before, and think "Damn! How could I have missed that? It's <strong>so</strong> useful!"</p>
<p>[Disclaimer: These tips work in VS 2005 on a C# project, no guarantees for older incarnations o... | [
{
"answer_id": 204458,
"author": "Cristian Diaconescu",
"author_id": 11545,
"author_profile": "https://Stackoverflow.com/users/11545",
"pm_score": 4,
"selected": false,
"text": "System.Diagnostics.Debugger.Break()\n"
},
{
"answer_id": 204591,
"author": "leppie",
"author_i... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11545/"
] |
201,457 | <p>What's the best way to implement a URL interpreter / dispatcher, such as found in <a href="http://docs.djangoproject.com/en/dev/topics/http/urls/?from=olddocs" rel="nofollow noreferrer">Django</a> and RoR, in PHP?</p>
<p>It should be able to interpret a query string as follows:</p>
<ul>
<li><code>/users/show/4</co... | [
{
"answer_id": 201659,
"author": "adnam",
"author_id": 27886,
"author_profile": "https://Stackoverflow.com/users/27886",
"pm_score": 2,
"selected": false,
"text": "<IfModule mod_rewrite.c>\n RewriteEngine On\n RewriteCond %{REQUEST_FILENAME} -f\n RewriteRule ^(.*)$ $1 [L]\n R... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6681/"
] |
201,461 | <p>I was playing around with my own Sudoku solver and was looking for some pointers to good and fast design when I came across this:</p>
<pre><code>def r(a):i=a.find('0');~i or exit(a);[m
in[(i-j)%9*(i/9^j/9)*(i/27^j/27|i%9/3^j%9/3)or a[j]for
j in range(81)]or r(a[:i]+m+a[i+1:])for m in'%d'%5**18]
from sys import*;r(a... | [
{
"answer_id": 201550,
"author": "Tetha",
"author_id": 17663,
"author_profile": "https://Stackoverflow.com/users/17663",
"pm_score": 3,
"selected": false,
"text": "def r(a):\n i = a.find('0') # returns -1 on fail, index otherwise\n ~i or exit(a) # ~(-1) == 0, anthing else is not 0\... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201461",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27736/"
] |
201,468 | <p>I like the flexibility of Dynamic SQL and I like the security + improved performance of Prepared Statements. So what I really want is Dynamic Prepared Statements, which is troublesome to make because bind_param and bind_result accept "fixed" number of arguments. So I made use of an eval() statement to get around t... | [
{
"answer_id": 201639,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 5,
"selected": true,
"text": "eval() \"SELECT * FROM t1 WHERE p1 = ? AND p2 = ?\" prepare() call_user_func_array() bind_param() call_user_func_array(arra... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27305/"
] |
201,476 | <p>I am getting the following error when I get to the line that invokes a REALLY BASIC web service I have running on Tomcat/Axis.</p>
<pre><code>Element or attribute do not match QName production: QName::=(NCName':')?NCName
</code></pre>
<p>Have I got something wrong with QName?- I can't even find any useful informat... | [
{
"answer_id": 201497,
"author": "Rich Kroll",
"author_id": 58733,
"author_profile": "https://Stackoverflow.com/users/58733",
"pm_score": 3,
"selected": false,
"text": "new QName(\"http://testPackage.fc.com/\", \"doBasicStuff\")\n new QName(\"http://testPackage.fc.com/, doBasicStuff\")\n... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5175/"
] |
201,479 | <p>I've heard people talking about "base 64 encoding" here and there. What is it used for?</p>
| [
{
"answer_id": 201495,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 4,
"selected": false,
"text": "+ / ="
},
{
"answer_id": 201823,
"author": "Andrew Cox",
"author_id": 27907,
"author_profile": "h... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22471/"
] |
201,501 | <p>I have a strange issue: I am using SPContext.Current.Web in a .aspx page, but at the end, I get a "Trying to use an SPWeb object that has been closed or disposed and is no longer valid." error message.</p>
<p>From what I see, SPContext.Current.Web is Disposed by someone, <strong>but I have no idea where</strong>. I... | [
{
"answer_id": 201645,
"author": "Jorge Ferreira",
"author_id": 6508,
"author_profile": "https://Stackoverflow.com/users/6508",
"pm_score": 4,
"selected": true,
"text": "System.IO.StreamReader.Dispose"
},
{
"answer_id": 202132,
"author": "Nico",
"author_id": 22970,
"a... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201501",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91/"
] |
201,515 | <p>I have a simple website I'm testing. It's running on localhost and I can access it in my web browser. The index page is simply the word "running". <code>urllib.urlopen</code> will successfully read the page but <code>urllib2.urlopen</code> will not. Here's a script which demonstrates the problem (this is the act... | [
{
"answer_id": 201737,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 5,
"selected": true,
"text": "proxy_support = urllib2.ProxyHandler({})\nopener = urllib2.build_opener(proxy_support)\nprint opener.open(\"http://127.... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201515",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1694/"
] |
201,518 | <p>Greetings!</p>
<p>I've created a custom button class to render the following:</p>
<pre><code><span class="btnOrange">
<input type="submit" id="ctl00_MainContent_m_GoBack" value="Back" name="ctl00$MainContent$m_GoBack"/>
</span>
</code></pre>
<p>However, it renders like this instead (note the... | [
{
"answer_id": 201526,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 0,
"selected": false,
"text": "class writer span"
},
{
"answer_id": 203613,
"author": "cfeduke",
"author_id": 5645,
"author_prof... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27870/"
] |
201,524 | <p>Our Test DB is suddenly missing rows. We want them back.</p>
<p>Is there a way to sift through everything that has happened to the database today? Each SQL statement? I presume this kind of stuff is in the transaction log, but am not sure how to view it.</p>
<p>Is there a way to undo delete operations?</p>
<p>BTW... | [
{
"answer_id": 35519886,
"author": "Jason Clark",
"author_id": 5218011,
"author_profile": "https://Stackoverflow.com/users/5218011",
"pm_score": -1,
"selected": false,
"text": "Rollback Begin"
}
] | 2008/10/14 | [
"https://Stackoverflow.com/questions/201524",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2260/"
] |
201,527 | <p>I need to create a database table to store different changelog/auditing
(when something was added, deleted, modified, etc). I don't need to store particularly detailed info, so I was thinking something along the lines of:</p>
<ul>
<li>id (for the event)</li>
<li>user that triggered it</li>
<li>event name</li>
<li>ev... | [
{
"answer_id": 201561,
"author": "JosephStyons",
"author_id": 672,
"author_profile": "https://Stackoverflow.com/users/672",
"pm_score": 2,
"selected": false,
"text": "mod_user log_datetime seq_num seq_num"
},
{
"answer_id": 211540,
"author": "WW.",
"author_id": 14663,
... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9114/"
] |
201,530 | <p>I need to add multiple empty divs to a container element using jQuery.</p>
<p>At the moment I am generating a string containing the empty html using a loop</p>
<pre><code>divstr = '<div></div><div></div>...<div></div>';
</code></pre>
<p>and then injecting that into my container... | [
{
"answer_id": 201564,
"author": "Wayne",
"author_id": 8236,
"author_profile": "https://Stackoverflow.com/users/8236",
"pm_score": 1,
"selected": false,
"text": "for(i=0;i<10; i++){\n $('#container').append(\"<div></div>\");\n}\n"
},
{
"answer_id": 201661,
"author": "Remy ... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201530",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20074/"
] |
201,532 | <p>I use the ASP.NET Development Web server (also known as the Visual Studio Development Web server) to do local web site debugging and testing.</p>
<p>I've pretty much found exact functionality with IIS with the dev web server. However - where can you manage the settings of the dev web server - specifically regardin... | [
{
"answer_id": 13547959,
"author": "Ahmad Firdaus",
"author_id": 990579,
"author_profile": "https://Stackoverflow.com/users/990579",
"pm_score": 0,
"selected": false,
"text": "[WebMethod(CacheDuration=0)]\npublic string mymethod(string s)\n{\n\n}\n"
}
] | 2008/10/14 | [
"https://Stackoverflow.com/questions/201532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1341/"
] |
201,589 | <p>I know that the JBoss Application Server has the JMX-Console as a GUI for administration. My question is, is there a similar admin tool using the command line? Does this tool come with the application server, and can it report on the status of various services under the control of the server?</p>
| [
{
"answer_id": 410591,
"author": "Nicholas",
"author_id": 43786,
"author_profile": "https://Stackoverflow.com/users/43786",
"pm_score": 1,
"selected": false,
"text": "import javax.management.*;\nimport javax.naming.*;\nProperties p = new Properties();\np.put(Context.PROVIDER_URL, url);\n... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27778/"
] |
201,590 | <p>I've inherited a .NET application that pulls together about 100 dlls built by two teams or purchased from vendors. I would like to quickly identify whether a given dll is a .NET assembly or a COM component. I realize that I could just invoke ildasm on each dll individually and make a note if the dll does not have a ... | [
{
"answer_id": 201781,
"author": "Jimmy",
"author_id": 4435,
"author_profile": "https://Stackoverflow.com/users/4435",
"pm_score": 0,
"selected": false,
"text": "System.Reflection.Assembly.ReflectionOnlyLoadFrom(\"mydll.dll\")\n"
},
{
"answer_id": 202633,
"author": "Tim Farle... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201590",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5985/"
] |
201,593 | <p>Suppose we have some named enums:</p>
<pre><code>enum MyEnum {
FOO,
BAR = 0x50
};
</code></pre>
<p>What I googled for is a script (any language) that scans all the headers in my project and generates a header with one function per enum.</p>
<pre><code>char* enum_to_string(MyEnum t);
</code></pre>
<p>... | [
{
"answer_id": 201665,
"author": "gbjbaanb",
"author_id": 13744,
"author_profile": "https://Stackoverflow.com/users/13744",
"pm_score": 5,
"selected": false,
"text": "enum colours { red, green, blue };\nconst char *colour_names[] = { \"red\", \"green\", \"blue\" };\n colours mycolour = r... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21648/"
] |
201,602 | <p>I am using wordpress and use custom permalink structure: /%category%/%postname%/</p>
<p>My problem is that a decent number of people link to the site without including the trailing slash in the URL, so users get a 404 page.</p>
<p>I'm using the default .htaccess file that comes with wordpress because no solution I... | [
{
"answer_id": 201618,
"author": "Dominic Rodger",
"author_id": 20972,
"author_profile": "https://Stackoverflow.com/users/20972",
"pm_score": 2,
"selected": false,
"text": "/%category%/%postname%(/?)\n"
},
{
"answer_id": 214564,
"author": "eyelidlessness",
"author_id": 17... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201602",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25066/"
] |
201,607 | <p>I'd like to do something like this:</p>
<pre><code>Dim Foo as String = "a,b,c,d,e"
Dim Boo as List(of String) = Foo.Split(","c)
</code></pre>
<p>Of course <code>Foo.Split</code> returns a one-dimensional array of <code>String</code>, not a generic <code>List</code>. Is there a way to do this without iterating thro... | [
{
"answer_id": 201622,
"author": "IAmCodeMonkey",
"author_id": 27613,
"author_profile": "https://Stackoverflow.com/users/27613",
"pm_score": 0,
"selected": false,
"text": "Dim strings As List<string> = string_variable.Split().ToList<string>();\n"
},
{
"answer_id": 201627,
"au... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/239663/"
] |
201,615 | <p>Can some one post an example of using syslog outputter for log4r, I am currently using stdout but want to log to syslog.</p>
<pre><code>mylog = Logger.new 'mylog'
mylog.outputters = Outputter.stdout
mylog.info "Starting up."
</code></pre>
<p>raj</p>
<hr>
<p>Thanks also to the following blog posts.<br> </p>
<p><... | [
{
"answer_id": 203848,
"author": "Rajkumar S",
"author_id": 25453,
"author_profile": "https://Stackoverflow.com/users/25453",
"pm_score": 4,
"selected": true,
"text": "require 'rubygems'\nrequire 'log4r'\nrequire 'log4r/outputter/syslogoutputter'\nmylog = Logger.new 'mylog'\nmylog.output... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25453/"
] |
201,616 | <p>We have a C# service that is deployed to a remote customer system. The application writes a substantial amount of "diagnostic" information to the console (i.e. Console.WriteLine()). The service isn't "doing what it should." How can we capture the console output from the service in another application?</p>
<p>A W... | [
{
"answer_id": 201810,
"author": "Michael Petrotta",
"author_id": 23897,
"author_profile": "https://Stackoverflow.com/users/23897",
"pm_score": 3,
"selected": false,
"text": "EventLog log;\nstring logsource = \"MyService\";\n\n// execute once per invocation\nif (!System.Diagnostics.Event... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27887/"
] |
201,621 | <p>In MySQL, how do I get a list of all foreign key constraints pointing to a particular table? a particular column? This is the same thing as <a href="https://stackoverflow.com/questions/85978/query-a-tables-foreign-key-relationships">this Oracle question</a>, but for MySQL.</p>
| [
{
"answer_id": 201647,
"author": "Node",
"author_id": 7190,
"author_profile": "https://Stackoverflow.com/users/7190",
"pm_score": 7,
"selected": false,
"text": "SELECT * FROM information_schema.TABLE_CONSTRAINTS \nWHERE information_schema.TABLE_CONSTRAINTS.CONSTRAINT_TYPE = 'FOREIGN KEY'... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201621",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3757/"
] |
201,636 | <p>We are using Linq To SQL with our own data context logic that executes the one linq query across multiple databases. When we get the results back, we need the database for each of the rows. So...</p>
<p>I want to have a property on my class that will return the database name (SQL Server, so DB_NAME()). How can I do... | [
{
"answer_id": 231477,
"author": "gfrizzle",
"author_id": 23935,
"author_profile": "https://Stackoverflow.com/users/23935",
"pm_score": 0,
"selected": false,
"text": "Dim results = _\n From x In myContext.MyTables _\n Select x, info = myContext.Connection.ConnectionString\n"
},
... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201636",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5189/"
] |
201,660 | <p>I have some code which returns InnerXML for a XMLNode.</p>
<p>The node can contain just some text (with HTML) or XML.</p>
<p>For example:</p>
<pre><code><XMLNode>
Here is some &lt;strong&gt;HTML&lt;/strong&gt;
<XMLNode>
</code></pre>
<p>or</p>
<pre><code><XMLNode>
<X... | [
{
"answer_id": 201790,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 2,
"selected": false,
"text": "\"<p>A Test</p>\" xn1 \"A test\" xn2 InnerXml xn1 InnerText xn2 dataitem XmlNode xn = document.SelectSingleNode(\"/content... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1970/"
] |
201,671 | <p>When I refer to nested set model I mean what is described <a href="http://mikehillyer.com/articles/managing-hierarchical-data-in-mysql/" rel="nofollow noreferrer">here.</a></p>
<p>I need to build a new system for storing "categories" (I can't think of better word for it) in a user defined hierarchy. Since the nest... | [
{
"answer_id": 202735,
"author": "Simon Lehmann",
"author_id": 27011,
"author_profile": "https://Stackoverflow.com/users/27011",
"pm_score": 3,
"selected": false,
"text": "ORDER BY node.rgt DESC ORDER BY node.lft ASC lft rgt"
},
{
"answer_id": 457424,
"author": "Justin Wignal... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
201,680 | <p>Does Geronimo provides a standalone transaction manager?
And if it does, is it possible to use it in Tomcat?</p>
| [
{
"answer_id": 1991439,
"author": "skaffman",
"author_id": 21234,
"author_profile": "https://Stackoverflow.com/users/21234",
"pm_score": 2,
"selected": false,
"text": "DataSource"
}
] | 2008/10/14 | [
"https://Stackoverflow.com/questions/201680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27762/"
] |
201,696 | <p>In ASP.NET, I'm looking for a way to audit a user leaving my application. To be specific, I'd like to insert a 'logout' record in an audit table in SQL Server when the user's session is abandoned/destroyed for any reason (not necessarily because of a call to session.abandon)</p>
<p>I have a 'SessionHelper' class th... | [
{
"answer_id": 201755,
"author": "Jason Jackson",
"author_id": 13103,
"author_profile": "https://Stackoverflow.com/users/13103",
"pm_score": 1,
"selected": false,
"text": "[Id] [Uid] [LoginInOn] [ExpiresOn] \n 1 johndoe 10/14/2008 10:47 10/14/2008 11:07 \n"
}
] | 2008/10/14 | [
"https://Stackoverflow.com/questions/201696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6624/"
] |
201,699 | <p>I have a Java applet that runs inside a forms-authenticated aspx page. In the .NET 1.1 version of my site, the applet has access to the session cookie and is able to retrieve a file from the server, but in the .NET 2.0 version it fails to authenticate.</p>
<p>I have seen a couple of forum posts elsewhere that state... | [
{
"answer_id": 656465,
"author": "Aidan Black",
"author_id": 8211,
"author_profile": "https://Stackoverflow.com/users/8211",
"pm_score": 0,
"selected": false,
"text": "<httpCookies httpOnlyCookies=\"false\" />"
},
{
"answer_id": 7314616,
"author": "Trevor Lohrbeer",
"auth... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8211/"
] |
201,700 | <p>I'm currently logging via the simplest of methods within my servlet using Tomcat. I use the ServletConfig.getServletContext().log to record activity. This writes to the localhost.YYYY-MM-DD.log in $TOMCAT_HOME/logs.</p>
<p>I don't want to get away from the simplicity of this logging mechanism unless absolutely ne... | [
{
"answer_id": 656465,
"author": "Aidan Black",
"author_id": 8211,
"author_profile": "https://Stackoverflow.com/users/8211",
"pm_score": 0,
"selected": false,
"text": "<httpCookies httpOnlyCookies=\"false\" />"
},
{
"answer_id": 7314616,
"author": "Trevor Lohrbeer",
"auth... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201700",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13930/"
] |
201,705 | <p>I've got an image library on Amazon S3. For each image, I md5 the source URL on my server plus a timestamp to get a unique filename. Since S3 can't have subdirectories, I need to store all of these images in a single flat folder.</p>
<p>Do I need to worry about collisions in the MD5 hash value that gets produced?</... | [
{
"answer_id": 201725,
"author": "Ryan",
"author_id": 17917,
"author_profile": "https://Stackoverflow.com/users/17917",
"pm_score": 4,
"selected": false,
"text": "md5(filename) + timestamp\n md5(filename + timestamp)\n"
}
] | 2008/10/14 | [
"https://Stackoverflow.com/questions/201705",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27899/"
] |
201,706 | <p>I have an SQL Server DB with a table with these fields:</p>
<ol>
<li>A <code>bit</code> with the default value 1, <code>NOT NULL</code>.</li>
<li>A <code>smalldatetime</code> with the default value <code>gettime()</code>, <code>NOT NULL</code>.</li>
<li>An <code>int</code> with no default value, <code>IDENTITY</cod... | [
{
"answer_id": 206710,
"author": "Robert Paulson",
"author_id": 14033,
"author_profile": "https://Stackoverflow.com/users/14033",
"pm_score": 4,
"selected": true,
"text": "GetDate()"
}
] | 2008/10/14 | [
"https://Stackoverflow.com/questions/201706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7724/"
] |
201,718 | <p>How do I concatenate two <code>std::vector</code>s?</p>
| [
{
"answer_id": 201727,
"author": "Tom Ritter",
"author_id": 8435,
"author_profile": "https://Stackoverflow.com/users/8435",
"pm_score": 8,
"selected": false,
"text": "vector<int> a, b;\n//fill with data\nb.insert(b.end(), a.begin(), a.end());\n"
},
{
"answer_id": 201729,
"aut... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
201,724 | <p>I have a one-dimensional array of strings in JavaScript that I'd like to turn into a comma-separated list. Is there a simple way in garden-variety JavaScript (or jQuery) to turn that into a comma-separated list? (I know how to iterate through the array and build the string myself by concatenation if that's the only ... | [
{
"answer_id": 201733,
"author": "Wayne",
"author_id": 8236,
"author_profile": "https://Stackoverflow.com/users/8236",
"pm_score": 11,
"selected": true,
"text": "var arr = [\"Zero\", \"One\", \"Two\"];\n\ndocument.write(arr.join(\", \"));"
},
{
"answer_id": 202247,
"author": ... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/239663/"
] |
201,734 | <p>I have an HttpHandler on my webserver that takes a URL in the form of "<a href="https://servername/myhandler?op=get&k=Internal&m=jdahug1" rel="nofollow noreferrer">https://servername/myhandler?op=get&k=Internal&m=jdahug1</a>". I need to call this URL from my .NET app and capture whatever the output ... | [
{
"answer_id": 201759,
"author": "Andrew Cox",
"author_id": 27907,
"author_profile": "https://Stackoverflow.com/users/27907",
"pm_score": 2,
"selected": true,
"text": "using System.Net;\n\nusing System.IO;\n\nHttpWebRequest req = (HttpWebRequest) WebRequest.Create(WebPageUrl);\n\nWebResp... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201734",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14101/"
] |
201,776 | <p>I have an ASP.NET web page with a Login control on it. When I hit Enter, the Login button doesn't fire; instead the page submits, doing nothing.</p>
<p>The standard solution to this that I've found online is to enclose the Login control in a Panel, then set the Panel default button. But apparently that doesn't wo... | [
{
"answer_id": 201822,
"author": "StingyJack",
"author_id": 16391,
"author_profile": "https://Stackoverflow.com/users/16391",
"pm_score": 2,
"selected": false,
"text": "txtPassword.Attributes.Add(\"onKeyPress\", \"javascript:if (event.keyCode == 13) __doPostBack('\" + lnkSubmit.UniqueID ... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5486/"
] |
201,778 | <p>I have a user interface that requires placing some round buttons in a C# project with some data behind them. The buttons are System.Windows.Forms.buttons and I have used a GIF image with transparency to create them. However, the transparent areas aren't transparent. I've looked for references online but haven't fo... | [
{
"answer_id": 825833,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": " protected override CreateParams CreateParams\n {\n get\n {\n const int WS_EX_TRANSPARENT = 0x2... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201778",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27906/"
] |
201,782 | <p>When manually generating a JSON object or array, it's often easier to leave a trailing comma on the last item in the object or array. For example, code to output from an array of strings might look like (in a C++ like pseudocode):</p>
<pre><code>s.append("[");
for (i = 0; i < 5; ++i) {
s.appendF("\"%d\",", ... | [
{
"answer_id": 201856,
"author": "brianb",
"author_id": 27892,
"author_profile": "https://Stackoverflow.com/users/27892",
"pm_score": 9,
"selected": true,
"text": "s.append(\"[\");\nfor (i = 0; i < 5; ++i) {\n if (i) s.append(\",\"); // add the comma only if this isn't the first entry\n... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1323/"
] |
201,791 | <p>I am currently coding a simple Data Access Layer, and I was wondering which type I should expose to the other layers.</p>
<p>I am going to internally implement the Data as a List<>, but I remember reading something about not exposing the List type to the consumers if not needed.</p>
<pre><code>public List<Us... | [
{
"answer_id": 201805,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 4,
"selected": true,
"text": "IEnumerable<User> IList<User> IList Values IList"
}
] | 2008/10/14 | [
"https://Stackoverflow.com/questions/201791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5789/"
] |
201,796 | <p>We are using standard asp.net forms authentication. Certain pages require a user to be logged in; and least some of these pages are delivered by https. There is a search control at the top of each page. When this is used, we don't care whether the user's session has expired, even if the current page requires a lo... | [
{
"answer_id": 201820,
"author": "Nick Berardi",
"author_id": 17,
"author_profile": "https://Stackoverflow.com/users/17",
"pm_score": 2,
"selected": false,
"text": "<form method=\"post\" ...>\n <form method=\"get\" ...>\n <location path=\"my-search-page.aspx\">\n <system.web>\n ... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3856/"
] |
201,816 | <p>I'm trying to run a particular JUnit test by hand on a Windows XP command line, which has an unusually high number of elements in the class path. I've tried several variations, such as:</p>
<pre><code>set CLASS_PATH=C:\path\a\b\c;C:\path\e\f\g;....
set CLASS_PATH=%CLASS_PATH%;C:\path2\a\b\c;C:\path2\e\f\g;....
...... | [
{
"answer_id": 201857,
"author": "Nick Berardi",
"author_id": 17,
"author_profile": "https://Stackoverflow.com/users/17",
"pm_score": -1,
"selected": false,
"text": "set CLASS_PATH = c:\\path\nset ALT_A = %CLASS_PATH%\\a\\b\\c;\nset ALT_B = %CLASS_PATH%\\e\\f\\g;\n...\n\nset ALL_PATHS = ... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13140/"
] |
201,829 | <p>I have a format file where I want one of the columns to be "group". I'm auto-generating the format file and a client wants to upload a file with "group" as one of the columns. I could restrict it so they can't use SQL keywords, but then I need a function to determine if a column name is a SQL keyword, so I'd like ... | [
{
"answer_id": 203931,
"author": "Ed Harper",
"author_id": 27825,
"author_profile": "https://Stackoverflow.com/users/27825",
"pm_score": 1,
"selected": false,
"text": "Error = [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'group'.\n C:\\Program Files\\M... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2484/"
] |
201,830 | <p>I just asked <a href="https://stackoverflow.com/questions/201686/linq-to-sql-select-optimization">this question</a>. Which lead me to a new question :)</p>
<p>Up until this point, I have used the following pattern of selecting stuff with Linq to SQL, with the purpose of being able to handle 0 "rows" returned by the... | [
{
"answer_id": 201853,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 1,
"selected": false,
"text": "if (person.Any()) /* ... */;\n if (person.Count() == 0) /* ... */;\n"
},
{
"answer_id": 201871,
"author": "P... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201830",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20946/"
] |
201,832 | <p>Hey right now I'm using jQuery and I have some global variables to hold a bit of preloaded ajax stuff (preloaded to make pages come up nice and fast):</p>
<pre><code>
$.get("content.py?pageName=viewer", function(data)
{viewer = data;});
$.get("content.py?pageName=artists", function(data)
{artists = data;});... | [
{
"answer_id": 201855,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 2,
"selected": false,
"text": "var names = ['viewer', 'artists', 'instores', 'specs', 'about'];\nfor (var i = 0; i < names.length; i++)\n $.get(\"content.... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2908/"
] |
201,840 | <p>Running <code>rake db:migrate</code> followed by <code>rake test:units</code> yields the following:</p>
<pre><code>rake test:functionals
(in /projects/my_project)
rake aborted!
SQLite3::SQLException: index unique_schema_migrations already exists: CREATE UNIQUE INDEX "unique_schema_migrations" ON "ts_schema_migratio... | [
{
"answer_id": 201900,
"author": "Vitalie",
"author_id": 27913,
"author_profile": "https://Stackoverflow.com/users/27913",
"pm_score": 0,
"selected": false,
"text": "unique_schema_migrations"
},
{
"answer_id": 206848,
"author": "Tilendor",
"author_id": 1470,
"author_p... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1190/"
] |
201,846 | <p>i have the following script</p>
<pre><code>import getopt, sys
opts, args = getopt.getopt(sys.argv[1:], "h:s")
for key,value in opts:
print key, "=>", value
</code></pre>
<p>if i name this getopt.py and run it doesn't work as it tries to import itself</p>
<p>is there a way around this, so i can keep this fi... | [
{
"answer_id": 201862,
"author": "axblount",
"author_id": 1729005,
"author_profile": "https://Stackoverflow.com/users/1729005",
"pm_score": -1,
"selected": false,
"text": "import getopt as bettername\n"
},
{
"answer_id": 201891,
"author": "Vinko Vrsalovic",
"author_id": 5... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201846",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9789/"
] |
201,848 | <p>I'm automating Outlook and I need to control who the email appears to be from. The users will have two or more Accounts set up in Outlook and I need to be able to select which account to send the email from. Any ideas?</p>
<p>Needs to be supported on Outlook 2003 and above. I'm using Delphi 2006 to code this, but t... | [
{
"answer_id": 201862,
"author": "axblount",
"author_id": 1729005,
"author_profile": "https://Stackoverflow.com/users/1729005",
"pm_score": -1,
"selected": false,
"text": "import getopt as bettername\n"
},
{
"answer_id": 201891,
"author": "Vinko Vrsalovic",
"author_id": 5... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1008/"
] |
201,863 | <p>I was wondering if anyone had successfully used DPAPI with a user store in a web farm enviroment?</p>
<p>Because our application is a recently converted from 1.1 to 2.0 ASP.NET app, we're using a custom wrapper which directly calls the <code>CryptUnprotect</code> methods. But this should be the same as the <code>Pr... | [
{
"answer_id": 63183019,
"author": "codeMonkey",
"author_id": 4009972,
"author_profile": "https://Stackoverflow.com/users/4009972",
"pm_score": 0,
"selected": false,
"text": "public void ConfigureServices(IServiceCollection services)\n{\n services.AddDataProtection()\n .Protect... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
201,875 | <p>How to hide the default toolbar and to disallow the default context menu of the <code>DocumentViewer</code> control?</p>
| [
{
"answer_id": 201911,
"author": "Andy",
"author_id": 3857,
"author_profile": "https://Stackoverflow.com/users/3857",
"pm_score": 2,
"selected": true,
"text": "ContextMenuOpening ContextMenuEventArgs.Handled"
},
{
"answer_id": 6098488,
"author": "Mo0gles",
"author_id": 28... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23372/"
] |
201,883 | <p>I have the same problem as described in the posts listed below. That is, certain keys don't work at all when I type them into my combobox until I first hit the spacebar. One of the keys is ".", but another is the letter "Q", and there are others: "$", "%". </p>
<p><a href="http://forums.microsoft.com/msdn/Show... | [
{
"answer_id": 454773,
"author": "Michael Buen",
"author_id": 11432,
"author_profile": "https://Stackoverflow.com/users/11432",
"pm_score": 2,
"selected": true,
"text": "public bool EditingControlWantsInputKey(\n Keys key, bool dataGridViewWantsInputKey)\n{\n // Let the DateTimePic... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9328/"
] |
201,887 | <p>Is there a cross database platform way to get the primary key of the record you have just inserted?</p>
<p>I noted that <a href="https://stackoverflow.com/questions/165156/easy-mysql-question-regarding-primary-keys-and-an-insert">this answer</a> says that you can get it by Calling <code>SELECT LAST_INSERT_ID()</cod... | [
{
"answer_id": 202533,
"author": "extraneon",
"author_id": 24582,
"author_profile": "https://Stackoverflow.com/users/24582",
"pm_score": 7,
"selected": true,
"text": "pInsertOid = connection.prepareStatement(INSERT_OID_SQL, Statement.RETURN_GENERATED_KEYS);\n // fill in the prepared stat... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20400/"
] |
201,893 | <p>I'm working to set up Panda on an Amazon EC2 instance.
I set up my account and tools last night and had no problem using SSH to interact with my own personal instance, but right now I'm not being allowed permission into Panda's EC2 instance.
<a href="http://pandastream.com/docs/getting_started" rel="noreferrer">Gett... | [
{
"answer_id": 201898,
"author": "Mark Biek",
"author_id": 305,
"author_profile": "https://Stackoverflow.com/users/305",
"pm_score": 6,
"selected": false,
"text": "chmod 700 ~/.ec2\n"
},
{
"answer_id": 25681412,
"author": "Alena",
"author_id": 989896,
"author_profile"... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2293/"
] |
201,896 | <p>I want something that can check if a string is <code>"SELECT"</code>, <code>"INSERT"</code>, etc. I'm just curious if this exists.</p>
| [
{
"answer_id": 201902,
"author": "Steve B.",
"author_id": 19479,
"author_profile": "https://Stackoverflow.com/users/19479",
"pm_score": 3,
"selected": true,
"text": " HashSet<String> sqlKeywords =\n new HashSet<String>(Arrays.asList(\n new String[] { ... cut and paste a ... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2484/"
] |
201,940 | <p>This was an job placement interview I faced. They asked whether we can realloc Array, I told yes. Then They asked - then why we need pointers as most of the people give reason that it wastes memory space. I could not able to give satisfactory answer. If any body can give any satisfactory answer, I'll be obliged. Ple... | [
{
"answer_id": 202019,
"author": "Tarski",
"author_id": 27653,
"author_profile": "https://Stackoverflow.com/users/27653",
"pm_score": 1,
"selected": false,
"text": "void *realloc(void *ptr, size_t size);\n"
},
{
"answer_id": 202023,
"author": "Greg Rogers",
"author_id": 5... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201940",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24813/"
] |
201,956 | <p>Often times I need a collection of non-sequential objects with numeric identifiers. I like using the KeyedCollection for this, but I think there's a serious drawback. If you use an int for the key, you can no longer access members of the collection by their index (collection[index] is now really collection[key]). Is... | [
{
"answer_id": 201968,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 2,
"selected": false,
"text": "GetById(int) Collection<T> public class FooCollection : Collection<Foo>\n { Dictionary<int,Foo> dict = new Dictionary<in... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27414/"
] |
201,957 | <p>I am attempting to create a Clipboard stack in C#. Clipboard data is stored in <code>System.Windows.Forms.DataObject</code> objects. I wanted to store each clipboard entry (<code>IDataObject</code>) directly in a Generic list. Due to the way Bitmaps (seem to be) stored I am thinking I need to perform a deep copy fi... | [
{
"answer_id": 202020,
"author": "cfeduke",
"author_id": 5645,
"author_profile": "https://Stackoverflow.com/users/5645",
"pm_score": 2,
"selected": false,
"text": " public static class GhettoSerializer\n {\n // you could make this a factory method if your type\n ... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2690646/"
] |
201,966 | <p>I'm trying to create a QTVR movie via QTKit, and I've got all the frames in the movie. However, setting the attributes necessary doesn't seem to be having any effect. For example:</p>
<pre><code>NSNumber *val = [NSNumber numberWithBool:YES];
[fMovie setAttribute:val forKey:QTMovieIsInteractiveAttribute];
val = [... | [
{
"answer_id": 513584,
"author": "Daniel",
"author_id": 6852,
"author_profile": "https://Stackoverflow.com/users/6852",
"pm_score": 1,
"selected": false,
"text": "NSMutableDictionary *dictionary = [NSMutableDictionary dictionaryWithObjectsAndKeys:\n [NSNumber numberWithBool:YES], QTMo... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3830/"
] |
201,978 | <p>I use Visual Studio to do a lot of my coding. I find the open containing folder feature quite helpful. But I don't want the folder to be "opened" by the windows explorer, instead I want to "explore" the folder -- you know, get the nice little frame showing me all the other folders on the left hand side. Does anyone ... | [
{
"answer_id": 513584,
"author": "Daniel",
"author_id": 6852,
"author_profile": "https://Stackoverflow.com/users/6852",
"pm_score": 1,
"selected": false,
"text": "NSMutableDictionary *dictionary = [NSMutableDictionary dictionaryWithObjectsAndKeys:\n [NSNumber numberWithBool:YES], QTMo... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27928/"
] |
201,992 | <p>I am coding a program that reads data directly from user input and was wondering how could I (without loops) read all data until EOF from standard input. I was considering using <code>cin.get( input, '\0' )</code> but <code>'\0'</code> is not really the EOF character, that just reads until EOF or <code>'\0'</code>, ... | [
{
"answer_id": 202043,
"author": "trotterdylan",
"author_id": 17695,
"author_profile": "https://Stackoverflow.com/users/17695",
"pm_score": 7,
"selected": false,
"text": "stdin std::getline() std::string line;\nwhile (std::getline(std::cin, line))\n{\n std::cout << line << std::endl;\... | 2008/10/14 | [
"https://Stackoverflow.com/questions/201992",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14759/"
] |
202,002 | <p>I need to open a Microsoft Word 2003 file and change its file properties. Such as changing the Subject in the Summary Tab. <br/>
<img src="https://i.stack.imgur.com/FEpJY.gif" alt="alt text"></p>
| [
{
"answer_id": 202880,
"author": "AR.",
"author_id": 1354,
"author_profile": "https://Stackoverflow.com/users/1354",
"pm_score": 4,
"selected": true,
"text": "Private Sub ProcessOfficeDocument(ByVal fileName As String)\n Dim docDSO As New DSOFile.OleDocumentPropertiesClass\n Dim do... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202002",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5653/"
] |
202,009 | <p>Required is the true language version of the OS, not the user interface language or the current locale settings.</p>
<p>Use case: software installation which has to apply security settings and user account creation. The scripts have to know certain system properties like user group names in the original language of... | [
{
"answer_id": 204590,
"author": "Rômulo Ceccon",
"author_id": 23193,
"author_profile": "https://Stackoverflow.com/users/23193",
"pm_score": 3,
"selected": true,
"text": "WellKnownSidType = 27 (WinBuiltinUsersSid)"
}
] | 2008/10/14 | [
"https://Stackoverflow.com/questions/202009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23772/"
] |
202,011 | <p>How can I encrypt and decrypt a string in C#?</p>
| [
{
"answer_id": 202075,
"author": "Tamas Czinege",
"author_id": 8954,
"author_profile": "https://Stackoverflow.com/users/8954",
"pm_score": 7,
"selected": false,
"text": "KeySize - MinimumPadding var provider = new System.Security.Cryptography.RSACryptoServiceProvider();\nprovider.ImportP... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3291/"
] |
202,013 | <p>The Winform application is release with ClickOnce in our Intranet. We store personal preference for the GUI in the Isolated Storage. All works pretty fine :)</p>
<p>The problem is when we have a new version of the application, we publish... all preferences are lost! User need to setup their preference over and over... | [
{
"answer_id": 227218,
"author": "codeConcussion",
"author_id": 1321,
"author_profile": "https://Stackoverflow.com/users/1321",
"pm_score": 5,
"selected": true,
"text": "using System.IO;\nusing System.IO.IsolatedStorage;\n...\n\nIsolatedStorageFile appScope = IsolatedStorageFile.GetUserS... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13913/"
] |
202,031 | <p>It's possible, but is it appropriate to use SHFileOperation within a Windows service? All those SHxxx API functions in shell32.dll seem to have been written with user level programs in mind. Can I be certain SHFileOperation won't display GUI ever?</p>
| [
{
"answer_id": 202519,
"author": "ChrisN",
"author_id": 3853,
"author_profile": "https://Stackoverflow.com/users/3853",
"pm_score": 3,
"selected": false,
"text": "FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_NOCONFIRMMKDIR\n FOF_NO_UI ShellAPI.h FOF_NO_UI SHFileOperation"
},
... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24898/"
] |
202,060 | <p>I have a page where search resuts are shown both in a grid and on a map (using KML generated on the fly, overlaid on an embedded Google map). I've wired this up to work as the user types; here's the skeleton of my code, which works:</p>
<pre><code>$(function() {
// Wire up search textbox
$('input.Search').b... | [
{
"answer_id": 202077,
"author": "Guido",
"author_id": 12388,
"author_profile": "https://Stackoverflow.com/users/12388",
"pm_score": 0,
"selected": false,
"text": "$('input.Search').bind(\"keyup\", function() { setTimeout(update, 5) } );\n"
},
{
"answer_id": 202093,
"author":... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/239663/"
] |
202,067 | <p>Is there a way to get an ASP.NET textbox to accept only currency values, and when the control is validated, insert a $ sign beforehand?</p>
<p>Examples: </p>
<p>10.23 becomes $10.23<br>
$1.45 stays $1.45<br>
10.a raises error due to not being a valid number </p>
<p>I have a RegularExpressionValidator that is ve... | [
{
"answer_id": 202128,
"author": "Anjisan",
"author_id": 25304,
"author_profile": "https://Stackoverflow.com/users/25304",
"pm_score": 0,
"selected": false,
"text": "string value = text_box_to_validate.Text;\n\nstring myPattern = @\"^\\$(\\d{1,3},?(\\d{3},?)*\\d{3}(\\.\\d{0,2})|\\d{1,3}(... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2470/"
] |
202,068 | <p>I'm looking at setting up a small company that hosts flash-based websites for artist portfolios. The customer control panel would be django-powered, and would provide the interface for uploading their images, managing galleries, selling prints, etc.</p>
<p>Seeing as the majority of traffic to the hosted sites woul... | [
{
"answer_id": 220711,
"author": "Justin Voss",
"author_id": 5616,
"author_profile": "https://Stackoverflow.com/users/5616",
"pm_score": 2,
"selected": false,
"text": "sites"
}
] | 2008/10/14 | [
"https://Stackoverflow.com/questions/202068",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3912/"
] |
202,073 | <p>I want to get a type of a "BasePage" object that I am creating. Every Page object is based off BasePage. For instance, I have a Login.aspx and in my code-behind and a class that has a method Display:</p>
<pre><code>Display(BasePage page) {
ResourceManager manager = new ResourceManager(page.GetType());
}
</code>... | [
{
"answer_id": 202099,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 4,
"selected": true,
"text": "public partial class _Login : BasePage \n { /* ... */ \n }\n Type typeof(_Login) Type GetCodeBehindType()\n { return getC... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202073",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13688/"
] |
202,084 | <p>Cells in DataGridViewComboBoxColumn have ComboBoxStyle DropDownList. It means the user can only select values from the dropdown. The underlying control is ComboBox, so it can have style DropDown. How do I change the style of the underlying combo box in DataGridViewComboBoxColumn. Or, more general, can I have a colum... | [
{
"answer_id": 202478,
"author": "Aleris",
"author_id": 20417,
"author_profile": "https://Stackoverflow.com/users/20417",
"pm_score": 3,
"selected": false,
"text": "void dataGridView1_EditingControlShowing(object sender, \n DataGridViewEditingControlShowingEventArgs e)\n{\n if (e.C... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14727/"
] |
202,107 | <p>This question is to seek out good examples of Hungarian Notation, so we can bring together a collection of these. </p>
<p><strong>Edit:</strong> I agree that Hungarian for types isn't that necessary, I'm hoping for more specific examples where it increases readability and maintainability, like Joel gives in his ar... | [
{
"answer_id": 202135,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 5,
"selected": false,
"text": "ix _"
},
{
"answer_id": 202179,
"author": "Mark Ingram",
"author_id": 986,
"author_profile": "https:... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202107",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13295/"
] |
202,116 | <p>Linux provides the stime(2) call to set the system time. However, while this will update the system's time, it does not set the BIOS hardware clock to match the new system time.</p>
<p>Linux systems typically sync the hardware clock with the system time at shutdown and at periodic intervals. However, if the machi... | [
{
"answer_id": 202118,
"author": "Kristopher Johnson",
"author_id": 1175,
"author_profile": "https://Stackoverflow.com/users/1175",
"pm_score": 3,
"selected": false,
"text": "system(\"/sbin/hwclock --systohc\");\n"
},
{
"answer_id": 202170,
"author": "Zan Lynx",
"author_i... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1175/"
] |
202,124 | <p>I´m trying to expose services using jax-ws but the first surprise i got was that Weblogic does not support inner classes for request/response objects. After get over this situation <a href="https://stackoverflow.com/questions/144118/jaxb-binding-customization">here</a>, i´m facing another challenge:</p>
<p>Generate ... | [
{
"answer_id": 1009590,
"author": "AlanG",
"author_id": 11645,
"author_profile": "https://Stackoverflow.com/users/11645",
"pm_score": 2,
"selected": true,
"text": " <taskdef name=\"xjc\" classname=\"com.sun.tools.xjc.XJCTask\" classpathref=\"development.classpath\"/>\n\n <xjc schem... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21370/"
] |
202,136 | <p>Hello fellow stackoverflowers!</p>
<p>I have a word list of 200.000 string entries, average string length is around 30 characters. This list of words are the key and to each key i have a domain object. I would like to find the domain objects in this collection by only knowing a part of the key. I.E. the search stri... | [
{
"answer_id": 202195,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 4,
"selected": false,
"text": "SubString m_Data SubString class QGramIndex {\n private readonly int m_Maxlen;\n private readonly string m_Data... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
202,142 | <p>I can connect with a user who has permissions to set passwords. I'm able to change attributes, but I can't set the password.</p>
<p>Found some instructions to set the attribute <code>unicodePwd</code> to <code>\UNC:"*password*"</code>, but it says:</p>
<blockquote>
<p>Error: Modify: Unwilling To Perform. <53>... | [
{
"answer_id": 202195,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 4,
"selected": false,
"text": "SubString m_Data SubString class QGramIndex {\n private readonly int m_Maxlen;\n private readonly string m_Data... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1533/"
] |
202,144 | <p>We have a few developers working on the same VS2005 solution, but our source control is very bad. (Our company uses Harvest, which we give a vote of no confidence).</p>
<p>Right now, we're all just working off of the files on a shared lan drive. Obviously, this causes some problems. But we think it's better than ... | [
{
"answer_id": 202182,
"author": "Frank Schmitt",
"author_id": 27951,
"author_profile": "https://Stackoverflow.com/users/27951",
"pm_score": 2,
"selected": false,
"text": "merge mine older yours\n"
}
] | 2008/10/14 | [
"https://Stackoverflow.com/questions/202144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/681/"
] |
202,147 | <p>Is there a way to start another application from within Compact .Net framework 1.0 similar to </p>
<pre><code>System.Diagnostics.Process.Start
</code></pre>
<p>on the Windows side?</p>
<p>I need to start a CAB file for installation.</p>
| [
{
"answer_id": 202182,
"author": "Frank Schmitt",
"author_id": 27951,
"author_profile": "https://Stackoverflow.com/users/27951",
"pm_score": 2,
"selected": false,
"text": "merge mine older yours\n"
}
] | 2008/10/14 | [
"https://Stackoverflow.com/questions/202147",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18169/"
] |
202,148 | <p>I have a text file where I want to change only the first line of the file. The file could be millions of rows long, so I'd rather not have to loop over everything, so I'm wondering if there is another way to do this.</p>
<p>I'd also like to apply some rules to the first line so that I replace instances of certain ... | [
{
"answer_id": 202185,
"author": "David Schmitt",
"author_id": 4918,
"author_profile": "https://Stackoverflow.com/users/4918",
"pm_score": 2,
"selected": false,
"text": "String.replaceFirst(String regex, String replacement) RandomAccessFile"
},
{
"answer_id": 202192,
"author"... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2484/"
] |
202,166 | <p>I'm writing a lightweight game engine and while doing some research for it I've come across a number of compelling articles advocating the implementation of Game Objects through a "collection of components" model rather than an "inheiritance from concrete classes" model. There are lots of advantages:</p>
<ul>
<li>... | [
{
"answer_id": 205284,
"author": "Iain",
"author_id": 11911,
"author_profile": "https://Stackoverflow.com/users/11911",
"pm_score": 1,
"selected": false,
"text": "object.burnable = new Burnable(object);\n if (object.burnable != null)\n{\n object.burnable.burn();\n}\n"
}
] | 2008/10/14 | [
"https://Stackoverflow.com/questions/202166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13149/"
] |
202,197 | <p>I have a requirement to create a simple database in Access to collect some user data that will be loaded into another database for further reporting. There will be a module in the Access db that when invoked by the user (probably by clicking a button) will output a query to a delimited file. The user also needs a ... | [
{
"answer_id": 202316,
"author": "Mat Nadrofsky",
"author_id": 26853,
"author_profile": "https://Stackoverflow.com/users/26853",
"pm_score": 4,
"selected": true,
"text": "mySFTPCall = \"sftp <insert your options here!>\"\nCall Shell(mySFTPCall, 1)\n"
}
] | 2008/10/14 | [
"https://Stackoverflow.com/questions/202197",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3734/"
] |
202,198 | <p>I'm interested in hearing your opinions in which is the best way of implementing a social activity stream (Facebook is the most famous example). Problems/challenges involved are:</p>
<ul>
<li>Different types of activities (posting, commenting ..)</li>
<li>Different types of objects (post, comment, photo ..)</li>
<l... | [
{
"answer_id": 205477,
"author": "heyman",
"author_id": 27406,
"author_profile": "https://Stackoverflow.com/users/27406",
"pm_score": 7,
"selected": false,
"text": "{id:1, userId:1, type:PHOTO, time:2008-10-15 12:00:00, data:{photoId:2089, photoName:A trip to the beach}}\n"
},
{
... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
202,205 | <p>One of the responses to <a href="https://stackoverflow.com/questions/198721/converting-a-word-document-into-usable-html-in-php">a question I asked yesterday</a> suggested that I should make sure my database can handle UTF-8 characters correctly. How I can do this with MySQL?</p>
| [
{
"answer_id": 202246,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 8,
"selected": true,
"text": "utf8mb4 utf8mb4_unicode_ci ALTER DATABASE dbname CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;\n my.cnf default-character-se... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202205",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11522/"
] |
202,206 | <p>I am building an enterprise application with .Net 1.1 and SQL Server 2000. I use the read committed isolation level . However changes in non-functional requirements have made it necessary to take measures against non-repeatable reads and phantoms. I see two options: </p>
<ol>
<li><p>Introduce row-versioning to chec... | [
{
"answer_id": 243609,
"author": "GilaMonster",
"author_id": 9342,
"author_profile": "https://Stackoverflow.com/users/9342",
"pm_score": 1,
"selected": false,
"text": "ALLOW_SNAPSHOT_ISOLATION"
}
] | 2008/10/14 | [
"https://Stackoverflow.com/questions/202206",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
202,231 | <p>I need to detect the device resolution automatically, right now I have a global var & hardwire the resolution:</p>
<pre><code>Public gDeviceRes As String = "640"
'Public gDeviceRes As String = "320"
</code></pre>
<p>then recompile for each device, does anyone have a quick snippit of code for this??</p>
| [
{
"answer_id": 202582,
"author": "Scott Kramer",
"author_id": 3522,
"author_profile": "https://Stackoverflow.com/users/3522",
"pm_score": 2,
"selected": false,
"text": " Dim screensize As System.Drawing.Rectangle = Screen.PrimaryScreen.Bounds\n Public gDeviceRes As String = screensize.... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3522/"
] |
202,234 | <p>I have an app that executes commands on a Linux server via SSH just fine. When I connect to a Solaris server, things don't work. It seems that the Solaris command line is limited to 267 characters.</p>
<p>Is there a way to change this?</p>
<p>Update: As was pointed out before, this is a limit to the default she... | [
{
"answer_id": 202396,
"author": "Craig Trader",
"author_id": 12895,
"author_profile": "https://Stackoverflow.com/users/12895",
"pm_score": 1,
"selected": false,
"text": "/usr/bin/foo with a very long list of options and parameters\n ssh user@machine \"/usr/bin/foo with a very long list ... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5389/"
] |
202,243 | <p>I am trying to write a stored procedure which selects columns from a table and adds 2 extra columns to the ResultSet. These 2 extra columns are the result of conversions on a field in the table which is a Datetime field.</p>
<p>The Datetime format field has the following format 'YYYY-MM-DD HH:MM:SS.S'</p>
<p>The 2... | [
{
"answer_id": 202284,
"author": "Cade Roux",
"author_id": 18255,
"author_profile": "https://Stackoverflow.com/users/18255",
"pm_score": 4,
"selected": true,
"text": "SUBSTRING(CONVERT(varchar, dt, 13), 1, 2)\n + UPPER(SUBSTRING(CONVERT(varchar, dt, 13), 4, 3))\n SUBSTRING(CONVERT(var... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1311/"
] |
202,245 | <p>I'm looking for a way to sequentially number rows in a <em>result set</em> (not a table). In essence, I'm starting with a query like the following:</p>
<pre><code>SELECT id, name FROM people WHERE name = 'Spiewak'
</code></pre>
<p>The <code>id</code>s are obviously not a true sequence (e.g. <code>1, 2, 3, 4</code... | [
{
"answer_id": 202265,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 4,
"selected": true,
"text": "SELECT id, name\n , (SELECT COUNT(*) FROM people p2 WHERE name='Spiewak' AND p2.id <= p1.id) AS RowNumber\nFROM peop... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9815/"
] |
202,252 | <p>Anybody know of a plugin, or a built in function to make the columns in a table sortable? i.e. I click on the column header and it sorts the rows by that column?</p>
| [
{
"answer_id": 36380772,
"author": "João Paulo",
"author_id": 1455108,
"author_profile": "https://Stackoverflow.com/users/1455108",
"pm_score": 0,
"selected": false,
"text": "var data = {\n people: [\n {name: 'a', address: 'c', salesperson: 'b'},\n {name: 'b', address: '... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26121/"
] |
202,253 | <p>I'm using Eclipse 3.4 and Tomcat 5.5 and I have a Dynamic Web Project set up. I can access it from <a href="http://127.0.0.1:8080/project/" rel="noreferrer">http://127.0.0.1:8080/project/</a> but by default it serves files from WebContent folder. The real files, that I want to serve, can be found under folder named ... | [
{
"answer_id": 202391,
"author": "matt b",
"author_id": 4249,
"author_profile": "https://Stackoverflow.com/users/4249",
"pm_score": 4,
"selected": true,
"text": ".settings org.eclipse.wst.common.component <wb-module deploy-name=\"WebProjectName\">\n <wb-resource deploy-path=\"/\" sour... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27736/"
] |
202,271 | <p>The following code will not compile:</p>
<pre><code>string foo = "bar";
Object o = foo == null ? DBNull.Value : foo;
</code></pre>
<p>I get: <em>Error 1 Type of conditional expression cannot be determined because there is no implicit conversion between 'System.DBNull' and 'string'</em></p>
<p>To fix this, I must ... | [
{
"answer_id": 202281,
"author": "Keith",
"author_id": 905,
"author_profile": "https://Stackoverflow.com/users/905",
"pm_score": 4,
"selected": false,
"text": "DBNull.Value DBNull string string null DBNull [condition] ? true value : false value;\n string item = \"item\";\n\nvar test = it... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1638/"
] |
202,273 | <p>I can currently to the following:</p>
<pre><code>class SubClass extends SuperClass {
function __construct() {
parent::__construct();
}
}
class SuperClass {
function __construct() {
// this echoes "I'm SubClass and I'm extending SuperClass"
echo 'I\'m '.get_class($this).' and I\'m extending '.__CL... | [
{
"answer_id": 202308,
"author": "Peter Bailey",
"author_id": 8815,
"author_profile": "https://Stackoverflow.com/users/8815",
"pm_score": 0,
"selected": false,
"text": "__FILE__"
},
{
"answer_id": 202687,
"author": "user27987",
"author_id": 27987,
"author_profile": "h... | 2008/10/14 | [
"https://Stackoverflow.com/questions/202273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2238/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.