qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
95,886 | <p>I'm writing a report view of an audit trail, and I need to display this in a .jsp. What's the "best" way to get the data from the database to the screen?</p>
<p>We're using Spring for dependency injection, Data Access Objects, and Hibernate.
I can use hibernate or straight jdbc for this report.</p>
<p>If I load al... | [
{
"answer_id": 98137,
"author": "Brian Matthews",
"author_id": 1969,
"author_profile": "https://Stackoverflow.com/users/1969",
"pm_score": 2,
"selected": false,
"text": "org.displaytag.pagination.PaginatedList"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/95886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1310/"
] |
95,895 | <p>I have two <code>DateTime</code> objects: <code>StartDate</code> and <code>EndDate</code>. I want to make sure <code>StartDate</code> is before <code>EndDate</code>. How is this done in C#?</p>
| [
{
"answer_id": 95921,
"author": "Ryan Rinaldi",
"author_id": 2278,
"author_profile": "https://Stackoverflow.com/users/2278",
"pm_score": 5,
"selected": false,
"text": "if(StartDate < EndDate)\n{}\n"
},
{
"answer_id": 95926,
"author": "Rob Gray",
"author_id": 5691,
"au... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3208/"
] |
95,909 | <p>First let me say that I really feel directionless on this question. I am using windows integrated security, and I can use vb.net to look up information about a user from AD. I also have other information about users I can look up from a MS SQL 2005 server by getting the logon identity name.</p>
<p>What I would like... | [
{
"answer_id": 95965,
"author": "SCdF",
"author_id": 1666,
"author_profile": "https://Stackoverflow.com/users/1666",
"pm_score": 1,
"selected": false,
"text": "threshold threshold"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/95909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16771/"
] |
95,910 | <p>Given this class</p>
<pre><code>class Foo
{
// Want to find _bar with reflection
[SomeAttribute]
private string _bar;
public string BigBar
{
get { return this._bar; }
}
}
</code></pre>
<p>I want to find the private item _bar that I will mark with a attribute. Is that possible? </... | [
{
"answer_id": 95948,
"author": "Darren Kopp",
"author_id": 77,
"author_profile": "https://Stackoverflow.com/users/77",
"pm_score": 4,
"selected": false,
"text": "typeof(MyType).GetField(\"fieldName\", BindingFlags.NonPublic | BindingFlags.Instance)\n"
},
{
"answer_id": 95964,
... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2469/"
] |
95,912 | <p>My Vista application needs to know whether the user has launched it "as administrator" (elevated) or as a standard user (non-elevated). How can I detect that at run time? </p>
| [
{
"answer_id": 95918,
"author": "Andrei Belogortseff",
"author_id": 17037,
"author_profile": "https://Stackoverflow.com/users/17037",
"pm_score": 5,
"selected": true,
"text": "HRESULT GetElevationType( __out TOKEN_ELEVATION_TYPE * ptet );\n\n/*\nParameters:\n\nptet\n [out] Pointer to ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17037/"
] |
95,950 | <p>On my desktop I have written a small Pylons app that connects to Oracle. I'm now trying to deploy it to my server which is running Win2k3 x64. (My desktop is 32-bit XP) The Oracle installation on the server is also 64-bit.</p>
<p>I was getting errors about loading the OCI dll, so I installed the 32 bit client int... | [
{
"answer_id": 96016,
"author": "Moe",
"author_id": 3051,
"author_profile": "https://Stackoverflow.com/users/3051",
"pm_score": 2,
"selected": false,
"text": "import os\nos.environ['PATH'] += os.pathsep + \"C:\\\\oracle32\\\\bin\"\n"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/95950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1566663/"
] |
95,956 | <p>using C++Builder 2007, the FindFirstFile and FindNextFile functions doesn't seem to be able to find some files on 64-bit versions of Vista and XP. My test application is 32-bit.</p>
<p>If I use them to iterate through the folder C:\Windows\System32\Drivers they only find a handful of files although there are 185 wh... | [
{
"answer_id": 96179,
"author": "JubbaJubba",
"author_id": 18145,
"author_profile": "https://Stackoverflow.com/users/18145",
"pm_score": 1,
"selected": false,
"text": "%windir%\\system32\\catroot\n%windir%\\system32\\catroot2\n%windir%\\system32\\drivers\\etc\n%windir%\\system32\\logfile... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18145/"
] |
95,967 | <p>Simple question, how do you list the primary key of a table with T-SQL? I know how to get indexes on a table, but can't remember how to get the PK.</p>
| [
{
"answer_id": 95982,
"author": "boes",
"author_id": 17746,
"author_profile": "https://Stackoverflow.com/users/17746",
"pm_score": 2,
"selected": false,
"text": "sp_help execute sp_help table_name\n"
},
{
"answer_id": 96049,
"author": "Guy Starbuck",
"author_id": 2194,
... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/736/"
] |
95,988 | <p>I'm inserting multiple records into a table A from another table B. Is there a way to get the identity value of table A record and update table b record with out doing a cursor?</p>
<pre><code>Create Table A
(id int identity,
Fname nvarchar(50),
Lname nvarchar(50))
Create Table B
(Fname nvarchar(50),
Lname nvarcha... | [
{
"answer_id": 96084,
"author": "Cory",
"author_id": 8207,
"author_profile": "https://Stackoverflow.com/users/8207",
"pm_score": 1,
"selected": false,
"text": "Insert into A(identity, fname, lname) SELECT newid, fname, lname FROM B\n set identity_insert A on\n"
},
{
"answer_id": ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95988",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2526/"
] |
96,003 | <p>Let's say I have two models, Classes and People. A Class might have one or two People as instructors, and twenty people as students. So, I need to have multiple relationships between the models -- one where it's 1->M for instructors, and one where it's 1->M for students.</p>
<p>Edit: Instructors and Students <em>mu... | [
{
"answer_id": 96055,
"author": "kch",
"author_id": 13989,
"author_profile": "https://Stackoverflow.com/users/13989",
"pm_score": 5,
"selected": true,
"text": "class Person < ActiveRecord::Base; end # btw, model names are singular in rails\nclass Student < Person; end\nclass Instructor ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/722/"
] |
96,027 | <p>For example, given a type param method i'm looking for something like the part in bold</p>
<blockquote>
<p>void MyMethod< T >() {<br>
if ( <strong>typeof(T).Implements( <em>IMyInterface</em> )</strong> )
{</p>
<pre><code> //Do something
</code></pre>
<p>else</p>
<pre><code> //Do something else ... | [
{
"answer_id": 96057,
"author": "Jonathan Rupp",
"author_id": 12502,
"author_profile": "https://Stackoverflow.com/users/12502",
"pm_score": 4,
"selected": true,
"text": "if(typeof(IMyInterface).IsAssignableFrom(typeof(T)))\n{\n // something\n}\nelse\n{\n // something else\n}\n"
},
... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10136/"
] |
96,029 | <p>I have an ASP.Net page that will be hosted on a couple different servers, and I want to get the URL of the page (or even better: the site where the page is hosted) as a string for use in the code-behind. Any ideas?</p>
| [
{
"answer_id": 96063,
"author": "Mikey",
"author_id": 13347,
"author_profile": "https://Stackoverflow.com/users/13347",
"pm_score": 9,
"selected": true,
"text": "Request.Url.AbsoluteUri"
},
{
"answer_id": 1534478,
"author": "William",
"author_id": 98740,
"author_profi... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3043/"
] |
96,041 | <p>For a developer in the Java eco-system, there is a handful of choices when it comes to UI design. The best known are:</p>
<ul>
<li>Swing (preferred when used with Netbeans and its GUI builder)</li>
<li>Eclipse's SWT (mostly preferred for Eclipse plug-ins)</li>
</ul>
<p>Now, are there any frameworks or design alter... | [
{
"answer_id": 9295296,
"author": "mikera",
"author_id": 214010,
"author_profile": "https://Stackoverflow.com/users/214010",
"pm_score": 2,
"selected": false,
"text": "(defn -main [& args]\n (invoke-later \n (-> (frame :title \"Hello\", \n :content \"Hello, Seesaw\",\n ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15649/"
] |
96,042 | <p>I'm working on the creation of an ActiveX EXE using VB6, and the only example I got is all written in Delphi.</p>
<p>Reading the example code, I noticed there are some functions whose signatures are followed by the <strong>safecall</strong> keyword. Here's an example:</p>
<pre><code>function AddSymbol(ASymbol: Ol... | [
{
"answer_id": 96646,
"author": "Lars Truijens",
"author_id": 1242,
"author_profile": "https://Stackoverflow.com/users/1242",
"pm_score": 2,
"selected": false,
"text": "function AddSymbol(ASymbol: OleVariant; out Result: WordBool): HResult; stdcall;\n"
},
{
"answer_id": 50373314,... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/431/"
] |
96,054 | <p>I have huge 3D arrays of numbers in my .NET application. I need to convert them to a 1D array to pass it to a COM library. Is there a way to convert the array without making a copy of all the data?</p>
<p>I can do the conversion like this, but then I use twice the ammount of memory which is an issue in my applicati... | [
{
"answer_id": 96603,
"author": "Aaron",
"author_id": 14153,
"author_profile": "https://Stackoverflow.com/users/14153",
"pm_score": 2,
"selected": false,
"text": "class Matrix3\n{\n // referece-to-element object\n public struct Matrix3Elem{\n private Matrix3Impl impl;\n ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96054",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15454/"
] |
96,059 | <p>Suppose I want to store many small configuration objects in XML, and I don't care too much about the format. The <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/beans/XMLDecoder.html" rel="nofollow noreferrer">XMLDecoder</a> class built into the JDK would work, and from what I hear, <a href="http://xstream.cod... | [
{
"answer_id": 97182,
"author": "Jay R.",
"author_id": 5074,
"author_profile": "https://Stackoverflow.com/users/5074",
"pm_score": 3,
"selected": false,
"text": "// define your classes\npublic class Person {\n private String firstname;\n private PhoneNumber phone;\n // ... constructor... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3474/"
] |
96,066 | <p>I'm trying to incorporate some JavaScript unit testing into my automated build process. Currently JSUnit works well with JUnit, but it seems to be abandonware and lacks good support for Ajax, debugging, and timeouts.</p>
<p>Has anyone had any luck automating (with <a href="https://en.wikipedia.org/wiki/Apache_Ant" r... | [
{
"answer_id": 1891305,
"author": "Josh",
"author_id": 224929,
"author_profile": "https://Stackoverflow.com/users/224929",
"pm_score": 2,
"selected": false,
"text": "var yui_instance; // The YUI instance\nvar runner; // The YAHOO.Test.Runner\nvar Assert; // An instance of YAHOO.Test.... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18146/"
] |
96,086 | <p>I've had a lot of trouble trying to come up with the best way to properly follow TDD principles while developing UI in JavaScript. What's the best way to go about this?</p>
<p>Is it best to separate the visual from the functional? Do you develop the visual elements first, and then write tests and then code for fu... | [
{
"answer_id": 98475,
"author": "Kris Gray",
"author_id": 1302167,
"author_profile": "https://Stackoverflow.com/users/1302167",
"pm_score": 5,
"selected": true,
"text": "<html>\n<head>\n<script src=\"jsunit.js\"></script>\n<script src=\"mootools.js\"></script>\n<script src=\"yourcontrol.... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18146/"
] |
96,107 | <p>I'm working with an mpeg stream that uses a IBBP... GOP sequence. The <code>(DTS,PTS)</code> values returned for the first 4 AVPackets are as follows: <code>I=(0,3) B=(1,1) B=(2,2) P=(3,6)</code></p>
<p>The PTS on the I frame looks like it is legit, but then the PTS on the B frames cannot be right, since the B fram... | [
{
"answer_id": 96939,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "0, 3, 1, 2, 6, 4, 5, ...\n I, P, B, B, I, B, B, ...\n"
},
{
"answer_id": 104883,
"author": "hobb0001",
"author_... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96107",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18156/"
] |
96,114 | <p>I'm currently modifying a Java script in Rational Functional Tester and I'm trying to tell RFT to wait for an object with a specified set of properties to appear. Specifically, I want to wait until a table with X number of rows appear. The only way I have been able to do it so far is to add a verification point that... | [
{
"answer_id": 164822,
"author": "Tom E",
"author_id": 9267,
"author_profile": "https://Stackoverflow.com/users/9267",
"pm_score": 2,
"selected": false,
"text": "find() doc TestObject[] tables = doc.find(atDescendant(\".rowCount\", x), false);\n find() find()"
},
{
"answer_id": 7... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17601/"
] |
96,123 | <pre><code>Shell ("explorer.exe www.google.com")
</code></pre>
<p>is how I'm currently opening my products ad page after successful install. However I think it would look much nicer if I could do it more like Avira does, or even a popup where there are no address bar links etc. Doing this via an inbrowser link is eas... | [
{
"answer_id": 164822,
"author": "Tom E",
"author_id": 9267,
"author_profile": "https://Stackoverflow.com/users/9267",
"pm_score": 2,
"selected": false,
"text": "find() doc TestObject[] tables = doc.find(atDescendant(\".rowCount\", x), false);\n find() find()"
},
{
"answer_id": 7... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
96,133 | <p>I have uncovered another problem in the effort that we are making to port several hundreds of ksh scripts from AIX, Solaris and HPUX to Linux. See <a href="https://stackoverflow.com/questions/74372/how-to-overcome-an-incompatibility-between-the-ksh-on-linux-vs-that-installed-o">here</a> for the previous problem.</p>... | [
{
"answer_id": 96857,
"author": "pjz",
"author_id": 8002,
"author_profile": "https://Stackoverflow.com/users/8002",
"pm_score": 0,
"selected": false,
"text": "/usr/bin/test /usr/bin/test /usr/bin/test /usr/bin/test"
},
{
"answer_id": 2711586,
"author": "masta",
"author_id... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13029/"
] |
96,137 | <p>There are lots of people out there asking "why shouldn't we use tables for structuring our HTML" and while a lot of answers come in, I rarely see anyone being converted to the world of semantics. That said, I've yet to see any convincing rebuttals to support the rationale for why we should (or might) use tables.</p>... | [
{
"answer_id": 8315039,
"author": "Rebecca",
"author_id": 119624,
"author_profile": "https://Stackoverflow.com/users/119624",
"pm_score": 2,
"selected": false,
"text": "<table width=\"100%\">\n<tr><td valign=\"top\">Left nav</td><td valign=\"top\">Main content</td></tr>\n</table>\n <div ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96137",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16124/"
] |
96,150 | <p>I have an application that uploads an Excel .xls file to the file system, opens the file with an oledbconnection object using the .open() method on the object instance and then stores the data in a database. The upload and writing of the file to the file system works fine but I get an error when trying to open the ... | [
{
"answer_id": 255298,
"author": "Joshua Turner",
"author_id": 820,
"author_profile": "https://Stackoverflow.com/users/820",
"pm_score": 1,
"selected": false,
"text": "System.Data.OleDb.OleDbConnection x = new System.Data.OleDb.OleDbConnection(@\"Provider=Microsoft.Jet.OLEDB.4.0;Data Sou... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18164/"
] |
96,153 | <p>I am trying to figure out how to click a button on a web page programmatically.</p>
<p>Specifically, I have a WinForm with a WebBrowser control. Once it navigates to the target ASP.NET login page I'm trying to work with, in the DocumentCompleted event handler I have the following coded:</p>
<pre><code>HtmlDocumen... | [
{
"answer_id": 96172,
"author": "Quintin Robinson",
"author_id": 12707,
"author_profile": "https://Stackoverflow.com/users/12707",
"pm_score": 1,
"selected": false,
"text": "mshtml.IHTMLWindow2 myBroserWindow = (mshtml.IHTMLWindow2)MyWebBrowser.Document.Window.DomWindow;\nmyBroserWindow.... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96153",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16964/"
] |
96,156 | <p>Is it possible to use chapters in videos for the iPhone in an application?</p>
<p>For example:
I have a 3 minutes video to play. I have chapter 1 starting at 0s, chapter 2 at 50s, chapter 3 at 95s.</p>
<p>Can I start plating the video at 50s (chapter 2) until the end? Can I make it play just the chapter 2 from 50s... | [
{
"answer_id": 891987,
"author": "Vladimir Grigorov",
"author_id": 22764,
"author_profile": "https://Stackoverflow.com/users/22764",
"pm_score": 0,
"selected": false,
"text": "@interface MPMoviePlayerController (extended)\n-(void)setCurrentTime:(double)seconds;\n@end\n MPMoviePlayerContr... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96156",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1044/"
] |
96,164 | <p>I'm attempting to convert a home-grown login system to the standard asp.net login control included in .net. I want all communication on the website for a user not logged in to be in clear text, but lock everything in SSL once the user logs in - including the transmission of the username and password.</p>
<p>I had ... | [
{
"answer_id": 3780392,
"author": "FarReachChad",
"author_id": 456398,
"author_profile": "https://Stackoverflow.com/users/456398",
"pm_score": 1,
"selected": false,
"text": "function forceSSLSubmit() \n{\n\n var strAction = document.forms[0].action.toString();\n\n ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96164",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3259/"
] |
96,185 | <p>I believe the question says it all ... (I'll update if needed)</p>
| [
{
"answer_id": 3780392,
"author": "FarReachChad",
"author_id": 456398,
"author_profile": "https://Stackoverflow.com/users/456398",
"pm_score": 1,
"selected": false,
"text": "function forceSSLSubmit() \n{\n\n var strAction = document.forms[0].action.toString();\n\n ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9411/"
] |
96,196 | <p>The <strong>C</strong> preprocessor is justifiably feared and shunned by the C++ community. In-lined functions, consts and templates are usually a safer and superior alternative to a <code>#define</code>.</p>
<p>The following macro: </p>
<pre><code>#define SUCCEEDED(hr) ((HRESULT)(hr) >= 0)
</code></pre>
<p>... | [
{
"answer_id": 96230,
"author": "Motti",
"author_id": 3848,
"author_profile": "https://Stackoverflow.com/users/3848",
"pm_score": 5,
"selected": false,
"text": "return break continue #define ASSERT_RETURN(condition, ret_val) \\\nif (!(condition)) { \\\n assert(false && #condition); \\... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3848/"
] |
96,211 | <p>When writing manual SQL its pretty easy to estimate the size and shape of data returned by a query. I'm increasingly finding it hard to do this with LINQ to SQL queries. Sometimes I find WAY more data than I was expecting - which can really slow down a remote client that is accessing a database directly.</p>
<p>I'd... | [
{
"answer_id": 585641,
"author": "Martin Meixger",
"author_id": 64466,
"author_profile": "https://Stackoverflow.com/users/64466",
"pm_score": 0,
"selected": false,
"text": "SqlConnection sqlConnection = new SqlConnection(\"your_connection_string\");\n// enable statistics\ncn.StatisticsEn... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16940/"
] |
96,247 | <p>I create a web application (WAR) and deploy it on Tomcat. In the <em>webapp</em> there is a page with a form where an administrator can enter some configuration data. I don't want to store this data in an DBMS, but just in an XML file on the file system. Where to put it?</p>
<p>I would like to put the file somewher... | [
{
"answer_id": 96469,
"author": "Jataro",
"author_id": 9292,
"author_profile": "https://Stackoverflow.com/users/9292",
"pm_score": 4,
"selected": false,
"text": "public void init(ServletConfig servletConfig) throws ServletException{\n super.init(servletConfig);\n String path = serv... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17746/"
] |
96,249 | <p>Adding an element to the head of an alist (Associative list) is simple enough:</p>
<pre><code>> (cons '(ding . 53) '((foo . 42) (bar . 27)))
((ding . 53) (foo . 42) (bar . 27))
</code></pre>
<p>Appending to the tail of an alist is a bit trickier though. After some experimenting, I produced this:</p>
<pre><code... | [
{
"answer_id": 96754,
"author": "Matthias Benkard",
"author_id": 15517,
"author_profile": "https://Stackoverflow.com/users/15517",
"pm_score": 3,
"selected": false,
"text": "(acons key value alist)\n (cons (cons key value) alist)\n"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/96249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18180/"
] |
96,250 | <p>My project has both client and server components in the same solution file. I usually have the debugger set to start them together when debugging, but it's often the case where I start the server up outside of the debugger so I can start and stop the client as needed when working on client-side only stuff. (this is... | [
{
"answer_id": 96478,
"author": "Jason Diller",
"author_id": 2187,
"author_profile": "https://Stackoverflow.com/users/2187",
"pm_score": 4,
"selected": true,
"text": " Sub DebugTheServer()\n DTE.Windows.Item(Constants.vsWindowKindSolutionExplorer).Activate()\n DTE.ActiveWindow.Obje... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2187/"
] |
96,264 | <p>I have two code bases of an application. I need to copy all the files in all the directories with .java from the newer code base, to the older (so I can commit it to svn).</p>
<p>How can I write a batch files to do this?</p>
| [
{
"answer_id": 96270,
"author": "Danimal",
"author_id": 2757,
"author_profile": "https://Stackoverflow.com/users/2757",
"pm_score": 4,
"selected": true,
"text": "xcopy c:\\olddir\\*.java c:\\newdir /D /E /Q /Y\n"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/96264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5653/"
] |
96,265 | <p>I am programming a game on the iPhone. I am currently using NSTimer to trigger my game update/render. The problem with this is that (after profiling) I appear to lose a lot of time between updates/renders and this seems to be mostly to do with the time interval that I plug into NSTimer. </p>
<p>So my question is... | [
{
"answer_id": 224891,
"author": "zoul",
"author_id": 17279,
"author_profile": "https://Stackoverflow.com/users/17279",
"pm_score": 4,
"selected": false,
"text": "- (void) gameLoop\n{\n while (running)\n {\n NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];\n ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25868/"
] |
96,285 | <p>I'm fresh out of college and have been working in C++ for some time now. I understand all the basics of C++ and use them, but I'm having a hard time grasping more advanced topics like pointers and classes. I've read some books and tutorials and I understand the examples in them, but then when I look at some advanc... | [
{
"answer_id": 96310,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 0,
"selected": false,
"text": "x = 500; // memory address for hello;\nMEMORY[x] = \"hello\"; \nprint MEMORY[x]; \n #define MEMORY 0; \n#define MEMOR... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/117494/"
] |
96,297 | <h2>General</h2>
<ul>
<li>Follow the same standards for all tests.</li>
<li>Be clear about what each test state is.</li>
<li>Be specific about the expected behavior.</li>
</ul>
<h2>Examples</h2>
<p>1) MethodName_StateUnderTest_ExpectedBehavior</p>
<pre><code>Public void Sum_NegativeNumberAs1stParam_ExceptionThrown(... | [
{
"answer_id": 1292173,
"author": "Jehof",
"author_id": 83039,
"author_profile": "https://Stackoverflow.com/users/83039",
"pm_score": 5,
"selected": false,
"text": "[TestMethod]\npublic void CanCountAllItems() {\n // Test the total count of items in collection.\n}\n [TestClass]\npublic ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18170/"
] |
96,313 | <p>I've got a couple large checkouts where the .svn folder has become damaged so I'm getting and error, "Cleanup failed to process the following path.." And I can no longer commit or update files in that directory.</p>
<p>I'd just delete and do the checkout again but the whole directory is over a gig.</p>
<p>Is there... | [
{
"answer_id": 96415,
"author": "Sander Rijken",
"author_id": 5555,
"author_profile": "https://Stackoverflow.com/users/5555",
"pm_score": 6,
"selected": true,
"text": "svn checkout --depth files --force REPOS WC\n svn update --depth files --force WC\n"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/96313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1430/"
] |
96,317 | <p>Given an instance of <code>System.Reflection.Assembly</code>.</p>
| [
{
"answer_id": 6260206,
"author": "Lisa",
"author_id": 314283,
"author_profile": "https://Stackoverflow.com/users/314283",
"pm_score": 6,
"selected": false,
"text": "XmlSchema mySchema;\nstring resourceName = \"MyEmbeddedSchema.xsd\";\nstring resourcesFolderName = \"Serialisation\";\nstr... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4094/"
] |
96,326 | <p>I need to attach a file with mailx but at the moment I am not having success.</p>
<p><strong>Here's my code:</strong></p>
<pre><code>subject="Something happened"
to="somebody@somewhere.com"
body="Attachment Test"
attachment=/path/to/somefile.csv
uuencode $attachment | mailx -s "$subject" "$to" << EOF
The m... | [
{
"answer_id": 96616,
"author": "Thomas Kammeyer",
"author_id": 4410,
"author_profile": "https://Stackoverflow.com/users/4410",
"pm_score": 1,
"selected": false,
"text": "cat <<EOF | ( cat -; uuencode -m /path/to/somefile.csv /path/to/somefile.csv; ) | mailx -s \"$subject\" \"$to\" \npla... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6992/"
] |
96,340 | <p>We have a suite of interlinked .Net 3.5 applications. Some are web sites, some are web services, and some are windows applications. Each app currently has its own configuration file (app.config or web.config), and currently there are some duplicate keys across the config files (which at the moment are kept in sync m... | [
{
"answer_id": 96454,
"author": "Hallgrim",
"author_id": 15454,
"author_profile": "https://Stackoverflow.com/users/15454",
"pm_score": 2,
"selected": false,
"text": "<SomeConfigSection>\n <SettingA/>\n <SettingB/>\n</SomeConfigSection>\n<OtherSection>\n <SettingX/>\n</OtherSection>\n ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17765/"
] |
96,360 | <p>I am trying to write a servlet that will send a XML file (xml formatted string) to another servlet via a POST.
(Non essential xml generating code replaced with "Hello there")</p>
<pre><code> StringBuilder sb= new StringBuilder();
sb.append("Hello there");
URL url = new URL("theservlet's URL");
HttpU... | [
{
"answer_id": 96393,
"author": "Craig B.",
"author_id": 10780,
"author_profile": "https://Stackoverflow.com/users/10780",
"pm_score": 2,
"selected": false,
"text": "connection.setDoOutput( true)\n"
},
{
"answer_id": 96410,
"author": "Sietse",
"author_id": 6400,
"auth... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27/"
] |
96,377 | <p>I am trying to use Validation in WPF. I created a NotNullOrEmptyValidationRule as shown below: </p>
<pre><code>public class NotNullOrEmptyValidationRule : ValidationRule
{
public override ValidationResult Validate(object value, CultureInfo cultureInfo)
{
if (String.IsNullOrEmpty(valu... | [
{
"answer_id": 96497,
"author": "Abe Heidebrecht",
"author_id": 9268,
"author_profile": "https://Stackoverflow.com/users/9268",
"pm_score": 3,
"selected": false,
"text": "<Window ...\n xmlns:local=\"clr-namespace:MyNamespaceName\">\n <Binding Path=\".\">\n <Binding.ValidationRules>... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3797/"
] |
96,390 | <p>I have a SQL statement that looks like:</p>
<pre><code>SELECT [Phone]
FROM [Table]
WHERE
(
[Phone] LIKE '[A-Z][a-z]'
OR [Phone] = 'N/A'
OR [Phone] LIKE '[0]'
)
</code></pre>
<p>The part I'm having trouble with is the where statement with the "LIKEs". I've seen SQL statements where authors used <code>li... | [
{
"answer_id": 96445,
"author": "Forgotten Semicolon",
"author_id": 1960,
"author_profile": "https://Stackoverflow.com/users/1960",
"pm_score": 4,
"selected": true,
"text": "SELECT [Phone]\nFROM [Table]\nWHERE\n(\n [Phone] LIKE '%[A-Z]%'\n OR [Phone] LIKE '%[a-z]%'\n OR [Phone] ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18196/"
] |
96,405 | <p>I have to deploy my php/html/css/etc code to multiple servers and i am looking at my options for software that allows easy and secure deployment to multiple servers.</p>
<p>Also helps if it could be tied into my SVN.</p>
<p>Any suggestions?</p>
| [
{
"answer_id": 98084,
"author": "reefnet_alex",
"author_id": 2745,
"author_profile": "https://Stackoverflow.com/users/2745",
"pm_score": 2,
"selected": false,
"text": "cap -f deploy.rb live deploy\n cap -f deploy.rb dev deploy\n"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/96405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14433/"
] |
96,414 | <p>I'm experimenting with adding icons to a shell extension. I have this code (sanitized for easy reading), which works:</p>
<pre><code>InsertMenu(hmenu, index, MF_POPUP|MF_BYPOSITION, (UINT)hParentMenu, namestring);
</code></pre>
<p>The next step is this code:</p>
<pre><code>HICON hIconLarge, hIconSmall;
ICONINFO o... | [
{
"answer_id": 98084,
"author": "reefnet_alex",
"author_id": 2745,
"author_profile": "https://Stackoverflow.com/users/2745",
"pm_score": 2,
"selected": false,
"text": "cap -f deploy.rb live deploy\n cap -f deploy.rb dev deploy\n"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/96414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18192/"
] |
96,428 | <p>I have this string</p>
<pre><code>'john smith~123 Street~Apt 4~New York~NY~12345'
</code></pre>
<p>Using JavaScript, what is the fastest way to parse this into</p>
<pre><code>var name = "john smith";
var street= "123 Street";
//etc...
</code></pre>
| [
{
"answer_id": 96452,
"author": "Zach",
"author_id": 9128,
"author_profile": "https://Stackoverflow.com/users/9128",
"pm_score": 11,
"selected": true,
"text": "String.prototype.split var input = 'john smith~123 Street~Apt 4~New York~NY~12345';\n\nvar fields = input.split('~');\n\nvar nam... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6161/"
] |
96,431 | <p>I'm seeing some errors that would indicate a "connection leak". That is, connections that were not closed properly and the pool is running out. So, how do I go about instrumenting this to see exactly how many are open at a given time?</p>
| [
{
"answer_id": 122162,
"author": "Joe",
"author_id": 13087,
"author_profile": "https://Stackoverflow.com/users/13087",
"pm_score": 0,
"selected": false,
"text": "using(SqlConnection connection = new SqlConnection())\n{\n...\n} // connection is always disposed (i.e. closed) here, even if ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5469/"
] |
96,440 | <p>I have a Flex application, which loads a SWF from CS3. The loaded SWF contains a text input called "myText". I can see this in the SWFLoader.content with no problems, but I don't know what type I should be treating it as in my Flex App. I thought the flex docs covered this but I can only find how to interact with an... | [
{
"answer_id": 103094,
"author": "Theo",
"author_id": 1109,
"author_profile": "https://Stackoverflow.com/users/1109",
"pm_score": 2,
"selected": false,
"text": "fl.* var textInput : * = getTheTextInput(); // insert your own method here\n\ntextInput.text = \"Lorem ipsum dolor sit amet\";\... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13220/"
] |
96,448 | <p>I need to import a large CSV file into an SQL server. I'm using this :</p>
<pre><code>BULK
INSERT CSVTest
FROM 'c:\csvfile.txt'
WITH
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)
GO
</code></pre>
<p>problem is all my fields are surrounded by quotes ("... | [
{
"answer_id": 96474,
"author": "K Richard",
"author_id": 16771,
"author_profile": "https://Stackoverflow.com/users/16771",
"pm_score": 4,
"selected": false,
"text": "FIELDTERMINATOR='\",\"'"
},
{
"answer_id": 96489,
"author": "Epaga",
"author_id": 6583,
"author_profi... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3263/"
] |
96,460 | <p>Sessions in PHP seemed to have changed since the last time I used them, so I'm looking for a simple way of using sessions but at the same time for it to be relatively secure and a good common practice.</p>
| [
{
"answer_id": 96544,
"author": "Laith",
"author_id": 5961,
"author_profile": "https://Stackoverflow.com/users/5961",
"pm_score": -1,
"selected": false,
"text": "session_start();\n$old_sessionid = session_id();\nsession_regenerate_id();\n$new_sessionid = session_id();\n"
},
{
"an... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96460",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10708/"
] |
96,463 | <p>How do you access the response from the Request
object in MooTools? I've been looking at the documentation and the MooTorial, but
I can't seem to make any headway. Other Ajax stuff I've done with
MooTools I haven't had to manipulate the response at all, so I've just
been able to inject it straight into the document,... | [
{
"answer_id": 96573,
"author": "Grant Wagner",
"author_id": 9254,
"author_profile": "https://Stackoverflow.com/users/9254",
"pm_score": 2,
"selected": false,
"text": "var req = new Request({\n method: 'get',\n url: ...,\n data: ...,\n onRequest: function() { alert('Request m... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13281/"
] |
96,500 | <p>Suppose I have the following code:</p>
<pre><code>class some_class{};
some_class some_function()
{
return some_class();
}
</code></pre>
<p>This seems to work pretty well and saves me the trouble of having to declare a variable just to make a return value. But I don't think I've ever seen this in any kind of ... | [
{
"answer_id": 96665,
"author": "Rob Walker",
"author_id": 3631,
"author_profile": "https://Stackoverflow.com/users/3631",
"pm_score": 2,
"selected": false,
"text": "A a;\na = fn();\n A a = fn();\n"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/96500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2147/"
] |
96,525 | <p>Is it possible to change the font size used in a ContextMenu using the .NET Framework 3.5 and C# for a desktop application? It seems it's a system-wide setting, but I would like to change it only within my application.</p>
| [
{
"answer_id": 96682,
"author": "OwenP",
"author_id": 2547,
"author_profile": "https://Stackoverflow.com/users/2547",
"pm_score": 4,
"selected": true,
"text": "ContextMenuStrip ContextMenu TextBox ContextMenuStrip TextBox"
},
{
"answer_id": 96688,
"author": "Isak Savo",
"... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96525",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28952/"
] |
96,538 | <p>We have multiple MFC apps, which use CMutex( false, "blah" ), where "blah" allows the mutex to work across process boundaries.</p>
<p>One of these apps was re-written without MFC (using Qt instead). How can I simulate the CMutex using Win32 calls? (Qt's QMutex is not inter-process.) I prefer not to modify the MFC... | [
{
"answer_id": 96559,
"author": "RichS",
"author_id": 6247,
"author_profile": "https://Stackoverflow.com/users/6247",
"pm_score": 1,
"selected": false,
"text": "CreateMutex(...)\nWaitForSingleObject(...)\nReleaseMutex(...)\n"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/96538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18214/"
] |
96,541 | <p>This isn't legal:</p>
<pre><code>public class MyBaseClass
{
public MyBaseClass() {}
public MyBaseClass(object arg) {}
}
public void ThisIsANoNo<T>() where T : MyBaseClass
{
T foo = new T("whoops!");
}
</code></pre>
<p>In order to do this, you have to do some reflection on the type object for T or you... | [
{
"answer_id": 96557,
"author": "Darren Kopp",
"author_id": 77,
"author_profile": "https://Stackoverflow.com/users/77",
"pm_score": 0,
"selected": false,
"text": "where T : MyBaseClass, new()\n"
},
{
"answer_id": 96581,
"author": "chrissie1",
"author_id": 2936,
"autho... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
96,553 | <p>Is it particularly bad to have a very, very large SQL query with lots of (potentially redundant) WHERE clauses?</p>
<p>For example, here's a query I've generated from my web application with everything turned off, which should be the largest possible query for this program to generate:</p>
<pre><code>SELECT *
FRO... | [
{
"answer_id": 96598,
"author": "JosephStyons",
"author_id": 672,
"author_profile": "https://Stackoverflow.com/users/672",
"pm_score": 5,
"selected": true,
"text": "select * \nfrom\n 4e_magic_items mi\n ,4e_magic_item_levels mil\n ,4e_monster_sources ms\nwhere mi.id = mil.itemid\n and... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18210/"
] |
96,579 | <p>I'm writing an inner loop that needs to place <code>struct</code>s in contiguous storage. I don't know how many of these <code>struct</code>s there will be ahead of time. My problem is that STL's <code>vector</code> initializes its values to 0, so no matter what I do, I incur the cost of the initialization plus th... | [
{
"answer_id": 96630,
"author": "paercebal",
"author_id": 14089,
"author_profile": "https://Stackoverflow.com/users/14089",
"pm_score": 2,
"selected": false,
"text": "std::vector<T>::reserve(x)\n #include <iostream>\n#include <vector>\n\nstruct MyStruct\n{\n int m_iValue00 ;\n int m_... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6160/"
] |
96,597 | <p>My development server (CentOS 5) is running Subversion 1.4.2, and I wish to upgrade it to 1.5. I have read in various blogs and documents scattered around the web that this may be done by using RPMForge. I have followed the instructions found on <a href="http://wiki.centos.org/AdditionalResources/Repositories/RPMF... | [
{
"answer_id": 96662,
"author": "Peter Stone",
"author_id": 1806,
"author_profile": "https://Stackoverflow.com/users/1806",
"pm_score": 1,
"selected": false,
"text": "repomd http://apt.sw.be redhat/el$(VERSION)/en/$(ARCH)/dag\n yum check-update subversion.i386 1.... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96597",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5570/"
] |
96,615 | <p>So if I'm using branches that are remote (tracked) branches, and I want to get the lastest, I'm still unclear if I should be doing <code>git pull</code> or <code>git rebase</code>. I thought I had read that doing <code>git rebase</code> when working on a branch with other users, it can screw them up when they pull o... | [
{
"answer_id": 96666,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 3,
"selected": false,
"text": "git pull git rebase git rebase"
},
{
"answer_id": 96924,
"author": "webmat",
"author_id": 6349,
"autho... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14873/"
] |
96,624 | <p>I have an assembly which should <strong>not</strong> be used by any application other than the designated executable. Please give me some instructions to do so.</p>
| [
{
"answer_id": 96681,
"author": "Hallgrim",
"author_id": 15454,
"author_profile": "https://Stackoverflow.com/users/15454",
"pm_score": 1,
"selected": false,
"text": "int MySecretPrimeDetectionAlgorithm(int lastPrimeNumber);\n int Asdfasdfasdfasdfasdfasdfasdf(int qwerqwerqwerqwerqwerqwer)... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96624",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18198/"
] |
96,661 | <p>I have a query that I would like to filter in different ways at different times. The way I have done this right now by placing parameters in the criteria field of the relevant query fields, however there are many cases in which I do not want to filter on a given field but only on the other fields. Is there any way... | [
{
"answer_id": 96950,
"author": "Dave DuPlantis",
"author_id": 8174,
"author_profile": "https://Stackoverflow.com/users/8174",
"pm_score": 0,
"selected": false,
"text": "like [paramName] like [paramName] or Is Null"
},
{
"answer_id": 96978,
"author": "Fionnuala",
"author_... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16562/"
] |
96,671 | <p>I have a flash app (SWF) running Flash 8 embedded in an HTML page. How do I get flash to reload the parent HTML page it is embedded in? I've tried using ExternalInterface to call a JavaScript function to reload the page but that doesn't seem to work.
</p>
| [
{
"answer_id": 96717,
"author": "Alex Fort",
"author_id": 12624,
"author_profile": "https://Stackoverflow.com/users/12624",
"pm_score": 2,
"selected": false,
"text": "getURL(\"javascript:location.reload(true)\");"
},
{
"answer_id": 211359,
"author": "Yaba",
"author_id": 7... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
96,732 | <p>I've got a situation where I have a DLL I'm creating that uses another third party DLL, but I would prefer to be able to build the third party DLL into my DLL instead of having to keep them both together if possible.</p>
<p>This with is C# and .NET 3.5.</p>
<p>The way I would like to do this is by storing the thir... | [
{
"answer_id": 97080,
"author": "dgvid",
"author_id": 9897,
"author_profile": "https://Stackoverflow.com/users/9897",
"pm_score": 3,
"selected": false,
"text": " Assembly resAssembly = Assembly.LoadFile(assemblyPathName);\n\n byte[] assemblyData;\n using (Stream stre... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1512/"
] |
96,748 | <p>I'm building a widget, and I've been using iframes to present content within it. At some point, I might start serving third party HTML and JS, so I thought iframes would be a good idea. </p>
<p>It does make the widget javascript a little more complicated, and I'm concerned that this might not be the best implementa... | [
{
"answer_id": 96787,
"author": "Brian MacKay",
"author_id": 16082,
"author_profile": "https://Stackoverflow.com/users/16082",
"pm_score": 3,
"selected": false,
"text": "HttpContext.Current.Response.AddHeader(\"p3p\", \"CP=\\\"\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IN... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9106/"
] |
96,759 | <p>I have CSV data loaded into a multidimensional array. In this way each "row" is a record and each "column" contains the same type of data. I am using the function below to load my CSV file.</p>
<pre><code>function f_parse_csv($file, $longest, $delimiter)
{
$mdarray = array();
$file = fopen($file, "r");
wh... | [
{
"answer_id": 96832,
"author": "troelskn",
"author_id": 18180,
"author_profile": "https://Stackoverflow.com/users/18180",
"pm_score": 5,
"selected": false,
"text": "class TableSorter {\n protected $column;\n function __construct($column) {\n $this->column = $column;\n }\n functio... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1536217/"
] |
96,780 | <p>Visual Studio randomly crashes when adding/removing references and projects.
Any thoughts why? Will installing Sp1 help?</p>
<p>EDIT: I do not work with any addons except SourceSafe. I do most of my development in connected mode.<br></p>
<p>Developing using:<br>
Visual Studio 2008 <br>
WinXp Terminal Servi... | [
{
"answer_id": 314756,
"author": "Charles Anderson",
"author_id": 11677,
"author_profile": "https://Stackoverflow.com/users/11677",
"pm_score": 4,
"selected": false,
"text": "devenv /resetuserdata\n"
},
{
"answer_id": 14887575,
"author": "Catherine Hope",
"author_id": 107... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14484/"
] |
96,826 | <p>Pretty basic question, I'm trying to write a regex in Vim to match any phrase starting with <code>"abc "</code> directly followed by anything other than <code>"defg"</code>. </p>
<p>I've used <code>"[^defg]"</code> to match any single character other than d, e, f or g.</p>
<p>My first instinct was to try <code>/ab... | [
{
"answer_id": 96946,
"author": "Lee H",
"author_id": 18201,
"author_profile": "https://Stackoverflow.com/users/18201",
"pm_score": 1,
"selected": false,
"text": "/\\%(\\%(.\\{-}\\)\\@<=XXXXXX\\zs\\)*\n /abc \\%(\\%(.\\{-}\\)\\@<=defg\\zs\\)*\n"
},
{
"answer_id": 97008,
"auth... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5379/"
] |
96,842 | <p>I have migrated a couple of project from Subversion to git. It work really well but when I clone my repository, it's really long because I have all the history of a lot of .jar file included in the transfer.</p>
<p>Is there a way to keep only the latest version of certain type of file in my main repository. I mainl... | [
{
"answer_id": 96876,
"author": "Martin OConnor",
"author_id": 18233,
"author_profile": "https://Stackoverflow.com/users/18233",
"pm_score": 1,
"selected": false,
"text": "git gc git pack"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/96842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16309/"
] |
96,848 | <p>Is there any way to use a constant as a hash key?</p>
<p>For example:</p>
<pre><code>use constant X => 1;
my %x = (X => 'X');
</code></pre>
<p>The above code will create a hash with "X" as key and not 1 as key. Whereas, I want to use the value of constant X as key.</p>
| [
{
"answer_id": 96869,
"author": "nohat",
"author_id": 3101,
"author_profile": "https://Stackoverflow.com/users/3101",
"pm_score": 7,
"selected": true,
"text": "use constant use constant X => 1;\n\nmy %x = ( &X => 'X');\n use constant X => 1;\n\nmy %x = ( X() => 'X');\n"
},
{
"ans... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4406/"
] |
96,859 | <p>What are some good package naming conventions for domain specific object models. For example, say you have a <strong>Person.java</strong> POJO, would you put it in a <strong>mydomain.model</strong> or <strong>mydomain.entity</strong> or <strong>mydomain.om</strong> (object model) package. The idea is to separate ... | [
{
"answer_id": 3284536,
"author": "Martin",
"author_id": 1106301,
"author_profile": "https://Stackoverflow.com/users/1106301",
"pm_score": 2,
"selected": false,
"text": "com.foobar.accounting.model.*\ncom.foobar.accounting.view.*\n\ncom.foobar.invoicing.model.*\ncom.foobar.invoicing.view... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3803/"
] |
96,871 | <p>I'd like to make status icons for a C# WinForms TreeList control. The statuses are combinations of other statuses (eg. a user node might be inactive or banned or inactive and banned), and the status icon is comprised of non-overlapping, smaller glyphs. </p>
<p>I'd really like to avoid having to hand-generate all ... | [
{
"answer_id": 96907,
"author": "Hallgrim",
"author_id": 15454,
"author_profile": "https://Stackoverflow.com/users/15454",
"pm_score": 2,
"selected": true,
"text": "Bitmap image1 = ...\nBitmap image2 = ...\n\nBitmap combined = new Bitmap(image1.Width, image1.Height);\nusing (Graphics g =... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5062/"
] |
96,882 | <p>I need to create a nice installer for a Mac application. I want it to be a disk image (DMG), with a predefined size, layout and background image.</p>
<p>I need to do this programmatically in a script, to be integrated in an existing build system (more of a pack system really, since it only create installers. The bu... | [
{
"answer_id": 97042,
"author": "Ludvig A. Norin",
"author_id": 16909,
"author_profile": "https://Stackoverflow.com/users/16909",
"pm_score": 5,
"selected": false,
"text": "hdiutil create XXX.dmg -volname \"YYY\" -fs HFS+ -srcfolder \"ZZZ\"\n XXX == disk image file name (duh!)\nYYY == wi... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16909/"
] |
96,922 | <p>The standard answer is that it's useful when you only need to write a few lines of code ...</p>
<p>I have both languages integrated inside of Eclipse. Because Eclipse handles the compiling, interpreting, running etc. both "run" exactly the same.</p>
<p>The Eclipse IDE for both is similar - instant "compilation", i... | [
{
"answer_id": 97540,
"author": "e-satis",
"author_id": 9951,
"author_profile": "https://Stackoverflow.com/users/9951",
"pm_score": 5,
"selected": false,
"text": "import java.net.*;\nimport java.io.*;\n\npublic class JGet {\n public static void main (String[] args) throws IOException ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9922/"
] |
96,945 | <p>I am using Oracle 9 and JDBC and would like to encyrpt a clob as it is inserted into the DB. Ideally I'd like to be able to just insert the plaintext and have it encrypted by a stored procedure:</p>
<pre><code>String SQL = "INSERT INTO table (ID, VALUE) values (?, encrypt(?))";
PreparedStatement ps = connection.pr... | [
{
"answer_id": 97469,
"author": "borjab",
"author_id": 16206,
"author_profile": "https://Stackoverflow.com/users/16206",
"pm_score": 2,
"selected": false,
"text": "DECLARE\n input_string VARCHAR2(16) := 'tigertigertigert';\n raw_input RAW(128) := UTL_RAW.CAST_TO_RAW(... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7867/"
] |
96,952 | <p>What mysql functions are there (if any) to trim leading zeros from an alphanumeric text field? </p>
<p>Field with value "00345ABC" would need to return "345ABC".</p>
| [
{
"answer_id": 96971,
"author": "Chris Bartow",
"author_id": 497,
"author_profile": "https://Stackoverflow.com/users/497",
"pm_score": 8,
"selected": true,
"text": "SELECT TRIM(LEADING '0' FROM myfield) FROM table\n"
},
{
"answer_id": 96992,
"author": "JustinD",
"author_i... | 2008/09/18 | [
"https://Stackoverflow.com/questions/96952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5446/"
] |
97,013 | <p>Does anyone know is there a way to open a project in Eclipse in read-only mode? If there is a lot of similar projects open it is easy to make changes to a wrong one.</p>
| [
{
"answer_id": 2304667,
"author": "s3m3n",
"author_id": 277937,
"author_profile": "https://Stackoverflow.com/users/277937",
"pm_score": 3,
"selected": false,
"text": "sudo chmod 444 -R /path/to/your/project\n"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/97013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20128/"
] |
97,050 | <p>Assuming a map where you want to preserve existing entries. 20% of the time, the entry you are inserting is new data. Is there an advantage to doing std::map::find then std::map::insert using that returned iterator? Or is it quicker to attempt the insert and then act based on whether or not the iterator indicates ... | [
{
"answer_id": 101129,
"author": "Richard Corden",
"author_id": 11698,
"author_profile": "https://Stackoverflow.com/users/11698",
"pm_score": 4,
"selected": false,
"text": "typedef std::map <int, int> MapOfInts;\ntypedef std::pair <MapOfInts::iterator, bool> IResult;\n\nvoid foo (MapOfIn... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16496/"
] |
97,063 | <p>Business Objects Web Services returns error codes and I have yet to find a good resource where these are listed and what they mean. I am currently getting an "The resultset was empty. (Error: WBP 42019)". Any ideas on where these might be listed? I've called Business Objects support and the tech couldn't even tel... | [
{
"answer_id": 66471990,
"author": "IncreMan",
"author_id": 2681411,
"author_profile": "https://Stackoverflow.com/users/2681411",
"pm_score": 0,
"selected": false,
"text": "#ifndef __SBOERR_H_\n#define __SBOERR_H_\n\ntypedef long SBOErr;\n\n#define dbdError -1\n#define... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17891/"
] |
97,081 | <p>Someone told me about a C++ style difference in their team. I have my own viewpoint on the subject, but I would be interested by <em>pros</em> and <em>cons</em> coming from everyone.</p>
<p>So, in case you have a class property you want to expose via two getters, one read/write, and the other, readonly (i.e. there ... | [
{
"answer_id": 97170,
"author": "jdmichal",
"author_id": 12275,
"author_profile": "https://Stackoverflow.com/users/12275",
"pm_score": 0,
"selected": false,
"text": "const"
},
{
"answer_id": 103534,
"author": "paercebal",
"author_id": 14089,
"author_profile": "https:/... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14089/"
] |
97,092 | <p>What I am trying to achieve is a form that has a button on it that causes the Form to 'drop-down' and become larger, displaying more information. My current attempt is this:</p>
<pre><code>private void btnExpand_Click(object sender, EventArgs e)
{
if (btnExpand.Text == ">")
{
btnExpand.Text = "&l... | [
{
"answer_id": 97870,
"author": "Tim Jarvis",
"author_id": 10387,
"author_profile": "https://Stackoverflow.com/users/10387",
"pm_score": 0,
"selected": false,
"text": "MinimumSize MaximumSize"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/97092",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15537/"
] |
97,097 | <p>What is the C# version of VB.net's InputBox?</p>
| [
{
"answer_id": 97156,
"author": "Ozgur Ozcitak",
"author_id": 976,
"author_profile": "https://Stackoverflow.com/users/976",
"pm_score": 9,
"selected": true,
"text": "Microsoft.VisualBasic InputBox Microsoft.VisualBasic.Interaction using Microsoft.VisualBasic;\nstring input = Interaction.... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1632/"
] |
97,113 | <p>I have the following string:</p>
<pre><code>cn=abcd,cn=groups,dc=domain,dc=com
</code></pre>
<p>Can a regular expression be used here to extract the string after the first <code>cn=</code> and before the first <code>,</code>? In the example above the answer should be <code>abcd</code>. </p>
| [
{
"answer_id": 97125,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 0,
"selected": false,
"text": "cn=([^,]*),"
},
{
"answer_id": 97129,
"author": "shelfoo",
"author_id": 3444,
"author_profile": "https://... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17273/"
] |
97,114 | <p>In a recent question on stubbing, many answers suggested C# interfaces or delegates for implementing stubs, but <a href="https://stackoverflow.com/questions/43711/whats-a-good-way-to-overwrite-datetimenow-during-testing#43718">one answer</a> suggested using conditional compilation, retaining static binding in the pr... | [
{
"answer_id": 97248,
"author": "Amy B",
"author_id": 8155,
"author_profile": "https://Stackoverflow.com/users/8155",
"pm_score": 1,
"selected": false,
"text": "if (globals.isTest)\n"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/97114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14153/"
] |
97,137 | <p>I know I once know how to do this but... how do you run a script (bash is OK) on login in unix?</p>
| [
{
"answer_id": 97146,
"author": "William Keller",
"author_id": 17095,
"author_profile": "https://Stackoverflow.com/users/17095",
"pm_score": 1,
"selected": false,
"text": "~/.bash_profile"
},
{
"answer_id": 97154,
"author": "gbjbaanb",
"author_id": 13744,
"author_prof... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97137",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11760/"
] |
97,142 | <p>I am trying to do 'rake db:migrate' and getting the error message 'no such file to load -- openssl'. Both 'openssl' and 'openssl-devel' packages are installed. Others on Debian or Ubuntu seem to be able to get rid of this by installing 'libopenssl-ruby', which is not available for RedHat. Has anybody run into this a... | [
{
"answer_id": 97214,
"author": "Otto",
"author_id": 9594,
"author_profile": "https://Stackoverflow.com/users/9594",
"pm_score": 0,
"selected": false,
"text": "--trace"
},
{
"answer_id": 97222,
"author": "gbjbaanb",
"author_id": 13744,
"author_profile": "https://Stack... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
97,173 | <p>I'm using freemarker, SiteMesh and Spring framework.
For the pages I use ${requestContext.getMessage()} to get the message from message.properties. But for the decorators this doesn't work. How should I do to get the internationalization working for sitemesh?</p>
| [
{
"answer_id": 105142,
"author": "mathd",
"author_id": 16309,
"author_profile": "https://Stackoverflow.com/users/16309",
"pm_score": 2,
"selected": false,
"text": "<%@ taglib prefix=\"decorator\" uri=\"http://www.opensymphony.com/sitemesh/decorator\"%>\n<%@ taglib prefix=\"page\" uri=\"h... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8041/"
] |
97,188 | <p>I'd like to view historical data for guest cpu/memory/IO usage, rather than just current usage.</p>
| [
{
"answer_id": 1526671,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "perl xenstat.pl -- generate cpu stats every 5 secs\nperl xenstat.pl 10 -- generate cpu stats every 10 secs\npe... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9594/"
] |
97,193 | <p>Is there a way via System.Reflection, System.Diagnostics or other to get a reference to the actual instance that is calling a static method without passing it in to the method itself?</p>
<p>For example, something along these lines</p>
<pre><code>class A
{
public void DoSomething()
{
StaticClass.Ex... | [
{
"answer_id": 97315,
"author": "Steve Cooper",
"author_id": 6722,
"author_profile": "https://Stackoverflow.com/users/6722",
"pm_score": 3,
"selected": false,
"text": "public static StaticExecute(this object instance)\n{\n // Reference to 'instance'\n}\n this.StaticExecute();\n static... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97193",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4299/"
] |
97,197 | <p>The "N+1 selects problem" is generally stated as a problem in Object-Relational mapping (ORM) discussions, and I understand that it has something to do with having to make a lot of database queries for something that seems simple in the object world.</p>
<p>Does anybody have a more detailed explanation of the probl... | [
{
"answer_id": 97223,
"author": "davetron5000",
"author_id": 3029,
"author_profile": "https://Stackoverflow.com/users/3029",
"pm_score": 5,
"selected": false,
"text": "select * from employees where company_id = XX"
},
{
"answer_id": 97253,
"author": "Matt Solnit",
"author... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97197",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6120/"
] |
97,206 | <p>I am using the <strong>AjaxControlToolkit</strong> in VS2005, and it works fine. I do have some issues though, when I go to some pages I have, then click back, I get this JavaScript error:</p>
<blockquote>
<p>'AjaxControlToolkit' is undefined</p>
</blockquote>
<p>I have searched MSDN forums, and google, and trie... | [
{
"answer_id": 97327,
"author": "CodeRot",
"author_id": 14134,
"author_profile": "https://Stackoverflow.com/users/14134",
"pm_score": 1,
"selected": false,
"text": "<system.web.extensions>\n <scripting>\n <scriptResourceHandler enableCompression=\"false\" enableCaching=\"false\... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97206",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12268/"
] |
97,220 | <p>When dealing with mobile clients it is very common to have multisecond delays during the transmission of HTTP requests. If you are serving pages or services out of a prefork Apache the child processes will be tied up for seconds serving a single mobile client, even if your app server logic is done in 5ms. I am looki... | [
{
"answer_id": 98062,
"author": "Jason Cohen",
"author_id": 4926,
"author_profile": "https://Stackoverflow.com/users/4926",
"pm_score": 2,
"selected": false,
"text": "Rules | Custom Rules... sleep()"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/97220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7027/"
] |
97,228 | <p>Ok, here's the breakdown of my project: I have a web project with a "Scripts" subfolder. That folder contains a few javascript files and a copy of JSMin.exe along with a batch file that runs the JSMin.exe on a few of the files. I tried to set up a post build step of 'call "$(ProjectDir)Scripts\jsmin.bat"'. When ... | [
{
"answer_id": 97284,
"author": "Hallgrim",
"author_id": 15454,
"author_profile": "https://Stackoverflow.com/users/15454",
"pm_score": 3,
"selected": true,
"text": "exit 0\n"
},
{
"answer_id": 167155,
"author": "Jonathan Webb",
"author_id": 1518,
"author_profile": "ht... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97228",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16149/"
] |
97,276 | <p>If I've got a time_t value from <code>gettimeofday()</code> or compatible in a Unix environment (e.g., Linux, BSD), is there a compact algorithm available that would be able to tell me the corresponding week number within the month?</p>
<p>Ideally the return value would work in similar to the way <code>%W</code> be... | [
{
"answer_id": 97377,
"author": "Branan",
"author_id": 13894,
"author_profile": "https://Stackoverflow.com/users/13894",
"pm_score": 1,
"selected": false,
"text": "int getWeekOfMonth()\n{\n time_t my_time;\n struct tm *ts;\n\n my_time = time(NULL);\n ts = localtime(&my_time);\n\n re... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
97,279 | <p>Does anyone know a keyboard shortcut to close all tabs except for the current one in Visual Studio? And while we're at it, the shortcut for closing all tabs? Is there a Resharper option for this? I've looked in the past and have never been able to find it. </p>
| [
{
"answer_id": 97358,
"author": "Micky McQuade",
"author_id": 12908,
"author_profile": "https://Stackoverflow.com/users/12908",
"pm_score": 2,
"selected": false,
"text": "File.CloseAllButThis"
},
{
"answer_id": 197213,
"author": "Drew Noakes",
"author_id": 24874,
"aut... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9344/"
] |
97,283 | <p>For example if the user is currently running VS2008 then I want the value VS2008.</p>
| [
{
"answer_id": 97517,
"author": "Ozgur Ozcitak",
"author_id": 976,
"author_profile": "https://Stackoverflow.com/users/976",
"pm_score": 5,
"selected": true,
"text": "// The GetForegroundWindow function returns a handle to the foreground window\n// (the window with which the user is curr... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97283",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44972/"
] |
97,312 | <p>How do I find out what directory my console app is running in with C#?</p>
| [
{
"answer_id": 97331,
"author": "Hallgrim",
"author_id": 15454,
"author_profile": "https://Stackoverflow.com/users/15454",
"pm_score": 8,
"selected": true,
"text": "AppDomain.CurrentDomain.BaseDirectory\n Environment.CurrentDirectory\n"
},
{
"answer_id": 97343,
"author": "Tra... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1786/"
] |
97,329 | <p>Suppose I have a collection (be it an array, generic List, or whatever is the <strong>fastest</strong> solution to this problem) of a certain class, let's call it <code>ClassFoo</code>:</p>
<pre><code>class ClassFoo
{
public string word;
public float score;
//... etc ...
}
</code></pre>
<p>Assume ther... | [
{
"answer_id": 97449,
"author": "Hallgrim",
"author_id": 15454,
"author_profile": "https://Stackoverflow.com/users/15454",
"pm_score": 0,
"selected": false,
"text": "Dictionary<char, List<ClassFoo>> indexByFirstLetter;\nforeach (var cf in collection) {\n indexByFirstLetter[cf.bar[0]] = ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97329",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6264/"
] |
97,338 | <p>I'm using GCC to generate a dependency file, but my build rules put the output into a subdirectory. Is there a way to tell GCC to put my subdirectory prefix in the dependency file it generates for me?</p>
<pre><code>gcc $(INCLUDES) -E -MM $(CFLAGS) $(SRC) >>$(DEP)
</code></pre>
| [
{
"answer_id": 97374,
"author": "DGentry",
"author_id": 4761,
"author_profile": "https://Stackoverflow.com/users/4761",
"pm_score": 0,
"selected": false,
"text": "<blah>.o ${OBJDIR}/<blah>.o"
},
{
"answer_id": 97710,
"author": "Community",
"author_id": -1,
"author_pro... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13676/"
] |
97,349 | <p>We want to store our overridden build targets in an external file and include that targets file in the TFSBuild.proj. We have a core set steps that happens and would like to get those additional steps by simply adding the import line to the TFSBuild.proj created by the wizard. </p>
<pre><code><Import Project="$(... | [
{
"answer_id": 97486,
"author": "Gregg",
"author_id": 18266,
"author_profile": "https://Stackoverflow.com/users/18266",
"pm_score": 1,
"selected": false,
"text": "<Import Project=\"$(MSBuildProjectDirectory)\\my.team.build.targets.proj\" />\n <Import Project=\"$(SolutionRoot)/libs/my.tea... | 2008/09/18 | [
"https://Stackoverflow.com/questions/97349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18264/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.