qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
145,312 | <p>What is the maximum number of threads you can create in a C# application? And what happens when you reach this limit? Is an exception of some kind thrown?</p>
| [
{
"answer_id": 145412,
"author": "mastermind",
"author_id": 168864,
"author_profile": "https://Stackoverflow.com/users/168864",
"pm_score": 5,
"selected": false,
"text": " static void DummyCall()\n {\n Thread.Sleep(1000000000);\n }\n\n static void Main(string[] args)\n... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
145,321 | <p>For some reason after I installed Boot Camp, my os x terminal started to point to the Boot Camp drive instead of my os x home directory by default! Once in the terminal I know how to switch back an forth and am able to do that, but I was wondering how to make my terminal default back to my os x home folder?</p>
<p>... | [
{
"answer_id": 145339,
"author": "Thorsten79",
"author_id": 19734,
"author_profile": "https://Stackoverflow.com/users/19734",
"pm_score": 4,
"selected": false,
"text": "cd <directory>\n\nin /Users/<yourUserName>/.profile\n"
}
] | 2008/09/28 | [
"https://Stackoverflow.com/questions/145321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/877/"
] |
145,335 | <p>I know how to lighten the colors for certain commands, however I'd like to lighten the standard ansi colors across all commands.</p>
| [
{
"answer_id": 145444,
"author": "quackingduck",
"author_id": 3624,
"author_profile": "https://Stackoverflow.com/users/3624",
"pm_score": 4,
"selected": true,
"text": "rxvt*background: #000000\nrxvt*foreground: #7f7f7f\nrxvt*color0: #000000\nrxvt*color1: #9e1828\nrxvt*color2:... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3624/"
] |
145,337 | <ol>
<li>What is the most efficient way to check if an array is <strong>a flat array
of primitive values</strong> or if it is a <strong>multidimensional array</strong>?</li>
<li>Is there any way to do this without actually looping through an
array and running <code>is_array()</code> on each of its elements?</li>
</ol>
| [
{
"answer_id": 145342,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 3,
"selected": false,
"text": "is_array()"
},
{
"answer_id": 145343,
"author": "Community",
"author_id": -1,
"author_profile": "http... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145337",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5291/"
] |
145,354 | <p>After searching online, the best solution I've found so far is to just make a symbolic link in either "/Library/logs/" or "~/Library/logs/" to get it to show up in the Console application.</p>
<p>I'm wondering if it would be possible to add a new directory or log file to the "root" level directly under the "LOG FIL... | [
{
"answer_id": 523000,
"author": "Tao Zhyn",
"author_id": 873,
"author_profile": "https://Stackoverflow.com/users/873",
"pm_score": 5,
"selected": false,
"text": "~/Library/Logs /opt/local/apache2/logs # cd ~/Library/Logs\n# ln -s /opt/local/apache2/logs/ apache2 \n"
},
{
"answer... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5291/"
] |
145,376 | <p>Would it be possible to write a class that is virtually indistinguishable from an actual PHP array by implementing all the necessary SPL interfaces? Are they missing anything that would be critical?</p>
<p>I'd like to build a more advanced Array object, but I want to make sure I wouldn't break an existing app that ... | [
{
"answer_id": 145428,
"author": "Bob Fanger",
"author_id": 19165,
"author_profile": "https://Stackoverflow.com/users/19165",
"pm_score": 4,
"selected": true,
"text": "gettype($FakeArray) == 'array' \nis_array($FakeArray)\n"
},
{
"answer_id": 145606,
"author": "Eran Galperin"... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5291/"
] |
145,389 | <p>As I am using for-loops on large multi-dim arrays, any saving on the for-loop mechanism itself is meaningful.</p>
<p>Accordingly, I am looking for any tips on how to reduce this overhead.</p>
<p>e.g. : counting down using uint instead of int and != 0 as stop instead of >0 allows the CPU to do less work (heard it o... | [
{
"answer_id": 145392,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 4,
"selected": false,
"text": "for row = 0 to 999\n for col = 0 to 999\n cell[row*1000+col] = row * 7 + col\n for row = 0 to 999\n x = row... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145389",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/195/"
] |
145,400 | <p>How do I dictate the destination folder of a clickOnce application?</p>
| [
{
"answer_id": 145422,
"author": "Sören Kuklau",
"author_id": 1600,
"author_profile": "https://Stackoverflow.com/users/1600",
"pm_score": 5,
"selected": true,
"text": "Apps"
}
] | 2008/09/28 | [
"https://Stackoverflow.com/questions/145400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23149/"
] |
145,440 | <p>I have an application written using VS2005 in C# targeting the Compact Framework 2.0 SP2. As part of the solution, I have CAB deploy project which deploys to the device without a problem. What I can't do is create a shortcut to my application on the devices desktop.</p>
<p>I have spent several hours reading various... | [
{
"answer_id": 377749,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "SHORTCUT = XX#\"\\Program Path...\"?\\Icon File Path...,-Icon Number\n Ex: 86#\"\\Storage Card\\Logical Sky CEdit\\cedit.exe\"... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16076/"
] |
145,443 | <p>If I use multiple repositories, all located under a single root folder, how can I set it up so that they will use a single master <code>svnconf</code>/<code>passwd</code> file for setup but still allow me to customize each if the need arises?</p>
<p>This is on Windows, but I guess the process would be similar on ot... | [
{
"answer_id": 145453,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 1,
"selected": false,
"text": "conf/svnserve.conf password-db [general]"
},
{
"answer_id": 145463,
"author": "MarkR",
"author_id": 13724... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/342/"
] |
145,449 | <p>Notice in the bottom right hand corner of this page it has the SVN revision id? I'm assuming that's dynamic.</p>
<p>I'd love to add that to some of my sites, just as a comment in the source to make sure code pushes are going through.</p>
<p>NOTE: You can also assume that the working directory of the site in questi... | [
{
"answer_id": 145470,
"author": "Sören Kuklau",
"author_id": 1600,
"author_profile": "https://Stackoverflow.com/users/1600",
"pm_score": 4,
"selected": true,
"text": "svnversion svnversion"
},
{
"answer_id": 145475,
"author": "Brian Sadler",
"author_id": 6912,
"autho... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10680/"
] |
145,508 | <p>If you think it shouldn't, explain why.</p>
<p>If yes, how deep should the guidelines be in your opinion? For example, indentation of code should be included?</p>
| [
{
"answer_id": 185085,
"author": "John Dibling",
"author_id": 241536,
"author_profile": "https://Stackoverflow.com/users/241536",
"pm_score": 2,
"selected": false,
"text": "for( int n = 0; n < 42; ++42 ) {\n // blah\n}\n for(int n = 0; n < 42; ++42 )\n{\n // blah\n}\n"
}
] | 2008/09/28 | [
"https://Stackoverflow.com/questions/145508",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23034/"
] |
145,509 | <p>Title is the entire question. Can someone give me a reason why this happens?</p>
| [
{
"answer_id": 145516,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 8,
"selected": true,
"text": "y.Length x.Substring(0, y.Length).Equals(y)"
},
{
"answer_id": 208910,
"author": "Pop Catalin",
"author_i... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145509",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11137/"
] |
145,552 | <p>I basically want to do this:</p>
<pre><code>grep 'example.com' www_log > example.com.YYYY-MM-DD-H:i:S.log
</code></pre>
<p>...with of course the filename being <b>example.com.2008-09-27-11:21:30.log</b></p>
<p>I'd then put this in crontab to run daily.</p>
| [
{
"answer_id": 145554,
"author": "Michael Ridley",
"author_id": 4838,
"author_profile": "https://Stackoverflow.com/users/4838",
"pm_score": 4,
"selected": true,
"text": "grep 'example.com' www_log > `date +example.com.%Y-%m-%d-%H:%M:%S.log`\n grep 'example.com' www_log > `date +example.c... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145552",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
145,563 | <p>Suppose we have a vector/array in C++ and we wish to count which of these N elements has maximum repetitive occurrences and output the highest count. Which algorithm is best suited for this job.</p>
<p>example:</p>
<pre><code>int a = { 2, 456, 34, 3456, 2, 435, 2, 456, 2}
</code></pre>
<p>the output is 4 because ... | [
{
"answer_id": 145579,
"author": "UnkwnTech",
"author_id": 115,
"author_profile": "https://Stackoverflow.com/users/115",
"pm_score": 1,
"selected": false,
"text": "//split string into array firts\nstrsplit(numbers) //PHP function name to split a string into it's components\ni=0\nwhile( i... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8786/"
] |
145,570 | <p>The following have been proposed for an upcoming C++ project.</p>
<ul>
<li>C++ Coding Standards, by Sutter and Alexandrescu</li>
<li>JSF Air Vehicle C++ coding standards</li>
<li>The Elements of C++ Style</li>
<li>Effective C++ 3rd Edition, by Scott Meyers</li>
</ul>
<p>Are there other choices? Or is the list abo... | [
{
"answer_id": 145604,
"author": "Harald Scheirich",
"author_id": 22080,
"author_profile": "https://Stackoverflow.com/users/22080",
"pm_score": 4,
"selected": true,
"text": "m_"
}
] | 2008/09/28 | [
"https://Stackoverflow.com/questions/145570",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22807/"
] |
145,573 | <p>I have three related questions. </p>
<p>I want to create a word file with a name from C++. I want to be able to sent the printing command to this file, so that the file is being printed without the user having to open the document and do it manually and I want to be able to open the document. Opening the document s... | [
{
"answer_id": 8332989,
"author": "ctype.h",
"author_id": 1224599,
"author_profile": "https://Stackoverflow.com/users/1224599",
"pm_score": 0,
"selected": false,
"text": "start /min winword <filename> /q /n /f /mFilePrint /mFileExit\n <filename> file.rtf \"A File.docx\" system(\"start /m... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145573",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23163/"
] |
145,607 | <p>I need an algorithm that can compare two text files and highlight their difference and ( even better!) can compute their difference in a meaningful way (like two similar files should have a similarity score higher than two dissimilar files, with the word "similar" defined in the normal terms). It sounds easy to imp... | [
{
"answer_id": 146957,
"author": "tzot",
"author_id": 6899,
"author_profile": "https://Stackoverflow.com/users/6899",
"pm_score": 6,
"selected": true,
"text": "difflib def text_compare(text1, text2, isjunk=None):\n return difflib.SequenceMatcher(isjunk, text1, text2).ratio()\n"
}
] | 2008/09/28 | [
"https://Stackoverflow.com/questions/145607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] |
145,617 | <p>The case goes as following:
You have a Boolean property called FullScreenEnabled. You enter some method, and the code within this method is executed iff FullScreenEnabled is true. Which of the 2 approaches below do you use in your everyday programming:</p>
<pre><code> private bool FullScreenEnabled { get; set; }... | [
{
"answer_id": 145625,
"author": "Oskar",
"author_id": 5472,
"author_profile": "https://Stackoverflow.com/users/5472",
"pm_score": 5,
"selected": true,
"text": "private void MyMethod(bool arg){\n if(arg)\n return;\n //do stuff\n};\n"
},
{
"answer_id": 145627,
"autho... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/113670/"
] |
145,657 | <p>I need to compare large count of PDF files for it optical content. Because the PDF files was created on different platforms and with different versions of the software there are structural differences. For example:</p>
<ul>
<li>the chunking of text can be different</li>
<li>the write order can be different</li>
<li... | [
{
"answer_id": 2235509,
"author": "akaihola",
"author_id": 15770,
"author_profile": "https://Stackoverflow.com/users/15770",
"pm_score": 4,
"selected": false,
"text": "$ convert -density 150x150 -fill red -opaque black +antialias 1.pdf back%02d.png\n$ convert -density 150x150 -transparen... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12631/"
] |
145,689 | <p>Design patterns are usually related to object oriented design.<br>
<strong>Are there <a href="http://en.wikipedia.org/wiki/Design_pattern_(computer_science)" rel="noreferrer">design patterns</a> for creating and programming <a href="http://en.wikipedia.org/wiki/Relational_database" rel="noreferrer">relational databa... | [
{
"answer_id": 145756,
"author": "Sören Kuklau",
"author_id": 1600,
"author_profile": "https://Stackoverflow.com/users/1600",
"pm_score": 1,
"selected": false,
"text": "UPSERT MERGE UPDATE INSERT"
}
] | 2008/09/28 | [
"https://Stackoverflow.com/questions/145689",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7028/"
] |
145,699 | <p>At the moment I use PHP for almost everything I develop for the Web but its linguistic limitations are starting to annoy me. However, as I developed some practices and maintain some PHP libraries that help me a lot, I don't feel I'd be ready to just switch to LISP throwing away all my PHP output. It could even be im... | [
{
"answer_id": 145754,
"author": "Mikael Jansson",
"author_id": 18753,
"author_profile": "https://Stackoverflow.com/users/18753",
"pm_score": 3,
"selected": false,
"text": "defmacro.org"
}
] | 2008/09/28 | [
"https://Stackoverflow.com/questions/145699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22827/"
] |
145,701 | <p>Could anyone show me a sample about how to use these two commands in Windbg please? I read the document in debugger.chm, but confused. I did search in Google and MSDN, but not find an easy to learn sample.</p>
| [
{
"answer_id": 145782,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 2,
"selected": false,
"text": " 1 x = 0\n 2 y = 0\n 3 call 8\n 4 x = 5\n 5 y = 7\n 6 call 8\n 7 halt\n\n 8 print x\n 9 print y\n10 call 12\n1... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
145,752 | <p>For the most part, you just take whatever Visual Studio sets it for you as a default... I'm referring to the <a href="https://learn.microsoft.com/en-us/visualstudio/ide/build-actions?view=vs-2019" rel="noreferrer">BuildAction</a> property for each file selected in Solution Explorer. There are a number of options and... | [
{
"answer_id": 145769,
"author": "Gishu",
"author_id": 1695,
"author_profile": "https://Stackoverflow.com/users/1695",
"pm_score": 10,
"selected": false,
"text": "xaml baml baml Resource SplashScreen"
},
{
"answer_id": 702249,
"author": "James Moore",
"author_id": 73046,
... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1695/"
] |
145,753 | <p>I've got a project that was written in BASIC. I'm not sure of the exact reason, but the app will not function except when being run from a FAT-16 file system.</p>
<p>I'd rather try to set up an environment that will support this app in a modern OS (Vista/XP) instead of rewriting it.</p>
<p>Does anyone know how to g... | [
{
"answer_id": 145776,
"author": "mdb",
"author_id": 8562,
"author_profile": "https://Stackoverflow.com/users/8562",
"pm_score": 3,
"selected": false,
"text": "CALL PEEK POKE IN OUT OPEN \"file\" FOR whatever AS #1"
}
] | 2008/09/28 | [
"https://Stackoverflow.com/questions/145753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10589/"
] |
145,770 | <p>There is a webpage loaded in the firefox sidebar and another webpage loaded in the main document. Now, how do I ask access the main document object through the Firefox sidebar? An example to do this through Javascript code in the firefox sidebar document to access the main document would be helpful.</p>
<p>Thanks f... | [
{
"answer_id": 145791,
"author": "ConroyP",
"author_id": 2287,
"author_profile": "https://Stackoverflow.com/users/2287",
"pm_score": 1,
"selected": false,
"text": "#document\n window main-window\n ...\n browser\n #document\n window sidebar... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6488/"
] |
145,771 | <p>I have tried to find how to create DLL-s on linux using google, but got very confusing information.</p>
<p>Is it possible to write dynamic link libraries on linux? If not, are there other means by which I can call code in another module from several running programs?</p>
| [
{
"answer_id": 145794,
"author": "Andrew Edgecombe",
"author_id": 11694,
"author_profile": "https://Stackoverflow.com/users/11694",
"pm_score": 3,
"selected": false,
"text": ".so .so -shared \ngcc -shared -o libfoo.so foo.c\n -l \nld -o a.out -lfoo someobject.o \n .so .dll"
}
] | 2008/09/28 | [
"https://Stackoverflow.com/questions/145771",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15161/"
] |
145,803 | <p>I have a little dilemma on how to set up my visual studio builds for multi-targeting.</p>
<p>Background: c# .NET v2.0 with p/invoking into 3rd party 32 bit DLL's, SQL compact v3.5 SP1, with a Setup project.
Right now, the platform target is set to x86 so it can be run on Windows x64.</p>
<p>The 3rd party company ... | [
{
"answer_id": 145903,
"author": "mdb",
"author_id": 8562,
"author_profile": "https://Stackoverflow.com/users/8562",
"pm_score": 7,
"selected": true,
"text": "<Reference Include=\"Filename, ..., processorArchitecture=x86\">\n <HintPath>C:\\path\\to\\x86\\DLL</HintPath>\n</Reference>\n <... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3584/"
] |
145,814 | <p>Following techniques from 'Modern C++ Design', I am implementing a persistence library with various compile-time optimisations. I would like the ability to dispatch a function to a templated member variable if that variable derives from a given class:</p>
<pre><code>template<class T, template <class> class... | [
{
"answer_id": 145859,
"author": "user23167",
"author_id": 23167,
"author_profile": "https://Stackoverflow.com/users/23167",
"pm_score": 0,
"selected": false,
"text": "error: cannot dynamic_cast '((const Data<double, DefaultManager>*)this)->Data<double, RawManager>::data_' (of type 'doub... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23167/"
] |
145,828 | <p>I have a project I'm working on (for school) that I'm digging into the Boost libraries for the solutions. I need some way to distribute the required Boost source code with my application so that it can be compiled without the libraries being installed on the system doing the compiling. (School computers lack just ab... | [
{
"answer_id": 148195,
"author": "Daniel James",
"author_id": 2434,
"author_profile": "https://Stackoverflow.com/users/2434",
"pm_score": 2,
"selected": false,
"text": "\"c:\\Program Files\\boost\\boost_1_34_1\\bin\\bcp.exe\" --boost=\"c:\\Program Files\\boost\\boost_1_34_1\" regex regex... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16204/"
] |
145,838 | <p>What is the advantages/disadvantages of using inline functions in C++? I see that it only increases performance for the code that the compiler outputs, but with today's optimized compilers, fast CPUs, huge memory etc. (not like in the 1980< where memory was scarce and everything had to fit in 100KB of memory) wha... | [
{
"answer_id": 145841,
"author": "Brian R. Bondy",
"author_id": 3153,
"author_profile": "https://Stackoverflow.com/users/3153",
"pm_score": 8,
"selected": true,
"text": "inline int aplusb_pow2(int a, int b) {\n return (a + b)*(a + b) ;\n}\n\nfor(int a = 0; a < 900000; ++a)\n for(int ... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22040/"
] |
145,842 | <p>I'm interested in finding out what people would consider the most useful data structures to know in programming. What data structure do you find yourself using all the time? </p>
<p>Answers to this post should help new programmers interested in finding a useful data structure for their problem. Answers should proba... | [
{
"answer_id": 146042,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 6,
"selected": true,
"text": "Dictionary<keytype, valuetype>"
}
] | 2008/09/28 | [
"https://Stackoverflow.com/questions/145842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20388/"
] |
145,855 | <p>All,</p>
<p>As part of an application I'm writing I need to have a HTTP PUT webservice which accepts incoming imagedata, which will by analyzed, validated, and added to a local file store.</p>
<p>My issue arises after the size validation as the </p>
<blockquote>
<p><code>$_SERVER['CONTENT_LENGTH']</code></p>
</... | [
{
"answer_id": 145874,
"author": "dirtside",
"author_id": 20903,
"author_profile": "https://Stackoverflow.com/users/20903",
"pm_score": 0,
"selected": false,
"text": "r file_get_contents a/r/w/a+/r+/w+ fopen file_get_contents('php://input');\n"
},
{
"answer_id": 145881,
"auth... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11000/"
] |
145,856 | <p>I have an array of integers:</p>
<pre><code>int[] number = new int[] { 2,3,6,7 };
</code></pre>
<p>What is the easiest way of converting these into a single string where the numbers are separated by a character (like: <code>"2,3,6,7"</code>)?</p>
<p>I'm using C# and .NET 3.5.</p>
| [
{
"answer_id": 145864,
"author": "aku",
"author_id": 1196,
"author_profile": "https://Stackoverflow.com/users/1196",
"pm_score": 8,
"selected": true,
"text": "var ints = new int[] {1, 2, 3, 4, 5};\nvar result = string.Join(\",\", ints.Select(x => x.ToString()).ToArray());\nConsole.WriteL... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/298/"
] |
145,880 | <p>The Objective Caml language will only produce stack traces if you ask for them just right - what are the requirements for both bytecode and native code?</p>
| [
{
"answer_id": 17256766,
"author": "Marc Weber",
"author_id": 674804,
"author_profile": "https://Stackoverflow.com/users/674804",
"pm_score": 3,
"selected": false,
"text": "export OCAMLRUNPARAM=b\n# compile with -g\n\nflush_all(); let r = Unix.fork() in if r == 0 then raise Exit\n"
},
... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145880",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12874/"
] |
145,887 | <p>I want to display a thumbnail image in a <code>cell</code> of <code>tableViewController</code>, this thumbnail image is located at some remote place (URL of address is in XML file) so which format of image is cost effective?</p>
| [
{
"answer_id": 145898,
"author": "Sören Kuklau",
"author_id": 1600,
"author_profile": "https://Stackoverflow.com/users/1600",
"pm_score": 3,
"selected": true,
"text": "optipng jpegtran"
},
{
"answer_id": 146211,
"author": "catlan",
"author_id": 23028,
"author_profile"... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/451867/"
] |
145,894 | <p>I could not find any pointers on how to create a menubar icon on OSX using wx. I originally thought that the wxTaskBarIcon class would do, but it actually creates an icon on the Dock. On Windows, wxTaskBarIcon creates a Systray icon and associated menu, and I would think that on mac osx it would create a menubar ico... | [
{
"answer_id": 145918,
"author": "Sören Kuklau",
"author_id": 1600,
"author_profile": "https://Stackoverflow.com/users/1600",
"pm_score": 3,
"selected": true,
"text": "wxTaskBarIconType STATUSITEM DOCK NSStatusBar NSStatusItem"
},
{
"answer_id": 25845284,
"author": "GP89",
... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21943/"
] |
145,900 | <p>I have an install that upgrades a previous version of an app if it exits. I'd like to skip certain actions when the install is upgrade mode. How can I determine if the install is running in upgrade mode vs. first time install mode?</p>
<p>I'm using Wise Installer, but I don't think that matters. I'm assuming that W... | [
{
"answer_id": 146063,
"author": "Vivek",
"author_id": 7418,
"author_profile": "https://Stackoverflow.com/users/7418",
"pm_score": 2,
"selected": false,
"text": " <!-- Property definitions -->\n <?define SkuName = \"MyCoolApp\"?>\n <?define ProductName=\"My Cool Application\"?>\n <?d... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22984/"
] |
145,922 | <p>I've managed to get a memory 'leak' in a java application I'm developing. When running my JUnit test suite I randomly get out of memory exceptions (java.lang.OutOfMemoryError).</p>
<p>What tools can I use to examine the heap of my java application to see what's using up all my heap so that I can work out what's kee... | [
{
"answer_id": 145945,
"author": "Tom",
"author_id": 22850,
"author_profile": "https://Stackoverflow.com/users/22850",
"pm_score": 6,
"selected": true,
"text": "jmap -dump:format=b,file=heap.bin <pid>\n jmap -histo <pid>\n"
}
] | 2008/09/28 | [
"https://Stackoverflow.com/questions/145922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1849/"
] |
145,969 | <p>I've got a sections table, and an items table.</p>
<p>The problem is each item may be in one or more sections, so a simple 'section_id' for each item won't work, and sql doesn't have a way to store arrays where I can do say "WHERE 5 in section_ids"...</p>
<p>I've considered storing the list of ids as a comma separ... | [
{
"answer_id": 145985,
"author": "albertein",
"author_id": 23020,
"author_profile": "https://Stackoverflow.com/users/23020",
"pm_score": 0,
"selected": false,
"text": "Items - ItemsPerSection - Secion\nitemid <-> itemid\n sectionid <-> sectionid\n"
},
... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6266/"
] |
145,972 | <p>I need to setup LookAndFeel Files in JDK 1.6.
I have two files:</p>
<ol>
<li><p>napkinlaf-swingset2.jar</p></li>
<li><p>napkinlaf.jar</p></li>
</ol>
<p>How can I set this up and use it?</p>
<p>I would like a GTK look and feel OR Qt look and feel, Are they available?</p>
| [
{
"answer_id": 145996,
"author": "Tom",
"author_id": 22850,
"author_profile": "https://Stackoverflow.com/users/22850",
"pm_score": 3,
"selected": false,
"text": "java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel MyApp\n UIManager.setLookAndFeel(\"javax.swing.plaf.metal.M... | 2008/09/28 | [
"https://Stackoverflow.com/questions/145972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22634/"
] |
146,020 | <p>I'm doing some Android development, and I much prefer Visual Studio, but I'll have to use <em>Eclipse</em> for this.</p>
<p>Has anyone made a tool which can make <em>Eclipse</em> look and behave more like visual studio? I mainly can't stand its <strong>clippyesqe</strong> suggestions on how I should program (Yes, I... | [
{
"answer_id": 373079,
"author": "jcollum",
"author_id": 30946,
"author_profile": "https://Stackoverflow.com/users/30946",
"pm_score": 2,
"selected": false,
"text": "this.myString myString myString myString"
}
] | 2008/09/28 | [
"https://Stackoverflow.com/questions/146020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] |
146,038 | <p>From time to time I browse the web and look for interesting algorithms and datastructures to put into my bag of tricks. A year ago I came across the <a href="http://en.wikipedia.org/wiki/Soft_heap" rel="noreferrer">Soft Heap</a> data-structure and learned about near sorting.</p>
<p>The idea behind this is that it's... | [
{
"answer_id": 5814917,
"author": "Ryan C. Thompson",
"author_id": 125921,
"author_profile": "https://Stackoverflow.com/users/125921",
"pm_score": -1,
"selected": false,
"text": "sort nearsort"
}
] | 2008/09/28 | [
"https://Stackoverflow.com/questions/146038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15955/"
] |
146,081 | <p>I'm writing an interactive function that I'd like to have remember the last argument the user supplied and use it as the default. </p>
<pre><code>(defun run-rake (param)
(interactive "sTask: ")
(shell-command (format "rake %s" task)))
</code></pre>
<p>The first time the function is invoked I want it to rememb... | [
{
"answer_id": 146139,
"author": "Kyle Burton",
"author_id": 19784,
"author_profile": "https://Stackoverflow.com/users/19784",
"pm_score": 0,
"selected": false,
"text": "(defvar *editconf-ruby-run-rake-last-rake-task* nil)\n\n(defun editconf-ruby-run-rake-last-rake-task (&optional new-va... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19784/"
] |
146,093 | <p>I have several types of entities, each with their own fields, which are stored in separate tables.<br>
Each record in such a table may be connected to zero or more records in a different table, i.e., linked to records from different entity types.<br>
If I go with lookup tables, I get (m(m-1))/2=O(m^2) separate looku... | [
{
"answer_id": 146165,
"author": "Henning",
"author_id": 7034,
"author_profile": "https://Stackoverflow.com/users/7034",
"pm_score": 2,
"selected": false,
"text": "CREATE TABLE base (\n id int(10) unsigned NOT NULL auto_increment,\n type enum('type1','type2') NOT NULL,\n PRIMARY KEY ... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23202/"
] |
146,097 | <p>Is there a prebuilt tool that would integrate with BEA/Oracle Weblogic 10.0 and trace on a database table each call to a web service exposed by the server?</p>
<p>UPDATE: the goal is <strong>not</strong> to debug the web services (they are working well). The objective is to <strong>trace each call</strong> on a tab... | [
{
"answer_id": 146165,
"author": "Henning",
"author_id": 7034,
"author_profile": "https://Stackoverflow.com/users/7034",
"pm_score": 2,
"selected": false,
"text": "CREATE TABLE base (\n id int(10) unsigned NOT NULL auto_increment,\n type enum('type1','type2') NOT NULL,\n PRIMARY KEY ... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23034/"
] |
146,106 | <p>This question is about organizing the actual CSS directives themselves within a .css file. When developing a new page or set of pages, I usually just add directives by hand to the .css file, trying to refactor when I can. After some time, I have hundreds (or thousands) of lines and it can get difficult to find wha... | [
{
"answer_id": 146115,
"author": "Nick Sergeant",
"author_id": 22468,
"author_profile": "https://Stackoverflow.com/users/22468",
"pm_score": 2,
"selected": false,
"text": ".class {border: 1px solid #000; padding: 0; margin: 0;}\n"
},
{
"answer_id": 146122,
"author": "Oli",
... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146106",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21632/"
] |
146,134 | <p>I need a robust and simple way to remove illegal path and file characters from a simple string. I've used the below code but it doesn't seem to do anything, what am I missing?</p>
<pre><code>using System;
using System.IO;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] arg... | [
{
"answer_id": 146162,
"author": "Matthew Scharley",
"author_id": 15537,
"author_profile": "https://Stackoverflow.com/users/15537",
"pm_score": 10,
"selected": true,
"text": "string illegal = \"\\\"M\\\"\\\\a/ry/ h**ad:>> a\\\\/:*?\\\"| li*tt|le|| la\\\"mb.?\";\nstring invalid = new stri... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13227/"
] |
146,140 | <p>I have an OpenGL RGBA texture and I blit another RGBA texture onto it using a framebuffer object. The problem is that if I use the usual blend functions with
<code>glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA),</code>
the resulting blit causes the destination texture alpha to change, making it slightly transpar... | [
{
"answer_id": 146161,
"author": "Nils Pipenbrinck",
"author_id": 15955,
"author_profile": "https://Stackoverflow.com/users/15955",
"pm_score": 4,
"selected": true,
"text": "void glBlendFuncSeparate(\n GLenum srcRGB, \n GLenum dstRGB, \n GLenum srcAlpha, \n GLenum dstAlpha);\... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
146,153 | <p>I need to randomly fade my background images in and out.</p>
<p>It will be a timed function, like once every 5 seconds.<br>
I need to do it with ASP.NET, Javascript, CSS or all three.</p>
<p>Please help me out here guys. Thank you.</p>
| [
{
"answer_id": 146181,
"author": "SpoiledTechie.com",
"author_id": 7644,
"author_profile": "https://Stackoverflow.com/users/7644",
"pm_score": 2,
"selected": false,
"text": "<html>\n<head>\n<!--\nThis file retrieved from the JS-Examples archives\nhttp://www.js-examples.com\n1000s of free... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146153",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7644/"
] |
146,159 | <p>From time to time I read that Fortran is or can be faster then C for heavy calculations. Is that really true? I must admit that I hardly know Fortran, but the Fortran code I have seen so far did not show that the language has features that C doesn't have.</p>
<p>If it is true, please tell me why. Please don't tell ... | [
{
"answer_id": 146186,
"author": "Nils Pipenbrinck",
"author_id": 15955,
"author_profile": "https://Stackoverflow.com/users/15955",
"pm_score": 10,
"selected": true,
"text": "void transform (float *output, float const * input, float const * matrix, int *n)\n{\n int i;\n for (i=0; i... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18687/"
] |
146,204 | <p>Are there any dictionary classes in the .NET base class library which allow duplicate keys to be used? The only solution I've found is to create, for example, a class like:</p>
<pre><code>Dictionary<string, List<object>>
</code></pre>
<p>But this is quite irritating to actually use. In Java, I believ... | [
{
"answer_id": 146213,
"author": "MADMap",
"author_id": 17558,
"author_profile": "https://Stackoverflow.com/users/17558",
"pm_score": 4,
"selected": false,
"text": "List<KeyValuePair<object, object>>"
},
{
"answer_id": 146227,
"author": "Jon Skeet",
"author_id": 22656,
... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
146,212 | <p>I have a table of "items", and a table of "itemkeywords".
When a user searches for a keyword, I want to give him one page of results plus the total number of results.</p>
<p>What I'm doing currently is (for a user that searches "a b c": </p>
<pre><code>SELECT DISTINCT {fields I want} FROM itemkeywords JOIN items ... | [
{
"answer_id": 146229,
"author": "ysth",
"author_id": 17389,
"author_profile": "https://Stackoverflow.com/users/17389",
"pm_score": 4,
"selected": true,
"text": "mysql> SELECT SQL_CALC_FOUND_ROWS * FROM tbl_name\n -> WHERE id > 100 LIMIT 10;\nmysql> SELECT FOUND_ROWS();\n"
},
{
... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146212",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3314/"
] |
146,230 | <p>In Nant, I would like to be able to extract the last name of the directory in a path.<br>
For example, we have the path 'c:\my_proj\source\test.my_dll\'</p>
<p>I would like to pass in that path and extract 'test.my_dll'</p>
<p>Is there a way to easily do this?</p>
| [
{
"answer_id": 14837268,
"author": "Paul'OS",
"author_id": 2065512,
"author_profile": "https://Stackoverflow.com/users/2065512",
"pm_score": 2,
"selected": false,
"text": "<property name=\"some.dir\" value=\"c:\\my_proj\\source\\test.my_dll\" />\n<property name=\"some.dir.parent\" value=... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10703/"
] |
146,250 | <p>Should I push keypresses to vehicles when they're pressed, or should vehicles pull keys pressed from the engine?</p>
<p>I have a vehicle object, which has location, velocity and accelleration members (among other things) and an update method, during which it updates its location based on its velocity, and its vevlo... | [
{
"answer_id": 146264,
"author": "Ryan",
"author_id": 17917,
"author_profile": "https://Stackoverflow.com/users/17917",
"pm_score": 1,
"selected": false,
"text": "def handle_key_event(name_of_key):"
},
{
"answer_id": 161132,
"author": "Jeff",
"author_id": 16639,
"auth... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16676/"
] |
146,269 | <p>I need to change the DataTemplate for items in a ListBox depending on whether the item is selected or not (displaying different/more information when selected).</p>
<p>I don't get a GotFocus/LostFocus event on the top-most element in the DataTemplate (a StackPanel) when clicking the ListBox item in question (only t... | [
{
"answer_id": 146423,
"author": "Micah",
"author_id": 17744,
"author_profile": "https://Stackoverflow.com/users/17744",
"pm_score": 9,
"selected": true,
"text": "<Window.Resources>\n\n<DataTemplate x:Key=\"ItemTemplate\">\n <TextBlock Text=\"{Binding}\" Foreground=\"Red\" />\n</DataT... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23222/"
] |
146,271 | <p><strong>EDIT: This question is more about language engineering than C++ itself. I used C++ as an example to show what I wanted, mostly because I use it daily. I didn't want to know how it works on C++ but open a discussion on how it <em>could</em> be done.</strong></p>
<p>That's not the way it works right now, that... | [
{
"answer_id": 146285,
"author": "user7545",
"author_id": 7545,
"author_profile": "https://Stackoverflow.com/users/7545",
"pm_score": 1,
"selected": false,
"text": "void myFunct(int cantChangeMyValue)\n void myFunct(int* cantChangeMyAddress) {\n *cantChangeMyAddress = 10;\n}\n void my... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18623/"
] |
146,275 | <p>I have a templated class defined (in part) as</p>
<pre><code>template <class T> MyClass
{
public:
void DoSomething(){}
};
</code></pre>
<p>If I want to call DoSomething from another class, but be able to do this for multiple 'T' types in the same place, I am stuck for an idea as method functions pointers ... | [
{
"answer_id": 146309,
"author": "Evan Teran",
"author_id": 13430,
"author_profile": "https://Stackoverflow.com/users/13430",
"pm_score": 5,
"selected": true,
"text": "class Base { \npublic:\n virtual ~Base(){}\n virtual void DoSomething() = 0;\n}\n\ntemplate <class T> class MyClass : ... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23167/"
] |
146,291 | <p>I have a problem with <strong>scandir()</strong>: The manpage contains this as prototype:</p>
<pre><code>int scandir(const char *dir, struct dirent ***namelist,
int (*filter)(const struct dirent *),
int (*compar)(const struct dirent **, const struct dirent **));
</code></pre>
<p>Therefore I have this:</p>
<pr... | [
{
"answer_id": 146352,
"author": "Chris Young",
"author_id": 9417,
"author_profile": "https://Stackoverflow.com/users/9417",
"pm_score": 4,
"selected": true,
"text": "static inline int RubyCompare(const void *a, const void *b)\n{\n return(strcmp((*(struct dirent **)a)->d_name, \n ... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18179/"
] |
146,297 | <p>With a huge influx of newbies to Xcode, I'm sure there are lots of Xcode tips and tricks to be shared.</p>
<p>What are yours? </p>
| [
{
"answer_id": 146304,
"author": "schwa",
"author_id": 23113,
"author_profile": "https://Stackoverflow.com/users/23113",
"pm_score": 7,
"selected": false,
"text": "Double-Click on a symbol Double-Click on a symbol View Layout Show Favorites Bar"
},
{
"answer_id": 146760,
"aut... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23113/"
] |
146,305 | <p>Are there some principles of organizing classes into namespaces?</p>
<p>For example is it OK if classes from namespace N depends on classes from N.X?
And if classes from N.X depends on classes from N?</p>
| [
{
"answer_id": 146312,
"author": "Carra",
"author_id": 21679,
"author_profile": "https://Stackoverflow.com/users/21679",
"pm_score": 2,
"selected": false,
"text": "N.X N N N.X"
}
] | 2008/09/28 | [
"https://Stackoverflow.com/questions/146305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23223/"
] |
146,311 | <p>It says in <a href="http://www.ibm.com/developerworks/java/library/j-jtp04223.html" rel="nofollow noreferrer">this article</a> that: </p>
<blockquote>
<p>Making a class final because it is immutable is a good reason to do so.</p>
</blockquote>
<p>I'm a bit puzzled by this... I understand that immutability is a g... | [
{
"answer_id": 146374,
"author": "Steve Jessop",
"author_id": 13005,
"author_profile": "https://Stackoverflow.com/users/13005",
"pm_score": 3,
"selected": false,
"text": "void checkUrl(MyUrlClass testurl) throws SecurityException {\n if (illegalDomains.contains(testurl.getDomain())) t... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2648/"
] |
146,316 | <p>What number of classes do you think is ideal per one namespace "branch"? At which point would one decide to break one namespace into multiple ones? Let's not discuss the logical grouping of classes (assume they are logically grouped properly), I am, at this point, focused on the maintainable vs. not maintainable num... | [
{
"answer_id": 148481,
"author": "Constantin",
"author_id": 20310,
"author_profile": "https://Stackoverflow.com/users/20310",
"pm_score": 6,
"selected": true,
"text": "# IronPython\nimport System\nexported_types = [\n (t.Namespace, t.Name)\n for t in System.Int32().GetType().Assembly.G... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15497/"
] |
146,320 | <p>First, I'd like to establish the acceptable end-to-end latency for a real-time system in the financial world is less than 200ms. Okay, here's what I'm after. In the design of real-time systems, there are "design patterns" (or techniques) that will increase the performance (i.e. reduce processing time, improve scalab... | [
{
"answer_id": 146510,
"author": "Caerbanog",
"author_id": 23190,
"author_profile": "https://Stackoverflow.com/users/23190",
"pm_score": 1,
"selected": false,
"text": "for(int i=0;i< x/2; i++)\n //do something\n"
}
] | 2008/09/28 | [
"https://Stackoverflow.com/questions/146320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/428965/"
] |
146,354 | <p>I'd like to automatically change my database connection settings on a per-vhost basis, so that I don't have to edit any PHP code as it moves from staging to live and yet access different databases. This is on a single dedicated server.</p>
<p>So I was wondering, can I set a PHP variable or constant in httpd.conf as... | [
{
"answer_id": 146380,
"author": "JW.",
"author_id": 4321,
"author_profile": "https://Stackoverflow.com/users/4321",
"pm_score": 6,
"selected": false,
"text": "SetEnv DATABASE_NAME testing\n $database = $_SERVER[\"DATABASE_NAME\"];\n $database = getenv(\"DATABASE_NAME\");\n"
},
{
... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/137/"
] |
146,358 | <p>I'm using .NET 3.5. I have two string arrays, which may share one or more values:</p>
<pre><code>string[] list1 = new string[] { "apple", "orange", "banana" };
string[] list2 = new string[] { "banana", "pear", "grape" };
</code></pre>
<p>I'd like a way to merge them into one array with no duplicate values:</p>
<... | [
{
"answer_id": 146393,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 2,
"selected": false,
"text": "private static IEnumerable<T> Merge<T>(IEnumerable<T> source1,\n IEnumerable<T> source2)\n{\n return Merge(sour... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146358",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5142/"
] |
146,359 | <p>I am trying to figure out this:</p>
<pre><code>c = 1
def f(n):
print c + n
def g(n):
c = c + n
f(1) # => 2
g(1) # => UnboundLocalError: local variable 'c' referenced before assignment
</code></pre>
<p>Thanks!</p>
| [
{
"answer_id": 146365,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 7,
"selected": true,
"text": "global def g(n):\n global c\n c = c + n\n"
},
{
"answer_id": 146546,
"author": "ironfroggy",
"author... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/462204/"
] |
146,381 | <p>I keep reading about C99 and C++11 and all these totally sweet things that are getting added to the language standard that might be nice to use someday. However, we currently languish in the land of writing C++ in Visual Studio.</p>
<p>Will any of the new stuff in the standard ever get added to visual studio, or is ... | [
{
"answer_id": 146419,
"author": "jakobengblom2",
"author_id": 23054,
"author_profile": "https://Stackoverflow.com/users/23054",
"pm_score": 8,
"selected": true,
"text": "long long __pragma __FUNCTION__ __restrict long long"
}
] | 2008/09/28 | [
"https://Stackoverflow.com/questions/146381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13500/"
] |
146,385 | <p>I am trying to call a webservice using ssl.
How do i get the relevant server cert so that i can import it into my truststore?
I know about the use of property com.ibm.ssl.enableSignerExchangePrompt from a main method but i would add the server cert to my truststore manually.</p>
<p>I dont want this property set in ... | [
{
"answer_id": 146565,
"author": "el_eduardo",
"author_id": 13469,
"author_profile": "https://Stackoverflow.com/users/13469",
"pm_score": 3,
"selected": true,
"text": "\npublic class dummyTrustManager implements X509TrustManager {\n\n public void checkClientTrusted(X509Certificate... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146385",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11612/"
] |
146,387 | <p>I'd like to get <strong>uniform distribution</strong> in range [0.0, 1.0)</p>
<p>If possible, please let the implementation make use of random bytes from <strong>/dev/urandom.</strong></p>
<p>It would also be nice if your solution was <strong>thread-safe</strong>. If you're not sure, please indicate that.</p>
<p>... | [
{
"answer_id": 146410,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "#include <stdlib.h>\nprintf(\"%f\\n\", drand48());\n double c;\nfd = open(\"/dev/random\", O_RDONLY);\nunsigned int a, b;\nrea... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9403/"
] |
146,390 | <p>In python you can use a tuple in a formatted print statement and the tuple values are used at the indicated positions in the formatted string. For example:</p>
<pre><code>>>> a = (1,"Hello",7.2)
>>> print "these are the values %d, %s, %f" % a
these are the values 1, Hello, 7.200000
</code></pre>
... | [
{
"answer_id": 146408,
"author": "Tom Hawtin - tackline",
"author_id": 4725,
"author_profile": "https://Stackoverflow.com/users/4725",
"pm_score": 5,
"selected": true,
"text": "public PrintString printf(String format, Object... args);\n [] ... out.printf(\"%s:%s\", a, b);\n out.p... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4138/"
] |
146,391 | <p>I can't figure out a use case for being able to annotate interfaces in Java. </p>
<p>Maybe someone could give me an example?</p>
| [
{
"answer_id": 7962199,
"author": "Phyxx",
"author_id": 157605,
"author_profile": "https://Stackoverflow.com/users/157605",
"pm_score": 0,
"selected": false,
"text": "final RESTInterfaceV1 client = ProxyFactory.create(RESTInterfaceV1.class, \"http://localhost:8080/rest\");\n"
},
{
... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2443/"
] |
146,435 | <p>I have a file temp.txt, that I want to sort with the <code>sort</code> command in bash.</p>
<p>I want the sorted results to replace the original file.</p>
<p>This doesn't work for example (I get an empty file):</p>
<pre><code>sortx temp.txt > temp.txt
</code></pre>
<p>Can this be done in one line without reso... | [
{
"answer_id": 146441,
"author": "slim",
"author_id": 7512,
"author_profile": "https://Stackoverflow.com/users/7512",
"pm_score": 2,
"selected": false,
"text": "ex"
},
{
"answer_id": 146445,
"author": "davr",
"author_id": 14569,
"author_profile": "https://Stackoverflo... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/814/"
] |
146,439 | <p>Here's the idea, I'd like to make a service? that will look for a certain program starting up and dissallow it unless certain conditions are met. </p>
<p>Let's say I have a game I want to stop myself from playing during the week. So if I start it up on any day other than Friday/Saturday/Sunday, it will intercept a... | [
{
"answer_id": 146474,
"author": "itsmatt",
"author_id": 7862,
"author_profile": "https://Stackoverflow.com/users/7862",
"pm_score": 4,
"selected": true,
"text": "Process[] processes = Process.GetProcessesByName(processName);\nforeach(Process process in processes)\n{\n process.Kill();\... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146439",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21691/"
] |
146,452 | <p>I've come across this term POD-type a few times.<br>
What does it mean? </p>
| [
{
"answer_id": 146454,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 11,
"selected": true,
"text": "struct class"
},
{
"answer_id": 146464,
"author": "ugasoft",
"author_id": 10120,
"author_profile": "h... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14069/"
] |
146,484 | <p>Can some one specify the windows API, one need to use in order to be able to change programmatically the screen refresh rate?</p>
| [
{
"answer_id": 146512,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 3,
"selected": false,
"text": "i := 0;\nwhile EnumDisplaySettings(nil, i, dm) do begin\n Memo1.Lines.Add(Format('Color Depth: %d', [dm.dmBitsPerPel... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11659/"
] |
146,498 | <p>I am trying to make a <code>JTable</code> that has column spans available. Specifically, I am looking to nest a <code>JTable</code> inside another <code>JTable</code>, and when the user clicks to view the nested table, it should expand to push down the rows below and fill the empty space. This is similar to what you... | [
{
"answer_id": 5065700,
"author": "Synox",
"author_id": 79461,
"author_profile": "https://Stackoverflow.com/users/79461",
"pm_score": 0,
"selected": false,
"text": "/*\n * (swing1.1beta3)\n * \n * |-----------------------------------------------------|\n * | 1st | 2nd | ... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23249/"
] |
146,522 | <p>I’ve got a brand new Django project. I’ve added one minimal view function to <code>views.py</code>, and one URL pattern to <code>urls.py</code>, passing the view by function reference instead of a string:</p>
<pre><code># urls.py
# -------
# coding=utf-8
from django.conf.urls.defaults import *
from myapp import ... | [
{
"answer_id": 146524,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 5,
"selected": true,
"text": "myproject.myapp.views myapp.views settings.py ROOT_URLCONF = `myproject.urls`\n >>> from django.core.urlresolvers impor... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20578/"
] |
146,528 | <p>Say I'm writing some ruby code and I want to use the standard Date type to get the current date. Instead of using a search engine, is there a faster way to find the documentation for this class? I know I can get the methods for Date by typing <code>Date.methods</code>, but as far as I know this doesn't provide deta... | [
{
"answer_id": 146536,
"author": "scable",
"author_id": 8942,
"author_profile": "https://Stackoverflow.com/users/8942",
"pm_score": 2,
"selected": false,
"text": "ri Date\n ri Date#yourMethod\n"
},
{
"answer_id": 146601,
"author": "Orion Edwards",
"author_id": 234,
"a... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146528",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22423/"
] |
146,531 | <p>I have a SQL table with news stories and Unix timestamps. I'd like to only keep the 50 newest stories. How would I write an SQL statement to delete any amount of older stories?</p>
| [
{
"answer_id": 146535,
"author": "Davide Vosti",
"author_id": 1812,
"author_profile": "https://Stackoverflow.com/users/1812",
"pm_score": 3,
"selected": false,
"text": "delete from table where id not in (\n select id from table \n order by id desc \n limit 50\n)\n"
},
{
... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146531",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6305/"
] |
146,557 | <p>I was reading a question about the Python <em>global</em> statement ( <a href="https://stackoverflow.com/questions/146359/python-scope">"Python scope"</a> ) and I was remembering about how often I used this statement when I was a Python beginner (I used <em>global</em> a lot) and how, nowadays, years later, I don't ... | [
{
"answer_id": 146673,
"author": "kender",
"author_id": 4172,
"author_profile": "https://Stackoverflow.com/users/4172",
"pm_score": 3,
"selected": false,
"text": "global global"
},
{
"answer_id": 146985,
"author": "Jerub",
"author_id": 14648,
"author_profile": "https:... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20037/"
] |
146,575 | <p>I'm writing a program (for Mac OS X, using Objective-C) and I need to create a bunch of .webloc files programmatically.</p>
<p>The .webloc file is simply file which is created after you drag-n-drop an URL from Safari's location bar to some folder.</p>
<p>Generally speaking, I need an approach to create items in a ... | [
{
"answer_id": 146630,
"author": "Chris Hanson",
"author_id": 714,
"author_profile": "https://Stackoverflow.com/users/714",
"pm_score": 3,
"selected": false,
"text": ".webloc .webloc % DeRez \"Desktop/Crafting .webloc file - Stack Overflow.webloc\"\ndata 'drag' (128, \"Crafting .webloc f... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20294/"
] |
146,576 | <p>The method signature of a Java <code>main</code>method is:</p>
<pre><code>public static void main(String[] args) {
...
}
</code></pre>
<p><strong>Is there a reason why this method must be static?</strong></p>
| [
{
"answer_id": 146583,
"author": "Noah Goodrich",
"author_id": 20178,
"author_profile": "https://Stackoverflow.com/users/20178",
"pm_score": 8,
"selected": false,
"text": "main main"
},
{
"answer_id": 146662,
"author": "Jacob Krall",
"author_id": 3140,
"author_profile... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146576",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2937/"
] |
146,602 | <p>Has anyone had any recent requirements for programming automated DOS Batch style tasks on a Windows box?</p>
<p>I've got some automation to do and I'd rather not sit and write a pile of .BAT files in Notepad if there is a better way of automating these tasks: mainly moving of files under certain date and time condi... | [
{
"answer_id": 146619,
"author": "Bullines",
"author_id": 27870,
"author_profile": "https://Stackoverflow.com/users/27870",
"pm_score": 3,
"selected": false,
"text": "Dim objFSO\n\nSet objFSO = CreateObject (\"Scripting.FileSystemObject\")\nIf objFSO.FileExists(\"C:\\source\\your_file.tx... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146602",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22376/"
] |
146,604 | <p>I have a new object with a collection of new objects within it on some property as an IList. I see through sql profiler two insert queries being executed.. one for the parent, which has the new guid id, and one for the child, however, the foreign-key on the child that references the parent, is an empty guid. Here is... | [
{
"answer_id": 146640,
"author": "Elie",
"author_id": 23249,
"author_profile": "https://Stackoverflow.com/users/23249",
"pm_score": 4,
"selected": true,
"text": "<bag name=\"BackerEntries\" table=\"BackerEntry\" cascade=\"all\" lazy=\"false\" order-by=\"Priority\">\n <key column=\"Backe... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6350/"
] |
146,607 | <p>My goal here is to create a very simple template language. At the moment, I'm working on replacing a variable with a value, like this:</p>
<p>This input:</p>
<blockquote>
The Web
</blockquote>
<p>Should produce this output:</p>
<blockquote>
<p>The Web This Is A Test Variable</p>
</blockquote>
<p>I've got i... | [
{
"answer_id": 146639,
"author": "JacquesB",
"author_id": 7488,
"author_profile": "https://Stackoverflow.com/users/7488",
"pm_score": 1,
"selected": false,
"text": "r\"(\\\"|')(.*?)\\1\" \\1"
},
{
"answer_id": 146671,
"author": "Brian",
"author_id": 9493,
"author_prof... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19207/"
] |
146,622 | <p>I'm in the process of learning Erlang. As an exercise I picked up the <a href="http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes" rel="noreferrer">Sieve of Eratosthenes</a> algorithm of generating prime numbers. Here is my code:</p>
<pre><code>-module(seed2).
-export([get/1]).
get(N) -> WorkList = lists:duplic... | [
{
"answer_id": 172611,
"author": "Andreas",
"author_id": 25328,
"author_profile": "https://Stackoverflow.com/users/25328",
"pm_score": 5,
"selected": true,
"text": "-module(primes).\n-export([sieve/1]).\n-include_lib(\"eunit/include/eunit.hrl\").\n\nsieve([]) ->\n [];\nsieve([H|T]) ->... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13635/"
] |
146,657 | <p>I have a couple of header files, which boil down to:</p>
<p>tree.h:</p>
<pre><code>#include "element.h"
typedef struct tree_
{
struct *tree_ first_child;
struct *tree_ next_sibling;
int tag;
element *obj;
....
} tree;
</code></pre>
<p>and element.h:</p>
<pre><code>#include "tree.h"
typedef ... | [
{
"answer_id": 146669,
"author": "Michael Labbé",
"author_id": 22244,
"author_profile": "https://Stackoverflow.com/users/22244",
"pm_score": 2,
"selected": false,
"text": "/* begin foo.h */\n#ifndef _FOO_H\n#define _FOO_H\n\n// Your code here\n\n#endif\n/* end foo.h */\n struct tree; ... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19214/"
] |
146,659 | <p>I know this would be easy with position:fixed, but unfortanately I'm stuck with supporting IE 6. How can I do this? I would rather use CSS to be clean, but if I have to use Javascript, that's not the end of the world. In my current implementation I have a "floating footer" that floats above the main content area ... | [
{
"answer_id": 146689,
"author": "Mattias",
"author_id": 261,
"author_profile": "https://Stackoverflow.com/users/261",
"pm_score": 2,
"selected": false,
"text": ".footer {\n position: absolute;\n top: expression((document.body.clientHeight - myFooterheight) + \"px\");\n}\n"
},
... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146659",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2484/"
] |
146,661 | <p>Has anyone successfully built an Adobe Air application with Maven? If so, what are the steps to get it working?</p>
<p>I have been trying to use <a href="http://code.google.com/p/flex-mojos/" rel="noreferrer">flex-mojos</a> to build an Air applications. When I set the packaging type to "aswf", as suggested in the... | [
{
"answer_id": 146690,
"author": "Tom",
"author_id": 22850,
"author_profile": "https://Stackoverflow.com/users/22850",
"pm_score": 2,
"selected": false,
"text": "<plugin>\n <groupId>...</groupId>\n <artifactId>...</artifactId>\n <extensions>true</extensions>\n...\n</plugin>\n"
},
... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3767/"
] |
146,668 | <p>In ruby I am parsing a date in the following format: 24092008.
I want to convert each section (year, month, date) into a number.</p>
<p>I have split them up using a regex which produces three Strings which I am passing into the Integer constructor.</p>
<pre><code> date =~ /^([\d]{2})([\d]{2})([\d]{4})/
year = I... | [
{
"answer_id": 146679,
"author": "Atiaxi",
"author_id": 2555346,
"author_profile": "https://Stackoverflow.com/users/2555346",
"pm_score": 5,
"selected": true,
"text": "irb(main):003:0> Integer(\"04\")\n=> 4\nirb(main):004:0> Integer(\"09\")\nArgumentError: invalid value for Integer: \"09... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/151/"
] |
146,704 | <p>Puzzled by the Lua 5.0 documentation references to things like <code>_LOADED</code>, <code>LUA_PATH</code>, <code>_ALERT</code> and so on (that I could not use in Lua 5.1), I discovered all of those have been removed and the functionality put elsewhere. Am I right in thinking that the only one global variable left i... | [
{
"answer_id": 146679,
"author": "Atiaxi",
"author_id": 2555346,
"author_profile": "https://Stackoverflow.com/users/2555346",
"pm_score": 5,
"selected": true,
"text": "irb(main):003:0> Integer(\"04\")\n=> 4\nirb(main):004:0> Integer(\"09\")\nArgumentError: invalid value for Integer: \"09... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12291/"
] |
146,715 | <p>I want to create a class that, for example, extends HttpServlet? My compiler warns me that my class should have a serialVersionUID. If I know that this object will never be serialized, should I define it or add an annotation to suppress those warnings?</p>
<p>What would you do and why?</p>
| [
{
"answer_id": 2831663,
"author": "Mike",
"author_id": 332658,
"author_profile": "https://Stackoverflow.com/users/332658",
"pm_score": 4,
"selected": false,
"text": "@SuppressWarnings(\"serial\") private void writeObject(ObjectOutputStream oos) throws IOException {\n throw new IOExcept... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11450/"
] |
146,730 | <p>Lifehacker had a post a couple days ago asking people about <a href="http://lifehacker.com/5054519/" rel="nofollow noreferrer">the best mouse you've ever had</a> and it appears some people have traded their mouse for a tablet.</p>
<p>I'm curious if anyone here has traded their mouse in for a tablet? Does it work w... | [
{
"answer_id": 2831663,
"author": "Mike",
"author_id": 332658,
"author_profile": "https://Stackoverflow.com/users/332658",
"pm_score": 4,
"selected": false,
"text": "@SuppressWarnings(\"serial\") private void writeObject(ObjectOutputStream oos) throws IOException {\n throw new IOExcept... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/519/"
] |
146,737 | <p>So I'm programming along in a nice, up to date, object oriented fashion. I regularly make use of the various aspects of OOP that PHP implements but I am wondering when might I need to use closures. Any experts out there that can shed some light on when it would be useful to implement closures?</p>
| [
{
"answer_id": 146775,
"author": "Dan Udey",
"author_id": 21450,
"author_profile": "https://Stackoverflow.com/users/21450",
"pm_score": 4,
"selected": false,
"text": "hash_method multiply square config_parser() do_hash_method() config_parser() do_hash_method() config_parser() function co... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11252/"
] |
146,743 | <p>I need to store a list of key value pairs of (integer, boolean) in .NET</p>
<p>When I use a dictionary it re-orders them. Is there a built in collection that will handle this.</p>
| [
{
"answer_id": 146751,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 4,
"selected": true,
"text": " List<KeyValuePair<int, bool>> l = \n new List<KeyValuePair<int, bool>>();\n l.Add(new K... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146743",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4998/"
] |
146,750 | <p>I'm setting up a new development server and want to install the latest version of SQL Server 2008 Express.</p>
<p>Will our existing sql2005 databases work with 2008 without modification?
If so is there any reason to install both versions on the same server?</p>
| [
{
"answer_id": 146776,
"author": "Charlie",
"author_id": 18529,
"author_profile": "https://Stackoverflow.com/users/18529",
"pm_score": 3,
"selected": true,
"text": "with move restore database RESTORE DATABASE mydb FROM disk = 'c:\\backupfile.bak'\n WITH MOVE 'maindatafile' to 'c:\\newdat... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146750",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3747/"
] |
146,777 | <p>Specifically, when you create an interface/implementor pair, and there is no overriding organizational concern (such as the interface should go in a different assembly ie, as recommended by the s# architecture) do you have a default way of organizing them in your namespace/naming scheme?</p>
<p>This is obviously a ... | [
{
"answer_id": 146783,
"author": "George Mauer",
"author_id": 5056,
"author_profile": "https://Stackoverflow.com/users/5056",
"pm_score": 3,
"selected": false,
"text": "Interfaces\n|--IAnimal\n|--IVegetable\n|--IMineral\nMineralImplementor\nOrganisms\n|--AnimalImplementor\n|--VegetableIm... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5056/"
] |
146,789 | <p>This question is related to (but perhaps not quite the same as):</p>
<p><a href="https://stackoverflow.com/questions/61451/does-django-have-html-helpers">Does Django have HTML helpers?</a></p>
<p>My problem is this: In Django, I am constantly reproducing the basic formatting for low-level database objects. Here's ... | [
{
"answer_id": 146833,
"author": "Jonny Buchanan",
"author_id": 6760,
"author_profile": "https://Stackoverflow.com/users/6760",
"pm_score": 5,
"selected": true,
"text": "@register.inclusion_tag('person/address.html')\ndef display_address(address):\n return {'address': address}\n {% lo... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19212/"
] |
146,794 | <p>I'm running into an unusual problem in my unit tests. The class I'm testing creates a dependency property dynamically at runtime and the type of that dependency property can vary depending on the circumstances. While writing my unit tests, I need to create the dependency property with different types and that leads ... | [
{
"answer_id": 146830,
"author": "Micah",
"author_id": 17744,
"author_profile": "https://Stackoverflow.com/users/17744",
"pm_score": 1,
"selected": false,
"text": "MyDependencyProperty.OverrideMetadata(typeof(MyNewType), \n new PropertyMetadata());\n"
},
{
"an... | 2008/09/28 | [
"https://Stackoverflow.com/questions/146794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9045/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.