qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
367,030 | <p>Is it possible to get a list of all descendant classes of a particular class in objective-c?</p>
<p>Something like:</p>
<pre><code> @interface A : NSObject
@end
@interface B : A
@end
@interface C : A
@end
NSArray *descendants = [A allDescendants]; // descendants = [B, C]
</code></pre>
| [
{
"answer_id": 367078,
"author": "Matt Gallagher",
"author_id": 36103,
"author_profile": "https://Stackoverflow.com/users/36103",
"pm_score": 3,
"selected": false,
"text": "objc_getClassList"
},
{
"answer_id": 367189,
"author": "Andy",
"author_id": 3857,
"author_profi... | 2008/12/14 | [
"https://Stackoverflow.com/questions/367030",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
367,040 | <p>In Matlab, how can I find value of K, in a system that has oscillation?</p>
<blockquote>
<p>(system's tf, if needed: (K * (s +
25))/(s^3 + 24 s^2 + 100 s) )</p>
</blockquote>
<p>PS. I'm using root locus.</p>
| [
{
"answer_id": 367215,
"author": "Will Robertson",
"author_id": 4161,
"author_profile": "https://Stackoverflow.com/users/4161",
"pm_score": 0,
"selected": false,
"text": "dcgain"
},
{
"answer_id": 425417,
"author": "Stephen Friederichs",
"author_id": 39492,
"author_pr... | 2008/12/14 | [
"https://Stackoverflow.com/questions/367040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
367,052 | <p>There seems to be no built-in support for case preserving find/replace in VisualStudio (see also a respective <a href="https://developercommunity.visualstudio.com/t/case-preserving-search-replace/580810" rel="nofollow noreferrer">feature request</a>).</p>
<p>What I mean is: searching for 'BadJob' and replacing with ... | [
{
"answer_id": 53559408,
"author": "noelicus",
"author_id": 865643,
"author_profile": "https://Stackoverflow.com/users/865643",
"pm_score": 0,
"selected": false,
"text": "from Npp import *\n\n#Use capitalizeFirst because .capitalize will make the remaining string lower, but in CamelCase ... | 2008/12/14 | [
"https://Stackoverflow.com/questions/367052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45637/"
] |
367,066 | <p>I am developing an application trying to employ the Observer pattern. Basically I have a base form from which various components (forms) can be loaded.</p>
<p>The base form references each of the components and some of the components reference each other.</p>
<p>If I want one of the components to listen for events... | [
{
"answer_id": 371855,
"author": "Nigel Hawkins",
"author_id": 1389021,
"author_profile": "https://Stackoverflow.com/users/1389021",
"pm_score": 0,
"selected": false,
"text": "publisherObject.SomeEvent += MyEventHandler();\n"
},
{
"answer_id": 377415,
"author": "Hinek",
"... | 2008/12/14 | [
"https://Stackoverflow.com/questions/367066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
367,069 | <p>I'm looking for a simple, but cross-platform <em>negate</em>-process that negates the value a process returns. It should map 0 to some value != 0 and any value != 0 to 0, i.e. the following command should return "yes, nonexistingpath doesn't exist":</p>
<pre><code> ls nonexistingpath | negate && echo "yes, ... | [
{
"answer_id": 367075,
"author": "Jay Conrod",
"author_id": 1891,
"author_profile": "https://Stackoverflow.com/users/1891",
"pm_score": 6,
"selected": false,
"text": "! ls nonexistingpath && echo \"yes, nonexistingpath doesn't exist\"\n"
},
{
"answer_id": 367076,
"author": "E... | 2008/12/14 | [
"https://Stackoverflow.com/questions/367069",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4085/"
] |
367,090 | <p>I was intending on use the Title attribute in the @Page directive to customise each pages title, but it simply doesn't appear to do anything.</p>
<p>The site uses master pages - I don't know if that is a consideration.</p>
<p>Master Page snippet:</p>
<pre><code><%@ Master Language="VB" CodeFile="brightnorth.ma... | [
{
"answer_id": 367100,
"author": "Strelok",
"author_id": 2788,
"author_profile": "https://Stackoverflow.com/users/2788",
"pm_score": 0,
"selected": false,
"text": "<title><%=Title%></title>\n"
},
{
"answer_id": 367109,
"author": "CJM",
"author_id": 6898,
"author_profi... | 2008/12/14 | [
"https://Stackoverflow.com/questions/367090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6898/"
] |
367,104 | <p>In java <1.5, constants would be implemented like this</p>
<pre><code>public class MyClass {
public static int VERTICAL = 0;
public static int HORIZONTAL = 1;
private int orientation;
public MyClass(int orientation) {
this.orientation = orientation;
}
...
</code></pre>
<p>and you w... | [
{
"answer_id": 367105,
"author": "Yoni Roit",
"author_id": 34161,
"author_profile": "https://Stackoverflow.com/users/34161",
"pm_score": 2,
"selected": false,
"text": "MyClass myClass = new MyClass(Orientation.VERTICAL);\n"
},
{
"answer_id": 367113,
"author": "Vilx-",
"au... | 2008/12/14 | [
"https://Stackoverflow.com/questions/367104",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26334/"
] |
367,115 | <p>I know of <code>python -c '<code>'</code>, but I'm wondering if there's a more elegant python equivalent to <code>perl -pi -e '<code>'</code>. I still use it quite a bit for things like find and replace in a whole directory (<code>perl -pi -e s/foo/bar/g *</code> or even <code>find . | xargs perl -pi -e... | [
{
"answer_id": 367181,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 4,
"selected": true,
"text": "python -h"
},
{
"answer_id": 367238,
"author": "S.Lott",
"author_id": 10661,
"author_profile":... | 2008/12/14 | [
"https://Stackoverflow.com/questions/367115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28421/"
] |
367,130 | <p>I want create a Playlist control. I have a lot of information to display into a TStringList. I want to assign a record to TStringGrid.Objects instead of an object because so many objects may take a while to create/destroy. It also take a lot of RAM.</p>
<p>A record will be much faster and slim.
How can I do that?<... | [
{
"answer_id": 367147,
"author": "Cesar Romero",
"author_id": 36875,
"author_profile": "https://Stackoverflow.com/users/36875",
"pm_score": 1,
"selected": false,
"text": "List.AddObject(MyRecord.FullName, @MyRecord);\n"
},
{
"answer_id": 367156,
"author": "JamesSugrue",
"... | 2008/12/14 | [
"https://Stackoverflow.com/questions/367130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
367,141 | <p>Using Win32-specific APIs, is there an easy way to start an external application to open a file simply by passing in the path/name of the file?</p>
<p>For example, say I have a file called C:\tmp\image.jpg. Is there a single API that I can call to tell Windows to open the application associated with .jpg files? W... | [
{
"answer_id": 367144,
"author": "Igal Serban",
"author_id": 25737,
"author_profile": "https://Stackoverflow.com/users/25737",
"pm_score": 5,
"selected": true,
"text": "HINSTANCE ShellExecute(\n _In_opt_ HWND hwnd,\n _In_opt_ LPCTSTR lpOperation,\n _In_ LPCTSTR lpFile,\n _In_o... | 2008/12/14 | [
"https://Stackoverflow.com/questions/367141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13022/"
] |
367,155 | <p>I'm trying to split a string up into words and punctuation, adding the punctuation to the list produced by the split.</p>
<p>For instance:</p>
<pre><code>>>> c = "help, me"
>>> print c.split()
['help,', 'me']
</code></pre>
<p>What I really want the list to look like is:</p>
<pre><code>['help', ... | [
{
"answer_id": 367244,
"author": "monkut",
"author_id": 24718,
"author_profile": "https://Stackoverflow.com/users/24718",
"pm_score": 1,
"selected": false,
"text": "import string\n\nd = \"Hello, I'm a string!\"\n\nresult = []\nword = ''\n\nfor char in d:\n if char not in string.whites... | 2008/12/14 | [
"https://Stackoverflow.com/questions/367155",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40429/"
] |
367,178 | <p>I think the answer to this question is so obivous that noone has bothered writing about this, but its late and I really can't get my head around this.</p>
<p>I've been reading into IoC containers (Windsor in this case) and I'm missing how you talk to the container from the various parts of your code.</p>
<p>I get ... | [
{
"answer_id": 367190,
"author": "maxnk",
"author_id": 45862,
"author_profile": "https://Stackoverflow.com/users/45862",
"pm_score": 0,
"selected": false,
"text": "public interface IResolver\n{\n object Resolve(Type type);\n object Resolve(string name);\n\n T Resolve<T>() where ... | 2008/12/14 | [
"https://Stackoverflow.com/questions/367178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28543/"
] |
367,192 | <p>I know java and would normally put in getter/setter methods. I am interested in doing it in C# with the following code, but it throws a StackOverflow exception. What am I doing wrong?</p>
<p>Calling Code</p>
<pre><code>c.firstName = "a";
</code></pre>
<p>Property Code </p>
<pre><code>public String firstName;
{
... | [
{
"answer_id": 367195,
"author": "Greg Beech",
"author_id": 13552,
"author_profile": "https://Stackoverflow.com/users/13552",
"pm_score": 8,
"selected": true,
"text": "set"
},
{
"answer_id": 367196,
"author": "Michael Haren",
"author_id": 29,
"author_profile": "https:... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/673/"
] |
367,201 | <p>I need to intercept the console output stream(s) in order to capture it for a log but still pass things through to the original stream so the application works properly. This obviously means storing the original <code>Console.Out</code> TextWriter before changing it with <code>Console.SetOut(new MyTextWriterClass(o... | [
{
"answer_id": 367428,
"author": "devstuff",
"author_id": 41321,
"author_profile": "https://Stackoverflow.com/users/41321",
"pm_score": 0,
"selected": false,
"text": "Main()"
},
{
"answer_id": 368584,
"author": "JoshBerke",
"author_id": 26160,
"author_profile": "https... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367201",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/181460/"
] |
367,213 | <p>Is there a way to find the HTML element on the page that a Silverlight control is hosted in from within Silverlight?</p>
| [
{
"answer_id": 367638,
"author": "Boyan",
"author_id": 38106,
"author_profile": "https://Stackoverflow.com/users/38106",
"pm_score": 3,
"selected": true,
"text": "System.Windows.Browser.HtmlElement plugin = System.Windows.Browser.HtmlPage.Plugin;\n"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/367213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11829/"
] |
367,214 | <p>Consider two web pages with the following in their body respectively:</p>
<pre><code><body>
<script>
document.writeln('<textarea></textarea>')
</script>
</body>
</code></pre>
<p>and</p>
<pre><code><body>
<script>
var t = document.createElement('textarea');
document.... | [
{
"answer_id": 367982,
"author": "roborourke",
"author_id": 42147,
"author_profile": "https://Stackoverflow.com/users/42147",
"pm_score": 0,
"selected": false,
"text": "<div id=\"addtextarea\"></div>\n\nvar e = document.getElementByID('addtextarea');\ne.innerHTML = '<textarea></textarea>... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4958/"
] |
367,216 | <p>Does using STL increase footprint significantly? Could you guys share your experience regarding this matter? What are the best practices to build a small footprint library?</p>
| [
{
"answer_id": 367296,
"author": "Tom",
"author_id": 40620,
"author_profile": "https://Stackoverflow.com/users/40620",
"pm_score": 2,
"selected": false,
"text": "std::list<int>"
},
{
"answer_id": 367303,
"author": "Martin York",
"author_id": 14065,
"author_profile": "... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367216",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
367,219 | <p>I'm currently getting through the <a href="http://www.cplusplus.com" rel="nofollow noreferrer">http://www.cplusplus.com</a> tutorial and I came across this section here: <a href="http://www.cplusplus.com/doc/tutorial/inheritance.html" rel="nofollow noreferrer">http://www.cplusplus.com/doc/tutorial/inheritance.html</... | [
{
"answer_id": 367313,
"author": "Tom",
"author_id": 40620,
"author_profile": "https://Stackoverflow.com/users/40620",
"pm_score": 2,
"selected": false,
"text": "BigNum"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/367219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
367,226 | <p>Its the weekend again, and that means I get to play with my <a href="https://stackoverflow.com/questions/332585/2d-platformer-physics">hobby project</a>.</p>
<p>I've gotten tired of creating test levels by hand, so I thought I'd take a break from engine development and work on a level editor:</p>
<p><a href="http:... | [
{
"answer_id": 367235,
"author": "AAA",
"author_id": 1977,
"author_profile": "https://Stackoverflow.com/users/1977",
"pm_score": 2,
"selected": false,
"text": "Select Tile To Fill: \nFill Till \nCheck neighbouring Tiles - If Empty Then Fill \nRepeat, for all filled tiles.\n"
}... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367226",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] |
367,257 | <p>I've taken over a mixed PHP4/PHP5 project which has been handed down from developer to developer, with each one making things worse. Before I spend too much time on it I'd like to develop a base-standard, with consistent formatting at a minimum.</p>
<p>Can anyone recommend a utility (Linux or Mac OS X preferably) t... | [
{
"answer_id": 9628910,
"author": "mlambie",
"author_id": 17453,
"author_profile": "https://Stackoverflow.com/users/17453",
"pm_score": 1,
"selected": false,
"text": "gg=G\n"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/367257",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17453/"
] |
367,262 | <p>I need to make some commits using Git but I would like the timestamp in git-log to be in the future.</p>
<p>How can I do a commit in git that causes a future timestamp to register in the git-log?</p>
| [
{
"answer_id": 367475,
"author": "Dustin",
"author_id": 39975,
"author_profile": "https://Stackoverflow.com/users/39975",
"pm_score": 7,
"selected": true,
"text": "/tmp/x 604% env GIT_AUTHOR_DATE='Wed Dec 19 15:14:05 2029 -0800' git commit -m 'future!'\n[master]: created 6348548: \"Futur... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
367,276 | <p>I seem to not understand two OOP concepts very well. Could you explain what <strong>abstraction</strong> and <strong>polymorphism</strong> are, preferably with real examples and code?</p>
<p>Thank you.</p>
| [
{
"answer_id": 367289,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 5,
"selected": false,
"text": "class fraction:\n int denominator\n int numerator\n"
},
{
"answer_id": 367306,
"author": ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1602746/"
] |
367,278 | <p>I'm a fan of SVN and I am comfortable setting up my own svn repository, but I'm wondering if there are better options than creating a separate repository.</p>
<p>Basically I'm just looking for a way to keep track of or roll back changes before my code is reviewed and checked in to the main repository (SourceSafe). ... | [
{
"answer_id": 367302,
"author": "Jörg W Mittag",
"author_id": 2988,
"author_profile": "https://Stackoverflow.com/users/2988",
"pm_score": 3,
"selected": false,
"text": "cd $PROJECT"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/367278",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46225/"
] |
367,282 | <p>I have a content management application in the root of my website, and I'm trying to use a different app (a billing application) under a sub-folder. Unfortunately, the web.config of the root site is interfering with the sub-app.</p>
<p>Is there a way to just disable web.config inheritance for a sub-folder?</p>
<p>... | [
{
"answer_id": 367372,
"author": "devstuff",
"author_id": 41321,
"author_profile": "https://Stackoverflow.com/users/41321",
"pm_score": 3,
"selected": false,
"text": "<clear />"
},
{
"answer_id": 367403,
"author": "SBurris",
"author_id": 31474,
"author_profile": "http... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23276/"
] |
367,308 | <p>I'm working on a project where there is a lot of external service messaging. A good way to describe it in only a slightly "hyperbolas" way would be an application where the system has to send messages to the Flicker API, the Facebook API, and the Netflix API.</p>
<p>To support disconnected scenarios, logging concer... | [
{
"answer_id": 367543,
"author": "NicoGranelli",
"author_id": 451623,
"author_profile": "https://Stackoverflow.com/users/451623",
"pm_score": 4,
"selected": true,
"text": "class Logger{\n private static ILogger _Logger;\n\n static Logger(){\n //DI injection here\n _Logger = new NullLog... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25300/"
] |
367,310 | <p>I'm working on an embedded processor (400 MHz Intel PXA255 XScale), and I thought I saw one case where there wasn't enough memory to satisfy a 'new' operation. The program didn't crash, so I assumed other threads had freed their memory and it was just a transient thing. This is some pretty critical code, so exiting... | [
{
"answer_id": 395953,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 1,
"selected": false,
"text": "void my_new_handler() {\n // make room for memory, then return, or throw bad_alloc if\n // nothing ca... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34910/"
] |
367,325 | <p>Here is an interesting piece of code that my fellow team members were just having a slightly heated discussion about...</p>
<pre><code> Dim fred As Integer
If True Then fred = 5 : fred = 3 : fred = 6 Else fred = 4 : fred = 2 : fred = 1
</code></pre>
<p>After executing the above code snippet, what is the value ... | [
{
"answer_id": 367342,
"author": "user21826",
"author_id": 21826,
"author_profile": "https://Stackoverflow.com/users/21826",
"pm_score": 0,
"selected": false,
"text": "\nif (condition) then\n statement\n statement\nelse\n statement\n statement\nend if\n"
},
{
"answer_id": 367... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19377/"
] |
367,328 | <p>I received a dump file of a SVN repository that I'm moving to my server. Let's call it myserver.com/svn. The load statement prints out a long list of files loaded and reports no error. However, once I try to access the repository for checkout, or relocate my existing checkout, I'm told:</p>
<pre><code>Repository... | [
{
"answer_id": 1118406,
"author": "kikito",
"author_id": 312586,
"author_profile": "https://Stackoverflow.com/users/312586",
"pm_score": 0,
"selected": false,
"text": "ErrorDocument 404 http://www.myserver.com/svn\n"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/367328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28565/"
] |
367,343 | <p>I have the following code:</p>
<pre><code>abstract class AbstractParent {
function __construct($param) { print_r($param); }
public static function test() { return new self(1234); }
}
class SpecificClass extends AbstractParent {}
</code></pre>
<p>When I invoke <code>SpecificClass::test()</code>, I am getting an ... | [
{
"answer_id": 367357,
"author": "Alexei Tenitski",
"author_id": 45508,
"author_profile": "https://Stackoverflow.com/users/45508",
"pm_score": 2,
"selected": false,
"text": "abstract class AbstractParent {\n function __construct($param) { print_r($param); }\n abstract public static funct... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45652/"
] |
367,349 | <p>How do you submit from a dropdownlist "onchange" event from inside of an ajax form?</p>
<p>According to the following question: <a href="https://stackoverflow.com/questions/364505/how-do-you-submit-a-dropdownlist-in-aspnet-mvc">How do you submit a dropdownlist in asp.net mvc</a>, from inside of an Html.BeginFrom yo... | [
{
"answer_id": 367401,
"author": "Strelok",
"author_id": 2788,
"author_profile": "https://Stackoverflow.com/users/2788",
"pm_score": 2,
"selected": false,
"text": "$(\"#yourDropdown\").change(function() {\n var f = $(\"#yourForm\");\n var action = f.attr(\"action\");\n var serializedF... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
367,368 | <p>Is it possible to set a symbol for conditional compilation by setting up properties in an Xcode project?</p>
<p>My aim is to to create a symbol that is available to all files, without having to use import/include, so that a set of common classes can have a special behavior in some projects. Like the following, but ... | [
{
"answer_id": 367430,
"author": "Ben Gottlieb",
"author_id": 6694,
"author_profile": "https://Stackoverflow.com/users/6694",
"pm_score": 8,
"selected": true,
"text": "GCC_PREPROCESSOR_DEFINITIONS"
},
{
"answer_id": 1384658,
"author": "hEADcRASH",
"author_id": 169138,
... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36182/"
] |
367,377 | <p>Suppose you have a software package. You want to make it a gem, because gems are the de facto standard way to distribute anything in the Ruby world. Gems are great -- for libraries. But for real applications, the Rubygems system seems lacking. Only "recently" did they introduce a way to mark executables to be pl... | [
{
"answer_id": 367430,
"author": "Ben Gottlieb",
"author_id": 6694,
"author_profile": "https://Stackoverflow.com/users/6694",
"pm_score": 8,
"selected": true,
"text": "GCC_PREPROCESSOR_DEFINITIONS"
},
{
"answer_id": 1384658,
"author": "hEADcRASH",
"author_id": 169138,
... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28558/"
] |
367,378 | <p>I'm creating my own dictionary and I am having trouble implementing the <a href="http://msdn.microsoft.com/en-us/library/ms132143(VS.85).aspx" rel="noreferrer">TryGetValue</a> function. When the key isn't found, I don't have anything to assign to the out parameter, so I leave it as is. This results in the followin... | [
{
"answer_id": 367380,
"author": "Strelok",
"author_id": 2788,
"author_profile": "https://Stackoverflow.com/users/2788",
"pm_score": 3,
"selected": false,
"text": "return default(int);\n\nreturn default(bool);\n\nreturn default(MyObject);\n"
},
{
"answer_id": 367383,
"author"... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4891/"
] |
367,400 | <p>Lately I've been seeing a lot of talk regarding PHP's lack of late static binding until 5.3. </p>
<p>From what I've read proper implementations of stuff like ActiveRecord are not possible until the language has this feature.</p>
<p>So, I'm curious about:</p>
<ul>
<li>Which languages do support it,
specifically th... | [
{
"answer_id": 367410,
"author": "Eugene Yokota",
"author_id": 3827,
"author_profile": "https://Stackoverflow.com/users/3827",
"pm_score": -1,
"selected": false,
"text": "class A {\n static $word = \"hello\";\n static function hello() {print self::$word;}\n}\n\nclass B extends A {\... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41111/"
] |
367,411 | <p>When discussing the evolution of computer languages, Alan Kay says that the single most important attribute of his Smalltalk is late binding; it gives the language its malleability and extensibility, and allows inappropriate coupling to be refactored out over time. Do you agree? Are there compensating advantages for... | [
{
"answer_id": 368276,
"author": "Peter Gfader",
"author_id": 35693,
"author_profile": "https://Stackoverflow.com/users/35693",
"pm_score": 2,
"selected": false,
"text": "var excel = CreateObject(\"Excel.Application\");\n"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/367411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31641/"
] |
367,426 | <p>This is a total newbie question, so thanks in advance. I'm trying to get my head around the difference between divs and spans, and when and how to use them.</p>
<p>Say for instance, I want to have an image left justified, and I want the text to flow around the image on the right, while maintaining justification. If... | [
{
"answer_id": 367434,
"author": "Elle H",
"author_id": 23666,
"author_profile": "https://Stackoverflow.com/users/23666",
"pm_score": 2,
"selected": false,
"text": "<img src=\"picture.jpg\" alt=\"An image\" style=\"float: left\" />\nLorem ipsum dolor sit amet, consectetur adipiscing elit... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39781/"
] |
367,440 | <p>I want to create an associative array:</p>
<pre><code>var aa = {} // Equivalent to Object(), new Object(), etc...
</code></pre>
<p>And I want to be sure that any key I access is going to be a number:</p>
<pre><code>aa['hey'] = 4.3;
aa['btar'] = 43.1;
</code></pre>
<p>I know JavaScript doesn't have typing, so I can't... | [
{
"answer_id": 367453,
"author": "Moss Collum",
"author_id": 13210,
"author_profile": "https://Stackoverflow.com/users/13210",
"pm_score": 2,
"selected": false,
"text": "function findNumber(userEnteredKey) {\n return aa[userEnteredKey];\n}\n"
},
{
"answer_id": 367454,
"aut... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15055/"
] |
367,442 | <p>I've been trying to use Zsh within my emacs session, without emacs remapping all the Zsh keys. I found ansi-term works pretty well for this but, I'm still having some problems. I was getting lots of junk characters outputted with, I was able to fix it with:</p>
<pre><code>## Setup proper term information for emacs ... | [
{
"answer_id": 369938,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "(custom-set-variables\n '(fringe-mode nil nil (fringe))\n '(fringes-outside-margins t t))\n"
},
{
"answer_id": 2879086... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367442",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
367,444 | <p>I need to show an object in PropertyGrid with the following requirements: the object and its sub object must be read-only, able to activate PropertyGrid's CollectionEditors.</p>
<p>I found a sample that's closely match to what I need but there's an unexpected behaviour I couldn't figure out. I have more than one Pr... | [
{
"answer_id": 369938,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "(custom-set-variables\n '(fringe-mode nil nil (fringe))\n '(fringes-outside-margins t t))\n"
},
{
"answer_id": 2879086... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
367,448 | <p>I'm using the following code within a VB 6.0 application to allow give the application a system tray icon:</p>
<pre><code>Option Explicit
'user defined type required by Shell_NotifyIcon API call
Public Type NOTIFYICONDATA
cbSize As Long
hwnd As Long
uId As Long
uFlags As Long
uCallBackMessage As Lon... | [
{
"answer_id": 367463,
"author": "JFV",
"author_id": 1391,
"author_profile": "https://Stackoverflow.com/users/1391",
"pm_score": 4,
"selected": true,
"text": "Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)\n Select Case UnloadMode\n Case 1, 2, 3 'If the ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46249/"
] |
367,449 | <p>An RGB color is composed of three components: Red (0-255), Green (0-255) and Blue (0-255).</p>
<p>What exactly is BGR color space? How is it different from RGB color space?</p>
| [
{
"answer_id": 367458,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 1,
"selected": false,
"text": "0"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/367449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43076/"
] |
367,457 | <p>I have a list of objects implementing an interface, and a list of that interface:</p>
<pre><code>public interface IAM
{
int ID { get; set; }
void Save();
}
public class concreteIAM : IAM
{
public int ID { get; set; }
internal void Save(){
//save the object
}
//other staff for this ... | [
{
"answer_id": 367464,
"author": "Nathan W",
"author_id": 6335,
"author_profile": "https://Stackoverflow.com/users/6335",
"pm_score": 3,
"selected": false,
"text": "public abstract class AM\n{\n public int ID { get; set; }\n internal abstract void Save();\n}\n\npublic class concret... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
367,461 | <p>I've factored out common attributes from two classes into an abstract base class, however I have another model that needs to reference either one of those classes. It's not possible to reference an ABC as it doesn't actually have a database table.</p>
<p>The following example should illustrate my problem:</p>
<pre... | [
{
"answer_id": 367765,
"author": "muhuk",
"author_id": 42188,
"author_profile": "https://Stackoverflow.com/users/42188",
"pm_score": 5,
"selected": true,
"text": "Answer"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/367461",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10583/"
] |
367,467 | <p>Timezone information for Java are kept in a folder called "zi". For eg.
C:\Program Files\Java\jdk6\jre\lib\zi</p>
<p>files in this folder are in binary format. But it is very important for me to see exactly what they say.</p>
<p>Can anyone share a way, to read these files, or are they Sun proprietary?</p>
| [
{
"answer_id": 367765,
"author": "muhuk",
"author_id": 42188,
"author_profile": "https://Stackoverflow.com/users/42188",
"pm_score": 5,
"selected": true,
"text": "Answer"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/367467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
367,471 | <p>In the clocks application, the timer screen shows a picker (probably a <code>UIPicker</code> in <code>UIDatePickerModeCountDownTimer</code> mode) with some text in the selection bar ("hours" and "mins" in this case).</p>
<p>(edit) Note that these labels are <strong>fixed</strong>: They don't move when the picker wh... | [
{
"answer_id": 367763,
"author": "keremk",
"author_id": 29475,
"author_profile": "https://Stackoverflow.com/users/29475",
"pm_score": 2,
"selected": false,
"text": "UIPickerViewDelegate"
},
{
"answer_id": 548104,
"author": "mikechambers",
"author_id": 10232,
"author_p... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42690/"
] |
367,494 | <p>I'm attempting to map a set of key presses to a set of commands. Because I process the commands from several places, I'd like to set up a layer of abstraction between the keys and the commands so that if I change the underlying key mappings, I don't have to change very much code. My current attempt looks like this... | [
{
"answer_id": 367525,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 2,
"selected": false,
"text": "case"
},
{
"answer_id": 368541,
"author": "Jason S",
"author_id": 44330,
"author_profile": "h... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367494",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19491/"
] |
367,518 | <p>This should be straight forward for a guru. I don't have any code really written out, just a couple of controllers and a custom UIView. All connected through nibs. The app loads without crashing, yet I can't see my NSLog() hit from my custom UIView.</p>
<p>My application delegate has default template code which cal... | [
{
"answer_id": 367668,
"author": "keremk",
"author_id": 29475,
"author_profile": "https://Stackoverflow.com/users/29475",
"pm_score": 4,
"selected": true,
"text": "initWithFrame"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/367518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40882/"
] |
367,523 | <p>I would like to ensure that I only subscribe once in a particular class for an event on an instance.</p>
<p>For example I would like to be able to do the following:</p>
<pre><code>if (*not already subscribed*)
{
member.Event += new MemeberClass.Delegate(handler);
}
</code></pre>
<p>How would I go about implem... | [
{
"answer_id": 367541,
"author": "Andrew Kennan",
"author_id": 22506,
"author_profile": "https://Stackoverflow.com/users/22506",
"pm_score": 2,
"selected": false,
"text": "class MemberClass\n{\n private EventHandler _event;\n\n public event EventHandler Event\n {\n ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40444/"
] |
367,545 | <p>Is there an equivalent of <a href="http://www.php.net/manual/en/function.get-defined-functions.php" rel="noreferrer"><code>get_defined_functions()</code></a> which only shows the functions of a given object?</p>
<p>Example usage and output:</p>
<pre><code>class A {
function foo() { }
function bar() { }
}
c... | [
{
"answer_id": 367546,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 4,
"selected": false,
"text": "get_class_methods()"
},
{
"answer_id": 367548,
"author": "Rob",
"author_id": 3542,
"author_profile": "http... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
367,560 | <p>I'm interested in how much up front validation people do in the Python they write.</p>
<p>Here are a few examples of simple functions:</p>
<pre><code>def factorial(num):
"""Computes the factorial of num."""
def isPalindrome(inputStr):
"""Tests to see if inputStr is the same backwards and forwards."""
def... | [
{
"answer_id": 367568,
"author": "Harley Holcombe",
"author_id": 1057,
"author_profile": "https://Stackoverflow.com/users/1057",
"pm_score": 2,
"selected": false,
"text": "def factorial(num):\n \"\"\"Computes the factorial of num.\"\"\"\n try:\n num = int(num)\n except Va... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367560",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1512/"
] |
367,565 | <p>How can I build a numpy array out of a generator object?</p>
<p>Let me illustrate the problem:</p>
<pre><code>>>> import numpy
>>> def gimme():
... for x in xrange(10):
... yield x
...
>>> gimme()
<generator object at 0x28a1758>
>>> list(gimme())
[0, 1, 2, 3, 4, 5, 6... | [
{
"answer_id": 367599,
"author": "shsmurfy",
"author_id": 2188962,
"author_profile": "https://Stackoverflow.com/users/2188962",
"pm_score": 8,
"selected": true,
"text": "my_array = numpy.empty(predict_length())\nfor i, el in enumerate(gimme()): my_array[i] = el\n"
},
{
"answer_id... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37984/"
] |
367,571 | <p>I have written a simple <a href="http://en.wikipedia.org/wiki/Brainfuck" rel="noreferrer">brainfuck</a> interpreter in MATLAB script language. It is fed random bf programs to execute (as part of a genetic algorithm project). The problem I face is, the program turns out to have an infinite loop in a sizeable number o... | [
{
"answer_id": 367758,
"author": "Eugene Yokota",
"author_id": 3827,
"author_profile": "https://Stackoverflow.com/users/3827",
"pm_score": 2,
"selected": false,
"text": "<"
},
{
"answer_id": 19773000,
"author": "Robert",
"author_id": 2953412,
"author_profile": "https:... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8127/"
] |
367,577 | <p>When you have code like the following: </p>
<pre><code>static T GenericConstruct<T>() where T : new()
{
return new T();
}
</code></pre>
<p>The C# compiler insists on emitting a call to Activator.CreateInstance, which is considerably slower than a native constructor. </p>
<p>I have the following workarou... | [
{
"answer_id": 367643,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": false,
"text": "List<string>"
},
{
"answer_id": 367648,
"author": "JaredPar",
"author_id": 23283,
"author_profile": ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367577",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46267/"
] |
367,586 | <p>I need to generate random text strings of a particular format. Would like some ideas so that I can code it up in Python. The format is <8 digit number><15 character string>. </p>
| [
{
"answer_id": 367594,
"author": "gimel",
"author_id": 6491,
"author_profile": "https://Stackoverflow.com/users/6491",
"pm_score": 4,
"selected": false,
"text": "from random import choice\nimport string\n\ndef GenPasswd2(length=8, chars=string.letters + string.digits):\n return ''.joi... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27474/"
] |
367,617 | <p>In another <a href="https://stackoverflow.com/questions/89193/does-linq-to-sql-support-composable-queries">posting: Does Linq-To-Sql support composable queries</a> there was discussion on how to compose/concat where clauses dynamically. This appears to be done with an "AND" (i.e. the first where clause and the seco... | [
{
"answer_id": 367912,
"author": "Garry Shutler",
"author_id": 6369,
"author_profile": "https://Stackoverflow.com/users/6369",
"pm_score": 4,
"selected": true,
"text": "var people = from p in Person\n where p.age < 18 || p.firstName == \"Daniel\"\n select p;\n"
... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25719/"
] |
367,623 | <p>We are invoking Asp.Net ajax web service from the client side. So the JavaScript functions have calls like:</p>
<p>// The function to alter the server side state object and set the selected node for the case tree.</p>
<pre><code>function JSMethod(caseId, url)
{
Sample.XYZ.Method(param1, param2, OnMethodRetur... | [
{
"answer_id": 376909,
"author": "Strelok",
"author_id": 2788,
"author_profile": "https://Stackoverflow.com/users/2788",
"pm_score": 0,
"selected": false,
"text": "try { } catch { }"
},
{
"answer_id": 3421097,
"author": "Bharat Patil",
"author_id": 412663,
"author_pro... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46279/"
] |
367,626 | <p>In the Java snippet:</p>
<pre><code>SyndFeedInput fr = new SyndFeedInput();
SyndFeed sf = fr.build(new XmlReader(myInputStream));
List<SyndEntry> entries = sf.getEntries();
</code></pre>
<p>the last line generates the warning </p>
<p>"The expression of type <code>List</code> needs unchecked conversion to co... | [
{
"answer_id": 367632,
"author": "Alex B",
"author_id": 6180,
"author_profile": "https://Stackoverflow.com/users/6180",
"pm_score": 3,
"selected": false,
"text": "SyndFeed"
},
{
"answer_id": 367634,
"author": "Shyam Kumar Sundarakumar",
"author_id": 35392,
"author_pro... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46277/"
] |
367,633 | <p>What are all the common undefined behaviours that a C++ programmer should know about?</p>
<p>Say, like:</p>
<pre><code>a[i] = i++;
</code></pre>
<p></p>
| [
{
"answer_id": 367650,
"author": "JaredPar",
"author_id": 23283,
"author_profile": "https://Stackoverflow.com/users/23283",
"pm_score": 2,
"selected": false,
"text": "char"
},
{
"answer_id": 367662,
"author": "Diomidis Spinellis",
"author_id": 20520,
"author_profile":... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22076/"
] |
367,656 | <p>Currently I am working very basic game using the C++ environment. The game used to be a school project but now that I am done with that programming class, I wanted to expand my skills and put some more flourish on this old assignment.</p>
<p>I have already made a lot of changes that I am pleased with. I have centra... | [
{
"answer_id": 367732,
"author": "hamishmcn",
"author_id": 3590,
"author_profile": "https://Stackoverflow.com/users/3590",
"pm_score": 2,
"selected": false,
"text": "string extn = item_name.substr(item_name.find_last_of(\".png\"));\nstring path = item_name.substr(0, item_name.find(\"..\\... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36254/"
] |
367,684 | <p>I'm using Pyglet(and OpenGL) in Python on an application, I'm trying to use glReadPixels to get the RGBA values for a set of pixels. It's my understanding that OpenGL returns the data as packed integers, since that's how they are stored on the hardware. However for obvious reasons I'd like to get it into a normal ... | [
{
"answer_id": 368224,
"author": "nikow",
"author_id": 11992,
"author_profile": "https://Stackoverflow.com/users/11992",
"pm_score": 1,
"selected": false,
"text": " buffer = gl.glReadPixels(0, 0, width, height, gl.GL_RGB, \n gl.GL_UNSIGNED_BYTE)\n image ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37181/"
] |
367,695 | <p>I need to get substed drive letter in Perl. Could anyone kindly help me?
$ENV{SYSTEMDRIVE} does not work; it gives me real logical drive letter, not the substed one.</p>
| [
{
"answer_id": 367705,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 0,
"selected": false,
"text": "SUBST [drive1: [drive2:]path]\nSUBST drive1: /D\n drive1: Specifies a virtual drive to which you want to assig... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46289/"
] |
367,703 | <p>This obviously requires the source file to be under source control. I would ideally like a tool which works under the IDE (Eclipse, Visual Studio, etc) - but an external tool would be nice, too. Obviously, it is possible manually go through previous versions of the file, and compare the various versions, but I am lo... | [
{
"answer_id": 367710,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": "https://Stackoverflow.com/users/20654",
"pm_score": 3,
"selected": false,
"text": "svn blame\n"
},
{
"answer_id": 368661,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "htt... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18651/"
] |
367,706 | <p>What is a good way of parsing command line arguments in Java?</p>
| [
{
"answer_id": 367714,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 10,
"selected": true,
"text": "commons-cli"
},
{
"answer_id": 41022241,
"author": "Paul",
"author_id": 735217,
"author_profile"... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1428/"
] |
367,709 | <p>I would like to execute the jQuery $(document).ready() in a drupal site. While i know that i can just stick it in the index page , this is really messy and a hack. </p>
<p>What i want to know is where is the correct location to put this, it would also need to be theme specific as i dont want all themes to use it.</... | [
{
"answer_id": 367729,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": false,
"text": "$(document).ready()"
},
{
"answer_id": 367775,
"author": "gregnostic",
"author_id": 41891,
"author_profile"... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42069/"
] |
367,711 | <p>I'm wondering if there is a "best" choice for collation in MySQL for a general website where you aren't 100% sure of what will be entered? I understand that all the encodings should be the same, such as MySQL, Apache, the HTML and anything inside PHP.</p>
<p>In the past I have set PHP to output in "UTF-8", but whic... | [
{
"answer_id": 367721,
"author": "mepcotterell",
"author_id": 43312,
"author_profile": "https://Stackoverflow.com/users/43312",
"pm_score": 4,
"selected": false,
"text": "utf8_general_ci"
},
{
"answer_id": 367725,
"author": "Eran Galperin",
"author_id": 10585,
"author... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367711",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
367,724 | <p>What is the standard way of incorporating helper/utility functions in Obj-C classes?</p>
<p>I.e. General purpose functions which are used throughout the application and called by more than 1 class.</p>
<p>Can an Obj-C method exist outside of a class, or does it need to be a C function for it to have this kind of b... | [
{
"answer_id": 367773,
"author": "AnthonyLambert",
"author_id": 31762,
"author_profile": "https://Stackoverflow.com/users/31762",
"pm_score": 5,
"selected": false,
"text": "@interface HelperClass: superclassname {\n // instance variables - none if all methods are static.\n}\n\n+ (void... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26088/"
] |
367,726 | <p>How can two classes in separate projects communicate between one another?</p>
<p>If ClassA references ClassB I can access methods of ClassB in ClassA... How can I make use of Interfaces to access methods of ClassA in ClassB?</p>
<p>Indeed do the classes even need to be linked if I make use of Interfaces?</p>
<p>C... | [
{
"answer_id": 367746,
"author": "lubos hasko",
"author_id": 275,
"author_profile": "https://Stackoverflow.com/users/275",
"pm_score": 2,
"selected": false,
"text": "System.Reflection.Assembly.LoadFile(\"MyProject.dll\").GetType(\"MyProject.TestClass\").GetMethod(\"TestMethod\").Invoke()... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367726",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
367,730 | <p>How can I change an attribute of an element in an XML file, using C#?</p>
| [
{
"answer_id": 367772,
"author": "alexmac",
"author_id": 23066,
"author_profile": "https://Stackoverflow.com/users/23066",
"pm_score": 6,
"selected": false,
"text": "using System.Xml.Linq;\n\nXDocument xmlFile = XDocument.Load(\"books.xml\"); \n\nvar query = from c in xmlFile.Elements(\"... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
367,739 | <p>I have a Product Class which has a one to many relationship to a Price class.
So a product can have multiple prices.</p>
<p>I need to query the db to get me 10 products which have Price.amount < $2. In this case its to populate a UI with 10 items in a page.
so i writ the following code:</p>
<pre><code>ICriteria... | [
{
"answer_id": 367951,
"author": "Bork Blatt",
"author_id": 5381,
"author_profile": "https://Stackoverflow.com/users/5381",
"pm_score": 0,
"selected": false,
"text": "MinimumPrice (numeric(18,2)\nMaximumPrice (numeric(18,2)\n"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/367739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
367,751 | <p>I want to create a dmg file for my Mac project. Can someone please tell me how to do this? This being my first Mac project, I do not have any idea how to proceed. I also want to give the user an option of running the app on start-up. How do I do this?</p>
<p>Thanks.</p>
<p>P.S. I also want to add a custom license ... | [
{
"answer_id": 367826,
"author": "dbr",
"author_id": 745,
"author_profile": "https://Stackoverflow.com/users/745",
"pm_score": 5,
"selected": false,
"text": "/Applications/Utilities/"
},
{
"answer_id": 976397,
"author": "kent",
"author_id": 78568,
"author_profile": "h... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367751",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46297/"
] |
367,752 | <p>Trying to add an onclick handler to my tabs, and can't seem to get the DOM selection right. Can you guys help?</p>
<pre><code> <div id="tabstrip">
<ul>
<li id="a" class="selected"><a href="#">A</a></li>
<li id="b"><a href="#">B</a></li>
... | [
{
"answer_id": 367777,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 3,
"selected": true,
"text": "as[j].onclick = function(items, i)\n{\n return function()\n {\n changeTab(items[i].id);\n return false;\n ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8372/"
] |
367,761 | <h2>Original title: How can I prevent loading a native dll from a .NET app?</h2>
<p><strong>Background:</strong></p>
<p>My C# application includes a plugin framework and generic plugin loader.</p>
<p>The plugin loader enumerates the application directory in order to identify plugin dlls (essentially it searches for ... | [
{
"answer_id": 367785,
"author": "Ian",
"author_id": 4396,
"author_profile": "https://Stackoverflow.com/users/4396",
"pm_score": 2,
"selected": false,
"text": "foreach (string aDll in dllCollection) \n{\n try \n {\n Assembly anAssembly = Assembly.LoadFrom(aDll);\n }\n catch (BadI... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46296/"
] |
367,768 | <p>Given a function:</p>
<pre><code>function x(arg) { return 30; }
</code></pre>
<p>You can call it two ways:</p>
<pre><code>result = x(4);
result = new x(4);
</code></pre>
<p>The first returns 30, the second returns an object.</p>
<p>How can you detect which way the function was called <strong>inside the function... | [
{
"answer_id": 367794,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 6,
"selected": false,
"text": "this.constructor"
},
{
"answer_id": 367825,
"author": "annakata",
"author_id": 13018,
"author_profile": "... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15055/"
] |
367,781 | <p>I have a java me application and now I want to place that application at the server. I want to write the download page with servlet. I mean when the user keys in the servlet url and hit to that servlet, my jad file will send to the phone(user no need to click to download button or link.After page loading, the servle... | [
{
"answer_id": 368788,
"author": "miceuz",
"author_id": 24443,
"author_profile": "https://Stackoverflow.com/users/24443",
"pm_score": 1,
"selected": false,
"text": "MIDlet-1: BiteTravel, i3.png, main.MainMidlet\nMIDlet-Icon: i1.png\nMIDlet-Jar-Size: 109855 //this is very important -- jar... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
367,786 | <p>It looks like if I load dynamic content using <code>$.get()</code>, the result is cached in browser.</p>
<p>Adding some random string in QueryString seems to solve this issue (I use <code>new Date().toString()</code>), but this feels like a hack. </p>
<p>Is there any other way to achieve this?
Or, if unique string... | [
{
"answer_id": 367796,
"author": "miceuz",
"author_id": 24443,
"author_profile": "https://Stackoverflow.com/users/24443",
"pm_score": 5,
"selected": false,
"text": "response.setHeader( \"Pragma\", \"no-cache\" );\nresponse.setHeader( \"Cache-Control\", \"no-cache\" );\nresponse.setDateHe... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10629/"
] |
367,789 | <p>Can you someone please point in me in a direction, sample code or an online resource to accomplish the following:</p>
<p><strong>Requirement:</strong>
I would like to write a simple IVR menu option that will run a script (Bash or Python). For example, phone the Asterisk machine and request to restart a service on ... | [
{
"answer_id": 570816,
"author": "Chochos",
"author_id": 10165,
"author_profile": "https://Stackoverflow.com/users/10165",
"pm_score": 2,
"selected": false,
"text": "exten => 9999,1,GotoIf($[\"${CALLERID(num)}\" = \"yournumber\"]?4)\nexten => 9999,2,Playback(sorry)\nexten => 9999,3,Hangu... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11123/"
] |
367,797 | <p>I am using <code>Path.Combine</code>, and one of the strings contain a Unicode characters. I get <code>{System.ArgumentException} exception; illegal characters in path</code>.</p>
<p>According to <a href="http://msdn.microsoft.com/en-us/library/aa365247.aspx" rel="nofollow noreferrer">MSDN</a> filepath/name can have... | [
{
"answer_id": 367816,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 2,
"selected": false,
"text": "Path.InvalidPathChars"
},
{
"answer_id": 367835,
"author": "DilbertDave",
"author_id": 31580,
"author_profi... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38997/"
] |
367,817 | <p>I want to achieve the following:</p>
<pre><code>ID | Counter
------------
0 | 343
1 | 8344
</code></pre>
<p>Now say that I want to update counter for ID 1,,, what is the easiest way to do it? Do I use sequences? do I simply read the value and update? Is there any special type for it?</p>
<p>I was thinking about... | [
{
"answer_id": 367843,
"author": "annakata",
"author_id": 13018,
"author_profile": "https://Stackoverflow.com/users/13018",
"pm_score": 0,
"selected": false,
"text": "select id, count(users) from foo group by id"
},
{
"answer_id": 367852,
"author": "Jonathan Lonowski",
"a... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46303/"
] |
367,819 | <p>In the external code that I am using there is enum: </p>
<pre><code>enum En {VALUE_A, VALUE_B, VALUE_C};
</code></pre>
<p>In another external code that I am using there are 3 #define directives: </p>
<pre><code>#define ValA 5
#define ValB 6
#define ValC 7
</code></pre>
<p>Many times I have int X which is equal t... | [
{
"answer_id": 367834,
"author": "Patrick",
"author_id": 38892,
"author_profile": "https://Stackoverflow.com/users/38892",
"pm_score": 1,
"selected": false,
"text": "//libFunc( enum a );\n\nlibFuncOverload( define a ) {\n libFunc( toEn( a ) );\n}\n"
},
{
"answer_id": 367968,
... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367819",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44673/"
] |
367,823 | <p>Can anyone tell me how to write a nested SQL query like </p>
<p>SELECT * FROM X WHERE X.ID IN (SELECT Y.XID FROM Y WHERE .....)</p>
<p>in LINQ?</p>
| [
{
"answer_id": 367829,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 4,
"selected": true,
"text": "var yIds = from y in dataContext.Y\n where ...\n select y.XId;\n\nvar query = from x in dataContext.X... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367823",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34623/"
] |
367,824 | <p><em>It is a messy question, hopefully you can figure out what I want :)</em></p>
<p><strong>What is the best way to use Win32 functionality in a Qt Open Source Edition project?</strong></p>
<p>Currently I have included the necessary Windows SDK libraries and include directories to qmake project file by hand. It wo... | [
{
"answer_id": 368249,
"author": "MSalters",
"author_id": 15416,
"author_profile": "https://Stackoverflow.com/users/15416",
"pm_score": 0,
"selected": false,
"text": "wchar_t const*"
},
{
"answer_id": 406663,
"author": "Henrik Hartz",
"author_id": 50830,
"author_profi... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40657/"
] |
367,846 | <p>I'm currently using the ModelStateDictionary in asp.net mvc to hold validation errors and pass then back to the user. Being able to check if the whole model is valid with ModelState.IsValid is particularly. However, a current application I'm working on has a need to be able to report warnings. These aren't as critic... | [
{
"answer_id": 368155,
"author": "Mike Scott",
"author_id": 43649,
"author_profile": "https://Stackoverflow.com/users/43649",
"pm_score": 2,
"selected": false,
"text": "ViewData[ \"warnings\" ] = new[] { \"You need to snarfle your aardvark\" } ;\n"
},
{
"answer_id": 370779,
"... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367846",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35047/"
] |
367,847 | <p>There is a div that has inner content, a div with a border that's inside a div. Somehow, this div is expanded to encompass the next div. It blows my mind.</p>
<pre><code><div style="background: yellow;">
<div>
<div style="border: 1px solid black; background: green">green background</div... | [
{
"answer_id": 367858,
"author": "annakata",
"author_id": 13018,
"author_profile": "https://Stackoverflow.com/users/13018",
"pm_score": 2,
"selected": false,
"text": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n"
},
{
"answer_id... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43005/"
] |
367,853 | <p>Below is my stored procedure. I want use stored procedure select all row of date from tbl_member and insert 2 table. But it's not work. Some one can help me?</p>
<pre><code>Create PROCEDURE sp_test
AS
BEGIN
SET NOCOUNT ON;
Declare @A Varchar(255), @B Varchar(255), @C Varchar(255), @D int
Declare Table... | [
{
"answer_id": 367875,
"author": "Pete OHanlon",
"author_id": 43635,
"author_profile": "https://Stackoverflow.com/users/43635",
"pm_score": 4,
"selected": true,
"text": "INSERT INTO NewMember(A, B, C, D)\nSELECT A, B, C, D\nFROM tbl_member\n"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/367853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44260/"
] |
367,859 | <p>Does any one know of a control that i can use with a ASP.Net gridview that provides the functionality of the ASP.Net Ajax Control PagingBulletedList. I want to provide the users with a easier way to access the data in the grid.</p>
<p>It should ideally work in the same way paging for the grid works except that it s... | [
{
"answer_id": 380120,
"author": "jpsimard-nyx",
"author_id": 47109,
"author_profile": "https://Stackoverflow.com/users/47109",
"pm_score": 2,
"selected": true,
"text": "<asp:UpdatePanel runat=\"server\" ID=\"UpdatePanel\">\n<asp:GridView runat=\"server\" ID=\"GridView\">\n <PagerTempla... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42069/"
] |
367,862 | <p>I would like to build a regexp in Java that would be passed in a FilenameFilter to filter the files in a dir.</p>
<p>The problem is that I can't get the hang of the regexp "mind model" :)</p>
<p>This is the regexp that I came up with to select the files that I would like to exclude </p>
<p>((ABC|XYZ))+\w*Test.xml... | [
{
"answer_id": 367868,
"author": "Yoni Roit",
"author_id": 34161,
"author_profile": "https://Stackoverflow.com/users/34161",
"pm_score": 3,
"selected": false,
"text": "if (str.endsWith(\"Test.xml\") && !str.startsWith(\"ABC\"))\n"
},
{
"answer_id": 367882,
"author": "VonC",
... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38973/"
] |
367,863 | <p>I've got the following two tables (in MySQL):</p>
<pre><code>Phone_book
+----+------+--------------+
| id | name | phone_number |
+----+------+--------------+
| 1 | John | 111111111111 |
+----+------+--------------+
| 2 | Jane | 222222222222 |
+----+------+--------------+
Call
+----+------+--------------+
| id | ... | [
{
"answer_id": 367865,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 10,
"selected": true,
"text": "SELECT *\nFROM Call\nWHERE phone_number NOT IN (SELECT phone_number FROM Phone_book)\n"
},
{
"answer_id": 3678... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21709/"
] |
367,870 | <p>If someone logs on to my application this user contains a dictionary with certain permissions.</p>
<pre><code>ex: module.view.workspace = true
module.view.reporting = false
...
</code></pre>
<p>Then we know to what parts of the application the user has access.
What I want to know is how we can apply these ... | [
{
"answer_id": 367865,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 10,
"selected": true,
"text": "SELECT *\nFROM Call\nWHERE phone_number NOT IN (SELECT phone_number FROM Phone_book)\n"
},
{
"answer_id": 3678... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29964/"
] |
367,884 | <blockquote>
<p>Possible duplicate
<a href="https://stackoverflow.com/questions/90871/debug-vs-release-in-net">Debug Visual Studio Release in .NET</a></p>
</blockquote>
<p>What is the difference between Debug and Release in Visual Studio?</p>
| [
{
"answer_id": 367903,
"author": "foraidt",
"author_id": 27596,
"author_profile": "https://Stackoverflow.com/users/27596",
"pm_score": 3,
"selected": false,
"text": "MFC90D.DLL"
},
{
"answer_id": 33577702,
"author": "jxramos",
"author_id": 1330381,
"author_profile": "... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45624/"
] |
367,905 | <p>All the generated webservice-stubs from our backend have an equals-method similar to this one:</p>
<pre><code>private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof PropertyData)) return false;
PropertyData other = (PropertyData) obj;
... | [
{
"answer_id": 367911,
"author": "David Santamaria",
"author_id": 24097,
"author_profile": "https://Stackoverflow.com/users/24097",
"pm_score": -1,
"selected": false,
"text": "__equalsCalc = null;\n"
},
{
"answer_id": 367923,
"author": "Jon Skeet",
"author_id": 22656,
... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1870/"
] |
367,907 | <p>I'm trying to follow the directions from this page:<br>
<a href="http://www.opengl.org/resources/faq/technical/color.htm" rel="nofollow noreferrer">http://www.opengl.org/resources/faq/technical/color.htm</a><br>
regarding rendering primitives with a unique color</p>
<p>I've checked the number of bits for every colo... | [
{
"answer_id": 367921,
"author": "schnaader",
"author_id": 34065,
"author_profile": "https://Stackoverflow.com/users/34065",
"pm_score": 1,
"selected": false,
"text": "In either event, you'll need to ensure that any state that could\naffect the final color has been disabled. The followin... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9611/"
] |
367,914 | <p>Say I have accepted() a connection to my server (that runs on a Solaris) and the client has closed the connection. What is the state of the socket (in netstat categories) of the socket on the server side before I close() it on the server side? Is it BOUND?</p>
| [
{
"answer_id": 5734167,
"author": "user595997",
"author_id": 595997,
"author_profile": "https://Stackoverflow.com/users/595997",
"pm_score": 0,
"selected": false,
"text": "CLOSE_WAIT"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/367914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7593/"
] |
367,934 | <p>Having read an existing post on <a href="https://stackoverflow.com/questions/305605/weird-scope-issue-in-bat-file">stackoverflow</a> and done some reading around on the net. I thought it was time to post my question before I lost too much hair!</p>
<p>I have the following code within a batch file which I double cli... | [
{
"answer_id": 368076,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 4,
"selected": true,
"text": "@echo off\n\nSETLOCAL ENABLEDELAYEDEXPANSION\n\n::Observe variable is not defined\nSET test\n\n::Define initial value\nSE... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367934",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40593/"
] |
367,940 | <p>I hope it is correct term-wise to say that components in a GUI is like JButton, JPanel, JTextField, all that good stuff.</p>
<p>I want to create a text field that takes in an integer. Then a submit button can be pressed and based on the integer that was inputted, create that many textfields in a popup window or wha... | [
{
"answer_id": 367943,
"author": "Mario Ortegón",
"author_id": 2309,
"author_profile": "https://Stackoverflow.com/users/2309",
"pm_score": 0,
"selected": false,
"text": "List fields = new ArrayList();\n\n// Create as many elements as you need\nfor (int i = 0; i < numberOfElements; i++){\... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367940",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51518/"
] |
367,947 | <p>What is the c# equivalent of the following c++:</p>
<pre><code>srand((unsigned)(time(NULL)));
weight=(double)(rand())/(RAND_MAX/2) - 1;
</code></pre>
| [
{
"answer_id": 367955,
"author": "schnaader",
"author_id": 34065,
"author_profile": "https://Stackoverflow.com/users/34065",
"pm_score": 2,
"selected": false,
"text": "Random rnd = new Random((int)DateTime.Now.Ticks);\nreturn rnd.Next(-1,1);\n"
},
{
"answer_id": 368942,
"auth... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367947",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
367,966 | <p>For testing purposes I'm planning to put together a little app that will listen for a particular event coming from an application and interact with it at that point. </p>
<p>Given that we're at a point in the testing process where changing the application code is out of the question, the ideal from my point of view... | [
{
"answer_id": 368028,
"author": "Arnout",
"author_id": 3496,
"author_profile": "https://Stackoverflow.com/users/3496",
"pm_score": 1,
"selected": false,
"text": "System.Diagnostics"
},
{
"answer_id": 374392,
"author": "glenatron",
"author_id": 15394,
"author_profile"... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15394/"
] |
367,971 | <p>Is there a function, that clears last line in command prompt? I dont mean "cls" - it clears the whole sreen, I want to delete just the last line.</p>
<p>e.g. I am searching for a file in a folder and its subfolders and I want to print to cmd current folder - but I want to rewrite it, when the folder changes, not ju... | [
{
"answer_id": 367977,
"author": "shoosh",
"author_id": 9611,
"author_profile": "https://Stackoverflow.com/users/9611",
"pm_score": 2,
"selected": false,
"text": "\"\\r\""
},
{
"answer_id": 368108,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367971",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46289/"
] |
367,984 | <p>What C++ HTTP frameworks are available that will help in adding HTTP/SOAP serving support to an application?</p>
| [
{
"answer_id": 36845066,
"author": "Vinnie Falco",
"author_id": 150679,
"author_profile": "https://Stackoverflow.com/users/150679",
"pm_score": 2,
"selected": false,
"text": "#include <beast/http.hpp>\n#include <boost/asio.hpp>\n#include <iostream>\n#include <string>\n\nint main()\n{\n ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/367984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9789/"
] |
368,001 | <p>I have a .NET assembly which I have exposed to COM via a tlb file, and an installer which registers the tlb. I have manually checked that the installer works correctly and that COM clients can access the library. So far, so good...</p>
<p>However, I am trying to put together some automated system tests which check ... | [
{
"answer_id": 5707462,
"author": "Warren",
"author_id": 479921,
"author_profile": "https://Stackoverflow.com/users/479921",
"pm_score": 5,
"selected": true,
"text": "using System;\nclass ComClass\n{\n public bool CallFunction(arg1, arg2)\n {\n Type ComType;\n object ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368001",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32413/"
] |
368,003 | <p>I have a single spool mbox file that was created with evolution, containing a selection of emails that I wish to print. My problem is that the emails are not placed into the mbox file chronologically. I would like to know the best way to place order the files from first to last using bash, perl or python. I would li... | [
{
"answer_id": 368067,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 5,
"selected": true,
"text": "#!/usr/bin/python2.5\nfrom email.utils import parsedate\nimport mailbox\n\ndef extract_date(email):\n date = email.get('Date... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1246613/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.