qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
363,596 | <p>What is the best way to unit test a method that calls into multiple methods, for example:</p>
<pre><code>modify(string value)
{
if(value.Length > 5) replaceit(value);
else changeit(value);
}
</code></pre>
<p>This pseudo code has a modify method that (currently) calls either <code>replaceit()</code> or... | [
{
"answer_id": 363615,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 4,
"selected": false,
"text": "replaceit()"
},
{
"answer_id": 363649,
"author": "Ian Boyd",
"author_id": 12597,
"author_profile... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3291/"
] |
363,655 | <p>I'm using C# on Framework 3.5. I'm looking to quickly group a Generic List<> by two properties. For the sake of this example lets say I have a List of an Order type with properties of CustomerId, ProductId, and ProductCount. How would I get the sum of ProductCounts grouped by CustomerId and ProductId using a lamb... | [
{
"answer_id": 363756,
"author": "Jimmy",
"author_id": 4435,
"author_profile": "https://Stackoverflow.com/users/4435",
"pm_score": 7,
"selected": true,
"text": "var sums = Orders.GroupBy(x => new { x.CustomerID, x.ProductID })\n .Select(group => group.Sum(x => x.ProductCo... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7215/"
] |
363,660 | <p>I have a collection of orders. I would like to hit the database once, retrieve the orders, store them and then be able to access this collection over multiple forms. I know in asp.net, you can use things like Application Object or Session Object but how do you do it in a win form app? I was thinking of creating a st... | [
{
"answer_id": 363733,
"author": "Vyas Bharghava",
"author_id": 28413,
"author_profile": "https://Stackoverflow.com/users/28413",
"pm_score": 2,
"selected": true,
"text": "\nCacheList.OrderCache[orderNo].Customer.Address.City = \"Las Vegas\";"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/363660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45429/"
] |
363,680 | <p>We mostly tend to following the above best practice.</p>
<p>Have a look at <a href="https://stackoverflow.com/questions/73883/string-vs-stringbuilder">String vs StringBuilder</a></p>
<p>But StringBuilder could throw <strong>OutOfMemoryException even when there is sufficient memory available</strong>. It throws OO... | [
{
"answer_id": 363877,
"author": "Brian Rasmussen",
"author_id": 38206,
"author_profile": "https://Stackoverflow.com/users/38206",
"pm_score": 2,
"selected": false,
"text": "StringBuilder"
},
{
"answer_id": 8609950,
"author": "archangel76",
"author_id": 1106463,
"auth... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34644/"
] |
363,681 | <p>How do I generate a random <code>int</code> value in a specific range?</p>
<p>The following methods have bugs related to integer overflow:</p>
<pre class="lang-java prettyprint-override"><code>randomNum = minimum + (int)(Math.random() * maximum);
// Bug: `randomNum` can be bigger than `maximum`.
</code></pre>
<pre c... | [
{
"answer_id": 363691,
"author": "krosenvold",
"author_id": 23691,
"author_profile": "https://Stackoverflow.com/users/23691",
"pm_score": 8,
"selected": false,
"text": "minValue + rn.nextInt(maxValue - minValue + 1)\n"
},
{
"answer_id": 363692,
"author": "Greg Case",
"aut... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42155/"
] |
363,706 | <p>This error should be a simple one but I cant seem to make it work. The problem lies in the fact that this very same code works earlier in the program. I don's see any reason for it to be sending an error on this instance and not the four previous ones. Reference the code below, and feel free to provide any criticism... | [
{
"answer_id": 363714,
"author": "Jimmy",
"author_id": 4435,
"author_profile": "https://Stackoverflow.com/users/4435",
"pm_score": 6,
"selected": true,
"text": ".8m instead of .8\n"
},
{
"answer_id": 363719,
"author": "Harper Shelby",
"author_id": 21196,
"author_profi... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45151/"
] |
363,718 | <p>My designer handed me a design I'm not 100% sure how to do with jquery and css.
I am basicly trying to allow a user to "slide" the footer up to reveal more conent.</p>
<p>My html..</p>
<pre><code> <div id="footer">
<div id="expandingFooter"> hidden content</div>
content that is alway... | [
{
"answer_id": 363759,
"author": "cLFlaVA",
"author_id": 45109,
"author_profile": "https://Stackoverflow.com/users/45109",
"pm_score": 1,
"selected": false,
"text": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4568/"
] |
363,720 | <p>I have a slow custom data source in a SSIS Dataa Flow Task.I have to run the package with multiple parameters</p>
<p>If I want to upload data to a DB using SQL Data Destination(Bulk Insert) the connection times out</p>
<p>If I write the data to a flat file I cannot run multiple instances of the package, since they... | [
{
"answer_id": 363759,
"author": "cLFlaVA",
"author_id": 45109,
"author_profile": "https://Stackoverflow.com/users/45109",
"pm_score": 1,
"selected": false,
"text": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30546/"
] |
363,725 | <p>I have the following property in a custom control:</p>
<pre><code>List<myClass> _items;
public List<myClass> Items{
get { return _items; }
set { _items= value; }
}
</code></pre>
<p>In my codebehind, I add items to the collection as in...</p>
<pre><code>myCustomControl.items.Add(new myClass());... | [
{
"answer_id": 382388,
"author": "Corey Downie",
"author_id": 44861,
"author_profile": "https://Stackoverflow.com/users/44861",
"pm_score": 1,
"selected": false,
"text": "public List<myClass> Items{\n get { return this.ViewState[\"itemsKey\"] }\n set { this.ViewState[\"itemsKey\"]=... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/337/"
] |
363,729 | <p>Is there a way to say something like:</p>
<p>sizeof(type)? Or type.Size? </p>
<p>Right now I am looking at using code like:</p>
<pre><code>if (type.Equals(typeof(int)))
return sizeof(int);
else if (type.Equals(typeof(long)))
return sizeof(long);
</code></pre>
<p>etc, etc, for every single data type. </p>... | [
{
"answer_id": 2652040,
"author": "Stupid Girl",
"author_id": 318374,
"author_profile": "https://Stackoverflow.com/users/318374",
"pm_score": -1,
"selected": false,
"text": "Convert.ToString(type.MaxValue, 2).Length / 8"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/363729",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
363,730 | <pre><code> public sealed class UserLoginSingleton
{
UserLoginCollection _userLoginCol = new UserLoginCollection();
UserLoginSingleton()
{
}
public static UserLoginSingleton Instance
{
get
{
IDictionary items = HttpContext.Current.Items;
if (!items.Con... | [
{
"answer_id": 363763,
"author": "Mike Powell",
"author_id": 205,
"author_profile": "https://Stackoverflow.com/users/205",
"pm_score": 2,
"selected": false,
"text": "HttpContext.Items"
},
{
"answer_id": 364031,
"author": "Chris Marisic",
"author_id": 37055,
"author_pr... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38230/"
] |
363,740 | <p>I want to try PartCover for code coverage. I'm running Visual Studio 2008 Professional with MSTest. The Professional Edition does not include the Team Testing tools, like Code Coverage.</p>
<p>So, I'm trying PartCover, but I can't get it to work. In the PartCover.Browser I've selected the MSTest executable, I've po... | [
{
"answer_id": 363771,
"author": "Hamish Smith",
"author_id": 15572,
"author_profile": "https://Stackoverflow.com/users/15572",
"pm_score": 5,
"selected": true,
"text": "+[MyNamespace.MyAssemblyName]*"
},
{
"answer_id": 1902164,
"author": "pelazem",
"author_id": 140761,
... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1204/"
] |
363,760 | <p>I have been investigating for some time now a way to prevent my user from accidently entering a data directory of my application.</p>
<p>My application uses a folder to store a structured project. The folder internal structure is critic and should not be messed up. I would like my user to see this folder as a whole... | [
{
"answer_id": 370046,
"author": "LarryF",
"author_id": 18518,
"author_profile": "https://Stackoverflow.com/users/18518",
"pm_score": 0,
"selected": false,
"text": "DefineDOSDevice()"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/363760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/268/"
] |
363,768 | <p>I'm using <a href="http://en.wikipedia.org/wiki/Eclipse_%28software%29#Releases" rel="noreferrer">Eclipse Ganymede</a>. Everything works fine, but I have an anal-retentive yearning for a warning-free Problems tab. Right now it (correctly) complains about my <a href="http://en.wikipedia.org/wiki/Apache_Ant" rel="no... | [
{
"answer_id": 483260,
"author": "David Pierre",
"author_id": 18296,
"author_profile": "https://Stackoverflow.com/users/18296",
"pm_score": 8,
"selected": true,
"text": "<!DOCTYPE project>\n"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/363768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/409/"
] |
363,770 | <p>Let's say I have the following component called <strong><em>Base</em></strong>:</p>
<pre><code><cfcomponent output="false">
<cffunction name="init" access="public" returntype="Any" output="false">
<cfset variables.metadata = getmetadata(this)>
<cfreturn this>
</cf... | [
{
"answer_id": 483260,
"author": "David Pierre",
"author_id": 18296,
"author_profile": "https://Stackoverflow.com/users/18296",
"pm_score": 8,
"selected": true,
"text": "<!DOCTYPE project>\n"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/363770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31278/"
] |
363,776 | <p>Is there any way that I can reference a var or const as the default value for a function argument in actionscript 3.</p>
<p>I can define default values like null, string, int.</p>
<pre>function a( b = null ) {
blah...
}</pre>
<p>But what I want to do is <pre>function a( b = function(){} ) {
blah...
}</pre>... | [
{
"answer_id": 365120,
"author": "grapefrukt",
"author_id": 914,
"author_profile": "https://Stackoverflow.com/users/914",
"pm_score": 4,
"selected": true,
"text": "public function myFunction(functionArgument:Function = null):void {\n if (functionArgument != null) {\n functionAr... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40397/"
] |
363,784 | <p>I want my JTextPane to insert spaces whenever I press Tab. Currently it inserts the tab character (ASCII 9). </p>
<p>Is there anyway to customize the tab policy of JTextPane (other than catching "tab-key" events and inserting the spaces myself seems an)?</p>
| [
{
"answer_id": 363967,
"author": "Kai Mechel",
"author_id": 39893,
"author_profile": "https://Stackoverflow.com/users/39893",
"pm_score": 4,
"selected": true,
"text": "import java.awt.Dimension;\n\nimport javax.swing.JFrame;\nimport javax.swing.JTextPane;\nimport javax.swing.text.Attribu... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27198/"
] |
363,819 | <p>I have been trying to extract last six numbers of an URL in each line of the original text and add it to another code that must be added to the result text. There also need to remove some code of each line from the original text and replace it with new code in the result text.</p>
<p>input
<a href="http://riyajr.go... | [
{
"answer_id": 363883,
"author": "Byron Whitlock",
"author_id": 42304,
"author_profile": "https://Stackoverflow.com/users/42304",
"pm_score": 0,
"selected": false,
"text": "$infile = \"in.txt\";\n$outfile = \"out.txt\";\n\nforeach (file($url) as $line)\n{\n\n //extract last 6 chars\n ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363819",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45614/"
] |
363,833 | <p>I have implemented a session timeout warning using javascript that simply asks the user if they want to extend their session or logout. The problem is that this is for an intranet portal where power users will often have several browser windows or tabs open at the same time to the application. Currently, they will... | [
{
"answer_id": 58095998,
"author": "ajay hariyal",
"author_id": 5746644,
"author_profile": "https://Stackoverflow.com/users/5746644",
"pm_score": 0,
"selected": false,
"text": "npm install --save @ng-idle/core @ng-idle/keepalive angular2-moment\n"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/363833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45814/"
] |
363,838 | <p>I have a user defined function in SQL called getBuisnessDays it takes @startdate and @enddate and returns the number of business days between the two dates. How can I call that function within my select?</p>
<p>Here's what I'd like to do.. </p>
<pre><code>SELECT getBusinessDays(a.opendate,a.closedate)
FROM accoun... | [
{
"answer_id": 363857,
"author": "user17670",
"author_id": 17670,
"author_profile": "https://Stackoverflow.com/users/17670",
"pm_score": 8,
"selected": true,
"text": "SELECT dbo.GetBusinessDays(a.opendate,a.closedate) as BusinessDays\nFROM account a\nWHERE...\n"
},
{
"answer_id":... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13954/"
] |
363,845 | <p>I have an element that is similar to a tag (because it has word-wrap: pre;) to display code on a website. The only problem is that the tab size is too large and causes the element to horizontally scroll often because it is of fixed width.</p>
<p>Is it possible to change the tab size?</p>
| [
{
"answer_id": 363888,
"author": "cLFlaVA",
"author_id": 45109,
"author_profile": "https://Stackoverflow.com/users/45109",
"pm_score": 0,
"selected": false,
"text": "text-indent"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/363845",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29595/"
] |
363,848 | <p>Due to the packaged nature of the release, a SQL Server script (well more of a statement) needs to be created that can execute correctly on SQL Server 7.0 thru 2008 which can essentially achieve this:</p>
<pre><code>if exists(select * from sys.databases where name = 'Blah')
</code></pre>
<p>Reasons this is difficu... | [
{
"answer_id": 364049,
"author": "George Mastros",
"author_id": 1408129,
"author_profile": "https://Stackoverflow.com/users/1408129",
"pm_score": 0,
"selected": false,
"text": "sp_helpDB\n"
},
{
"answer_id": 364124,
"author": "aristippus303",
"author_id": 45822,
"auth... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
363,864 | <p>This code throws up the compile error given in the title, can anyone tell me what to change?</p>
<pre><code>#include <iostream>
using namespace std;
int main(){
int myArray[10][10][10];
for (int i = 0; i <= 9; ++i){
for (int t = 0; t <=9; ++t){
for (int x = 0;... | [
{
"answer_id": 363873,
"author": "coppro",
"author_id": 16855,
"author_profile": "https://Stackoverflow.com/users/16855",
"pm_score": 5,
"selected": true,
"text": "myArray[10][10][10]"
},
{
"answer_id": 363874,
"author": "DShook",
"author_id": 370,
"author_profile": "... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363864",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33061/"
] |
363,884 | <p>I've seen the <code>@</code> symbol used in PowerShell to initialise arrays.</p>
<p>What exactly does the <code>@</code> symbol denote and where can I read more about it?</p>
| [
{
"answer_id": 363894,
"author": "Cadoo",
"author_id": 42583,
"author_profile": "https://Stackoverflow.com/users/42583",
"pm_score": 4,
"selected": false,
"text": "$strComputers = @(\"Server1\", \"Server2\", \"Server3\")<enter>\n"
},
{
"answer_id": 363927,
"author": "Don Jone... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45817/"
] |
363,889 | <p>I've written a screen saver that displays a web page. It works exactly as I want it to on my main display, but in the preview and secondary displays, the web view is hanging off the top of the screen.</p>
<p>Example (from preview):</p>
<a href="http://skitch.com/dlsspy/6mds/screen-saver-bug" rel="nofollow norefer... | [
{
"answer_id": 363894,
"author": "Cadoo",
"author_id": 42583,
"author_profile": "https://Stackoverflow.com/users/42583",
"pm_score": 4,
"selected": false,
"text": "$strComputers = @(\"Server1\", \"Server2\", \"Server3\")<enter>\n"
},
{
"answer_id": 363927,
"author": "Don Jone... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39975/"
] |
363,892 | <p>I am using My.Settings in visual studio 2008 to store information, for when the user runs the program again.</p>
<p>I have that working fine... but as I am using 12 textboxes I don't want to write...</p>
<p>my.settings.grade1 = textbox1.text</p>
<p>for each one, and I am also making calculations using the stored ... | [
{
"answer_id": 363915,
"author": "Jayden",
"author_id": 44873,
"author_profile": "https://Stackoverflow.com/users/44873",
"pm_score": 1,
"selected": false,
"text": "For Each c as Control in Me.Controls\n\n If c.Tag.ToString() = \"Grade\" Then\n ' Add Items to collection here '\n End If\... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363892",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
363,899 | <p>I've several web user controls on my asp.net page and I wanna pass values between them. For example :</p>
<p>There is a dropDownList in one of them and when user selects any item from dropDownList, it can pass the selected value to the other user control which includes GridView to show related data of selected item... | [
{
"answer_id": 363912,
"author": "Victor",
"author_id": 42518,
"author_profile": "https://Stackoverflow.com/users/42518",
"pm_score": 3,
"selected": true,
"text": "public string needData { \nget { return MyData; }\nset { \n MyData = value;\n //do whatever you need to do with that data ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44852/"
] |
363,908 | <p>Here's an example:</p>
<pre><code>>git status
# On branch master
nothing to commit (working directory clean)
>git checkout -b test-branch
>vi test.c
>git add test.c
>git commit -m "modified test.c"
>vi README
>git add README
>git commit -m "modified README"
</code></pre>
<p>Now I want to do... | [
{
"answer_id": 364065,
"author": "ididak",
"author_id": 28888,
"author_profile": "https://Stackoverflow.com/users/28888",
"pm_score": 7,
"selected": true,
"text": "git rebase -i master"
},
{
"answer_id": 364646,
"author": "Otto",
"author_id": 9594,
"author_profile": "... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363908",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45824/"
] |
363,930 | <p>Anyone done this and can share? I see an option or two but want to know what others have accomplished.</p>
| [
{
"answer_id": 13262628,
"author": "Carlos D. Garza",
"author_id": 1094641,
"author_profile": "https://Stackoverflow.com/users/1094641",
"pm_score": 1,
"selected": false,
"text": "public static Calendar parseCalendar(DateTime dt){\n return dt.toGregorianCalendar();\n}\n"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/363930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
363,944 | <p>I'm calling a bunch of methods that return a list. The list may be empty. If the list is non-empty, I want to return the first item; otherwise, I want to return <code>None</code>. This code works:</p>
<pre class="lang-py prettyprint-override"><code>def main():
my_list = get_list()
if len(my_list) > 0:
... | [
{
"answer_id": 363955,
"author": "recursive",
"author_id": 44743,
"author_profile": "https://Stackoverflow.com/users/44743",
"pm_score": 7,
"selected": false,
"text": "(get_list() or [None])[0]\n"
},
{
"answer_id": 363995,
"author": "efotinis",
"author_id": 12320,
"au... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19403/"
] |
363,969 | <p>I have the following code</p>
<pre><code>Try
'Some code that causes exception
Catch ex as ExceptionType1
'Handle Section - 1
Catch ex as ExceptionType2
'Handle section - 2
Catch ex as ExceptionType3
'Handle section - 3
Finally
' Clean up
End Try
</code></pre>
<p>Suppose ExceptionType1 is th... | [
{
"answer_id": 363986,
"author": "acrosman",
"author_id": 24215,
"author_profile": "https://Stackoverflow.com/users/24215",
"pm_score": 2,
"selected": false,
"text": "Try\n'Some code that causes exception'\nCatch ex as ExceptionType1\n handler_1()\n handler_2()\n handler_3()\nCatch ex... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38997/"
] |
363,998 | <p>I have this:</p>
<pre><code>template <typename T>
class myList
{
...
class myIterator
{
...
T& operator*();
}
}
...
template<typename T>
T& myList<T>::myIterator::operator*()
{
...
}
</code></pre>
<p>That is giving me the following error: "expected init... | [
{
"answer_id": 364013,
"author": "David Norman",
"author_id": 34502,
"author_profile": "https://Stackoverflow.com/users/34502",
"pm_score": 2,
"selected": false,
"text": "template <typename T>\nclass myList\n{\npublic:\n class myIterator\n {\n public:\n T& operator*();\n ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
364,001 | <p>My goal is to make a Button that has two Content values. </p>
<p>Imagine a Scrabble tile as a button: it has the large letter in the center and a small number in the lower right. This is the effect I am going for.</p>
<p>I made a button that has two ContentPresenter objects in it, and I have given each of the Co... | [
{
"answer_id": 1034123,
"author": "Tomáš Kafka",
"author_id": 38729,
"author_profile": "https://Stackoverflow.com/users/38729",
"pm_score": 0,
"selected": false,
"text": "<Window x:Class=\"TkMVVMContainersSample.Services.TaskEditDialog.ItemEditView\"\n xmlns=\"http://schemas.microsoft... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364001",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42620/"
] |
364,007 | <p>I'm learning WPF, and seem to have found something a little odd, which I can't find the reason to anywhere I've searched.</p>
<p>I have a window with one checkbox on it called "chkTest". I have it set to be true by default.</p>
<p>The following code is what I don't understand. Basically I'm trying to set the "ch... | [
{
"answer_id": 1034123,
"author": "Tomáš Kafka",
"author_id": 38729,
"author_profile": "https://Stackoverflow.com/users/38729",
"pm_score": 0,
"selected": false,
"text": "<Window x:Class=\"TkMVVMContainersSample.Services.TaskEditDialog.ItemEditView\"\n xmlns=\"http://schemas.microsoft... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
364,009 | <pre><code>Regex.IsMatch( "foo", "[\U00010000-\U0010FFFF]" )
</code></pre>
<p>Throws: System.ArgumentException: parsing "[-]" - [x-y] range in reverse order.</p>
<p>Looking at the hex values for \U00010000 and \U0010FFF I get: 0xd800 0xdc00 for the first character and 0xdbff 0xdfff for the second.</p>
<p>So I gues... | [
{
"answer_id": 14326180,
"author": "Andriy K",
"author_id": 307584,
"author_profile": "https://Stackoverflow.com/users/307584",
"pm_score": 3,
"selected": false,
"text": "\"[\\U010000-\\U10FFFF]\""
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/364009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1455/"
] |
364,014 | <p>I wonder if there is a way to use ungreedy matching in JavaScript? I tried the U modifer, but it doesn't seem to work.</p>
<p>I want to write a small BBCode parser in JavaScript, but without ungreedy matching it isn't possible (at least as far as I see it) to do something like this:</p>
<pre><code>'[b]one[/b] two ... | [
{
"answer_id": 364029,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 7,
"selected": true,
"text": "?"
},
{
"answer_id": 364051,
"author": "cLFlaVA",
"author_id": 45109,
"author_profile": "https://Stackover... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364014",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35903/"
] |
364,017 | <p>I have a file of about 30000 lines of data that I want to load into a sqlite3 database. Is there a faster way than generating insert statements for each line of data?</p>
<p>The data is space-delimited and maps directly to an sqlite3 table. Is there any sort of bulk insert method for adding volume data to a databas... | [
{
"answer_id": 364156,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 6,
"selected": true,
"text": "PRAGMA synchronous = OFF;"
},
{
"answer_id": 364557,
"author": "oz10",
"author_id": 14069,
"author_profile"... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9450/"
] |
364,019 | <p>I'd like to have revision number of source code to Delphi's source code and exe version. What is the best way to do this automatically?</p>
<p>I'd like to display the revision number in "About" screen and in the version info of the project.</p>
<p>I'm using currently Delphi IDE (2006/2007) and Tortoise SVN.</p>
| [
{
"answer_id": 364046,
"author": "ieure",
"author_id": 45224,
"author_profile": "https://Stackoverflow.com/users/45224",
"pm_score": 1,
"selected": false,
"text": "$Revision$"
},
{
"answer_id": 364195,
"author": "Rob Kennedy",
"author_id": 33732,
"author_profile": "ht... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7735/"
] |
364,055 | <p>Using NUnit 2.2 on .NET 3.5, the following test fails when using DateTime.Equals. Why?</p>
<pre><code>[TestFixture]
public class AttributeValueModelTest
{
public class HasDate
{
public DateTime? DateValue
{
get
{
DateTime value;
return ... | [
{
"answer_id": 364075,
"author": "shahkalpesh",
"author_id": 23574,
"author_profile": "https://Stackoverflow.com/users/23574",
"pm_score": 0,
"selected": false,
"text": "\npublic DateTime? DateValue\n {\n get\n {\n DateTime value;\n ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/470/"
] |
364,066 | <p>When Internet Explorers AutoComplete is turned on for Forms the entries for each field in the HTML form should be cached and displayed as a prompt when the user starts entering content into the form the second time around. </p>
<p>On my website the AutoComplete feature is never displayed for any forms that exist o... | [
{
"answer_id": 364076,
"author": "cLFlaVA",
"author_id": 45109,
"author_profile": "https://Stackoverflow.com/users/45109",
"pm_score": 1,
"selected": false,
"text": "autocomplete=\"off\""
},
{
"answer_id": 364094,
"author": "dgavey",
"author_id": 10350,
"author_profil... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10350/"
] |
364,073 | <p>I have a table "A" with 2 columns "Foo" and "Bar". I have a formula with the structured reference A[Foo]. When I fill this formula horizontally I want the reference to stay A[Foo] but now, in the second column, the reference turns to A[Bar]. Is there a way to make this structured reference absolute? </p>
<p>It'd be... | [
{
"answer_id": 8650635,
"author": "tekNorah",
"author_id": 1118446,
"author_profile": "https://Stackoverflow.com/users/1118446",
"pm_score": 1,
"selected": false,
"text": " A B C D\n1 Item Base Price 5% ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364073",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1946/"
] |
364,083 | <p>What would be the bast way to change the orientation of the WPF treeview. I would like to work the expand-collapse-functionality to work left to right instead of top to down. I.e. when I click on on the expand button of a treenode I would its subnode to appear right of the parent and the indent should work top-down ... | [
{
"answer_id": 42860839,
"author": "Matt Thomas",
"author_id": 3063273,
"author_profile": "https://Stackoverflow.com/users/3063273",
"pm_score": 2,
"selected": false,
"text": "ItemsPanel"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/364083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4227/"
] |
364,096 | <p>I’m attempting to check the rights on a particular file for a specific
trustee and am using the win32 API GetEffectiveRightsFromAcl(). When
the file is accessible by a domain group, the function
returns 5 (Access Denied) when a local account (admin or other) is
used to execute the function.</p>
<p>These three stat... | [
{
"answer_id": 688912,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "using System;\nusing System.Runtime.InteropServices;\nusing System.Security.Principal;\nusing System.Security.AccessControl;\n... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364096",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
364,105 | <p>I'm trying to use grep with -v for invert-match along with -e for regular expression. I'm having trouble getting the syntax right. </p>
<p>I'm trying something like</p>
<pre><code>tail -f logFile | grep -ve "string one|string two"
</code></pre>
<p>If I do it this way it doesn't filter
If I change it to</p>
<pre... | [
{
"answer_id": 364113,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 8,
"selected": true,
"text": "tail -f logFile | grep -vE 'string one|string two'\n"
},
{
"answer_id": 364115,
"author": "Jay",
"aut... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16584/"
] |
364,114 | <p>Maven 2 is driving me crazy during the experimentation / quick and dirty mock-up phase of development.</p>
<p>I have a <code>pom.xml</code> file that defines the dependencies for the web-app framework I want to use, and I can quickly generate starter projects from that file. However, sometimes I want to link to a 3r... | [
{
"answer_id": 364188,
"author": "Pyrolistical",
"author_id": 21838,
"author_profile": "https://Stackoverflow.com/users/21838",
"pm_score": 9,
"selected": false,
"text": "<dependency>\n <groupId>org.swinglabs</groupId>\n <artifactId>swingx</artifactId>\n <version>0.9.2</version>... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
364,141 | <p>If I have, say, a table of films which amongs other things has a int FilmTypeId field and a table of film types, with the id and a meaningful description along the lines of:</p>
<ul>
<li>1 - horror</li>
<li>2 - comedy</li>
<li>...</li>
</ul>
<p>Whats the best way of using that information in a C# class?</p>
<p>cu... | [
{
"answer_id": 364154,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": true,
"text": "public enum FilmType {\n Horror = 1,\n Comedy = 2\n}\n"
},
{
"answer_id": 364158,
"author": "Chris Mar... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39643/"
] |
364,148 | <p>I'm trying to use the Kowalski graph algorithm for resolution theorem
proving. The description of the algorithm at
<a href="http://www.doc.ic.ac.uk/~rak/" rel="nofollow noreferrer">http://www.doc.ic.ac.uk/~rak/</a> is silent on what to do about the large
number of duplicate clauses it generates. I'm wondering if the... | [
{
"answer_id": 364154,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": true,
"text": "public enum FilmType {\n Horror = 1,\n Comedy = 2\n}\n"
},
{
"answer_id": 364158,
"author": "Chris Mar... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45843/"
] |
364,159 | <p>I have a table with 3 columns. I want to write a formula that, given a structured reference, returns the index of the column. This will help me write VLookup formulas using the structured reference.</p>
<p>So, for example, for the table <code>MyTable</code> with columns <code>A</code>, <code>B</code>, <code>C</code... | [
{
"answer_id": 364264,
"author": "e.James",
"author_id": 33686,
"author_profile": "https://Stackoverflow.com/users/33686",
"pm_score": 0,
"selected": false,
"text": "=COLUMN(MyTable[*]) - COLUMN(MyTable[A]) + 1"
},
{
"answer_id": 364314,
"author": "Fionnuala",
"author_id"... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1946/"
] |
364,172 | <p>I decided to use the GC for memory management for my latest Cocoa project, and I discovered something interesting--if I create a brand new Cocoa app project in Xcode, turn GC to supported or required (I tried both), build, and run it it leaks, it shows memory leaks!</p>
<p>Mostly large numbers of tiny leaks of obje... | [
{
"answer_id": 364994,
"author": "Chris Hanson",
"author_id": 714,
"author_profile": "https://Stackoverflow.com/users/714",
"pm_score": 4,
"selected": true,
"text": "leaks"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/364172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1512/"
] |
364,178 | <p>I have ANOTHER serialization question, but this time it is in regards to Java's native serialization import when serializing to binary. I have to serialize a random tree that is generated in another java file. I know how serialization and deserialization works, but the example I followed when using binary serializ... | [
{
"answer_id": 365195,
"author": "McDowell",
"author_id": 304,
"author_profile": "https://Stackoverflow.com/users/304",
"pm_score": 0,
"selected": false,
"text": "print(\"public class RandomTreeBuilder implements java.io.Serializable\");\n"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/364178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36268/"
] |
364,184 | <p>In my Delphi7 this code</p>
<pre><code>var MStr: TMemoryStream;
...
FreeAndNil(MStr);
MStr.Size:=0;
</code></pre>
<p>generates an AV: Access violation at address 0041D6D1 in module 'Project1.exe'. Read of address 00000000.
But somebody insists that it should not raise any exception, no matter what. He also says t... | [
{
"answer_id": 364231,
"author": "Rob Kennedy",
"author_id": 33732,
"author_profile": "https://Stackoverflow.com/users/33732",
"pm_score": 4,
"selected": false,
"text": "FreeAndNil"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/364184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
364,187 | <p>I found an example on registering DLLs, <em><a href="http://blogs.msdn.com/robmen/archive/2004/04/28/122491.aspx" rel="noreferrer">Registering an Assembly for COM Interop in a MSI file with the Windows Installer XML toolset.</a></em>, and WiX complains about the "AssemblyRegisterComInterop" attribute.</p>
<p>I remo... | [
{
"answer_id": 364210,
"author": "Troy Howard",
"author_id": 19258,
"author_profile": "https://Stackoverflow.com/users/19258",
"pm_score": 6,
"selected": true,
"text": "SelfRegCost=1"
},
{
"answer_id": 364544,
"author": "Rob Mensching",
"author_id": 23852,
"author_pro... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23822/"
] |
364,193 | <p>Erm - what the question said. It's something I keep hearing about, but I've not got round to looking into it yet.</p>
<hr>
<p>(updated) I could look up the definition... but why not (as pointed out by @erikson) get insight into your real experiences and anecdotes. Community Wiki'd incase that helps folks vote up t... | [
{
"answer_id": 364234,
"author": "Bob Cross",
"author_id": 5812,
"author_profile": "https://Stackoverflow.com/users/5812",
"pm_score": 5,
"selected": true,
"text": " _\n ( ) \nA --> B --> C\n"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/364193",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2362/"
] |
364,194 | <p>We currently have an application that works with Outlook 2003. In order to get the owner of a shared contact folder, we simply call:
Redemption.RDOSessionClass.GetFolderFromID() and then took that folder and got the RDOFolder.Store.Name property.</p>
<p>However, when trying this with a shared contact folder in Outl... | [
{
"answer_id": 364234,
"author": "Bob Cross",
"author_id": 5812,
"author_profile": "https://Stackoverflow.com/users/5812",
"pm_score": 5,
"selected": true,
"text": " _\n ( ) \nA --> B --> C\n"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/364194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32518/"
] |
364,206 | <p>Our company is considering using the <a href="http://msdn.microsoft.com/en-us/vsx2008/products/bb933751.aspx" rel="nofollow noreferrer">Visual Studio Shell</a> for one of our products.</p>
<p>Does anyone have any experience using it? Was it easy to work with? Did it save time? Are there any things that you weren... | [
{
"answer_id": 54887999,
"author": "SherlockSpreadsheets",
"author_id": 5335644,
"author_profile": "https://Stackoverflow.com/users/5335644",
"pm_score": 0,
"selected": false,
"text": "Visual Studio Community"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/364206",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34502/"
] |
364,209 | <p>I have a function called:</p>
<pre><code>void initializeJSP(string Experiment)
</code></pre>
<p>And in my MyJSP.h file I have:</p>
<pre><code>2: void initializeJSP(string Experiment);
</code></pre>
<p>And when I compile I get this error:</p>
<blockquote>
<p>MyJSP.h:2 error: variable or field initializeJSP dec... | [
{
"answer_id": 364224,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 7,
"selected": true,
"text": "void initializeJSP(unknownType Experiment);\n"
},
{
"answer_id": 7551394,
"author": "Paul Price"... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364209",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39160/"
] |
364,219 | <p>I have an app that creates a couple of WebView instances and I'd like to have them operate as independently as possible.</p>
<p>At the very least, I don't want them sharing cookies. A quick google search gave me results liking "you can't." I'm hoping someone has a better answer.</p>
| [
{
"answer_id": 365080,
"author": "Lily Ballard",
"author_id": 582,
"author_profile": "https://Stackoverflow.com/users/582",
"pm_score": 5,
"selected": true,
"text": "-webView:resource:willSendRequest:redirectResponse:fromDataSource:"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/364219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39975/"
] |
364,230 | <p>I have three tables. This query will write down the right answer (x-lines for btv.id_user with appropriate btv.cas and race.id_zavod</p>
<pre><code>SELECT `btv.id_user`, `btv.id_zavod`,`btv.cas`
FROM `btv`
JOIN `btu` ON `btv.id_user` = `btu.id_user`
JOIN `race` ON 'btv.id_zavod' = `race.id_zavod`
WHERE `race.type` ... | [
{
"answer_id": 364260,
"author": "user12861",
"author_id": 12861,
"author_profile": "https://Stackoverflow.com/users/12861",
"pm_score": 1,
"selected": false,
"text": "SELECT `btv.id_user`, `btv.id_zavod`, MIN( `btv.cas` )\nFROM `btv`\nJOIN `btu` ON `btv.id_user` = `btu.id_user`\nJOIN `r... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45846/"
] |
364,240 | <p>How do YOU reduce compile time, and linking time for VC++ projects (native C++)?</p>
<p>Please specify if each suggestion applies to debug, release, or both.</p>
| [
{
"answer_id": 364257,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 7,
"selected": true,
"text": "// Forward declaration stuff\nnamespace plotter { namespace logic { class Plotter; } }\n\n// Real stuff\nnam... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
364,253 | <p>How do I Deserialize this XML document:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<Cars>
<Car>
<StockNumber>1020</StockNumber>
<Make>Nissan</Make>
<Model>Sentra</Model>
</Car>
<Car>
<StockNumber>1010</StockN... | [
{
"answer_id": 364325,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 5,
"selected": false,
"text": "[Serializable()]\n[System.Xml.Serialization.XmlRootAttribute(\"Cars\", Namespace = \"\", IsNullable = false)]\npublic ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41508/"
] |
364,292 | <p>I have a table for which I want to select top the 5 rows by some column A. I also want to have a 6th row titled 'Other' which sums the values in column A for all but the top 5 rows.</p>
<p>Is there an easy way to do this? I'm starting with:</p>
<pre><code>select top 5
columnB, columnA
from
someTable t
o... | [
{
"answer_id": 364310,
"author": "D'Arcy Rittich",
"author_id": 39430,
"author_profile": "https://Stackoverflow.com/users/39430",
"pm_score": 3,
"selected": true,
"text": "select * from (\n select top 5 \n columnB, columnA \n from \n someTable t\n order by\n ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34942/"
] |
364,301 | <p>I posted this message to the Solr mailing list, but I'm trying here too in case there's a Solr expert lurking around.</p>
<p>I am trying to use the regex fragmenter and am having a hard time getting the results I want. I am trying to get fragments that start on a word character and end on punctuation, but for some ... | [
{
"answer_id": 364342,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": true,
"text": "\\w[^\\.!\\?]{400,600}[\\.!\\?]\n"
},
{
"answer_id": 365180,
"author": "Jan Goyvaerts",
"author_id": 33358,
... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45856/"
] |
364,327 | <p>I want to get myself into programming some serious GUI based applications, but when I look at things like Swing/SWT from Java, I can't help but HATE programming a GUI interface by creating "widget" objects and populating them and calling methods on them. </p>
<p>I think GUI design should be done in a separate text... | [
{
"answer_id": 768777,
"author": "Bryan Oakley",
"author_id": 7432,
"author_profile": "https://Stackoverflow.com/users/7432",
"pm_score": 2,
"selected": false,
"text": "menubar {\n File => {\n Open => cmd.open\n Save => cmd.save\n Exit => cmd.exit\n }\n Edit... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364327",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35364/"
] |
364,336 | <p>I am getting a strange error on a remote windows clients (WinForm application using C# 2.0)</p>
<p>Error Message: Access to the path 'c:\ApplicationFolder' is denied.</p>
<p>Stack Trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode ... | [
{
"answer_id": 402075,
"author": "Dour High Arch",
"author_id": 22437,
"author_profile": "https://Stackoverflow.com/users/22437",
"pm_score": 0,
"selected": false,
"text": "System.IO.FileStream.Init"
},
{
"answer_id": 10764280,
"author": "techno",
"author_id": 848968,
... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
364,347 | <p>One example is described <strong><a href="http://sujitmanolikar.blogspot.com/2007/07/generic-statemanagedcollection.html" rel="nofollow noreferrer">here</a></strong>. But the author apparently forgot to include the code for download.</p>
<p>Another example is shown <strong><a href="http://blog.spontaneouspublicity... | [
{
"answer_id": 500077,
"author": "Dan Herbert",
"author_id": 392,
"author_profile": "https://Stackoverflow.com/users/392",
"pm_score": 2,
"selected": false,
"text": "AppointmentControl.cs"
},
{
"answer_id": 500106,
"author": "davogones",
"author_id": 59631,
"author_pr... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364347",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/337/"
] |
364,360 | <pre><code>test[_nObjectives].pool[j].feedbackCorrect =
oQuestions[j].getElementsByTagName("feedbackCorrect")[0].firstChild.data;
</code></pre>
<p>and the XML in this case contains this: </p>
<pre><code> <feedbackCorrect>
</feedbackCorrect>
</code></pre>
<p>When executing that line of code the follow... | [
{
"answer_id": 364366,
"author": "FallenAvatar",
"author_id": 36965,
"author_profile": "https://Stackoverflow.com/users/36965",
"pm_score": 1,
"selected": false,
"text": "oQuestions[j].getElementsByTagName(\"feedbackCorrect\")[0]\n"
},
{
"answer_id": 364386,
"author": "Commun... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
364,367 | <p>I want to <strong>move about 800gb of data from an NTFS storage device to a FAT32 device</strong> (both are external hard drives), on a Windows System.</p>
<p>What is the best way to achieve this?</p>
<ol>
<li>Simply using cut-paste?</li>
<li>Using the command prompt ? (<code>move</code>)</li>
<li>Writing a batch ... | [
{
"answer_id": 45422837,
"author": "kumar chandraketu",
"author_id": 7008922,
"author_profile": "https://Stackoverflow.com/users/7008922",
"pm_score": 1,
"selected": false,
"text": "powershell \"robocopy 'Source' 'destination' /E /R:3 /W:10 /FP /MT:25 /V\" \n\n/E - Copy subdirectory inc... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44084/"
] |
364,412 | <p>In a previous life, I might have done something like this:</p>
<pre><code><a href="#" onclick="f(311);return false;">Click</a><br/>
<a href="#" onclick="f(412);return false;">Click</a><br/>
<a href="#" onclick="f(583);return false;">Click</a><br/>
<a href="#"... | [
{
"answer_id": 364462,
"author": "Mark Brackett",
"author_id": 2199,
"author_profile": "https://Stackoverflow.com/users/2199",
"pm_score": 3,
"selected": true,
"text": "<a class=\"clicker\">Click</a><br/>\n<a class=\"clicker\">Click</a><br/>\n<a class=\"clicker\">Click</a><br/>\n<a class... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364412",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3420/"
] |
364,428 | <p>The project I am working on were are trying to come up with a solution for having the database and code be agile and be able to be built and deployed together.</p>
<p>Since the application is a combination of code plus the database schema, and database code tables, you can not truly have a full build of the applica... | [
{
"answer_id": 364458,
"author": "Tom",
"author_id": 40620,
"author_profile": "https://Stackoverflow.com/users/40620",
"pm_score": 3,
"selected": true,
"text": "db/\ndb/Makefile (run `make` to rebuild db from scratch, `make clean` to close db)\ndb/01_type.sql\ndb/02_table.sql\ndb/03_func... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45365/"
] |
364,440 | <p>I have 2 objects, both from different Model classes, and want to show a form containing some fields from each one. How can I do this?</p>
| [
{
"answer_id": 364527,
"author": "Oli",
"author_id": 12870,
"author_profile": "https://Stackoverflow.com/users/12870",
"pm_score": -1,
"selected": false,
"text": "Form"
},
{
"answer_id": 365300,
"author": "ayaz",
"author_id": 23191,
"author_profile": "https://Stackove... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45870/"
] |
364,448 | <p>Does anyone know how to show a asp:TreeView always expanded to the leaves? So if I have a 2-level tree, I want it to be expanded at all times. Is there a property on TreeView that does this or could you show the code snippet on how to do this?</p>
<p>Thank you very much!
Ray.</p>
| [
{
"answer_id": 364487,
"author": "maxnk",
"author_id": 45862,
"author_profile": "https://Stackoverflow.com/users/45862",
"pm_score": 3,
"selected": true,
"text": "protected void Page_Load(object sender, EventArgs e)\n{\n TreeView1.ExpandAll();\n}\n"
},
{
"answer_id": 2034747,
... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32240/"
] |
364,454 | <p>When running FindBugs on my project, I got a few instances of the error described above.</p>
<p>Namely, my overriding versions of equals cast the RHS object into the same type as the object in which the overriding version is defined.</p>
<p>However, I'm not sure whether a better design is possible, since AFAIK Jav... | [
{
"answer_id": 364464,
"author": "Dave L.",
"author_id": 3093,
"author_profile": "https://Stackoverflow.com/users/3093",
"pm_score": 7,
"selected": true,
"text": "if (getClass() != obj.getClass())\n return false;\nMyObj myObj = (MyObj) obj;\n"
},
{
"answer_id": 364471,
"au... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23072/"
] |
364,472 | <p>Is there an easy or straightforward way in Java to output the results of a DB Query to a file (either csv, tab, etc). Perhaps even in Hibernate?</p>
<p>I know that a query results can be dumped to a flat file on the DB Server. I am looking for a way that an application can run a query and get those results into a... | [
{
"answer_id": 372338,
"author": "cliff.meyers",
"author_id": 41754,
"author_profile": "https://Stackoverflow.com/users/41754",
"pm_score": 1,
"selected": false,
"text": "xmlSession = session.getSession(EntityMode.DOM4J);\nElement elem = (Element) xmlSession.load(SomePersistentClass.clas... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
364,478 | <p>I asked a related question about findbugs, but let's ask a more general question.</p>
<p>Suppose that I am working with an object-oriented language in which polymorphism is possible.</p>
<p>Suppose that the language supports static type checking (e.g., Java, C++)</p>
<p>Suppose that the language does not allow va... | [
{
"answer_id": 364484,
"author": "Daniel Schaffer",
"author_id": 2596,
"author_profile": "https://Stackoverflow.com/users/2596",
"pm_score": 0,
"selected": false,
"text": "SomeClass obj1 = new SomeClass();\nobject other = (object)obj1;\n\nreturn obj1.Equals(other); // should return \"tru... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23072/"
] |
364,483 | <p>Can the alignment of a structure type be found if the alignments of the structure members are known? </p>
<p>Eg. for:</p>
<pre><code>struct S
{
a_t a;
b_t b;
c_t c[];
};
</code></pre>
<p>is the alignment of S = max(alignment_of(a), alignment_of(b), alignment_of(c))?</p>
<p>Searching the internet I found that ... | [
{
"answer_id": 364562,
"author": "Andrew Top",
"author_id": 30036,
"author_profile": "https://Stackoverflow.com/users/30036",
"pm_score": 4,
"selected": false,
"text": "template <class T>\nclass Traits\n{\npublic:\n struct AlignmentFinder\n {\n char a; \n T b;\n };... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45875/"
] |
364,495 | <p>So, i'm running emacs over a crappy ssh connection and I have it set up to use cscope. I can not use X because of this...hence I'm running emacs inside putty. However, when I search for something with cscope and it opens up the other buffer, I can not
follow the links where cscope tells me which file and line number... | [
{
"answer_id": 7285012,
"author": "जलजनक",
"author_id": 835145,
"author_profile": "https://Stackoverflow.com/users/835145",
"pm_score": 0,
"selected": false,
"text": "GNU find version 4.2"
},
{
"answer_id": 21122987,
"author": "Peng",
"author_id": 3195561,
"author_pro... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/440177/"
] |
364,501 | <p>We've got a few pages in our web systems that use the .net system.net.mail control to send emails. The thing has been working great, except it's now starting to look like the smptclient class may not actually be disconnecting from the server, such that the SMTP server leaves that connection open, and we ended up ma... | [
{
"answer_id": 364576,
"author": "Chris",
"author_id": 34942,
"author_profile": "https://Stackoverflow.com/users/34942",
"pm_score": 3,
"selected": true,
"text": "var smtp = new SmtpClient();\nsmtp.ServicePoint.MaxIdleTime = 1;\nsmtp.ServicePoint.ConnectionLimit = 1;\nsmtp.Send(message);... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364501",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19074/"
] |
364,505 | <pre><code><% using (Html.BeginForm() { %>
<%=Html.DropDownList("TopItemsList", ViewData["ListData"], new { onchange="[???]" })%>
<% } %>
</code></pre>
<p>In the above example, what value should you set onchange to? Or, how do you get the correct form?</p>
<p>Is there any difference with Ajax.Be... | [
{
"answer_id": 364508,
"author": "maxnk",
"author_id": 45862,
"author_profile": "https://Stackoverflow.com/users/45862",
"pm_score": 7,
"selected": true,
"text": "<%=Html.DropDownList(\"TopItemsList\", ViewData[\"ListData\"], new { onchange=\"this.form.submit();\" })%>\n"
},
{
"a... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
364,514 | <p>I know that -applicationWillResignActive gets called upon an incoming call, but is there a standard method that gets called if the user hits the "exit" button (the only button on the front of the iPhone)? </p>
| [
{
"answer_id": 364520,
"author": "Marc Charbonneau",
"author_id": 35136,
"author_profile": "https://Stackoverflow.com/users/35136",
"pm_score": 4,
"selected": true,
"text": "- (void)applicationWillTerminate:(UIApplication *)application"
},
{
"answer_id": 3288414,
"author": "N... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21293/"
] |
364,519 | <p>There's an existing function that ends in the following, where <code>d</code> is a dictionary:</p>
<pre><code>return d.iteritems()
</code></pre>
<p>that returns an unsorted iterator for a given dictionary. I would like to return an iterator that goes through the items sorted <em>by key</em>. How do I do that?</p>
| [
{
"answer_id": 364521,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 6,
"selected": false,
"text": "sorted()"
},
{
"answer_id": 364524,
"author": "Claudiu",
"author_id": 15055,
"author_profile": "https... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91385/"
] |
364,522 | <p>How do you correct use frame on a asp.net page, so I have a left frame and a right frame, when I click the links on the page presented in the left frame, it loads the according page in the right frame? On top of this, I need to have a master page on all the right frame's pages.</p>
<p>How do I do this? or is ther... | [
{
"answer_id": 364536,
"author": "Dan Herbert",
"author_id": 392,
"author_profile": "https://Stackoverflow.com/users/392",
"pm_score": 2,
"selected": false,
"text": "#main"
},
{
"answer_id": 364732,
"author": "seanb",
"author_id": 3354,
"author_profile": "https://Stac... | 2008/12/12 | [
"https://Stackoverflow.com/questions/364522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32240/"
] |
364,523 | <p>I'm currently working with a specialized, interpreted, programming language implemented in Java. As a very small part of the language, I'd like to add the ability to make calls into Java. Before I dive into all of the nitty-gritty of reflection, I was wondering if anyone knew of a general library for doing the &quo... | [
{
"answer_id": 365724,
"author": "flicken",
"author_id": 12880,
"author_profile": "https://Stackoverflow.com/users/12880",
"pm_score": 3,
"selected": false,
"text": " String name = method(\"get\").withReturnType(String.class)\n .withParameterTypes(int.class)\n ... | 2008/12/13 | [
"https://Stackoverflow.com/questions/364523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40310/"
] |
364,539 | <p>I'm not sure if Vim makes me more productive compared to other editors/ide's like Eclipse for example.</p>
<p>But somehow I get an empowering feeling when using Vim and noticed resistance to trying others editors.</p>
<p>Example: As soon a I see some cool feature in an other editor I'm thinking "<em>Vi can do that... | [
{
"answer_id": 16605610,
"author": "Mikko Rantalainen",
"author_id": 334451,
"author_profile": "https://Stackoverflow.com/users/334451",
"pm_score": 0,
"selected": false,
"text": "V"
}
] | 2008/12/13 | [
"https://Stackoverflow.com/questions/364539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19165/"
] |
364,558 | <p>It's been a while since I was in college and knew how to calculate a best fit line, but I find myself needing to. Suppose I have a set of points, and I want to find the line that is the best of those points.</p>
<p>What is the equation to determine a best fit line?
How would I do that with PHP?</p>
| [
{
"answer_id": 364571,
"author": "Tim Whitcomb",
"author_id": 24895,
"author_profile": "https://Stackoverflow.com/users/24895",
"pm_score": 2,
"selected": false,
"text": "a"
},
{
"answer_id": 364585,
"author": "FryGuy",
"author_id": 28776,
"author_profile": "https://S... | 2008/12/13 | [
"https://Stackoverflow.com/questions/364558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12930/"
] |
364,564 | <p>I am writing a Cocoa application with Mono embedded. I want to run and see my debug output in Terminal. On the Cocoa side I am using <code>NSLog()</code>, and on the Mono side I am using <code>Debug.Write()</code>. I can see my debug output in Xcode's console, but not in Terminal. This is what I tried: </p>
<pr... | [
{
"answer_id": 365000,
"author": "Chris Hanson",
"author_id": 714,
"author_profile": "https://Stackoverflow.com/users/714",
"pm_score": 4,
"selected": false,
"text": "open /path/to/MyApp.app"
},
{
"answer_id": 365062,
"author": "Lily Ballard",
"author_id": 582,
"autho... | 2008/12/13 | [
"https://Stackoverflow.com/questions/364564",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45890/"
] |
364,621 | <p>I am iterating over a list and I want to print out the index of the item if it meets a certain condition. How would I do this?</p>
<p>Example: </p>
<pre><code>testlist = [1,2,3,5,3,1,2,1,6]
for item in testlist:
if item == 1:
print position
</code></pre>
| [
{
"answer_id": 364638,
"author": "jakber",
"author_id": 29812,
"author_profile": "https://Stackoverflow.com/users/29812",
"pm_score": 3,
"selected": false,
"text": "for i in xrange(len(testlist)):\n if testlist[i] == 1:\n print i\n"
},
{
"answer_id": 364641,
"author": "zd... | 2008/12/13 | [
"https://Stackoverflow.com/questions/364621",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44133/"
] |
364,631 | <p>Given the following code snippet from inside a method; </p>
<pre><code>NSBezierPath * tempPath = [NSBezierPath bezierPathWithOvalInRect:pathRect];
[tempPath retain];
[path release];
[self setPath:tempPath];
</code></pre>
<p>Am I responsible for releasing <code>tempP... | [
{
"answer_id": 364647,
"author": "Max Stewart",
"author_id": 18338,
"author_profile": "https://Stackoverflow.com/users/18338",
"pm_score": 1,
"selected": false,
"text": "[tempPath retain]"
},
{
"answer_id": 364649,
"author": "Ashley Clark",
"author_id": 4556,
"author_... | 2008/12/13 | [
"https://Stackoverflow.com/questions/364631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41880/"
] |
364,642 | <p>I want to know the basic principle used for WYSIWYG pages on the web. I started coding it and made it using a text area, but very soon I realized that I cannot add or show images or any HTML in the text area. So I made it using DIV, but I did not understand how I could make it editable.</p>
<p>So, in gist, <strong>... | [
{
"answer_id": 364651,
"author": "coobird",
"author_id": 17172,
"author_profile": "https://Stackoverflow.com/users/17172",
"pm_score": 2,
"selected": false,
"text": "form"
},
{
"answer_id": 364689,
"author": "olliej",
"author_id": 784,
"author_profile": "https://Stack... | 2008/12/13 | [
"https://Stackoverflow.com/questions/364642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
364,655 | <p>I'm trying to run Python scripts using Xcode's User Scripts menu.</p>
<p>The issue I'm having is that my usual os.sys.path (taken from ~/.profile) does not seem to be imported when running scripts from XCode the way it is when running them at the Terminal (or with IPython). All I get is the default path, which mean... | [
{
"answer_id": 364691,
"author": "Toby White",
"author_id": 45891,
"author_profile": "https://Stackoverflow.com/users/45891",
"pm_score": 1,
"selected": false,
"text": "cat > $HOME/bin/mypython << EOF\n#!/usr/bin/python\nimport os\nos.path = ['/list/of/paths/you/want']\nEOF\n"
},
{
... | 2008/12/13 | [
"https://Stackoverflow.com/questions/364655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1512/"
] |
364,664 | <p>I would like to restrict access to my <code>/admin</code> URL to internal IP addresses only. Anyone on the open Internet should not be able to login to my web site. Since I'm using Lighttpd my first thought was to use <code>mod_rewrite</code> to redirect any outside request for the <code>/admin</code> URL back to ... | [
{
"answer_id": 364991,
"author": "Patryk Kordylewski",
"author_id": 30927,
"author_profile": "https://Stackoverflow.com/users/30927",
"pm_score": 2,
"selected": true,
"text": "$HTTP[\"remoteip\"] == \"192.168.0.0/16\" {\n /* your rules here */\n}\n"
},
{
"answer_id": 15464922,... | 2008/12/13 | [
"https://Stackoverflow.com/questions/364664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21512/"
] |
364,671 | <p>I have a problem with a many-to-many relation in my tables, which is between an employee and instructor who work in a training centre. I cannot find the link between them, and I don't know how to get it. The employee fields are:</p>
<ul>
<li>employee no.</li>
<li>employee name</li>
<li>company name</li>
<li>departm... | [
{
"answer_id": 364677,
"author": "Jimmy",
"author_id": 4435,
"author_profile": "https://Stackoverflow.com/users/4435",
"pm_score": 3,
"selected": false,
"text": "table EmployeeInstructor \n EmployeeID\n InstructorID\n"
}
] | 2008/12/13 | [
"https://Stackoverflow.com/questions/364671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
364,676 | <p>I have an array filled with values (twitter ids) and I would like to find the missing data between the lowest id and the highest id? Any care to share a simple function or idea on how to do this?</p>
<p>Also, I was wondering if I can do the same with mySQL? I have the key indexed. The table contains 250k rows right... | [
{
"answer_id": 364677,
"author": "Jimmy",
"author_id": 4435,
"author_profile": "https://Stackoverflow.com/users/4435",
"pm_score": 3,
"selected": false,
"text": "table EmployeeInstructor \n EmployeeID\n InstructorID\n"
}
] | 2008/12/13 | [
"https://Stackoverflow.com/questions/364676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45530/"
] |
364,687 | <p>so i have a winforms apps that downloads a set of data syncronously on startup. This obviously takes a while but then when any of the services or GUI classes load, they all have this data. I could change this to put on a background thread but then every component that needs access to this data would continuously h... | [
{
"answer_id": 365456,
"author": "Jason Jackson",
"author_id": 13103,
"author_profile": "https://Stackoverflow.com/users/13103",
"pm_score": 1,
"selected": false,
"text": "DataManager.LoadDataAsync(dataCommandPatternObject, CallBackFunction);\n\n...\n\npublic void CallbackFunction(SomeDa... | 2008/12/13 | [
"https://Stackoverflow.com/questions/364687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
364,730 | <p>Screenshot of the problem:</p>
<p><img src="https://i.stack.imgur.com/qutvW.jpg" alt="http://i36.tinypic.com/dfxdmd.jpg"></p>
<p>The yellow block is the logo and the blue box is the nav links (I have blanked them out). I would like to align the links at the bottom so they are stuck to the top of the body content (... | [
{
"answer_id": 364737,
"author": "John Dunagan",
"author_id": 28939,
"author_profile": "https://Stackoverflow.com/users/28939",
"pm_score": 0,
"selected": false,
"text": "clear: both;"
},
{
"answer_id": 364772,
"author": "tvanfosson",
"author_id": 12950,
"author_profi... | 2008/12/13 | [
"https://Stackoverflow.com/questions/364730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
364,731 | <p>I have this code that generates markets I want to be clickable with a pop up info window. </p>
<pre><code>for (i = 0; i < marker_array.length; i++) {
var point = new GLatLng(marker_array[i][0], marker_array[i][1]);
var marker = new GMarker(point, markerOptions);
GEvent.addListener(marker, "click", ... | [
{
"answer_id": 365560,
"author": "Diodeus - James MacFarlane",
"author_id": 12579,
"author_profile": "https://Stackoverflow.com/users/12579",
"pm_score": 0,
"selected": false,
"text": "function createMarker(posn, title, icon, i) {\n var marker = new GMarker(posn, {title: title, icon: ... | 2008/12/13 | [
"https://Stackoverflow.com/questions/364731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30098/"
] |
364,740 | <p>I am starting to design a new application and what I am wondering is peoples opinions on Linq2SQL or Linq2Entities and what they feel is the better technology for rapid development.</p>
<p>I am also doing some research into ADO.net data services.</p>
| [
{
"answer_id": 365041,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 2,
"selected": false,
"text": "IUpdatable"
}
] | 2008/12/13 | [
"https://Stackoverflow.com/questions/364740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45909/"
] |
364,757 | <p>I am restricted to C (cannot use C++). I wish C had stricter type checking.</p>
<p>Is there a way to get compile errors on the commented lines? If it helps, the enum values cannot overlap.</p>
<hr>
<pre><code>enum hundred {
VALUE_HUNDRED_A = 100,
VALUE_HUNDRED_B
};
enum thousand {
VALUE_THOUSAND_A = ... | [
{
"answer_id": 364781,
"author": "Charlie Martin",
"author_id": 35092,
"author_profile": "https://Stackoverflow.com/users/35092",
"pm_score": -1,
"selected": false,
"text": "assert()"
},
{
"answer_id": 364784,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"a... | 2008/12/13 | [
"https://Stackoverflow.com/questions/364757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45908/"
] |
364,775 | <p>We are using Maven for a large build process (> 100 modules). We have been storing our external dependencies in source control, and using that to update a local repo.</p>
<p>However, we are ready to graduate to a local repo that can cache central so that we don't have to proactively download all 3rd parties (but we... | [
{
"answer_id": 4092349,
"author": "Evgeny Goldin",
"author_id": 472153,
"author_profile": "https://Stackoverflow.com/users/472153",
"pm_score": 7,
"selected": false,
"text": "mvn deploy"
}
] | 2008/12/13 | [
"https://Stackoverflow.com/questions/364775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5874/"
] |
364,788 | <p>Is there an easier way to achieve the following?</p>
<pre><code>var obj = from row in table.AsEnumerable()
select row["DOUBLEVALUE"];
double[] a = Array.ConvertAll<object, double>(obj.ToArray(), o => (double)o);
</code></pre>
<p>I'm extracting a column from a <code>DataTable</code> and storing ... | [
{
"answer_id": 4092349,
"author": "Evgeny Goldin",
"author_id": 472153,
"author_profile": "https://Stackoverflow.com/users/472153",
"pm_score": 7,
"selected": false,
"text": "mvn deploy"
}
] | 2008/12/13 | [
"https://Stackoverflow.com/questions/364788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45914/"
] |
364,791 | <p>Consider the following HTML:</p>
<pre><code><div class="foo" id="obj">
I should be changed red
<div class="bar" style="color:black;">
I should not be changed red.
<div class="foo">I should be changed red.</div>
</div>
</div>
</code></pre>
<p>Given a DOM elem... | [
{
"answer_id": 364798,
"author": "rz.",
"author_id": 7407,
"author_profile": "https://Stackoverflow.com/users/7407",
"pm_score": -1,
"selected": false,
"text": " $('div.foo, div.foo > *').css('color','red');\n"
},
{
"answer_id": 364800,
"author": "Sam",
"author_id": 43005... | 2008/12/13 | [
"https://Stackoverflow.com/questions/364791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43005/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.