qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
53,426 | <p>What memory leak detectors have people had a good experience with?</p>
<p>Here is a summary of the answers so far:</p>
<p><a href="http://valgrind.org/" rel="noreferrer">Valgrind</a> - Instrumentation framework for building dynamic analysis tools.</p>
<p><a href="http://directory.fsf.org/project/ElectricFence/" r... | [
{
"answer_id": 276821,
"author": "Artelius",
"author_id": 31945,
"author_profile": "https://Stackoverflow.com/users/31945",
"pm_score": 2,
"selected": false,
"text": "-fmudflap -lmudflap\n"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/53426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2064/"
] |
53,428 | <p>I'm evaluating and looking at using CherryPy for a project that's basically a JavaScript front-end from the client-side (browser) that talks to a Python web service on the back-end. So, I really need something fast and lightweight on the back-end that I can implement using Python that then speaks to the PostgreSQL D... | [
{
"answer_id": 53463,
"author": "Yon",
"author_id": 3117,
"author_profile": "https://Stackoverflow.com/users/3117",
"pm_score": -1,
"selected": false,
"text": ">>> ed_user = User('ed', 'Ed Jones', 'edspassword')\n>>> session.add(ed_user)\n>>> our_user = session.query(User).filter_by(name... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5499/"
] |
53,435 | <p>I'm doing something bad in my ASP.NET app. It could be the any number of CTP libraries I'm using or I'm just not disposing something properly. But when I redeploy my ASP.NET to my Vista IIS7 install or my server's IIS6 install I crash an IIS worker process.</p>
<p>I've narrowed the problem down to my HTTP crawler, ... | [
{
"answer_id": 66625,
"author": "sachaa",
"author_id": 1152057,
"author_profile": "https://Stackoverflow.com/users/1152057",
"pm_score": 5,
"selected": true,
"text": "cscript adplus.vbs -crash -pn w3wp.exe\n .loadby sos mscorwks\n !clrstack\n kpn 200\n"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/53435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/209/"
] |
53,472 | <p>I have some Ruby code which takes dates on the command line in the format:</p>
<pre><code>-d 20080101,20080201..20080229,20080301
</code></pre>
<p>I want to run for all dates between <code>20080201</code> and <code>20080229</code> inclusive and the other dates present in the list.</p>
<p>I can get the string <cod... | [
{
"answer_id": 53504,
"author": "Purfideas",
"author_id": 4615,
"author_profile": "https://Stackoverflow.com/users/4615",
"pm_score": 2,
"selected": false,
"text": "require 'date'\n\nends = '20080201..20080229'.split('..').map{|d| Date.parse(d)}\n(ends[0]..ends[1]).each do |d|\n p d.day... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4121/"
] |
53,473 | <p>I am trying to apply styles to HTML tags dynamically by reading in the value of certain HTML attributes and applying a class name based on their values. For instance, if I have:</p>
<pre><code><p height="30">
</code></pre>
<p>I want to apply a <code>class="h30"</code> to that paragraph so that I can style it... | [
{
"answer_id": 53475,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 0,
"selected": false,
"text": "for (e in ...) {\n if (e.height == 30) {\n e.className = \"h30\";\n }\n}\n"
},
{
"answer_id": 53593,... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53473",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5512/"
] |
53,480 | <p>Hey, I'm using <a href="http://en.wikipedia.org/wiki/Levenshtein_distance" rel="nofollow noreferrer">Levenshteins</a> algorithm to get distance between source and target string.</p>
<p>also I have method which returns value from 0 to 1:</p>
<pre><code>/// <summary>
/// Gets the similarity between two strings... | [
{
"answer_id": 10079256,
"author": "Alain",
"author_id": 529618,
"author_profile": "https://Stackoverflow.com/users/529618",
"pm_score": 4,
"selected": false,
"text": "Public Function valuePhrase#(ByRef S1$, ByRef S2$)\n valuePhrase = LevenshteinDistance(S1, S2)\nEnd Function\n\nPubli... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5369/"
] |
53,482 | <p>I have long since forgotten the password for the root user on one of my boxes. Is there a way I can change it without having to log in to the instance, or will I have to reinstall?</p>
| [
{
"answer_id": 53483,
"author": "Nick Stinemates",
"author_id": 4960,
"author_profile": "https://Stackoverflow.com/users/4960",
"pm_score": 2,
"selected": false,
"text": "mysqladmin -u root password <password>\n"
},
{
"answer_id": 53567,
"author": "BlaM",
"author_id": 999... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4960/"
] |
53,491 | <p>How do I enable external access to MySQL Server? I can connect locally but I cannot connect from another box on the network.</p>
<p>I just tried</p>
<pre><code>grant all privileges on *.* to root@'%' identified by '*****' with grant option;
</code></pre>
<p>And restarted MySQL Server with no success.</p>
| [
{
"answer_id": 53512,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 6,
"selected": true,
"text": "bind-address"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/53491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4960/"
] |
53,497 | <p>I'm having trouble writing a regular expression that matches valid IPv6 addresses, including those in their compressed form (with <code>::</code> or leading zeros omitted from each byte pair). </p>
<p>Can someone suggest a regular expression that would fulfill the requirement?</p>
<p>I'm considering expanding eac... | [
{
"answer_id": 53499,
"author": "Factor Mystic",
"author_id": 1569,
"author_profile": "https://Stackoverflow.com/users/1569",
"pm_score": 5,
"selected": false,
"text": "(\\A([0-9a-f]{1,4}:){1,1}(:[0-9a-f]{1,4}){1,6}\\Z)|\n(\\A([0-9a-f]{1,4}:){1,2}(:[0-9a-f]{1,4}){1,5}\\Z)|\n(\\A([0-9a-f]... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4883/"
] |
53,501 | <p>I am developing console application in .Net and I want to change a behavior a little based on information that application was started from cmd.exe or from explorer.exe. Is it possible?</p>
| [
{
"answer_id": 53526,
"author": "Factor Mystic",
"author_id": 1569,
"author_profile": "https://Stackoverflow.com/users/1569",
"pm_score": 4,
"selected": true,
"text": "Process this_process = Process.GetCurrentProcess();\nint parent_pid = 0;\nusing (ManagementObject MgmtObj = new Manageme... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53501",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2361/"
] |
53,511 | <p>If I use restful_authentication in my ruby on rails app are passwords transfered between the broswer and the server in paintext? And if so how worried should I be about it?</p>
| [
{
"answer_id": 232301,
"author": "two-bit-fool",
"author_id": 23899,
"author_profile": "https://Stackoverflow.com/users/23899",
"pm_score": 2,
"selected": false,
"text": "filter_parameter_logging :password\n"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/53511",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4474/"
] |
53,513 | <p>For example, if passed the following:</p>
<pre><code>a = []
</code></pre>
<p>How do I check to see if <code>a</code> is empty?</p>
| [
{
"answer_id": 53522,
"author": "Patrick",
"author_id": 429,
"author_profile": "https://Stackoverflow.com/users/429",
"pm_score": 14,
"selected": true,
"text": "if not a:\n print(\"List is empty\")\n list"
},
{
"answer_id": 53525,
"author": "Peter Hoffmann",
"author_id... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53513",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4872/"
] |
53,532 | <p>I have a bunch of servlets running under the Tomcat servlet container. I would like to separate test code from production code, so I considered using a test framework.
JUnit is nicely integrated into Eclipse, but I failed to make it run servlets using a running Tomcat server. Could you please recommend a unit testin... | [
{
"answer_id": 53535,
"author": "Will Sargent",
"author_id": 5266,
"author_profile": "https://Stackoverflow.com/users/5266",
"pm_score": 3,
"selected": false,
"text": "public void testPost() {\n mockRequest = createMock(HttpServletRequest.class);\n mockResponse = createMock(HttpServl... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1702/"
] |
53,538 | <p>Is it possible to order results in SQL Server 2005 by the relevance of a freetext match? In MySQL you can use the (roughly equivalent) MATCH function in the ORDER BY section, but I haven't found any equivalence in SQL Server.</p>
<p>From the <a href="http://dev.mysql.com/doc/refman/5.0/en/fulltext-natural-language.... | [
{
"answer_id": 53540,
"author": "Biri",
"author_id": 968,
"author_profile": "https://Stackoverflow.com/users/968",
"pm_score": 3,
"selected": true,
"text": "FREETEXTTABLE Rank order by Rank"
},
{
"answer_id": 58179,
"author": "Josef",
"author_id": 5581,
"author_profil... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1612/"
] |
53,543 | <p>Having tries to target two of these environments at the same time I can safely say the if you have to use a database etc. you end up having to write unique code for that environment. Have you got a great way to handle this situation?</p>
| [
{
"answer_id": 53549,
"author": "Daren Thomas",
"author_id": 2260,
"author_profile": "https://Stackoverflow.com/users/2260",
"pm_score": 4,
"selected": false,
"text": "import mymodule_jython as mymodule\n\nimport mymodule_cpython as mymodule\n from module_importer import mymodule\n modul... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53543",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4491/"
] |
53,545 | <p>I have an exe with an <code>App.Config</code> file. Now I want to create a wrapper dll around the exe in order to consume some of the functionalities.</p>
<p>The question is how can I access the app.config property in the exe from the wrapper dll?</p>
<p>Maybe I should be a little bit more in my questions, I have ... | [
{
"answer_id": 53553,
"author": "Espo",
"author_id": 2257,
"author_profile": "https://Stackoverflow.com/users/2257",
"pm_score": 5,
"selected": false,
"text": "static void GetMappedExeConfigurationSections()\n{\n // Get the machine.config file.\n ExeConfigurationFileMap fileMap =\n... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] |
53,562 | <p>What are the steps required to enable Hibernate's second-level cache, when using the Java Persistence API (annotated entities)? How do I check that it's working? I'm using JBoss 4.2.2.GA.</p>
<p>From the Hibernate documentation, it seems that I need to enable the cache and specify a cache provider in <em>persistenc... | [
{
"answer_id": 54415,
"author": "Peter Hilton",
"author_id": 2670,
"author_profile": "https://Stackoverflow.com/users/2670",
"pm_score": 2,
"selected": false,
"text": "<property name=\"hibernate.cache.provider_class\" \n value=\"net.sf.ehcache.hibernate.EhCacheProvider\" />\n"
... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53562",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2670/"
] |
53,569 | <p>What is the best way to get a log of commits on a branch since the time it was branched from the current branch? My solution so far is:</p>
<pre><code>git log $(git merge-base HEAD branch)..branch
</code></pre>
<p>The documentation for <a href="http://git-scm.com/docs/git-diff" rel="noreferrer">git-diff</a> indica... | [
{
"answer_id": 53573,
"author": "Lily Ballard",
"author_id": 582,
"author_profile": "https://Stackoverflow.com/users/582",
"pm_score": 9,
"selected": true,
"text": "A...B git-rev-parse git-diff A...B git-diff git-diff A...B git-rev-parse A...B git log HEAD..branch git log branch --not HE... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/893/"
] |
53,599 | <p>Ulimately I just wanted to extract strings from the .rc file so I could translate them, but anything that goes with .rc files works for me.</p>
| [
{
"answer_id": 98442,
"author": "jussij",
"author_id": 14738,
"author_profile": "https://Stackoverflow.com/users/14738",
"pm_score": 0,
"selected": false,
"text": "# Run Script Using This Command Line\n#\n# sed.exe -n -f sed.txt test.rc\n#\n\n# Check for lines that contain strings\n/\\... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4880/"
] |
53,609 | <p>I hope this qualifies as a programming question, as in any programming tutorial, you eventually come across 'foo' in the code examples. (yeah, right?)</p>
<p>what does 'foo' really mean?</p>
<p>If it is meant to mean <strong>nothing</strong>, when did it begin to be used so?</p>
| [
{
"answer_id": 58617,
"author": "Will Harris",
"author_id": 4702,
"author_profile": "https://Stackoverflow.com/users/4702",
"pm_score": 5,
"selected": false,
"text": "foo foo bar baz bundy spam eggs ham foo foo tmp foo"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/53609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/123/"
] |
53,623 | <p>I want to get whois information of a domain name from my c#/java programs. Is there a simple way to do this? </p>
| [
{
"answer_id": 53632,
"author": "Chris Bunch",
"author_id": 422,
"author_profile": "https://Stackoverflow.com/users/422",
"pm_score": -1,
"selected": false,
"text": "whois import java.io.*;\nimport java.util.*;\n\npublic class ExecTest2 {\n public static void main(String[] args) throw... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/184/"
] |
53,629 | <p>Is it possible to see the history of changes to a particular line of code in a Subversion repository?</p>
<p>I'd like, for instance, to be able to see when a particular statement was added or when that statement was changed, even if its line number is not the same any more.</p>
| [
{
"answer_id": 53634,
"author": "Brad Wilson",
"author_id": 1554,
"author_profile": "https://Stackoverflow.com/users/1554",
"pm_score": -1,
"selected": false,
"text": "svn blame"
},
{
"answer_id": 53636,
"author": "Peter Hoffmann",
"author_id": 720,
"author_profile": ... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53629",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1428/"
] |
53,649 | <p>Using reflection, I need to investigate a user DLL and create an object of a class in it.</p>
<p>What is the simple way of doing it?</p>
| [
{
"answer_id": 53658,
"author": "samjudson",
"author_id": 1908,
"author_profile": "https://Stackoverflow.com/users/1908",
"pm_score": 2,
"selected": false,
"text": "System.Reflection.Assembly Assembly.GetTypes() Assembly.GetExportedTypes()"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/53649",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/195/"
] |
53,652 | <p>This might be a bit on the silly side of things but I need to send the contents of a DataTable (unknown columns, unknown contents) via a text e-mail. Basic idea is to loop over rows and columns and output all cell contents into a StringBuilder using .ToString(). </p>
<p>Formatting is a big issue though. Any tips/id... | [
{
"answer_id": 53665,
"author": "Lukas Šalkauskas",
"author_id": 5369,
"author_profile": "https://Stackoverflow.com/users/5369",
"pm_score": -1,
"selected": false,
"text": "Dim Str As String = \"\"\n 'Create File if doesn't exist\n Dim FILE_NAME As String = \"C:\\temp\\Custom.t... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3263/"
] |
53,664 | <p>I've started using Vim to develop Perl scripts and am starting to find it very powerful. </p>
<p>One thing I like is to be able to open multiple files at once with:</p>
<pre><code>vi main.pl maintenance.pl
</code></pre>
<p>and then hop between them with:</p>
<pre><code>:n
:prev
</code></pre>
<p>and see which fi... | [
{
"answer_id": 53667,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 5,
"selected": false,
"text": ":tabe [filename] gt gT"
},
{
"answer_id": 53668,
"author": "fijter",
"author_id": 3215,
"author_pr... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4639/"
] |
53,666 | <p>Say I have an interface IFoo which I am mocking. There are 3 methods on this interface. I need to test that the system under test calls at least one of the three methods. I don't care how many times, or with what arguments it does call, but the case where it ignores all the methods and does not touch the IFoo mock i... | [
{
"answer_id": 58623,
"author": "Spoike",
"author_id": 3713,
"author_profile": "https://Stackoverflow.com/users/3713",
"pm_score": 0,
"selected": false,
"text": "[TestFixture]\npublic class MyTest {\n\n // The mocked interface\n public class MockedInterface implements MyInterface {... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3024/"
] |
53,676 | <p>When trying to connect to an <code>ORACLE</code> user via TOAD (Quest Software) or any other means (<code>Oracle Enterprise Manager</code>) I get this error:</p>
<blockquote>
<p><code>ORA-011033: ORACLE initialization or shutdown in progress</code></p>
</blockquote>
| [
{
"answer_id": 53684,
"author": "rohancragg",
"author_id": 5351,
"author_profile": "https://Stackoverflow.com/users/5351",
"pm_score": 8,
"selected": true,
"text": "SQL> startup mount\n\nORACLE Instance started\n\nSQL> recover database \n\nMedia recovery complete\n\nSQL> alter database o... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5351/"
] |
53,715 | <p>Does Delphi call inherited on overridden procedures if there is no explicit call in the code ie (inherited;), I have the following structure (from super to sub class)</p>
<p>TForm >> TBaseForm >> TAnyOtherForm</p>
<p>All the forms in the project will be derived from TBaseForm, as this will have all the standard se... | [
{
"answer_id": 53785,
"author": "Frank",
"author_id": 4474,
"author_profile": "https://Stackoverflow.com/users/4474",
"pm_score": 2,
"selected": false,
"text": "// interface\n\nTBaseForm = Class(TForm)\n...\nProtected\n Procedure DoCreate(Sender : TObject); Override;\nEnd\n\n// implem... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2098/"
] |
53,719 | <p>It is obviously possible to hide individual data points in an Excel line chart.</p>
<ul>
<li>Select a data point. </li>
<li>Right click -> Format Data Point... </li>
<li>Select Patterns</li>
<li>Tab Set Line to None</li>
</ul>
<p>How do you accomplish the same thing in VBA? Intuition tells me there should be a pro... | [
{
"answer_id": 67650,
"author": "SpyJournal",
"author_id": 10326,
"author_profile": "https://Stackoverflow.com/users/10326",
"pm_score": 2,
"selected": false,
"text": "IF #N/A =If(B2=0,\"#N/A\",B2)"
},
{
"answer_id": 471678,
"author": "Community",
"author_id": -1,
"au... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5085/"
] |
53,728 | <p>I am not concerned about other kinds of attacks. Just want to know whether HTML Encode can prevent all kinds of XSS attacks.</p>
<p>Is there some way to do an XSS attack even if HTML Encode is used?</p>
| [
{
"answer_id": 53739,
"author": "GateKiller",
"author_id": 383,
"author_profile": "https://Stackoverflow.com/users/383",
"pm_score": -1,
"selected": false,
"text": "<script/>\n"
},
{
"answer_id": 53816,
"author": "metavida",
"author_id": 5539,
"author_profile": ... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53728",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/184/"
] |
53,734 | <p>If you're creating a temporary table within a stored procedure and want to add an index or two on it, to improve the performance of any additional statements made against it, what is the best approach? Sybase says <a href="http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.dc20020_1251/html/databases/data... | [
{
"answer_id": 153680,
"author": "AJ.",
"author_id": 7211,
"author_profile": "https://Stackoverflow.com/users/7211",
"pm_score": 4,
"selected": true,
"text": "SELECT * \nFROM #table (index idIndex) \nWHERE id = @id\n"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/53734",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1030/"
] |
53,744 | <p>I would like to know how can i escape a # in velocity. Backslash seems to escape it but it prints itself as well</p>
<p>This: </p>
<pre><code>\#\#
</code></pre>
<p>prints: </p>
<pre><code>\#\#
</code></pre>
<p>I would like: </p>
<pre><code>##
</code></pre>
| [
{
"answer_id": 64246,
"author": "Nathan Bubna",
"author_id": 8131,
"author_profile": "https://Stackoverflow.com/users/8131",
"pm_score": 6,
"selected": false,
"text": "#set( $H = '#' )\n$H$H\n"
},
{
"answer_id": 7093929,
"author": "alvi",
"author_id": 644958,
"author_... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2138/"
] |
53,757 | <p>Which compiles to faster code: "ans = n * 3" or "ans = n+(n*2)"?</p>
<p>Assuming that n is either an int or a long, and it is is running on a modern Win32 Intel box.</p>
<p>Would this be different if there was some dereferencing involved, that is, which of these would be faster?</p>
<pre>
long a;
long *pn;... | [
{
"answer_id": 53763,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 0,
"selected": false,
"text": "* 2"
},
{
"answer_id": 53781,
"author": "Antti Kissaniemi",
"author_id": 2948,
"author_profile": "... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3137/"
] |
53,786 | <p>I am trying to automate functional testing of a server using a realistic frequency distribution of requests. (sort of load testing, sort of simulation)</p>
<p>I've chosen the <a href="http://en.wikipedia.org/wiki/Weibull_distribution" rel="nofollow noreferrer">Weibull</a> distribution as it "sort of" matches the di... | [
{
"answer_id": 56032,
"author": "Kai",
"author_id": 2963,
"author_profile": "https://Stackoverflow.com/users/2963",
"pm_score": 0,
"selected": false,
"text": "from datetime import *\nfrom random import *\n\ntimeline = []\nscaling = 10\nstart_date = date(2008, 5, 1)\nend_date = date(2008,... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5357/"
] |
53,796 | <p>A GUI driven application needs to host some prebuilt WinForms based components.
These components provide high performance interactive views using a mixture of GDI+ and DirectX.
The views handle control input and display custom graphical renderings.
The components are tested in a WinForms harness by the supplier.</p>... | [
{
"answer_id": 53855,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 0,
"selected": false,
"text": "Application Application"
},
{
"answer_id": 70064,
"author": "AndyL",
"author_id": 9944,
"author_pro... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5427/"
] |
53,803 | <p>We're looking at moving from a check-out/edit/check-in style of version control system to Subversion, and during the evaluation we discovered that when you perform an Update action in TortoiseSVN (and presumably in any Subversion client?), if changes in the repository that need to be applied to files that you've bee... | [
{
"answer_id": 53812,
"author": "aku",
"author_id": 1196,
"author_profile": "https://Stackoverflow.com/users/1196",
"pm_score": 3,
"selected": false,
"text": "svn --diff-cmd=/bin/false\n"
},
{
"answer_id": 7673033,
"author": "Nordic Mainframe",
"author_id": 385433,
"a... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5517/"
] |
53,806 | <p>What was the motivation for having the <code>reintroduce</code> keyword in Delphi?</p>
<p>If you have a child class that contains a function with the same name as a virtual function in the parent class and it is not declared with the override modifier then it is a compile error. Adding the reintroduce modifier in s... | [
{
"answer_id": 68154,
"author": "Francesca",
"author_id": 9842,
"author_profile": "https://Stackoverflow.com/users/9842",
"pm_score": 2,
"selected": false,
"text": "TDescendant.MyMethod ADescendant.MyMethod (ADescendant as TAncestor).MyMethod"
},
{
"answer_id": 142459,
"autho... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4474/"
] |
53,808 | <p>When interviewing college coops/interns or recent graduates it helps to have a Java programming question that they can do on a white board in 15 minutes. Does anyone have examples of good questions like this? A C++ question I was once asked in an interview was to write a string to integer function which is along t... | [
{
"answer_id": 53828,
"author": "David Webb",
"author_id": 3171,
"author_profile": "https://Stackoverflow.com/users/3171",
"pm_score": 3,
"selected": false,
"text": "final protected"
},
{
"answer_id": 53830,
"author": "Daren Thomas",
"author_id": 2260,
"author_profile... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3637/"
] |
53,811 | <p>Do you normally set your compiler to optimize for maximum speed or smallest code size? or do you manually configure individual optimization settings? Why?</p>
<p>I notice most of the time people tend to just leave compiler optimization settings to their default state, which with visual c++ means max speed.
I've alw... | [
{
"answer_id": 53826,
"author": "Claes Mogren",
"author_id": 4992,
"author_profile": "https://Stackoverflow.com/users/4992",
"pm_score": 4,
"selected": true,
"text": "A relative graph of fitnesses:\n\n Acovea Best-of-the-Best: ************************************** (2.55... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4086/"
] |
53,820 | <p>In the application I'm developping (in Java/swing), I have to show a full screen window on the <em>second</em> screen of the user.
I did this using a code similar to the one you'll find below...
Be, as soon as I click in a window opened by windows explorer, or as soon as I open windows explorer (i'm using windows XP... | [
{
"answer_id": 56166,
"author": "Laurent K",
"author_id": 2965,
"author_profile": "https://Stackoverflow.com/users/2965",
"pm_score": 0,
"selected": false,
"text": "private Window initFullScreenWindow() {\n GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n ... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2965/"
] |
53,827 | <p>I'm using MinGW with GCC 3.4.5 (mingw-special vista r3).</p>
<p>My C application uses a lot of stack so I was wondering is there any way I can tell programatically how much stack is remaining so I can cleanly handle the situation if I find that I'm about to run out.</p>
<p>If not what other ways would you work aro... | [
{
"answer_id": 53836,
"author": "Rob Walker",
"author_id": 3631,
"author_profile": "https://Stackoverflow.com/users/3631",
"pm_score": 4,
"selected": false,
"text": "size_t top_of_stack;\n\nvoid Main()\n{\n int x=0;\n top_of_stack = (size_t) &x;\n\n do_something_very_recursive(....)\n... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5330/"
] |
53,844 | <p>I would like to do the equivalent of:</p>
<pre><code>object result = Eval("1 + 3");
string now = Eval("System.DateTime.Now().ToString()") as string
</code></pre>
<p>Following Biri s <a href="http://www.codeproject.com/KB/cs/evalcscode.aspx" rel="noreferrer">link</a>, I got this snippet (modified to remove obsol... | [
{
"answer_id": 54339,
"author": "JJJ",
"author_id": 5547,
"author_profile": "https://Stackoverflow.com/users/5547",
"pm_score": 1,
"selected": false,
"text": "using System;\npublic class Test\n{\n static public void DoStuff( Scripting.IJob Job)\n {\n Console.WriteLine( \"Hep... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53844",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2260/"
] |
53,849 | <p>Java has a convenient split method:</p>
<pre><code>String str = "The quick brown fox";
String[] results = str.split(" ");
</code></pre>
<p>Is there an easy way to do this in C++?</p>
| [
{
"answer_id": 53862,
"author": "vzczc",
"author_id": 224,
"author_profile": "https://Stackoverflow.com/users/224",
"pm_score": 5,
"selected": false,
"text": "//Header file\nclass Tokenizer \n{\n public:\n static const std::string DELIMITERS;\n Tokenizer(const std::strin... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1288/"
] |
53,911 | <p>Programming in vim I often go search for something, yank it, then go back to where I was, insert it, modify it.</p>
<p>The problem is that after I search and find, I need to MANUALLY find my way back to where I was.</p>
<p>Is there an automatic way to go back to where I was when I initiated my last search?</p>
| [
{
"answer_id": 53924,
"author": "Mark Biek",
"author_id": 305,
"author_profile": "https://Stackoverflow.com/users/305",
"pm_score": 6,
"selected": false,
"text": ":marks :marks"
},
{
"answer_id": 53926,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "h... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4639/"
] |
53,939 | <p>I'm running Visual Studio 2008 with the stuff-of-nightmares awful MS test framework. Trouble is that it's sending my CPU to 100% (well 25% on a quad-core).</p>
<p>My question is why can't Visual Studio run on more than one core? Surely M$ must have a sufficient handle on threading to get this to work.</p>
| [
{
"answer_id": 3357049,
"author": "Olivier Dagenais",
"author_id": 98903,
"author_profile": "https://Stackoverflow.com/users/98903",
"pm_score": 2,
"selected": false,
"text": "parallelTestCount .testsettings <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<TestSettings\n name=\"Release\"\n ... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1122/"
] |
53,945 | <p>I am currently loading a lightbox style popup that loads it's HTML from an XHR call. This content is then displayed in a 'modal' popup using <code>element.innerHTML = content</code> This works like a charm.</p>
<p>In another section of this website I use a Flickr 'badge' (<a href="http://www.elliotswan.com/2006/08/... | [
{
"answer_id": 54002,
"author": "Jon Cram",
"author_id": 5343,
"author_profile": "https://Stackoverflow.com/users/5343",
"pm_score": 0,
"selected": false,
"text": "document.write document.write document.write document.write content element.innerHTML = content document.write innerHTML <sc... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4174/"
] |
53,961 | <p>I'm working with a large (270+ project) VS.Net solution. Yes, I know this is pushing the friendship with VS but it's inherited and blah blah. Anyway, to speed up the solution load and compile time I've removed all projects that I'm not currently working on... which in turn has removed those project references from... | [
{
"answer_id": 54063,
"author": "Gulzar Nazim",
"author_id": 4337,
"author_profile": "https://Stackoverflow.com/users/4337",
"pm_score": 1,
"selected": false,
"text": " <ItemGroup>\n <ProjectReference Include=\"..\\WindowsApplication2\\WindowsApplication2.csproj\">\n <Project>{7... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4200/"
] |
53,965 | <pre><code>$output = preg_replace("|(/D)(/s+)(/d+)(;)|", "//1,//3;", $output);
</code></pre>
<p>I'm trying to replace all alphabetical character followed by one or more whitespace characters (tabs and/or spaces) followed by one or more numerical characters followed by a semicolon with the alphabetical character follow... | [
{
"answer_id": 53993,
"author": "samjudson",
"author_id": 1908,
"author_profile": "https://Stackoverflow.com/users/1908",
"pm_score": 4,
"selected": true,
"text": "| $n $output = preg_replace(\"/(\\\\D)\\\\s+(\\\\d+;)/\", \"$1,$2\", $output);\n $output = preg_replace('/(\\D)\\s+(\\d+;)/'... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
53,967 | <p>I have a class that map objects to objects, but unlike dictionary it maps them both ways. I am now trying to implement a custom <code>IEnumerator</code> interface that iterates through the values.</p>
<pre><code>public class Mapper<K,T> : IEnumerable<T>, IEnumerator<T>
{
C5.TreeDictionary<K... | [
{
"answer_id": 53999,
"author": "Pop Catalin",
"author_id": 4685,
"author_profile": "https://Stackoverflow.com/users/4685",
"pm_score": 3,
"selected": false,
"text": "IEnumerable<T> IEnumerator<T> public class Mapper<K,T> : IEnumerable<T> {\n public IEnumerator<T> GetEnumerator()\n ... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4694/"
] |
53,989 | <p>Usually Flash and Flex applications are embedded on in HTML using either a combination of <code>object</code> and <code>embed</code> tags, or more commonly using JavaScript. However, if you link directly to a SWF file it will open in the browser window and without looking in the address bar you can't tell that it wa... | [
{
"answer_id": 54155,
"author": "hasseg",
"author_id": 4111,
"author_profile": "https://Stackoverflow.com/users/4111",
"pm_score": 1,
"selected": false,
"text": "Application.application.parameters"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/53989",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1109/"
] |
53,997 | <p>I am trying to implement AJAX in my Google App Engine application, and so I am looking for a good AJAX framework that will help me. Anyone has any idea?</p>
<p>I am thinking about Google Web Toolkit, how good it is in terms of creating AJAX for Google App Engine?</p>
| [
{
"answer_id": 605156,
"author": "mahmoud",
"author_id": 72931,
"author_profile": "https://Stackoverflow.com/users/72931",
"pm_score": 2,
"selected": false,
"text": "def Get(self, user):\n self.handleRequest()\n\ndef Post(self, user):\n self.handleRequest()\n\n\ndef handleRequest(s... | 2008/09/10 | [
"https://Stackoverflow.com/questions/53997",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] |
54,001 | <p>Migrating a project from ASP.NET 1.1 to ASP.NET 2.0 and I keep hitting this error. </p>
<p>I don't actually need Global because I am not adding anything to it, but after I remove it I get more errors.</p>
| [
{
"answer_id": 228209,
"author": "Mark Glorie",
"author_id": 952,
"author_profile": "https://Stackoverflow.com/users/952",
"pm_score": 3,
"selected": false,
"text": "Public Class [Global]\n Inherits System.Web.HttpApplication\n ...\n"
},
{
"answer_id": 8938480,
"author"... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54001",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3208/"
] |
54,010 | <p>I've recently been working on a beginner's project in Scala, and have a beginner question about Scala's Lists.</p>
<p>Say I have a list of tuples ( <code>List[Tuple2[String, String]]</code>, for example). Is there a convenience method to return the first occurence of a specified tuple from the List, or is it necess... | [
{
"answer_id": 66489,
"author": "Daniel Spiewak",
"author_id": 9815,
"author_profile": "https://Stackoverflow.com/users/9815",
"pm_score": 2,
"selected": false,
"text": "find true false"
},
{
"answer_id": 392351,
"author": "Community",
"author_id": -1,
"author_profile... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
54,036 | <p>how can i create an application to read all my browser (firefox) history?
i noticed that i have in </p>
<p>C:\Users\user.name\AppData\Local\Mozilla\Firefox\Profiles\646vwtnu.default</p>
<p>what looks like a sqlite database (urlclassifier3.sqlite) but i don't know if its really what is used to store de history inf... | [
{
"answer_id": 54074,
"author": "hasseg",
"author_id": 4111,
"author_profile": "https://Stackoverflow.com/users/4111",
"pm_score": 4,
"selected": true,
"text": "places.sqlite history.dat"
},
{
"answer_id": 56201,
"author": "Vitor Silva",
"author_id": 1842864,
"author_... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54036",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1842864/"
] |
54,037 | <p>Say you've got a credit card number with an expiration date of 05/08 - i.e. May 2008.</p>
<p>Does that mean the card expires on the morning of the 1st of May 2008, or the night of the 31st of May 2008?</p>
| [
{
"answer_id": 54041,
"author": "David Webb",
"author_id": 3171,
"author_profile": "https://Stackoverflow.com/users/3171",
"pm_score": 4,
"selected": false,
"text": "EXPIRES END VALID THRU"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/54037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/797/"
] |
54,047 | <p>I've been trying to figure out a regex to allow me to search for a particular string while automatically skipping comments. Anyone have an RE like this or know of one? It doesn't even need to be sophisticated enough to skip <code>#if 0</code> blocks; I just want it to skip over <code>//</code> and <code>/*</code> ... | [
{
"answer_id": 54148,
"author": "Jason Cohen",
"author_id": 4926,
"author_profile": "https://Stackoverflow.com/users/4926",
"pm_score": 2,
"selected": false,
"text": "\"This is \\\"a test\\\"\""
},
{
"answer_id": 55604,
"author": "jfs",
"author_id": 4279,
"author_prof... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54047",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2820/"
] |
54,050 | <p>We have an ASP.NET application that manages it's own User, Roles and Permission database and we have recently added a field to the User table to hold the Windows domain account. </p>
<p>I would like to make it so that the user doesn't have to <strong>physically</strong> log in to our application, but rather would... | [
{
"answer_id": 54065,
"author": "Biri",
"author_id": 968,
"author_profile": "https://Stackoverflow.com/users/968",
"pm_score": 1,
"selected": false,
"text": "using System.Security.Principal;\n...\nWindowsPrincipal wp = (WindowsPrincipal)HttpContext.Current.User;\n"
},
{
"answer_i... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1768/"
] |
54,052 | <p>Are there any free tools available to view the contents of the solution user options file (the .suo file that accompanies solution files)?</p>
<p>I know it's basically formatted as a file system within the file, but I'd like to be able to view the contents so that I can figure out which aspects of my solution and c... | [
{
"answer_id": 59385061,
"author": "Drew Noakes",
"author_id": 24874,
"author_profile": "https://Stackoverflow.com/users/24874",
"pm_score": 1,
"selected": false,
"text": "dotnet install --global suo\nsuo view <path-to-suo-file>\n"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/54052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/507/"
] |
54,059 | <p>Say I have a linked list of numbers of length <code>N</code>. <code>N</code> is very large and I don’t know in advance the exact value of <code>N</code>. </p>
<p>How can I most efficiently write a function that will return <code>k</code> completely <em>random numbers</em> from the list?</p>
| [
{
"answer_id": 54072,
"author": "Christian Oudard",
"author_id": 3757,
"author_profile": "https://Stackoverflow.com/users/3757",
"pm_score": -1,
"selected": false,
"text": "O(N*k)"
},
{
"answer_id": 54083,
"author": "George Mauer",
"author_id": 5056,
"author_profile":... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/797/"
] |
54,068 | <p>I'm looking at a new computer which will probably have vista on it. But there are so many editions of vista; are there any weird restrictions on what you can run on the various editions? For instance you couldn't run IIS on Windows ME. Can you still run IIS on the home editions of vista? </p>
| [
{
"answer_id": 54072,
"author": "Christian Oudard",
"author_id": 3757,
"author_profile": "https://Stackoverflow.com/users/3757",
"pm_score": -1,
"selected": false,
"text": "O(N*k)"
},
{
"answer_id": 54083,
"author": "George Mauer",
"author_id": 5056,
"author_profile":... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54068",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/361/"
] |
54,092 | <p><br />
I need to send MMS thought a C# application. I have already found 2 interesting components:
<a href="http://www.winwap.com" rel="nofollow noreferrer">http://www.winwap.com</a><br />
<a href="http://www.nowsms.com" rel="nofollow noreferrer">http://www.nowsms.com</a></p>
<p>Does anyone have experience with oth... | [
{
"answer_id": 32959714,
"author": "rickyrobinett",
"author_id": 3037626,
"author_profile": "https://Stackoverflow.com/users/3037626",
"pm_score": 0,
"selected": false,
"text": " // Send a new outgoing MMS by POSTing to the Messages resource */\n client.SendMessage(\n \"YYY-YYY... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54092",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/296/"
] |
54,096 | <p>I got a little curious after reading <a href="http://it.slashdot.org/it/08/09/09/1558218.shtml" rel="noreferrer">this /. article</a> over hijacking HTTPS cookies. I tracked it down a bit, and a good resource I stumbled across lists a few ways to secure cookies <a href="http://casabasecurity.com/content/using-aspnet-... | [
{
"answer_id": 32959714,
"author": "rickyrobinett",
"author_id": 3037626,
"author_profile": "https://Stackoverflow.com/users/3037626",
"pm_score": 0,
"selected": false,
"text": " // Send a new outgoing MMS by POSTing to the Messages resource */\n client.SendMessage(\n \"YYY-YYY... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54096",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1212/"
] |
54,104 | <p>Surprisingly as you get good at vim, you can code even faster than standard IDEs such as Eclipse. But one thing I really miss is code completion, especially for long variable names and functions.</p>
<p>Is there any way to enable code completion for Perl in vim?</p>
| [
{
"answer_id": 54116,
"author": "Mark Biek",
"author_id": 305,
"author_profile": "https://Stackoverflow.com/users/305",
"pm_score": 3,
"selected": false,
"text": "autocmd FileType php set omnifunc=phpcomplete#CompletePHP\n"
},
{
"answer_id": 72727,
"author": "Matt Siegman",
... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54104",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4639/"
] |
54,118 | <p>Database? Page variables? Enum?</p>
<p>I'm looking for opinions here. </p>
| [
{
"answer_id": 57722,
"author": "Zack Peterson",
"author_id": 83,
"author_profile": "https://Stackoverflow.com/users/83",
"pm_score": 1,
"selected": false,
"text": "<asp:SiteMapPath ID=\"SiteMapPath1\" runat=\"server\" />\n<asp:Menu ID=\"Menu1\" runat=\"server\" DataSourceID=\"SiteMapDat... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4140/"
] |
54,138 | <p>I have a third-party app that creates HTML-based reports that I need to display. I have <em>some</em> control over how they look, but in general it's pretty primitive. I <em>can</em> inject some javascript, though. I'd like to try to inject some jQuery goodness into it to tidy it up some. One specific thing I wo... | [
{
"answer_id": 54190,
"author": "samjudson",
"author_id": 1908,
"author_profile": "https://Stackoverflow.com/users/1908",
"pm_score": 0,
"selected": false,
"text": "<ul> <div>'s"
},
{
"answer_id": 76943,
"author": "Rich McCollister",
"author_id": 9306,
"author_profile... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54138",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/404/"
] |
54,142 | <p>How does the comma operator work in C++?</p>
<p>For instance, if I do:</p>
<pre><code>a = b, c;
</code></pre>
<p>Does a end up equaling b or c? </p>
<p>(Yes, I know this is easy to test - just documenting on here for someone to find the answer quickly.)</p>
<p><strong>Update:</strong> This question has expos... | [
{
"answer_id": 54146,
"author": "Leon Timmermans",
"author_id": 4727,
"author_profile": "https://Stackoverflow.com/users/4727",
"pm_score": 7,
"selected": true,
"text": "b"
},
{
"answer_id": 54172,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "http... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1541/"
] |
54,147 | <p>I want to insert some special characters at the caret inside textboxes using javascript on a button. How can this be done?</p>
<p>The script needs to find the active textbox and insert the character at the caret in that textbox. The script also needs to work in IE and Firefox.</p>
<p><strong>EDIT:</strong> It is a... | [
{
"answer_id": 54167,
"author": "Brian Warshaw",
"author_id": 1344,
"author_profile": "https://Stackoverflow.com/users/1344",
"pm_score": 0,
"selected": false,
"text": "onblur"
},
{
"answer_id": 54269,
"author": "Brian Warshaw",
"author_id": 1344,
"author_profile": "h... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54147",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1523/"
] |
54,176 | <p>I'm looking at improving the performance of some SQL, currently CTEs are being used and referenced multiple times in the script. Would I get improvements using a table variable instead? (Can't use a temporary table as the code is within functions).</p>
| [
{
"answer_id": 73371261,
"author": "Shnugo",
"author_id": 5089204,
"author_profile": "https://Stackoverflow.com/users/5089204",
"pm_score": 3,
"selected": false,
"text": "WITH() USE master; --in my case the master database has just 5 \"user tables\", you can use any other DB of course\nG... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5556/"
] |
54,188 | <p>I have two threads, one updating an int and one reading it. This is a statistic value where the order of the reads and writes is irrelevant.</p>
<p>My question is, do I need to synchronize access to this multi-byte value anyway? Or, put another way, can part of the write be complete and get interrupted, and then t... | [
{
"answer_id": 3378960,
"author": "siddhusingh",
"author_id": 306819,
"author_profile": "https://Stackoverflow.com/users/306819",
"pm_score": 0,
"selected": false,
"text": "int x;\nx++;\nx=x+5;\n x=5;\n"
},
{
"answer_id": 9903090,
"author": "etham",
"author_id": 806286,
... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2167252/"
] |
54,199 | <p>How to implement Repository pattern withe LinqToEntities
how to implement the interface </p>
| [
{
"answer_id": 3378960,
"author": "siddhusingh",
"author_id": 306819,
"author_profile": "https://Stackoverflow.com/users/306819",
"pm_score": 0,
"selected": false,
"text": "int x;\nx++;\nx=x+5;\n x=5;\n"
},
{
"answer_id": 9903090,
"author": "etham",
"author_id": 806286,
... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54199",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2442689/"
] |
54,200 | <p>I am developing a web app which requires a username and password to be stored in the web.Config, it also refers to some URLs which will be requested by the web app itself and never the client.</p>
<p>I know the .Net framework will not allow a web.config file to be served, however I still think its bad practice to l... | [
{
"answer_id": 40489084,
"author": "Matt",
"author_id": 1016343,
"author_profile": "https://Stackoverflow.com/users/1016343",
"pm_score": 2,
"selected": false,
"text": "C: D:\\Apps\\myApp cd \"C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\" Framework Framework64 cd /D \"D:\\Apps\\m... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2208/"
] |
54,207 | <p>I have an internal enterprise app that currently consumes 10 different web services. They're consumed via old style "Web References" instead of using WCF.</p>
<p>The problem I'm having is trying to work with the other teams in the company who are authoring the services I'm consuming. I found I needed to capture the... | [
{
"answer_id": 54306,
"author": "NotMyself",
"author_id": 303,
"author_profile": "https://Stackoverflow.com/users/303",
"pm_score": 0,
"selected": false,
"text": "<System.Diagnostics.Conditional(\"DEBUG\")> _\n Private Sub CheckHTTPRequest(ByVal functionName As String)\n Dim e ... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2595/"
] |
54,219 | <p>I'm working on an editor for files that are used by an important internal testing tool we use. The tool itself is large, complicated, and refactoring or rewriting would take more resources than we are able to devote to it for the forseeable future, so my hands are tied when it comes to large modifications. I must ... | [
{
"answer_id": 54287,
"author": "fryguybob",
"author_id": 4592,
"author_profile": "https://Stackoverflow.com/users/4592",
"pm_score": 1,
"selected": false,
"text": "private List<ErrorItem<object>> _allObjects = new List<ErrorItem<object>>();\n\npublic IEnumerable<ErrorItem<A>> ItemsOfA\n... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2547/"
] |
54,227 | <p>I have an asp.net url path which is being generated in a web form, and is coming out something like "/foo/bar/../bar/path.aspx", and is coming out in the generated html like this too. It should be shortened to "/foo/bar/path.aspx". </p>
<p>Path.Combine didn't fix it. Is there a function to clean this path up? </p>
| [
{
"answer_id": 54273,
"author": "Compile This",
"author_id": 4048,
"author_profile": "https://Stackoverflow.com/users/4048",
"pm_score": 3,
"selected": true,
"text": "public static class UriHelper\n{ \n public static string NormalizeRelativePath(string path)\n {\n UriB... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5599/"
] |
54,237 | <p>I want to link to bookmark on a page (mysite.com/mypage.htm#bookmark) AND visually highlight the item that was bookmarked (maybe having a red border). Naturally, there would be multiple items bookmarked. So that if someone clicked on #bookmark2 then <em>that</em> other area would be highlighted). </p>
<p>I can s... | [
{
"answer_id": 54278,
"author": "Kevin",
"author_id": 2678,
"author_profile": "https://Stackoverflow.com/users/2678",
"pm_score": 2,
"selected": false,
"text": "jQuery(location.hash).addClass('highlight');\n"
},
{
"answer_id": 54326,
"author": "Pat",
"author_id": 238,
... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54237",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4906/"
] |
54,255 | <p>Using Vim I often want to replace a block of code with a block that I just yanked.</p>
<p>But when I delete the block of code that is to be replaced, that block itself goes into the register which erases the block I just yanked. So I've got in the habit of yanking, then inserting, then deleting what I didn't want, ... | [
{
"answer_id": 54265,
"author": "EBGreen",
"author_id": 1358,
"author_profile": "https://Stackoverflow.com/users/1358",
"pm_score": 3,
"selected": false,
"text": ":h d\n"
},
{
"answer_id": 54272,
"author": "EBGreen",
"author_id": 1358,
"author_profile": "https://Stack... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4639/"
] |
54,295 | <p>I'd like to store a properties file as XML. Is there a way to sort the keys when doing this so that the generated XML file will be in alphabetical order? </p>
<pre><code>String propFile = "/path/to/file";
Properties props = new Properties();
/*set some properties here*/
try {
FileOutputStream xmlStream = new ... | [
{
"answer_id": 54316,
"author": "ScArcher2",
"author_id": 1310,
"author_profile": "https://Stackoverflow.com/users/1310",
"pm_score": 2,
"selected": false,
"text": "public static void main(String[] args){\n String propFile = \"/tmp/test2.xml\";\n Properties props = new Prop... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54295",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5084/"
] |
54,318 | <p>I'm looking for any tools that can give you code churn metrics (graphs and charts would be even better) for a Subversion repository.</p>
<p>One tool I know of is <a href="http://www.statsvn.org/" rel="noreferrer">statsvn</a> - a Java tool that creates some HTML reports and some code churn metrics. Statsvn reports ... | [
{
"answer_id": 78183,
"author": "James A. N. Stauffer",
"author_id": 6770,
"author_profile": "https://Stackoverflow.com/users/6770",
"pm_score": 0,
"selected": false,
"text": "svn blame sed sort uniq -c"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/54318",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1341/"
] |
54,334 | <p>The following SQL:</p>
<pre><code>SELECT notes + 'SomeText'
FROM NotesTable a
</code></pre>
<p>Give the error:</p>
<blockquote>
<p>The data types nvarchar and text are incompatible in the add operator.</p>
</blockquote>
| [
{
"answer_id": 54343,
"author": "GateKiller",
"author_id": 383,
"author_profile": "https://Stackoverflow.com/users/383",
"pm_score": 7,
"selected": true,
"text": "Select Cast(notes as nvarchar(4000)) + 'SomeText'\nFrom NotesTable a\n"
},
{
"answer_id": 57061,
"author": "Scott... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2017/"
] |
54,365 | <p>This is probably <a href="http://www.linuxtopia.org/online_books/advanced_bash_scripting_guide/x13320.html" rel="noreferrer">a complex solution</a>.</p>
<p>I am looking for a simple operator like ">>", but for prepending.</p>
<p>I am afraid it does not exist. I'll have to do something like </p>
<pre>
mv myfile t... | [
{
"answer_id": 54381,
"author": "Jason Navarrete",
"author_id": 3920,
"author_profile": "https://Stackoverflow.com/users/3920",
"pm_score": 7,
"selected": false,
"text": "echo \"text\" | cat - yourfile > /tmp/out && mv /tmp/out yourfile\n"
},
{
"answer_id": 54384,
"author": "... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1277510/"
] |
54,380 | <p>I am adding a ADO.Net Data Service lookup feature to an existing web page. Everything works great when running from visual studio, but when I roll it out to IIS, I get the following error:</p>
<blockquote>
<p><strong>Request Error</strong><br>The server encountered an error processing the request. See server log... | [
{
"answer_id": 55557,
"author": "Patrick Connelly",
"author_id": 5431,
"author_profile": "https://Stackoverflow.com/users/5431",
"pm_score": 4,
"selected": false,
"text": " <system.diagnostics>\n <sources>\n <source name=\"System.ServiceModel.MessageLogging\" switchValue=\... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5431/"
] |
54,401 | <p>As I develop more with vim, I find myself wanting to copy in blocks of useful code, similar to "templates" in Eclipse. </p>
<p>I was thinking of making a separate file for each code chunk and just reading them in with</p>
<pre><code>:r code-fornext
</code></pre>
<p>but that just seems kind of primitive. Googling ... | [
{
"answer_id": 54527,
"author": "brian newman",
"author_id": 3210,
"author_profile": "https://Stackoverflow.com/users/3210",
"pm_score": 4,
"selected": true,
"text": "q qq q q @q @@ 10@q 20@q +----------------------------------+-------------------------------------+\n| start recording a ... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4639/"
] |
54,418 | <p>I need to retrieve all rows from a table where 2 columns combined are all different. So I want all the sales that do not have any other sales that happened on the same day for the same price. The sales that are unique based on day and price will get updated to an active status.</p>
<p>So I'm thinking:</p>
<pre><co... | [
{
"answer_id": 54430,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 10,
"selected": true,
"text": "SELECT DISTINCT a,b,c FROM t\n SELECT a,b,c FROM t GROUP BY a,b,c\n UPDATE sales\nSET status='ACTIVE'\nWHERE id IN\n(\n... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4915/"
] |
54,419 | <p>I have a WCF application that has two Services that I am trying to host in a single Windows Service using net.tcp. I can run either of the services just fine, but as soon as I try to put them both in the Windows Service only the first one loads up. I have determined that the second services ctor is being called but ... | [
{
"answer_id": 90870,
"author": "Wiren",
"author_id": 2538222,
"author_profile": "https://Stackoverflow.com/users/2538222",
"pm_score": 5,
"selected": true,
"text": "internal class MyWCFService1\n{\n internal static System.ServiceModel.ServiceHost serviceHost = null;\n\n internal s... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5408/"
] |
54,421 | <p>If you are writing a program that is executable from the command line, you often want to offer the user several options or flags, along with possibly more than one argument. I have stumbled my way through this many times, but is there some sort of design pattern for looping through args and calling the appropriate h... | [
{
"answer_id": 54690,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 2,
"selected": false,
"text": "while (current_argument = cli_parser_next()) {\n switch(current_argument) {\n case \"f\": //Parser strips t... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/577/"
] |
54,426 | <p>Like the Delicious submission bookmark-let, I'd like to have some standard JavaScript I can use to submit any visited URL to a 3rd party site when that's possible by URL. Suggestions?</p>
<p>For example, I've been using </p>
<pre><code>javascript:void(location.href="http://www.yacktrack.com/home?query="+encodeURI... | [
{
"answer_id": 54446,
"author": "John Boker",
"author_id": 2847,
"author_profile": "https://Stackoverflow.com/users/2847",
"pm_score": 1,
"selected": false,
"text": "document.location = \"http://url_submitting_to.com?query_string_param=\" + window.location;\n"
},
{
"answer_id": 5... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5613/"
] |
54,440 | <p>I want to add the selected item from the <code>TreeView</code> to the <code>ListBox</code> control using <code>DataBinding</code> (If it can work with <code>DataBinding</code>). </p>
<pre><code><TreeView HorizontalAlignment="Left"
Margin="30,32,0,83"
Name="treeView1"
Width="133" ... | [
{
"answer_id": 55830,
"author": "Dylan",
"author_id": 4580,
"author_profile": "https://Stackoverflow.com/users/4580",
"pm_score": 1,
"selected": false,
"text": "ItemsSource=\"{Binding SelectedItem, ElementName=treeView1}\"\n"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/54440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3797/"
] |
54,475 | <p>I've run into a problem where I make changes to a few JavaScript files that are referenced in an HTML file, but the browser doesn't see the changes. It holds onto the copy cached in the browser, even though the web server has a newer version.</p>
<p>Not until I force the browser to clear the cache do I see the chan... | [
{
"answer_id": 54486,
"author": "Jason Cohen",
"author_id": 4926,
"author_profile": "https://Stackoverflow.com/users/4926",
"pm_score": 6,
"selected": true,
"text": "<script src=\"MyScript.js?4.0.8243\">\n"
},
{
"answer_id": 54506,
"author": "Chris Marasti-Georg",
"author... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5079/"
] |
54,482 | <p>I need to enumerate all the user defined types created in a <code>SQL Server</code> database with <code>CREATE TYPE</code>, and/or find out whether they have already been defined.</p>
<p>With tables or stored procedures I'd do something like this:</p>
<pre><code>if exists (select * from dbo.sysobjects where name='... | [
{
"answer_id": 54496,
"author": "jwolly2",
"author_id": 5202,
"author_profile": "https://Stackoverflow.com/users/5202",
"pm_score": 7,
"selected": true,
"text": "select * from sys.types\nwhere is_user_defined = 1\n"
},
{
"answer_id": 31549846,
"author": "Ron Sanderson",
"... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/886/"
] |
54,487 | <p>How can I format Floats in Java so that the float component is displayed only if it's not zero? For example:</p>
<pre>
123.45 -> 123.45
99.0 -> 99
23.2 -> 23.2
45.0 -> 45
</pre>
<p>Edit: I forgot to mention - I'm still on Java 1.4 - sorry!</p>
| [
{
"answer_id": 54502,
"author": "ScArcher2",
"author_id": 1310,
"author_profile": "https://Stackoverflow.com/users/1310",
"pm_score": 4,
"selected": true,
"text": " DecimalFormat format = new DecimalFormat(\"###.##\");\n\n double[] doubles = {123.45, 99.0, 23.2, 45.0};\n for(int i=... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
54,500 | <p>Alright, so I'm working on an application which will use a Linux back-end running PostgreSQL to serve up images to a Windows box with the front end written in C#.NET, though the front-end should hardly matter. My question is:</p>
<ul>
<li><strong>What is the best way to deal with storing images in Postgres?</stron... | [
{
"answer_id": 54561,
"author": "Kris Erickson",
"author_id": 3798,
"author_profile": "https://Stackoverflow.com/users/3798",
"pm_score": 5,
"selected": false,
"text": "//linuxserver/images/imagexxx.jpg\n"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/54500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/145/"
] |
54,503 | <p>I'm working on a .net post-commit hook to feed data into OnTime via their Soap SDK. My hook works on Windows fine, but on our production RHEL4 subversion server, it won't work when called from a shell script.</p>
<pre>
#!/bin/sh
/usr/bin/mono $1/hooks/post-commit.exe "$@"
</pre>
<p>When I execute it with parameter... | [
{
"answer_id": 54537,
"author": "Herms",
"author_id": 1409,
"author_profile": "https://Stackoverflow.com/users/1409",
"pm_score": 0,
"selected": false,
"text": "#!/bin/sh\necho /usr/bin/mono $1/hooks/post-commit.exe \"$@\"\n"
},
{
"answer_id": 54545,
"author": "Leon Timmerman... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1441/"
] |
54,512 | <p>varchar(255), varchar(256), nvarchar(255), nvarchar(256), nvarchar(max), etc?</p>
<p>256 seems like a nice, round, space-efficient number. But I've seen 255 used a lot. Why?</p>
<p>What's the difference between varchar and nvarchar?</p>
| [
{
"answer_id": 54533,
"author": "chakrit",
"author_id": 3055,
"author_profile": "https://Stackoverflow.com/users/3055",
"pm_score": 2,
"selected": false,
"text": "0 1 2 3 4 5 ... 255\n"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/54512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/83/"
] |
54,522 | <p>I need to print out data into a pre-printed A6 form (1/4 the size of a landsacpe A4). I do not need to print paragraphs of text, just short lines scattered about on the page.</p>
<p>All the stuff on MSDN is about priting paragraphs of text. </p>
<p>Thanks for any help you can give,
Roberto</p>
| [
{
"answer_id": 54533,
"author": "chakrit",
"author_id": 3055,
"author_profile": "https://Stackoverflow.com/users/3055",
"pm_score": 2,
"selected": false,
"text": "0 1 2 3 4 5 ... 255\n"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/54522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5648/"
] |
54,536 | <p>How do I create a windows application that does the following:</p>
<ul>
<li>it's a regular GUI app when invoked with no command line arguments</li>
<li>specifying the optional "--help" command line argument causes the app to write usage text to stdout then terminate</li>
<li>it must be a single executable. No chea... | [
{
"answer_id": 113032,
"author": "Hugh Allen",
"author_id": 15069,
"author_profile": "https://Stackoverflow.com/users/15069",
"pm_score": 5,
"selected": false,
"text": "cmd.exe C:\\> cmd cmd #include <stdio.h>\n#include <windows.h>\n\nint main(int argc, char *argv[])\n{\n if (GetStdHa... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5429/"
] |
54,539 | <p>So the SMEs at my current place of employment want to try and disable the back button for certain pages. We have a page where the user makes some selections and submits them to be processed. In some instances they have to enter a comment on another page. </p>
<p>What the users have figured out is that they don't... | [
{
"answer_id": 54571,
"author": "David Mohundro",
"author_id": 4570,
"author_profile": "https://Stackoverflow.com/users/4570",
"pm_score": 2,
"selected": false,
"text": "window.onBack = history.forward();\n"
},
{
"answer_id": 5881224,
"author": "Yossi Shasho",
"author_id"... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1942/"
] |
54,546 | <p>Assemblies A and B are privately deployed and strongly named. Assembly A contains references to Assembly B. There are two versions of Assembly B: B1 and B2. I want to be able to indicate for Assembly A that it may bind to either B1 or B2 -- ideally, by incorporating this information into the assembly itself. Wha... | [
{
"answer_id": 54553,
"author": "Aaron Fischer",
"author_id": 5618,
"author_profile": "https://Stackoverflow.com/users/5618",
"pm_score": 1,
"selected": false,
"text": "Assembly.LoadFrom()"
},
{
"answer_id": 55560,
"author": "Adrian Clark",
"author_id": 148,
"author_p... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/533/"
] |
54,566 | <p>So I'm refactoring my code to implement more OOP. I set up a class to hold page attributes.</p>
<pre><code>class PageAtrributes
{
private $db_connection;
private $page_title;
public function __construct($db_connection)
{
$this->db_connection = $db_connection;
$this->page_title ... | [
{
"answer_id": 54572,
"author": "Allain Lalonde",
"author_id": 2443,
"author_profile": "https://Stackoverflow.com/users/2443",
"pm_score": 7,
"selected": true,
"text": "$objPage function page_properties(PageAtrributes $objPortal) { \n ...\n $objPage->set_page_title($myrow['title... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54566",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2863/"
] |
54,567 | <p>I've got an <code>JComboBox</code> with a custom <code>inputVerifyer</code> set to limit MaxLength when it's set to editable.</p>
<p>The verify method never seems to get called.<br>
The same verifyer gets invoked on a <code>JTextField</code> fine.</p>
<p>What might I be doing wrong?</p>
| [
{
"answer_id": 54614,
"author": "Tom Hawtin - tackline",
"author_id": 4725,
"author_profile": "https://Stackoverflow.com/users/4725",
"pm_score": 1,
"selected": false,
"text": "package inputverifier;\n\nimport javax.swing.*;\n\n class Go {\n public static void main(String[] args) {... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54567",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2443/"
] |
54,578 | <p>How do I capture the output of "%windir%/system32/pnputil.exe -e"?
(assume windows vista 32-bit)</p>
<p>Bonus for technical explanation of why the app normally writes output to the cmd shell, but when stdout and/or stderr are redirected then the app writes nothing to the console or to stdout/stderr?</p>
<pre>
C:\W... | [
{
"answer_id": 54588,
"author": "chakrit",
"author_id": 3055,
"author_profile": "https://Stackoverflow.com/users/3055",
"pm_score": 0,
"selected": false,
"text": "svn status | find \"? \"\n svn status find \"? \" >"
},
{
"answer_id": 46796987,
"author": "Tim LaGrange",
"a... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5429/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.