qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
136,104 | <p>Why isn't Visual Studio 2005 generating a serialization setting when I set the project setting "Generate Serialization Assembly" to "On"?</p>
| [
{
"answer_id": 136109,
"author": "Adam Tegen",
"author_id": 4066,
"author_profile": "https://Stackoverflow.com/users/4066",
"pm_score": 4,
"selected": true,
"text": " <Target Name=\"AfterBuild\" DependsOnTargets=\"AssignTargetPaths;Compile;ResolveKeySource\" Inputs=\"$(MSBuildAllProject... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136104",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4066/"
] |
136,129 | <p>I am trying to set the disabled font characteristics for a Label Control. I can set all of the Font characteristics (size, bold, etc), but the color is overridden by the default windows behavior which seems to be one of these two colors:</p>
<ul>
<li>If background color is transparent then ForeColor is same as Tex... | [
{
"answer_id": 136265,
"author": "Richard Morgan",
"author_id": 2258,
"author_profile": "https://Stackoverflow.com/users/2258",
"pm_score": 2,
"selected": true,
"text": "ControlPaint.DrawStringDisabled(g, this.Text, this.Font, Color.Transparent,\n new Rectangle(CustomStrin... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19242/"
] |
136,132 | <p>I need to create and copy to the clipboard some RichText with standard "formatting" like bold/italics, indents and the like. The way I'm doing it now seems kind of inelegant... I'm creating a RichTextBox item and applying my formatting through that like so:</p>
<pre><code>RichTextBox rtb = new RichTextBox();
Font ... | [
{
"answer_id": 136221,
"author": "mattlant",
"author_id": 14642,
"author_profile": "https://Stackoverflow.com/users/14642",
"pm_score": 2,
"selected": false,
"text": "public static RichTextBox Set(this RichTextBox rtb, Font font, string text)\n{ \n rtb.Text = text;\n ... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13776/"
] |
136,146 | <p>Examples:</p>
<pre><code>"1" yes
"-1" yes
"- 3" no
"1.2" yes
"1.2.3" no
"7e4" no (though in some cases you may want to allow scientific notation)
".123" yes
"123." yes
"." no
"-.5" yes
"007" yes
"00" yes
</code></pre>
| [
{
"answer_id": 136157,
"author": "dreeves",
"author_id": 4234,
"author_profile": "https://Stackoverflow.com/users/4234",
"pm_score": 2,
"selected": false,
"text": "/^\\s*[+-]?(?:\\d+\\.?\\d*|\\d*\\.\\d+)\\s*$/\n"
},
{
"answer_id": 136321,
"author": "Peter Boughton",
"auth... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4234/"
] |
136,168 | <p>I'm writing a log file viewer for a web application and for that I want to paginate through the lines of the log file. The items in the file are line based with the newest item at the bottom.</p>
<p>So I need a <code>tail()</code> method that can read <code>n</code> lines from the bottom and support an offset. Thi... | [
{
"answer_id": 136280,
"author": "Mark",
"author_id": 16363,
"author_profile": "https://Stackoverflow.com/users/16363",
"pm_score": 7,
"selected": false,
"text": "import os\ndef tail(f, n, offset=0):\n stdin,stdout = os.popen2(\"tail -n \"+n+offset+\" \"+f)\n stdin.close()\n lines = s... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19990/"
] |
136,172 | <p>I have a single-threaded application that loads several assemblies at runtime using the following:</p>
<pre><code>objDLL = Assembly.LoadFrom(strDLLs[i]);
</code></pre>
<p>I would like the assemblies loaded in this manner to use the same log4net.ILog reference as the rest of the assemblies do. But it appears the ru... | [
{
"answer_id": 185626,
"author": "Jérôme Laban",
"author_id": 26346,
"author_profile": "https://Stackoverflow.com/users/26346",
"pm_score": 2,
"selected": false,
"text": "log4net.LogManager.GetLogger(\"SomeLogger\");\n"
},
{
"answer_id": 226240,
"author": "Community",
"au... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
136,175 | <p>My app keeps track of the state of about 1000 objects. Those objects are read from and written to a persistent store (serialized) in no particular order. </p>
<p>Right now the app uses the registry to store each object's state. This is nice because:</p>
<ul>
<li><p>It is simple</p></li>
<li><p>It is very fast</... | [
{
"answer_id": 136714,
"author": "pestophagous",
"author_id": 10278,
"author_profile": "https://Stackoverflow.com/users/10278",
"pm_score": 3,
"selected": true,
"text": "sqlite3_open"
}
] | 2008/09/25 | [
"https://Stackoverflow.com/questions/136175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7442/"
] |
136,178 | <p>I'm running <a href="http://www.git-scm.com/docs/git-diff" rel="noreferrer">git-diff</a> on a file, but the change is at the end of a long line.</p>
<p>If I use cursor keys to move right, it loses colour-coding—and worse the lines don't line up—making it harder to track the change.</p>
<p>Is there a wa... | [
{
"answer_id": 136396,
"author": "Peter Boughton",
"author_id": 9360,
"author_profile": "https://Stackoverflow.com/users/9360",
"pm_score": 2,
"selected": false,
"text": "gitk git-gui"
},
{
"answer_id": 152546,
"author": "SpoonMeiser",
"author_id": 1577190,
"author_pr... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9360/"
] |
136,191 | <p>Let's say I want to write a regular expression to change all <code><abc></code>, <code><def></code>, and <code><ghi></code> tags into <code><xyz></code> tags.. and I also want to change their closing tags to <code></xyz></code>. This seems like a reasonable regex (ignore the backticks; ... | [
{
"answer_id": 136267,
"author": "Kevin Crumley",
"author_id": 1818,
"author_profile": "https://Stackoverflow.com/users/1818",
"pm_score": 1,
"selected": false,
"text": "(</?) < < </"
},
{
"answer_id": 136268,
"author": "jmcnamara",
"author_id": 10238,
"author_profile... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136191",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7598/"
] |
136,195 | <p>We have a windows application that contains an ActiveX WebBrowser control. As part of the regular operation of this application modifications are made to the pages that are displayed by the ActiveX WebBrowser control. Part of these modifications involve setting a JavaScript variable in a web page being loaded into t... | [
{
"answer_id": 1763769,
"author": "EndangeringSpecies",
"author_id": 208334,
"author_profile": "https://Stackoverflow.com/users/208334",
"pm_score": 3,
"selected": false,
"text": "eval() webBrowser1.Document.InvokeScript(\"eval\", new String[] {\"1 + 2\"});\n \"1 + 2\" \"3\" InvokeScript... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136195",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14177/"
] |
136,204 | <p>Not really getting the point of the map function. Can anyone explain with examples its use?</p>
<p>Are there any performance benefits to using this instead of a loop or is it just sugar?</p>
| [
{
"answer_id": 136228,
"author": "Adam Bellaire",
"author_id": 21632,
"author_profile": "https://Stackoverflow.com/users/21632",
"pm_score": 7,
"selected": true,
"text": "# Double all elements of a list\nmy @double = map { $_ * 2 } (1,2,3,4,5);\n# @double = (2,4,6,8,10);\n # @user_object... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3208/"
] |
136,233 | <p>in tcsh I'm trying to redirect STDERR from a command from my .aliases file.</p>
<p>I found that I can redirect STDERR from the command line like this. . .</p>
<pre><code>$ (xemacs > /dev/tty) >& /dev/null
</code></pre>
<p>. . . but when I put this in my .aliases file I get an alias loop. . .</p>
<pre><... | [
{
"answer_id": 136313,
"author": "Dominic Eidson",
"author_id": 5042,
"author_profile": "https://Stackoverflow.com/users/5042",
"pm_score": 4,
"selected": true,
"text": "#!/bin/tcsh\n\n(xemacs $* > /dev/tty ) >& /dev/null\n"
},
{
"answer_id": 307638,
"author": "J. A. Faucett"... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
136,235 | <p>The reason I want to do this is to make it easy to parse out instructions that are emailed to a bot, the kind of thing majordomo might do to parse commands like subscribing and unsubscribing. It turns out there are a lot of crazy formats and things to deal with, like quoted text, distinguishing between header and b... | [
{
"answer_id": 136324,
"author": "dreeves",
"author_id": 4234,
"author_profile": "https://Stackoverflow.com/users/4234",
"pm_score": -1,
"selected": false,
"text": "# Take an email as a big string and turn it into a plain ascii equivalent.\n# TODO: leave any html tags inside of quotes al... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4234/"
] |
136,238 | <p>I have a Windows Form app written in C#. Its job is to send messages to a list of users. While those messages are being sent, I'd like to display status of the operation for each user. What I am doing (for each user) is creating a Label control and adding it to Panel. This works without a problem for a small set ... | [
{
"answer_id": 136459,
"author": "spoulson",
"author_id": 3347,
"author_profile": "https://Stackoverflow.com/users/3347",
"pm_score": 1,
"selected": false,
"text": "ListView EnsureVisible()"
}
] | 2008/09/25 | [
"https://Stackoverflow.com/questions/136238",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/324/"
] |
136,278 | <p>For example, I rarely need:</p>
<pre><code>using System.Text;
</code></pre>
<p>but it's always there by default. I assume the application will use more memory if your code contains unnecessary <a href="http://msdn.microsoft.com/en-us/library/aa664764(VS.71).aspx" rel="noreferrer">using directives</a>. But is there... | [
{
"answer_id": 136320,
"author": "Franci Penov",
"author_id": 17028,
"author_profile": "https://Stackoverflow.com/users/17028",
"pm_score": 5,
"selected": false,
"text": "using using Using using using"
},
{
"answer_id": 136494,
"author": "Jay Bazuzi",
"author_id": 5314,
... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136278",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15328/"
] |
136,288 | <p>I have this PHP code that I am trying to use to let a user edit a news record in a form and then when they hit the submit button, it will update the record in a database. The problem is that everything works but the record is not actually updated in the database.</p>
<p>Could someone look at my code and see where a... | [
{
"answer_id": 136345,
"author": "Doug Moore",
"author_id": 13179,
"author_profile": "https://Stackoverflow.com/users/13179",
"pm_score": 3,
"selected": false,
"text": "if ($_GET && !$_POST) { \n if (array_key_exists('update', $_POST)) { \n"
},
{
"answer_id": 136348,
"author"... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
136,308 | <p>We recently started using maven for dependency management. Our team uses eclipse as it's IDE. Is there an easy way to get eclipse to refresh the maven dependencies without running mvn eclipse:eclipse?</p>
<p>The dependencies are up to date in the local maven repository, but eclipse doesn't pick up the changes until... | [
{
"answer_id": 136349,
"author": "Chris Vest",
"author_id": 13251,
"author_profile": "https://Stackoverflow.com/users/13251",
"pm_score": 2,
"selected": false,
"text": "mvn eclipse:eclipse"
}
] | 2008/09/25 | [
"https://Stackoverflow.com/questions/136308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1310/"
] |
136,362 | <p>Right now, I have two Eclipse projects - they both use Maven 2 for all their jar-dependency goodness.</p>
<p>Inside Eclipse, I have project Foo included in project Bar's build path, so that I can use Foo's classes from project Bar. This works really well in Eclipse land, but when I try:</p>
<pre><code>mvn compile... | [
{
"answer_id": 136395,
"author": "Chris Vest",
"author_id": 13251,
"author_profile": "https://Stackoverflow.com/users/13251",
"pm_score": 1,
"selected": false,
"text": "mvn install"
},
{
"answer_id": 136397,
"author": "Pablo Fernandez",
"author_id": 7595,
"author_prof... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8178/"
] |
136,401 | <p>This could be weird, Have you ever come across a blog which you wanted to read in the chronological order? And that blog could be old, with several hundred posts. When i add this feed to my feed reader, say googlereader, the latest feed comes on top and as i scroll down further, the older posts appear. This could be... | [
{
"answer_id": 160792,
"author": "Tim Farley",
"author_id": 4425,
"author_profile": "https://Stackoverflow.com/users/4425",
"pm_score": 3,
"selected": true,
"text": "List<SyndicationItem> private SyndicationFeed m_feed;\nprivate List<SyndicationItem> m_items;\n\n...snip...\n\nm_items.Rev... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1909/"
] |
136,413 | <p>I have a Flex application where I'm using a Canvas to contain several other components. On that Canvas there is a Button which is used to invoke a particular flow through the system. Clicking anywhere else on the Canvas should cause cause a details pane to appear showing more information about the record represent... | [
{
"answer_id": 136569,
"author": "Laplie Anderson",
"author_id": 14204,
"author_profile": "https://Stackoverflow.com/users/14204",
"pm_score": 4,
"selected": true,
"text": "event.stopImmediatePropagation()\n"
},
{
"answer_id": 136571,
"author": "mmattax",
"author_id": 163... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1247/"
] |
136,419 | <p>I need to determine the current year in Java as an integer. I could just use <code>java.util.Date()</code>, but it is deprecated.</p>
| [
{
"answer_id": 136434,
"author": "cagcowboy",
"author_id": 19629,
"author_profile": "https://Stackoverflow.com/users/19629",
"pm_score": 11,
"selected": true,
"text": "int year = Year.now().getValue();\n int year = Calendar.getInstance().get(Calendar.YEAR);\n"
},
{
"answer_id": 1... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/318/"
] |
136,429 | <p>I have a PHP script that is called from a cron job every minute. This script takes some info from the database and then calls another PHP script using the System function (passing it some parameters).</p>
<p>That means that I can start up to 10 scripts from this "main" one. And what I would like to do is that I wou... | [
{
"answer_id": 136487,
"author": "Till",
"author_id": 2859,
"author_profile": "https://Stackoverflow.com/users/2859",
"pm_score": -1,
"selected": false,
"text": "system('php yourscript.php &');\n <?php\nwhile(true) {\n // do whatever needs to be done.\n}\n?>\n"
},
{
"answer_id":... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136429",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/185527/"
] |
136,432 | <p>I have a client/server system that performs communication using XML transferred using HTTP requests and responses with the client using Perl's LWP and the server running Perl's CGI.pm through Apache. In addition the stream is encrypted using SSL with certificates for both the server and all clients.</p>
<p>This sy... | [
{
"answer_id": 137279,
"author": "J.J.",
"author_id": 21204,
"author_profile": "https://Stackoverflow.com/users/21204",
"pm_score": -1,
"selected": false,
"text": "read(STDIN, $query_string, $ENV{'CONTENT_LENGTH'});\n"
},
{
"answer_id": 138095,
"author": "cjm",
"author_id... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22410/"
] |
136,435 | <p>How to allow <code>TextBlock</code>'s text to be selectable?</p>
<p>I tried to get it to work by displaying the text using a read-only TextBox styled to look like a textblock but this will not work in my case because a TextBox does not have inlines. In other words, how to make it selectable?</p>
| [
{
"answer_id": 2506504,
"author": "MSB",
"author_id": 300663,
"author_profile": "https://Stackoverflow.com/users/300663",
"pm_score": 9,
"selected": true,
"text": "TextBox TextBlock <TextBox Background=\"Transparent\"\n BorderThickness=\"0\"\n Text=\"{Binding Text, Mode=O... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1133/"
] |
136,436 | <p>I am developing an auto-builder that will run a series of steps in our build process and build our target application. We used to use a batch file which set up a bunch of environment variables or called tools that setup environment variables and ultimately runs a 'make'. </p>
<p>I've been using the 'Process' class ... | [
{
"answer_id": 2506504,
"author": "MSB",
"author_id": 300663,
"author_profile": "https://Stackoverflow.com/users/300663",
"pm_score": 9,
"selected": true,
"text": "TextBox TextBlock <TextBox Background=\"Transparent\"\n BorderThickness=\"0\"\n Text=\"{Binding Text, Mode=O... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/424554/"
] |
136,443 | <p>We've noticed that IE7 has an odd behavor with code blocks posted on Stack Overflow. For example, this little code block:</p>
<pre><code>public PageSizer(string href, int index)
{
HRef = href;
PageIndex = index;
}
</code></pre>
<p>Copy and pasted from IE7, ends up like this:</p>
<pre>
public PageSizer(str... | [
{
"answer_id": 136510,
"author": "Armin Ronacher",
"author_id": 19990,
"author_profile": "https://Stackoverflow.com/users/19990",
"pm_score": -1,
"selected": false,
"text": "<code>"
},
{
"answer_id": 136586,
"author": "AaronSieb",
"author_id": 16911,
"author_profile":... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1/"
] |
136,444 | <p>I'm working on an embedded linux system in C, I'm looking for the source code to the equivalet of SendARP in Windows. Any pointers?</p>
| [
{
"answer_id": 137384,
"author": "Andrew Edgecombe",
"author_id": 11694,
"author_profile": "https://Stackoverflow.com/users/11694",
"pm_score": 3,
"selected": true,
"text": "\nfoo = system(\"/somepath/arping somehost\");\n"
}
] | 2008/09/25 | [
"https://Stackoverflow.com/questions/136444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15797/"
] |
136,458 | <p>How would I have a <a href="http://en.wikipedia.org/wiki/JavaScript" rel="noreferrer">JavaScript</a> action that may have some effects on the current page but would also change the URL in the browser so if the user hits reload or bookmark, then the new URL is used? </p>
<p>It would also be nice if the back button ... | [
{
"answer_id": 136506,
"author": "Matthew Crumley",
"author_id": 2214,
"author_profile": "https://Stackoverflow.com/users/2214",
"pm_score": 8,
"selected": false,
"text": "history.pushState history.popState window.location.hash onhashchange setInterval"
},
{
"answer_id": 702930,
... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10393/"
] |
136,467 | <p>short:</p>
<p>Is there a way in Ruby to DRY-ify this:</p>
<pre><code>def entry_point_one
begin
do_something
rescue MySyntaxErrorOne, MySyntaxErrorTwo, MySyntaxErrorEtc => syn_err
raise syn_err.exception(syn_err.message)
end
end
def entry_point_two
begin
do_something_else
rescue MySyntaxEr... | [
{
"answer_id": 136541,
"author": "Patrick Huizinga",
"author_id": 15200,
"author_profile": "https://Stackoverflow.com/users/15200",
"pm_score": 2,
"selected": false,
"text": "interpreter_block {do_something}\n\ndef interpreter_block\n yield\nrescue ExceptionOne, ExceptionTwo, ExceptionE... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15200/"
] |
136,474 | <p>I have a set of objects in a Vector from which I'd like to select a random subset (e.g. 100 items coming back; pick 5 randomly). In my first (very hasty) pass I did an extremely simple and perhaps overly clever solution:</p>
<pre><code>Vector itemsVector = getItems();
Collections.shuffle(itemsVector);
itemsVector.... | [
{
"answer_id": 136544,
"author": "mmr",
"author_id": 21981,
"author_profile": "https://Stackoverflow.com/users/21981",
"pm_score": 0,
"selected": false,
"text": "for (int i = 0; i < 5; i++){\n int r = rand.nextInt(itemsVector.size());\n while (boolArray[r]){\n r = rand.nextInt(... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4459/"
] |
136,500 | <p>I have a string in a node and I'd like to split the string on '?' and return the last item in the array.</p>
<p>For example, in the block below:</p>
<pre><code><a>
<xsl:attribute name="href">
/newpage.aspx?<xsl:value-of select="someNode"/>
</xsl:attribute>
Link text
<... | [
{
"answer_id": 136531,
"author": "Jacob",
"author_id": 22107,
"author_profile": "https://Stackoverflow.com/users/22107",
"pm_score": 4,
"selected": false,
"text": "tokenize(string, separator) tokenize(\"XPath is fun\", \"\\s+\")\nResult: (\"XPath\", \"is\", \"fun\")\n"
},
{
"answ... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1414/"
] |
136,505 | <p>I'm searching for UUIDs in blocks of text using a regex. Currently I'm relying on the assumption that all UUIDs will follow a patttern of 8-4-4-4-12 hexadecimal digits.</p>
<p>Can anyone think of a use case where this assumption would be invalid and would cause me to miss some UUIDs?</p>
| [
{
"answer_id": 136591,
"author": "Panos",
"author_id": 8049,
"author_profile": "https://Stackoverflow.com/users/8049",
"pm_score": 6,
"selected": true,
"text": "\"ca761232ed4211cebacd00aa0057b223\" \n\n\"CA761232-ED42-11CE-BACD-00AA0057B223\" \n\n\"{CA761232-ED42-11CE-BACD-00AA0057B223}\... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
136,528 | <p>I need to generate a new interface at run-time with all the same members as an existing interface, except that I will be putting different attributes on some of the methods (some of the attribute parameters are not known until run-time). How can it be achieved?</p>
| [
{
"answer_id": 136600,
"author": "Curt Hagenlocher",
"author_id": 533,
"author_profile": "https://Stackoverflow.com/users/533",
"pm_score": 4,
"selected": true,
"text": "TypeAttributes.Interface TypeBuilder.CreateType"
},
{
"answer_id": 808469,
"author": "Colin Burnett",
... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136528",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16881/"
] |
136,536 | <p>FYI: I am running on dotnet 3.5 SP1</p>
<p>I am trying to retrieve the value of an identity column into my dataset after performing an update (using a SqlDataAdapter and SqlCommandBuilder).
After performing SqlDataAdapter.Update(myDataset), I want to be able to read the auto-assigned value of <code>myDataset.tables... | [
{
"answer_id": 137468,
"author": "dbugger",
"author_id": 15754,
"author_profile": "https://Stackoverflow.com/users/15754",
"pm_score": 2,
"selected": false,
"text": "InsertCommand.UpdatedRowSource = UpdateRowSource.Both;\n INSERT INTO [SomeTable] ([Name]) VALUES (@Name)\n"
},
{
"... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8678/"
] |
136,539 | <p>Is there a way through the .net framework to determine if a folder is shared or not?</p>
<p>Neither Diretory, DirectoryInfo or FileAttributes seem to have any corresponding field.</p>
<p>One thing I forgot to mention was that I want to be checking for network shares. But I'll investigate the WMI stuff.</p>
| [
{
"answer_id": 136551,
"author": "benPearce",
"author_id": 4490,
"author_profile": "https://Stackoverflow.com/users/4490",
"pm_score": 0,
"selected": false,
"text": "SELECT * FROM Win32_ShareToDirectory"
},
{
"answer_id": 136663,
"author": "JohnIdol",
"author_id": 1311500... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7856/"
] |
136,548 | <p>In C++ you can initialize a variable in an if statement, like so:</p>
<pre><code>if (CThing* pThing = GetThing())
{
}
</code></pre>
<p>Why would one consider this bad or good style? What are the benefits and disadvantages?</p>
<p>Personally i like this style because it limits the scope of the pThing variable, so ... | [
{
"answer_id": 136590,
"author": "Luke",
"author_id": 327,
"author_profile": "https://Stackoverflow.com/users/327",
"pm_score": 2,
"selected": false,
"text": "if ((CThing* pThing = GetThing()) && (pThing->IsReallySomeThing()))\n{\n}\n"
},
{
"answer_id": 136643,
"author": "J.J... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15328/"
] |
136,554 | <p>I'm trying to get an expect script to work, and when I use the -re flag (to invoke regular expression parsing), the 'timeout' keyword seems to no longer work. When the following script is run, I get the message 'timed out at step 1', then 'starting step 2' and then it times out but does NOT print the 'timed out at s... | [
{
"answer_id": 136590,
"author": "Luke",
"author_id": 327,
"author_profile": "https://Stackoverflow.com/users/327",
"pm_score": 2,
"selected": false,
"text": "if ((CThing* pThing = GetThing()) && (pThing->IsReallySomeThing()))\n{\n}\n"
},
{
"answer_id": 136643,
"author": "J.J... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10888/"
] |
136,580 | <p>I'm writing an app and our designers want to use gradients for some of the backgrounds on a few of our composites. </p>
<p>I wrote the following code:</p>
<pre><code>composite.addListener (SWT.Paint, new Listener () {
public void handleEvent (Event e) {
GC gc = e.gc;
Rectangle rect = co... | [
{
"answer_id": 136668,
"author": "qualidafial",
"author_id": 13253,
"author_profile": "https://Stackoverflow.com/users/13253",
"pm_score": -1,
"selected": false,
"text": "Listener listener = new Listener () {\n public void handleEvent (Event e) {\n GC gc = e.gc;\n Rectangle rect =... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136580",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3415/"
] |
136,581 | <p>Is there a way to keep the "Loading..." graphic from appearing when cfdiv refreshes? I'd like to prevent the flicker of loading the graphic then loading the new html.</p>
| [
{
"answer_id": 140429,
"author": "bhinks",
"author_id": 5877,
"author_profile": "https://Stackoverflow.com/users/5877",
"pm_score": 1,
"selected": false,
"text": "cfdiv cfdiv"
},
{
"answer_id": 140576,
"author": "Soldarnal",
"author_id": 3420,
"author_profile": "https... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3420/"
] |
136,604 | <p>Sorry if the title is poorly descriptive, but I can't do better right now =(</p>
<p>So, I have this master-detail scheme, with the detail being a tree structure (one to many self relation) with n levels (on SQLServer 2005)</p>
<p>I need to copy a detail structure from one master to the another using a stored proce... | [
{
"answer_id": 137162,
"author": "GilM",
"author_id": 10192,
"author_profile": "https://Stackoverflow.com/users/10192",
"pm_score": 2,
"selected": true,
"text": "INSERT dbo.Master VALUES (@NewMaster_ID, @NewDescription)\n\nINSERT dbo.Detail (parent_id, master_id, [name])\nSELECT detail_I... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6359/"
] |
136,615 | <p>How can I <em>programmatically</em> determine if I have access to a server (TCP) with a given IP address and port using C#?</p>
| [
{
"answer_id": 136625,
"author": "GEOCHET",
"author_id": 5640,
"author_profile": "https://Stackoverflow.com/users/5640",
"pm_score": 5,
"selected": true,
"text": "IPAddress IP;\nif(IPAddress.TryParse(\"127.0.0.1\",out IP)){\n Socket s = new Socket(AddressFamily.InterNetwork,\n Sock... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
136,617 | <p>How do I programmatically force an onchange event on an input?</p>
<p>I've tried something like this:</p>
<pre><code>var code = ele.getAttribute('onchange');
eval(code);
</code></pre>
<p>But my end goal is to fire any listener functions, and that doesn't seem to work. Neither does just updating the 'value' attri... | [
{
"answer_id": 136633,
"author": "Aaron Powell",
"author_id": 11388,
"author_profile": "https://Stackoverflow.com/users/11388",
"pm_score": -1,
"selected": false,
"text": "$('#elementId').change(function() { alert('Do Stuff'); });\n $addHandler($get('elementId'), 'change', function(){ al... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3420/"
] |
136,628 | <p>I have a model and two views set up like this:</p>
<pre><code>Model ---> OSortFilterProxyModel ---> OListView
Model ------------------------------> OTableView
</code></pre>
<p>When the user selects something in one of the views, I want the other view to mirror that selection. So I thought I'd use a QSelec... | [
{
"answer_id": 7471773,
"author": "j_kubik",
"author_id": 455304,
"author_profile": "https://Stackoverflow.com/users/455304",
"pm_score": 1,
"selected": false,
"text": "tableView->selection()->select(\n proxyModel->mapSelectionToSource(selected),\n QItemSelectionModel::ClearAndSele... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1585/"
] |
136,635 | <p>We have a .NET 2.0 application which we normally run on IIS6, and used to run fine on IIS7, but recently after installing SP1 for Vista IIS7 seems to be choking on a line in the Web.Config file:</p>
<pre><code><system.web AllowLocation="true">
</code></pre>
<p>Is it safe to remove the AllowLocation attribut... | [
{
"answer_id": 136676,
"author": "ironsam",
"author_id": 3539,
"author_profile": "https://Stackoverflow.com/users/3539",
"pm_score": 0,
"selected": false,
"text": "<location>"
}
] | 2008/09/25 | [
"https://Stackoverflow.com/questions/136635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8432/"
] |
136,638 | <p>How can I compare the content of two (or more) large .resx files? With hundreds of Name/Value pairs in each file, it'd be very helpful to view a combined version. I'm especially interested in Name/Value pairs which are present in the neutral culture but are not also specified in a culture-specific version.</p>
| [
{
"answer_id": 186466,
"author": "Ishmaeel",
"author_id": 227,
"author_profile": "https://Stackoverflow.com/users/227",
"pm_score": 3,
"selected": false,
"text": ".resx .resx"
},
{
"answer_id": 1960701,
"author": "zhaorufei",
"author_id": 64469,
"author_profile": "htt... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1360388/"
] |
136,642 | <p>I'm having trouble coming up with the correct regex string to remove a sequence of multiple ? characters. I want to replace more than one sequential ? with a single ?, but which characters to escape...is escaping me.</p>
<p>Example input:</p>
<blockquote>
<p>Is this thing on??? or what???</p>
</blockquote>
<p>D... | [
{
"answer_id": 136654,
"author": "pilsetnieks",
"author_id": 6615,
"author_profile": "https://Stackoverflow.com/users/6615",
"pm_score": 4,
"selected": true,
"text": "preg_replace('{\\?+}', '?', 'Is this thing on??? or what???');\n"
},
{
"answer_id": 136655,
"author": "Rob",
... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14569/"
] |
136,672 | <p>I'd like to log stuff in my Sharepoint Web Parts, but I want it to go into the ULS. Most examples that I've found log into the Event Log or some other file, but I did not really find one yet for logging into the ULS.</p>
<p>Annoyingly, Microsoft.SharePoint.Diagnostics Classes are all marked Internal. I did find <a ... | [
{
"answer_id": 137836,
"author": "Jason Stevenson",
"author_id": 13368,
"author_profile": "https://Stackoverflow.com/users/13368",
"pm_score": 4,
"selected": true,
"text": "using System;\nusing System.Runtime.InteropServices;\nusing Microsoft.SharePoint.Administration;\n\nnamespace Manag... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136672",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91/"
] |
136,674 | <p>I'm looking for a few talking points I could use to convince coworkers that it's NOT OK to run a 24/7 production application by simply opening Visual Studio and running the app in debug mode.</p>
<p>What's different about running a compiled console application vs. running that same app in debug mode? </p>
<p>Are t... | [
{
"answer_id": 136882,
"author": "Robert Paulson",
"author_id": 14033,
"author_profile": "https://Stackoverflow.com/users/14033",
"pm_score": 0,
"selected": false,
"text": "#ifdef, Debug.Assert(), etc"
}
] | 2008/09/25 | [
"https://Stackoverflow.com/questions/136674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19389/"
] |
136,682 | <p>I've got a code like this : </p>
<pre><code>Dim Document As New mshtml.HTMLDocument
Dim iDoc As mshtml.IHTMLDocument2 = CType(Document, mshtml.IHTMLDocument2)
iDoc.write(html)
iDoc.close()
</code></pre>
<p>However when I load an HTML like this it executes all Javascripts in it as well as doing request to some reso... | [
{
"answer_id": 139224,
"author": "scunliffe",
"author_id": 6144,
"author_profile": "https://Stackoverflow.com/users/6144",
"pm_score": 1,
"selected": false,
"text": " if(typeof(DOMParser) == 'undefined') {\n DOMParser = function() {}\n DOMParser.prototype.parseFromString = f... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
136,696 | <p>I have a Hashtable<Integer, Sport> called sportMap and a list of sportIds (List<Integer> sportIds) from my backing bean. The Sport object has a List<String> equipmentList. Can I do the following using the unified EL to get the list of equipment for each sport?</p>
<pre><code><h:dataTable value="#{bean... | [
{
"answer_id": 287013,
"author": "alexmeia",
"author_id": 36587,
"author_profile": "https://Stackoverflow.com/users/36587",
"pm_score": 2,
"selected": false,
"text": "<h:dataTable value=\"#{bean.sportIds}\" var=\"_sportId\" > \n <h:dataTable value=\"#{bean.sportMap[_sportId].equipmentLi... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5917/"
] |
136,703 | <p>I need a quick easy way to get a string from a file in standard C++. I can write my own, but just want to know if there is already a standard way, in C++.</p>
<p>Equivalent of this if you know Cocoa:</p>
<pre><code>NSString *string = [NSString stringWithContentsOfFile:file];
</code></pre>
| [
{
"answer_id": 136743,
"author": "Adam Pierce",
"author_id": 5324,
"author_profile": "https://Stackoverflow.com/users/5324",
"pm_score": 2,
"selected": false,
"text": "#include <fstream>\n#include <vector>\nusing namespace std;\n\nifstream f(\"filename.txt\");\nf.seekg(0, ios::end);\nvec... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10184/"
] |
136,727 | <p>From my understanding of the CSS spec, a table above or below a paragraph should collapse vertical margins with it. However, that's not happening here:</p>
<p><div class="snippet" data-lang="js" data-hide="true" data-console="true" data-babel="false">
<div class="snippet-code snippet-currently-hidden">
<pre class... | [
{
"answer_id": 136816,
"author": "Shog9",
"author_id": 811,
"author_profile": "https://Stackoverflow.com/users/811",
"pm_score": 4,
"selected": true,
"text": "display: block table"
},
{
"answer_id": 136873,
"author": "Jonny Buchanan",
"author_id": 6760,
"author_profil... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7598/"
] |
136,734 | <p>Is it possible to make it appear to a system that a key was pressed, for example I need to make <kbd>A</kbd> key be pressed thousands of times, and it is much to time consuming to do it manually, I would like to write something to do it for me, and the only thing I know well enough is Python.</p>
<p>A better way t... | [
{
"answer_id": 136759,
"author": "PabloG",
"author_id": 394,
"author_profile": "https://Stackoverflow.com/users/394",
"pm_score": 4,
"selected": false,
"text": "Send {A 100}\n WinActivate Word\nSend {A 100}\n"
},
{
"answer_id": 136780,
"author": "tzot",
"author_id": 6899,... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136734",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/115/"
] |
136,739 | <p>I'm starting with Python coming from java. </p>
<p>I was wondering if there exists something similar to JavaDoc API where I can find the class, its methods and and example of how to use it.</p>
<p>I've found very helpul to use <em>help( thing )</em> from the Python ( command line ) </p>
<p>I have found this also:... | [
{
"answer_id": 136783,
"author": "apg",
"author_id": 22277,
"author_profile": "https://Stackoverflow.com/users/22277",
"pm_score": 2,
"selected": false,
"text": "import os \nhelp(os)\n"
},
{
"answer_id": 136929,
"author": "OscarRyz",
"author_id": 20654,
"author_prof... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20654/"
] |
136,752 | <p>I have a C++ tool that walks the call stack at one point. In the code, it first gets a copy of the live CPU registers (via RtlCaptureContext()), then uses a few "<code>#ifdef ...</code>" blocks to save the CPU-specific register names into <code>stackframe.AddrPC.Offset</code>, ...<code>AddrStack</code>..., and ...<... | [
{
"answer_id": 136942,
"author": "Adam Mitz",
"author_id": 2574,
"author_profile": "https://Stackoverflow.com/users/2574",
"pm_score": 2,
"selected": false,
"text": " DWORD machine = IMAGE_FILE_MACHINE_AMD64;\n RtlCaptureContext (&c);\n fs.sf.AddrPC.Offset = c.Rip;\n fs.sf.AddrFrame.... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19505/"
] |
136,771 | <p>How can I drop sql server agent jobs, if (and only if) it exists?</p>
<p>This is a well functioning script for <em>stored procedures</em>. How can I do the same to sql server agent jobs?</p>
<pre><code>if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[storedproc]') and OBJECTPROPERTY(id, N'IsProc... | [
{
"answer_id": 137159,
"author": "Codewerks",
"author_id": 17729,
"author_profile": "https://Stackoverflow.com/users/17729",
"pm_score": 8,
"selected": true,
"text": "DECLARE @jobId binary(16)\n\nSELECT @jobId = job_id FROM msdb.dbo.sysjobs WHERE (name = N'Name of Your Job')\nIF (@jobId ... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136771",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13954/"
] |
136,782 | <p>I have a <code>datetime</code> column in MySQL. </p>
<p>How can I convert it to the display as <strong>mm/dd/yy H:M (AM/PM)</strong> using PHP?</p>
| [
{
"answer_id": 136802,
"author": "Gustavo Carreno",
"author_id": 8167,
"author_profile": "https://Stackoverflow.com/users/8167",
"pm_score": 3,
"selected": false,
"text": "<?php\n echo date(\"m/d/y g:i (A)\", $DB_Date_Field);\n?>\n"
},
{
"answer_id": 136872,
"author": "Tim... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/70/"
] |
136,789 | <p>Right now I have a log parser reading through 515mb of plain-text files (a file for each day over the past 4 years). My code currently stands as this: <a href="http://gist.github.com/12978" rel="nofollow noreferrer">http://gist.github.com/12978</a>. I've used psyco (as seen in the code) and I'm also compiling it and... | [
{
"answer_id": 137002,
"author": "Mark Roddy",
"author_id": 9940,
"author_profile": "https://Stackoverflow.com/users/9940",
"pm_score": 2,
"selected": false,
"text": "insert_statement=\"\"\"\n INSERT INTO chats(person_id, message_type, created_at, channel)\n VALUES(:person_id,:mess... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15245/"
] |
136,793 | <p>I'm using this code to let the user enter in names while the program stores them in an array until they enter an empty string (they must press enter after each name):</p>
<pre><code>people = []
info = 'a' # must fill variable with something, otherwise loop won't execute
while not info.empty?
info = gets.chomp
... | [
{
"answer_id": 136815,
"author": "hubbardr",
"author_id": 22457,
"author_profile": "https://Stackoverflow.com/users/22457",
"pm_score": 8,
"selected": false,
"text": "Tempfile#initialize begin\n tmpname = File.join(tmpdir, make_tmpname(basename, n))\n lock = tmpname + '.lock'\n n += 1... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/813/"
] |
136,829 | <p>In VB.NET (or C#) how can I determine programmatically if a public variable in class helper.vb is used anywhere within a project?</p>
| [
{
"answer_id": 137094,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "CodeParser CodeCompileUnit CodePropertyReferenceExpression"
},
{
"answer_id": 141954,
"author": "Nescio",
"aut... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22301/"
] |
136,831 | <p>After reading this answer:
<a href="https://stackoverflow.com/questions/136474/best-way-to-pick-a-random-subset-from-a-collection#136513">best way to pick a random subset from a collection?</a></p>
<p>It got me wondering, how does one pick a random seed in Java?</p>
<p>And don't say use System.currentTimeMillis() ... | [
{
"answer_id": 136888,
"author": "Jason Cohen",
"author_id": 4926,
"author_profile": "https://Stackoverflow.com/users/4926",
"pm_score": 0,
"selected": false,
"text": "System.currentTimeMillis()"
}
] | 2008/09/25 | [
"https://Stackoverflow.com/questions/136831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21838/"
] |
136,836 | <p>What is the slickest way to initialize an array of dynamic size in C# that you know of?</p>
<p>This is the best I could come up with</p>
<pre><code>private bool[] GetPageNumbersToLink(IPagedResult result)
{
if (result.TotalPages <= 9)
return new bool[result.TotalPages + 1].Select(b => true).ToArray(... | [
{
"answer_id": 136890,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 0,
"selected": false,
"text": "return result.Select(p => true).ToArray();\n"
},
{
"answer_id": 137126,
"author": "Community",
"author_i... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136836",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2595/"
] |
136,837 | <p>A few years ago I developed a web app for which we wanted to make sure the users weren't sharing credentials.</p>
<p>One of the things we decided to to, was only allow the user to be logged in from one computer at a time. The way I did this, was to have a little iframe ping the server every N seconds; as long as th... | [
{
"answer_id": 136874,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 5,
"selected": true,
"text": "public Dictionary<String,DateTime> UserDictionary\n{\n get\n {\n if (HttpContext.Current.Cache[\"UserDictionary\... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/781/"
] |
136,880 | <p>So why exactly is it that it's always recommended to use const as often as possible? It seems to me that using const can be more of a pain than a help in C++. But then again, I'm coming at this from the python perspective: if you don't want something to be changed, don't change it. So with that said, here are a ... | [
{
"answer_id": 136895,
"author": "Doug T.",
"author_id": 8123,
"author_profile": "https://Stackoverflow.com/users/8123",
"pm_score": 7,
"selected": false,
"text": "void foo(const int DEFCON)\n{\n if (DEFCON = 1) //< FLAGGED AS COMPILER ERROR! WORLD SAVED!\n {\n fire_missile... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136880",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2147/"
] |
136,884 | <p>Is it possible to have a <code><div></code> simultaneously (1) not take up all available width and (2) collapse margins with its neighbors?</p>
<p>I learned recently that setting a <code>div</code> to <code>display:table</code> will stop it from expanding to take up the whole width of the parent container -- ... | [
{
"answer_id": 136921,
"author": "Jonny Buchanan",
"author_id": 6760,
"author_profile": "https://Stackoverflow.com/users/6760",
"pm_score": 2,
"selected": true,
"text": "display: table div div div <p style=\"margin:100px\">This is a paragraph with 100px margin all around.</p>\n\n<div sty... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7598/"
] |
136,899 | <p>In your opinion, is it ever valid to use the @ operator to suppress an error/warning in PHP whereas you may be handling the error?</p>
<p>If so, in what circumstances would you use this?</p>
<p>Code examples are welcome.</p>
<p>Edit: Note to repliers. I'm not looking to turn error reporting off, but, for example,... | [
{
"answer_id": 136912,
"author": "Jason Cohen",
"author_id": 4926,
"author_profile": "https://Stackoverflow.com/users/4926",
"pm_score": 5,
"selected": false,
"text": "fopen() FALSE FALSE"
},
{
"answer_id": 136955,
"author": "Ólafur Waage",
"author_id": 22459,
"author... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20010/"
] |
136,937 | <p>Is there a way to respond to the back button being hit (or backspace being pressed) in javascript when only the location hash changes? That is to say when the browser is not communicating with the server or reloading the page.</p>
| [
{
"answer_id": 136957,
"author": "pix0r",
"author_id": 72,
"author_profile": "https://Stackoverflow.com/users/72",
"pm_score": 1,
"selected": false,
"text": "onLocationChange"
},
{
"answer_id": 136965,
"author": "Jonny Buchanan",
"author_id": 6760,
"author_profile": "... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136937",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10393/"
] |
136,946 | <p>What's the difference between using a define statement and an enum statement in C/C++ (and is there any difference when using them with either C or C++)?</p>
<p>For example, when should one use</p>
<pre><code>enum {BUFFER = 1234};
</code></pre>
<p>over</p>
<pre><code>#define BUFFER 1234
</code></pre>
| [
{
"answer_id": 136954,
"author": "Jason Cohen",
"author_id": 4926,
"author_profile": "https://Stackoverflow.com/users/4926",
"pm_score": 7,
"selected": true,
"text": "enum #define #define"
},
{
"answer_id": 136974,
"author": "akiva",
"author_id": 65724,
"author_profil... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136946",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21539/"
] |
136,948 | <p>I used to be able to launch a locally installed helper application by registering a given mime-type in the Windows registry. This enabled me to allow users to be able to click once on a link to the current install of our internal browser application. This worked fine in Internet Explorer 5 (most of the time) and Fir... | [
{
"answer_id": 136954,
"author": "Jason Cohen",
"author_id": 4926,
"author_profile": "https://Stackoverflow.com/users/4926",
"pm_score": 7,
"selected": true,
"text": "enum #define #define"
},
{
"answer_id": 136974,
"author": "akiva",
"author_id": 65724,
"author_profil... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13183/"
] |
136,961 | <p>I'm using the jQuery Form plugin to upload an image. I've assigned a fade animation to happen the <code>beforeSubmit</code> callback, but as I'm running locally, it doesn't have time to finish before the <code>success</code> function is called. </p>
<p>I am using a callback function in my <code>fade();</code> call ... | [
{
"answer_id": 137035,
"author": "Ricky",
"author_id": 653,
"author_profile": "https://Stackoverflow.com/users/653",
"pm_score": 3,
"selected": true,
"text": "if (userImage) {\n userImage.fadeOut(1500, function() {\n ajaxSpinner.fadeIn(1500, function(){\n //now trigger the upl... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4636/"
] |
136,975 | <p>Is there a way to tell if an event handler has been added to an object? I'm serializing a list of objects into/out of session state so we can use SQL based session state... When an object in the list has a property changed it needs to be flagged, which the event handler took care of properly before. However now wh... | [
{
"answer_id": 136997,
"author": "benPearce",
"author_id": 4490,
"author_profile": "https://Stackoverflow.com/users/4490",
"pm_score": 2,
"selected": false,
"text": "EventHandler.GetInvocationList().Length > 0\n"
},
{
"answer_id": 136998,
"author": "Blair Conrad",
"author... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136975",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17145/"
] |
136,986 | <p>2 tables: </p>
<pre><code>Employees
- EmployeeID
- LeadCount
Leads
- leadID
- employeeID
</code></pre>
<p>I want to update the <code>Employees.LeadCount</code> column by counting the # of leads in the <code>Leads</code> table that have the same <code>EmployeeID</code>.</p>
<p>Note: There may be more than 1 lea... | [
{
"answer_id": 137001,
"author": "Jason Cohen",
"author_id": 4926,
"author_profile": "https://Stackoverflow.com/users/4926",
"pm_score": 1,
"selected": false,
"text": "UPDATE Employees SET LeadCount = (\n SELECT Distinct(SUM(employeeID)) FROM Leads WHERE Leads.employeeId = Employees.emp... | 2008/09/25 | [
"https://Stackoverflow.com/questions/136986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1368/"
] |
137,006 | <p>Is there any way to redefine a class or some of its methods without using typical inheritance? For example:</p>
<pre><code>class third_party_library {
function buggy_function() {
return 'bad result';
}
function other_functions(){
return 'blah';
}
}
</code></pre>
<p>What can I do to re... | [
{
"answer_id": 137028,
"author": "Jonathan Lonowski",
"author_id": 15031,
"author_profile": "https://Stackoverflow.com/users/15031",
"pm_score": 6,
"selected": true,
"text": "runkit_method_redefine /tests/runkit_method_redefine.phpt runkit_method_redefine('third_party_library', 'buggy_fu... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5261/"
] |
137,011 | <p>I have a lot of nice MATLAB code that runs too slowly and would be a pain to write over in C. The MATLAB compiler for C does not seem to help much, if at all. Should it be speeding execution up more? Am I screwed?</p>
| [
{
"answer_id": 356799,
"author": "Jason S",
"author_id": 44330,
"author_profile": "https://Stackoverflow.com/users/44330",
"pm_score": 1,
"selected": false,
"text": "s = [];\nfor i = 1:50000\n s(i) = 3;\nend\n s = zeros(50000,1);\nfor i = 1:50000\n s(i) = 3;\nend\n"
}
] | 2008/09/26 | [
"https://Stackoverflow.com/questions/137011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
137,021 | <p>What is the best way to take a given PHP object and serialize it as XML? I am looking at simple_xml and I have used it to parse XML into objects, but it isn't clear to me how it works the other way around.</p>
| [
{
"answer_id": 137037,
"author": "Till",
"author_id": 2859,
"author_profile": "https://Stackoverflow.com/users/2859",
"pm_score": 3,
"selected": false,
"text": "<?php\n$array = array('hello' => 'world', 'good' => 'morning');\n\n$xml = simplexml_load_string(\"<?xml version='1.0' encoding=... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/577/"
] |
137,031 | <p>How can I determine if I have write permission on a remote machine in my intranet using C# in .Net?</p>
| [
{
"answer_id": 138226,
"author": "Treb",
"author_id": 22114,
"author_profile": "https://Stackoverflow.com/users/22114",
"pm_score": 2,
"selected": false,
"text": "bool hasWriteAccess = true;\nstring remoteFileName = \"\\\\server\\share\\file.name\"\n\ntry\n{\n createRemoteFile(remoteF... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22471/"
] |
137,038 | <p>How does one do this?</p>
<p>If I want to analyze how something is getting compiled, how would I get the emitted assembly code?</p>
| [
{
"answer_id": 137044,
"author": "Doug T.",
"author_id": 8123,
"author_profile": "https://Stackoverflow.com/users/8123",
"pm_score": 5,
"selected": false,
"text": "g++ -S main.cpp\n gcc gcc -S main.c\n"
},
{
"answer_id": 137047,
"author": "Paige Ruten",
"author_id": 813,
... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8123/"
] |
137,040 | <p>I have a problem which requires me to parse several log files from a remote machine.
There are a few complications:
1) The file may be in use
2) The files can be quite large (100mb+)
3) Each entry may be multi-line</p>
<p>To solve the in-use issue, I need to copy it first. I'm currently copying it directly from the... | [
{
"answer_id": 138165,
"author": "VVS",
"author_id": 21038,
"author_profile": "https://Stackoverflow.com/users/21038",
"pm_score": 1,
"selected": false,
"text": "new FileStream(\"logfile\", FileMode.Open, FileAccess.Read, FileShare.ReadWrite)\n"
}
] | 2008/09/26 | [
"https://Stackoverflow.com/questions/137040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2712/"
] |
137,043 | <p>When editing HTML in emacs, is there a way to automatically pretty-format a blob of markup, changing something like this:</p>
<pre><code> <table>
<tr>
<td>blah</td></tr></table>
</code></pre>
<p>...into this:</p>
<pre><code><table>
<tr>
<td>
blah
&l... | [
{
"answer_id": 137697,
"author": "Chris Conway",
"author_id": 1412,
"author_profile": "https://Stackoverflow.com/users/1412",
"pm_score": 3,
"selected": false,
"text": "M-x tidy-buffer\n"
},
{
"answer_id": 144938,
"author": "jfm3",
"author_id": 11138,
"author_profile"... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7598/"
] |
137,054 | <p>How can I validate that my ASPNET AJAX installation is correct.</p>
<p>I have Visual Studio 2008 and had never previously installed any AJAX version.</p>
<p>My UpdatePanel is nto working within IIS6, although it works ok within Visual Studio's web server. The behaviour I get is as if the UpdatePanel doesnt exist a... | [
{
"answer_id": 137697,
"author": "Chris Conway",
"author_id": 1412,
"author_profile": "https://Stackoverflow.com/users/1412",
"pm_score": 3,
"selected": false,
"text": "M-x tidy-buffer\n"
},
{
"answer_id": 144938,
"author": "jfm3",
"author_id": 11138,
"author_profile"... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137054",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16940/"
] |
137,060 | <p>I just found myself creating a class called "InstructionBuilderFactoryMapFactory". That's 4 "pattern suffixes" on one class. It immediately reminded me of this:</p>
<p><a href="http://www.jroller.com/landers/entry/the_design_pattern_facade_pattern" rel="nofollow noreferrer">http://www.jroller.com/landers/entry/th... | [
{
"answer_id": 8592706,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "ParserBuilderFactoryImpl(ParserFactory psF) {\n...\n}\n"
}
] | 2008/09/26 | [
"https://Stackoverflow.com/questions/137060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12048/"
] |
137,089 | <p>I'm trying to use boost::signal to implement a callback mechanism, and I'm getting a memory access assert in the boost::signal code on even the most trivial usage of the library. I have simplified it down to this code:</p>
<pre><code>#include <boost/signal.hpp>
typedef boost::signal<void (void)> Event;... | [
{
"answer_id": 3803104,
"author": "Mark Ingram",
"author_id": 986,
"author_profile": "https://Stackoverflow.com/users/986",
"pm_score": 1,
"selected": false,
"text": "_HAS_ITERATOR_DEBUGGING _SECURE_SCL"
}
] | 2008/09/26 | [
"https://Stackoverflow.com/questions/137089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3114/"
] |
137,091 | <p>At my new workplace, they represent a lot of dates as "days since epoch" (which I will hereafter call DSE). I'm running into issues in JavaScript converting from DSE to seconds since epoch (UNIX timestamps). Here's my function to do the conversion:</p>
<pre><code>function daysToTimestamp(days) {
return Math.rou... | [
{
"answer_id": 137122,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 2,
"selected": false,
"text": ">>> import time\n>>> time.gmtime(1199059200)\n(2007, 12, 31, 0, 0, 0, 0, 365, 0)\n time_t >>> time.localtime(1199098800)\n(2... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11577/"
] |
137,102 | <p>What's the best tool for viewing and editing a merge in Git? I'd like to get a 3-way merge view, with "mine", "theirs" and "ancestor" in separate panels, and a fourth "output" panel.</p>
<p>Also, instructions for invoking said tool would be great. (I still haven't figure out how to start kdiff3 in such a way that i... | [
{
"answer_id": 299335,
"author": "user35149",
"author_id": 35149,
"author_profile": "https://Stackoverflow.com/users/35149",
"pm_score": 3,
"selected": false,
"text": "git mergetool -t=<tool> --tool=<tool> git config merge.tool <tool>"
},
{
"answer_id": 337717,
"author": "Com... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21482/"
] |
137,114 | <p>Whats the best way to round in VBA Access?</p>
<p>My current method utilizes the Excel method</p>
<pre><code>Excel.WorksheetFunction.Round(...
</code></pre>
<p>But I am looking for a means that does not rely on Excel.</p>
| [
{
"answer_id": 137164,
"author": "Esteban Araya",
"author_id": 781,
"author_profile": "https://Stackoverflow.com/users/781",
"pm_score": 0,
"selected": false,
"text": "VBA.Round(1.23342, 2) // will return 1.23\n"
},
{
"answer_id": 137177,
"author": "Lance Roberts",
"autho... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3155/"
] |
137,147 | <p>For example</p>
<pre><code>int f(int a) {
...
return a > 10;
}
</code></pre>
<p>is that considered acceptable (not legal, I mean is it ``good code''), or should it always be in a conditional, like this</p>
<pre><code>int f(int a) {
...
if (a > 10)
return 1;
else
return 0;
}
</code... | [
{
"answer_id": 137185,
"author": "Luc Hermitte",
"author_id": 15934,
"author_profile": "https://Stackoverflow.com/users/15934",
"pm_score": 2,
"selected": false,
"text": "bool f(int); boolean int int f(int) {\n ...\n const int res = (i>42) ? 1 : 0;\n return res;\n}\n if (expr ==... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137147",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
137,181 | <p>I need to rebuild an apache server, but the original source is no longer available. Is there any way ( command line switch to httpd? ) to get the build options which were originally used?</p>
| [
{
"answer_id": 137200,
"author": "David Schlosnagle",
"author_id": 1750,
"author_profile": "https://Stackoverflow.com/users/1750",
"pm_score": 4,
"selected": true,
"text": "httpd -V\n httpd -h\n"
},
{
"answer_id": 14920292,
"author": "babyromeo",
"author_id": 544611,
... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3839/"
] |
137,182 | <p>How do I launch Windows' <a href="https://en.wikipedia.org/wiki/Windows_Registry#Registry_editors" rel="noreferrer">RegEdit</a> with certain path located, like "<code>HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0</code>", so I don't have to do the clicking?</p>
<p>What's the command line argument to do this... | [
{
"answer_id": 137220,
"author": "The Hoss",
"author_id": 9469,
"author_profile": "https://Stackoverflow.com/users/9469",
"pm_score": 3,
"selected": false,
"text": "'Launches Registry Editor with the chosen branch open automatically\n'Author : Ramesh Srinivasan\n'Website: http://windows... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18561/"
] |
137,212 | <p>If you want a cryptographically strong random numbers in Java, you use <code>SecureRandom</code>. Unfortunately, <code>SecureRandom</code> can be very slow. If it uses <code>/dev/random</code> on Linux, it can block waiting for sufficient entropy to build up. How do you avoid the performance penalty?</p>
<p>Has any... | [
{
"answer_id": 137252,
"author": "ykaganovich",
"author_id": 10026,
"author_profile": "https://Stackoverflow.com/users/10026",
"pm_score": 3,
"selected": false,
"text": "/dev/random SecureRandom SecureRandom SecureRandom SecureRandomSpi"
},
{
"answer_id": 137288,
"author": "S... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137212",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3150/"
] |
137,219 | <p>I am looking for the way to mount NTFS hard disk on FreeBSD 6.2 in read/write mode.</p>
<p>searching google, I found that NTFS-3G can be a help.</p>
<p>Using NTFS-3G, there is no problem when I try to mount/unmount NTFS manually:</p>
<p>mount: ntfs-3g /dev/ad1s1 /home/admin/data -o uid=1002,</p>
<p>or</p>
<p>um... | [
{
"answer_id": 137252,
"author": "ykaganovich",
"author_id": 10026,
"author_profile": "https://Stackoverflow.com/users/10026",
"pm_score": 3,
"selected": false,
"text": "/dev/random SecureRandom SecureRandom SecureRandom SecureRandomSpi"
},
{
"answer_id": 137288,
"author": "S... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
137,221 | <p>I've searched around for a while today, but I haven't been able to come up with an AutoComplete TextBox code sample for Silverlight 2 Beta 2. The most promising reference was found on <a href="http://www.nikhilk.net/Silverlight-AutoComplete.aspx/" rel="nofollow noreferrer">nikhilk.net</a> but the online demo doesn'... | [
{
"answer_id": 140167,
"author": "asterite",
"author_id": 20459,
"author_profile": "https://Stackoverflow.com/users/20459",
"pm_score": 3,
"selected": true,
"text": "manas:Autocomplete.Suggest=\"DoSuggest\"\n"
}
] | 2008/09/26 | [
"https://Stackoverflow.com/questions/137221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4115/"
] |
137,226 | <ol>
<li>What are the patterns you use to determine the frequent queries? </li>
<li>How do you select the optimization factors?</li>
<li>What are the types of changes one can make?</li>
</ol>
| [
{
"answer_id": 137330,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 0,
"selected": false,
"text": "select diskusage from x where date = '2008-01-01'\n select date from x where diskusage > 90\n"
}
] | 2008/09/26 | [
"https://Stackoverflow.com/questions/137226",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/65724/"
] |
137,227 | <p>How can I list all the types that are declared by a module in Ruby?</p>
| [
{
"answer_id": 137311,
"author": "Bruno Gomes",
"author_id": 8669,
"author_profile": "https://Stackoverflow.com/users/8669",
"pm_score": 6,
"selected": true,
"text": "p Class.constants\n"
}
] | 2008/09/26 | [
"https://Stackoverflow.com/questions/137227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4883/"
] |
137,229 | <p>I bumped into a strange situation with MSBuild just now. There's a solution which has three projects: LibX, LibY and Exe. Exe references LibX. LibX in its turn references LibY, has some content files, and also references to a third-party library (several pre-built assemblies installed in both GAC and local lib folde... | [
{
"answer_id": 164417,
"author": "Mike",
"author_id": 2848,
"author_profile": "https://Stackoverflow.com/users/2848",
"pm_score": 2,
"selected": false,
"text": "References=\"@(ReferencePath)\"\n References=\"@(ReferencePath);@(ReferenceDependencyPaths)\"\n"
},
{
"answer_id": 9327... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137229",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21952/"
] |
137,255 | <p>How can I determine if a remote drive has enough space for me to upload a given file using C# in .Net?</p>
| [
{
"answer_id": 137347,
"author": "Mike Thompson",
"author_id": 2754,
"author_profile": "https://Stackoverflow.com/users/2754",
"pm_score": 4,
"selected": true,
"text": "internal static class Win32\n{\n [DllImport(\"kernel32.dll\", CharSet = CharSet.Auto, SetLastError = true)]\n int... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22471/"
] |
137,258 | <p>Here's a common code pattern I have to work with:</p>
<pre><code>class foo {
public:
void InitMap();
void InvokeMethodsInMap();
static void abcMethod();
static void defMethod();
private:
typedef std::map<const char*, pMethod> TMyMap;
TMyMap m_MyMap;
}
void
foo::InitMap()
{
m_MyMap... | [
{
"answer_id": 137264,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 5,
"selected": true,
"text": "const char* std::string std::map <"
},
{
"answer_id": 137477,
"author": "Martin York",
"author_id": 14065,
... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22489/"
] |
137,260 | <p>I've been doing some mocking with RhinoMocks and it requires that mocked methods be made virtual. This is fine except we have a custom framework which contains the methods that I want to mock which are currently not marked as virtual.</p>
<p>I can't forsee any problem with making these methods virtual but I was won... | [
{
"answer_id": 137324,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": true,
"text": "class Base {\n public Base() {\n InitializeComponent();\n }\n protected virtual void InitializeComponent() {\n ... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/493/"
] |
137,282 | <p><a href="http://en.wikipedia.org/wiki/Diamond_problem" rel="noreferrer">http://en.wikipedia.org/wiki/Diamond_problem</a></p>
<p>I know what it means, but what steps can I take to avoid it?</p>
| [
{
"answer_id": 139329,
"author": "Mark Ingram",
"author_id": 986,
"author_profile": "https://Stackoverflow.com/users/986",
"pm_score": 7,
"selected": true,
"text": "class A {};\nclass B : public A {};\nclass C : public A {};\nclass D : public B, public C {};\n class A {};\nclass B : virt... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9825/"
] |
137,285 | <p>What is the best way to read an HTTP response from GetResponseStream ?</p>
<p>Currently I'm using the following approach.</p>
<pre><code>Using SReader As StreamReader = New StreamReader(HttpRes.GetResponseStream)
SourceCode = SReader.ReadToEnd()
End Using
</code></pre>
<p>I'm not quite sure if this is the most... | [
{
"answer_id": 137300,
"author": "Mitch Wheat",
"author_id": 16076,
"author_profile": "https://Stackoverflow.com/users/16076",
"pm_score": 4,
"selected": false,
"text": "if (!Directory.Exists(localFolder))\n{\n Directory.CreateDirectory(localFolder); \n}\n\n\ntry\n{\n HttpWebRequ... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
137,313 | <p>I've been parsing through some log files and I've found that some of the lines are too long to display on one line so Terminal.app kindly wraps them onto the next line. However, I've been looking for a way to truncate a line after a certain number of characters so that Terminal doesn't wrap, making it much easier to... | [
{
"answer_id": 137323,
"author": "nobody",
"author_id": 19405,
"author_profile": "https://Stackoverflow.com/users/19405",
"pm_score": 5,
"selected": true,
"text": "cut -b 1-LIMIT\n"
},
{
"answer_id": 137642,
"author": "Yanick",
"author_id": 10356,
"author_profile": "h... | 2008/09/26 | [
"https://Stackoverflow.com/questions/137313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/658/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.