qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
64,748 | <p>How can I poll disk activity in Applescript? Check to see if disk X is being read, written, or idle every N seconds and do something.</p>
| [
{
"answer_id": 65954,
"author": "jackrabbit",
"author_id": 3707,
"author_profile": "https://Stackoverflow.com/users/3707",
"pm_score": 2,
"selected": false,
"text": "call method"
},
{
"answer_id": 158032,
"author": "Milhous",
"author_id": 17712,
"author_profile": "htt... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7216/"
] |
64,749 | <p>When I run a particular SQL script in Unix environments, I see a '^M' character at the end of each line of the SQL script as it is echoed to the command line.<br />
I don't know on which OS the SQL script was initially created.</p>
<p>What is causing this and how do I fix it?</p>
| [
{
"answer_id": 64788,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 3,
"selected": false,
"text": "perl -pie 's/\\r//g' filename.txt\n"
},
{
"answer_id": 64792,
"author": "dogbane",
"author_id": 7412,... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64749",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7648/"
] |
64,759 | <p>I have a pdf file of a logo, about 1"x2" in dimension. Can anybody provide the code snippet to import that PDF logo into another PDF file using the <a href="http://framework.zend.com/manual/en/zend.pdf.html" rel="nofollow noreferrer">Zend_PDF</a> API's? </p>
<p>Ideally, I'd like to be able to place it like the PN... | [
{
"answer_id": 75021,
"author": "user6824",
"author_id": 6824,
"author_profile": "https://Stackoverflow.com/users/6824",
"pm_score": 2,
"selected": false,
"text": "$pdf = & new FPDI ('P', 'in', 'Letter' );\n$pagecount = $pdf->setSourceFile ( APP . 'logo.pdf' );\n$tplidx = $pdf->importPag... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6824/"
] |
64,781 | <p>I have a web application that receives messages through an HTTP interface, e.g.:</p>
<pre><code>http://server/application?source=123&destination=234&text=hello
</code></pre>
<p>This request contains the ID of the sender, the ID of the recipient and the text of the message.</p>
<p>This message should be pr... | [
{
"answer_id": 66373,
"author": "Christian",
"author_id": 9817,
"author_profile": "https://Stackoverflow.com/users/9817",
"pm_score": 3,
"selected": true,
"text": "uow=sess.acquireUnitOfWork();\nfor (job in batch) {\n thingyCl=uow.registerObject(new Thingy());\n user1Cl=uow.registerObjec... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/686/"
] |
64,782 | <pre><code>int i = 4;
string text = "Player ";
cout << (text + i);
</code></pre>
<p>I'd like it to print <code>Player 4</code>.</p>
<p>The above is obviously wrong but it shows what I'm trying to do here. Is there an easy way to do this or do I have to start adding new includes?</p>
| [
{
"answer_id": 64794,
"author": "rupello",
"author_id": 635,
"author_profile": "https://Stackoverflow.com/users/635",
"pm_score": 0,
"selected": false,
"text": "cout << \"Player\" << i ;\n"
},
{
"answer_id": 64795,
"author": "Community",
"author_id": -1,
"author_profi... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
64,786 | <p>What is your favorite method to handle errors in Bash?
The best example of handling errors I have found on the web was written by William Shotts, Jr at <a href="http://www.linuxcommand.org" rel="noreferrer">http://www.linuxcommand.org</a>. </p>
<p>He suggests using the following function for error handling in Bash... | [
{
"answer_id": 64880,
"author": "pjz",
"author_id": 8002,
"author_profile": "https://Stackoverflow.com/users/8002",
"pm_score": 2,
"selected": false,
"text": "die() {\n echo $1\n kill $$\n}\n"
},
{
"answer_id": 69808,
"author": "Bruno De Fraine",
"author_id"... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
64,790 | <p>I have breakpoints set but Xcode appears to ignore them.</p>
| [
{
"answer_id": 67957,
"author": "pestophagous",
"author_id": 10278,
"author_profile": "https://Stackoverflow.com/users/10278",
"pm_score": 8,
"selected": true,
"text": "Load Symbols Lazily"
},
{
"answer_id": 11310391,
"author": "brian.clear",
"author_id": 181947,
"aut... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8761/"
] |
64,808 | <p>Most text editors have a navigation pane that lets you see all the files you currently have open. Or a pane that lets you browse a file directory.</p>
<p>How do I do this in Emacs?</p>
| [
{
"answer_id": 64818,
"author": "Mike Stone",
"author_id": 122,
"author_profile": "https://Stackoverflow.com/users/122",
"pm_score": 2,
"selected": false,
"text": "Buffers"
},
{
"answer_id": 64850,
"author": "Robᵩ",
"author_id": 8747,
"author_profile": "https://Stacko... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8913/"
] |
64,813 | <p>These days, i came across a problem with Team System Unit Testing. I found that the automatically created accessor class ignores generic constraints - at least in the following case:</p>
<p>Assume you have the following class:</p>
<pre><code>namespace MyLibrary
{
public class MyClass
{
public Nullable<T>... | [
{
"answer_id": 168453,
"author": "Zachary Yates",
"author_id": 8360,
"author_profile": "https://Stackoverflow.com/users/8360",
"pm_score": 1,
"selected": false,
"text": "TestEnum? e1 = target.MyMethod(\"item2\");\n TestEnum? e1 = target.MyMethod<TestEnum>(\"item2\");\n"
},
{
"ans... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6777/"
] |
64,820 | <p>ASP.NET 2.0 web application, how to implement shortcut key combination of <kbd>CTRL + Letter</kbd>, preferably through JavaScript, to make web application ergonomically better? How to capture multiple-key keyboard events through JavaScript?</p>
| [
{
"answer_id": 65212,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 3,
"selected": false,
"text": "window.onkeyup = function(e) {\n if (e.altKey) alert(\"Alt pressed\");\n if (e.shiftKey) alert(\"Shift pressed\");\n}\n"
}
... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8832/"
] |
64,825 | <p>Is there a way to substring in JSP files, using struts2 technologies? I mean, struts2 has its own taglib and also uses ognl. How can I get a substring from a stacked value or bean value?</p>
| [
{
"answer_id": 6848438,
"author": "bakoyaro",
"author_id": 455020,
"author_profile": "https://Stackoverflow.com/users/455020",
"pm_score": 1,
"selected": false,
"text": "fn:substring(YOUR_FIELD, START_INDEX, END_INDEX)\n ${fn:substring('scrooge', -1, 3)}\n xmlns:fn=\"http://java.sun.com/... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64825",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
64,827 | <p>I've created a learning application using <a href="http://jimneath.org/2008/09/09/bort-base-rails-application/" rel="noreferrer">Bort</a>, which is a base app that includes Restful Authentication and RSpec. I've got it up and running and added a new object that requires users to be logged in before they can do anyt... | [
{
"answer_id": 65748,
"author": "TALlama",
"author_id": 5657,
"author_profile": "https://Stackoverflow.com/users/5657",
"pm_score": 4,
"selected": true,
"text": "describe it_should_behave_like \"login-required object\"\ndef attempt_access; do_post; end\n it_should_behave_like \"ownership... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6805/"
] |
64,833 | <p>I am writing a C# client that calls a web service written in Java (by another person). I have added a web reference to my client and I'm able to call methods in the web service ok.</p>
<p>The service was changed to return an array of objects, and the client does not properly parse the returned SOAP message.</p>
<... | [
{
"answer_id": 66834,
"author": "David Chappelle",
"author_id": 7475,
"author_profile": "https://Stackoverflow.com/users/7475",
"pm_score": 3,
"selected": false,
"text": "<import namespace=\"http://mynamespace.company.com\"/>\n xmlns=\"http://mynamespace.company.com\"\n [System.Xml.Seria... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7475/"
] |
64,841 | <p>I believe I need a DTD to define the schema and an XSLT if I want to display it in a browser and have it look "pretty". But I'm not sure what else I would need to have a well-defined XML document that can be queried using XQuery and displayed in a web browser.</p>
| [
{
"answer_id": 64942,
"author": "Jorge Ferreira",
"author_id": 6508,
"author_profile": "https://Stackoverflow.com/users/6508",
"pm_score": 2,
"selected": true,
"text": "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<?xml-stylesheet type=\"text/xsl\" href=\"info.xslt\"?>\n<info>\n <... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
64,843 | <p>I am building a site that uses a simple AJAX Servlet to talk JMS (ActiveMQ) and when a message arrives from the topic to update the site.</p>
<p>I have Javascript that creates an XMLHttpRequest for data. The Servlet processes the Get Request and sends back JSON. However I have no idea how to connect my Servlet into... | [
{
"answer_id": 64883,
"author": "jodonnell",
"author_id": 4223,
"author_profile": "https://Stackoverflow.com/users/4223",
"pm_score": 0,
"selected": false,
"text": "Properties props = new Properties();\nprops.setProperty(Context.INITIAL_CONTEXT_FACTORY,\n \"org.apache.activemq.jndi.Ac... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1992/"
] |
64,848 | <p>Has anybody used C# to write a sample screen scraper for IBM as400?</p>
| [
{
"answer_id": 54542089,
"author": "Ashetynw",
"author_id": 9911023,
"author_profile": "https://Stackoverflow.com/users/9911023",
"pm_score": 1,
"selected": false,
"text": "using AutOIATypeLibrary;\nusing AutPSTypeLibrary;\n\nnamespace MyNamespace\n{\n public class Program \n {\n ... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
64,851 | <p>How would you write (in C/C++) a macro which tests if an integer type (given as a parameter) is signed or unsigned?</p>
<pre>
#define is_this_type_signed (my_type) ...
</pre>
| [
{
"answer_id": 64908,
"author": "ChrisN",
"author_id": 3853,
"author_profile": "https://Stackoverflow.com/users/3853",
"pm_score": 5,
"selected": false,
"text": "std::numeric_limits<type>::is_signed #include <limits>\nstd::numeric_limits<int>::is_signed - returns true\nstd::numeric_limi... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64851",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4528/"
] |
64,860 | <p>What is the fastest, easiest tool or method to convert text files between character sets?</p>
<p>Specifically, I need to convert from UTF-8 to ISO-8859-15 and vice versa.</p>
<p>Everything goes: one-liners in your favorite scripting language, command-line tools or other utilities for OS, web sites, etc.</p>
<h2>Best... | [
{
"answer_id": 64878,
"author": "Daniel Papasian",
"author_id": 7548,
"author_profile": "https://Stackoverflow.com/users/7548",
"pm_score": 5,
"selected": false,
"text": "iconv -f FROM-ENCODING -t TO-ENCODING file.txt\n"
},
{
"answer_id": 64889,
"author": "Troels Arvin",
... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2948/"
] |
64,881 | <p>During the load of my cocoa application, my program crashes with the messsage EXC_BAD_ACCESS. The stack trace is not helpful. Any clues to how I can find the problem?</p>
| [
{
"answer_id": 64938,
"author": "AlanKley",
"author_id": 8761,
"author_profile": "https://Stackoverflow.com/users/8761",
"pm_score": -1,
"selected": false,
"text": "#0 0x90a594c7 in objc_msgSend\n#1 0xbffff7b8 in ??\n#2 0x932899d8 in loadNib\n#3 0x932893d9 in +[NSBundle(NSNib... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8761/"
] |
64,894 | <p>Is it possible to select from <code>show tables</code> in MySQL?</p>
<pre><code>SELECT * FROM (SHOW TABLES) AS `my_tables`
</code></pre>
<p>Something along these lines, though the above does not work (on 5.0.51a, at least).</p>
| [
{
"answer_id": 64918,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "SELECT ic.Table_Name,\n ic.Column_Name,\n ic.data_Type,\n IFNULL(Character_Maximum_Length,'') AS `Max`,\n ic.Numeri... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
64,904 | <p>I need to support exact phrases (enclosed in quotes) in an otherwise space-separated list of terms.
Thus splitting the respective string by the space-character is not sufficient anymore.</p>
<p>Example:</p>
<pre><code>input : 'foo bar "lorem ipsum" baz'
output: ['foo', 'bar', 'lorem ipsum', 'baz']
</code></pre>
<... | [
{
"answer_id": 65033,
"author": "shyam",
"author_id": 7616,
"author_profile": "https://Stackoverflow.com/users/7616",
"pm_score": 1,
"selected": false,
"text": "'foo bar \"lorem ipsum\" baz'.match(/\"[^\"]*\"|\\w+/g);\n"
},
{
"answer_id": 65085,
"author": "A Nony Mouse",
... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64904",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
64,958 | <p>Yacc does not permit objects to be passed around. Because the %union can only contain POD types, complex objects must be new'd and passed around by pointer. If a syntax error occurs, the yacc parser just stops running, and references to all of those created objects are lost.</p>
<p>The only solution I've come up wi... | [
{
"answer_id": 65424,
"author": "Michael L Perry",
"author_id": 7668,
"author_profile": "https://Stackoverflow.com/users/7668",
"pm_score": 3,
"selected": true,
"text": "class IExpressionOwner\n{\npublic:\n virtual ExpressionAdd *newExpressionAdd() = 0;\n virtual ExpressionSubstrac... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8566/"
] |
64,977 | <p>How do you create SQL Server 2005 stored procedure templates in SQL Server 2005 Management Studio?</p>
| [
{
"answer_id": 64997,
"author": "Chris Woodruff",
"author_id": 7001,
"author_profile": "https://Stackoverflow.com/users/7001",
"pm_score": 5,
"selected": true,
"text": "-- ======================================================\n-- Create basic stored procedure template with TRY CATCH\n--... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7001/"
] |
64,981 | <p>How do I create a unique constraint on an existing table in SQL Server 2005?</p>
<p>I am looking for both the TSQL and how to do it in the Database Diagram.</p>
| [
{
"answer_id": 65003,
"author": "Ivan Bosnic",
"author_id": 3221,
"author_profile": "https://Stackoverflow.com/users/3221",
"pm_score": 4,
"selected": false,
"text": "ALTER TABLE dbo.<tablename> ADD CONSTRAINT\n <namingconventionconstraint> UNIQUE NONCLUSTERED\n (\n ... | 2008/09/15 | [
"https://Stackoverflow.com/questions/64981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2469/"
] |
64,989 | <p>What could be the cause of JVM thread dumps that show threads waiting to lock on a monitor, but the monitors do not have corresponding locking threads? </p>
<p>Java 1.5_14 on Windows 2003</p>
| [
{
"answer_id": 79671,
"author": "tgdavies",
"author_id": 11002,
"author_profile": "https://Stackoverflow.com/users/11002",
"pm_score": 1,
"selected": false,
"text": "-verbose:gc with -XX:+PrintGCDetails"
}
] | 2008/09/15 | [
"https://Stackoverflow.com/questions/64989",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8530/"
] |
64,992 | <p>I'm working with a support person who is supposed to be able to install SSL certs on a web server he maintains. He has local admin rights to the server via a domain security group. He also has permissions on our internal CA running Windows 2003 Server Certificate Authority: "Request cert" and "Issue and Manage cer... | [
{
"answer_id": 65542,
"author": "JWHEAT",
"author_id": 7079,
"author_profile": "https://Stackoverflow.com/users/7079",
"pm_score": 3,
"selected": false,
"text": "\\Documents and Settings\\All Users\\Application Data\\Microsoft\\Crypto\\RSA\\MachineKeys\n"
}
] | 2008/09/15 | [
"https://Stackoverflow.com/questions/64992",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3347/"
] |
65,001 | <p>What sort of database schema would you use to store email messages, with as much header information as practical/possible, into a database?</p>
<p>Assume that they have been fed into a script from the MTA and parsed into the relevant headers/body/attachments.</p>
<p>Would you store the message body whole in the da... | [
{
"answer_id": 4149301,
"author": "Gareth Rees",
"author_id": 68063,
"author_profile": "https://Stackoverflow.com/users/68063",
"pm_score": 2,
"selected": false,
"text": "In-Reply-To References From To Cc"
}
] | 2008/09/15 | [
"https://Stackoverflow.com/questions/65001",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6216/"
] |
65,008 | <p>I am experimenting with using the FaultException and FaultException<T> to determine the best usage pattern in our applications. We need to support WCF as well as non-WCF service consumers/clients, including SOAP 1.1 and SOAP 1.2 clients.</p>
<p>FYI: using FaultExceptions with wsHttpBinding results in SOAP 1.2... | [
{
"answer_id": 69390,
"author": "wojo",
"author_id": 9022,
"author_profile": "https://Stackoverflow.com/users/9022",
"pm_score": 4,
"selected": true,
"text": " /// <summary>\n /// Replacement for the static methods on FaultCode to generate Sender and Receiver fault codes due\n /... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9022/"
] |
65,034 | <p>How would I remove the border from an iframe embedded in my web app? An example of the iframe is:</p>
<pre><code><iframe src="myURL" width="300" height="300">Browser not compatible.</iframe>
</code></pre>
<p>I would like the transition from the content on my page to the contents of the iframe to be sea... | [
{
"answer_id": 65052,
"author": "David Basarab",
"author_id": 2469,
"author_profile": "https://Stackoverflow.com/users/2469",
"pm_score": 11,
"selected": true,
"text": "frameBorder <iframe src=\"myURL\" width=\"300\" height=\"300\" frameBorder=\"0\">Browser not compatible.</iframe>\n"
... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65034",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2650/"
] |
65,035 | <p>Considering this code, can I be <em>absolutely sure</em> that the <code>finally</code> block always executes, no matter what <code>something()</code> is?</p>
<pre><code>try {
something();
return success;
}
catch (Exception e) {
return failure;
}
finally {
System.out.println("I don't... | [
{
"answer_id": 65049,
"author": "jodonnell",
"author_id": 4223,
"author_profile": "https://Stackoverflow.com/users/4223",
"pm_score": 13,
"selected": true,
"text": "finally try catch finally System.exit() Runtime.getRuntime().halt(exitStatus) try catch kill -9 <pid> finally finally"
},... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/885027/"
] |
65,037 | <p>As far as I know, in gcc you can write something like:</p>
<pre><code>#define DBGPRINT(fmt...) printf(fmt);
</code></pre>
<p>Is there a way to do that in VC++?</p>
| [
{
"answer_id": 65067,
"author": "kfh",
"author_id": 6597,
"author_profile": "https://Stackoverflow.com/users/6597",
"pm_score": -1,
"selected": false,
"text": "#define DBGPRINT(DBGPRINT_ARGS) printf DBGPRINT_ARGS // note: do not use '(' & ')'\n DBGPRINT((\"%s\\n\", \"Hello World\"));\n"
... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9102/"
] |
65,039 | <p>I am refactoring some CSS on a website. I have been working on, and noticed the absence of traditional HTML IDs in the code. </p>
<p>There is heavy use of <code>CssClass='&hellip;'</code>, or sometimes just <code>class='&hellip;'</code>, but I can't seem to find a way to say id='…' and not have it sw... | [
{
"answer_id": 65082,
"author": "David Thibault",
"author_id": 5903,
"author_profile": "https://Stackoverflow.com/users/5903",
"pm_score": 3,
"selected": false,
"text": "<script type=\"text/javascript\">\n var theSpan = document.getElementById('<%= position_title.ClientID %>');\n</scr... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
65,060 | <p>If i have a simple named query defined, the preforms a count function, on one column:</p>
<pre><code> <query name="Activity.GetAllMiles">
<![CDATA[
select sum(Distance) from Activity
]]>
</query>
</code></pre>
<p>How do I get the result of a sum or any query that dont return of ... | [
{
"answer_id": 67675,
"author": "Matt Hinze",
"author_id": 2676,
"author_profile": "https://Stackoverflow.com/users/2676",
"pm_score": 2,
"selected": false,
"text": "var session = GetSession();\nvar criteria = session.CreateCriteria(typeof(Order))\n .Add(Restrictions.Eq(\"Prod... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/230/"
] |
65,071 | <p>Is there a performant equivalent to the isnull function for DB2?</p>
<p>Imagine some of our products are internal, so they don't have names:</p>
<pre><code>Select product.id, isnull(product.name, "Internal)
From product
</code></pre>
<p>Might return:</p>
<pre><code>1 Socks
2 Shoes
3 Internal
4 Pants
</code><... | [
{
"answer_id": 65111,
"author": "Chris Shaffer",
"author_id": 6744,
"author_profile": "https://Stackoverflow.com/users/6744",
"pm_score": 2,
"selected": false,
"text": "\nSELECT Product.ID, COALESCE(product.Name, \"Internal\") AS ProductName\nFROM Product\n"
},
{
"answer_id": 163... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9056/"
] |
65,074 | <p>I've just started writing unit tests for a legacy code module with large physical dependencies using the #include directive. I've been dealing with them a few ways that felt overly tedious (providing empty headers to break long #include dependency lists, and using #define to prevent classes from being compiled) and ... | [
{
"answer_id": 65923,
"author": "Gishu",
"author_id": 1695,
"author_profile": "https://Stackoverflow.com/users/1695",
"pm_score": 4,
"selected": true,
"text": "#include \"TestHarness.h\"\n#include \"Scheduler.h\"\nTEST(create, Scheduler) // your fave C++ test framework macro\n{\n Sc... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8908/"
] |
65,076 | <p>I've trouble setting up Vim (7.1.xxx) for editing Python files (*.py).
Indenting seems to be broken (optimal 4 spaces).
I've followed some tutorials I found via Google. Still no effect :/
Please help.</p>
| [
{
"answer_id": 65122,
"author": "Daren Thomas",
"author_id": 2260,
"author_profile": "https://Stackoverflow.com/users/2260",
"pm_score": 6,
"selected": false,
"text": "\" configure expanding of tabs for various file types\nau BufRead,BufNewFile *.py set expandtab\nau BufRead,BufNewFile *... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9099/"
] |
65,091 | <p>I'd like to be able to write a PHP class that behaves like an array and uses normal array syntax for getting & setting.</p>
<p>For example (where Foo is a PHP class of my making):</p>
<pre><code>$foo = new Foo();
$foo['fooKey'] = 'foo value';
echo $foo['fooKey'];
</code></pre>
<p>I know that PHP has the _ge... | [
{
"answer_id": 65136,
"author": "Mat Mannion",
"author_id": 6282,
"author_profile": "https://Stackoverflow.com/users/6282",
"pm_score": 6,
"selected": true,
"text": "ArrayObject ArrayAccess"
},
{
"answer_id": 5986293,
"author": "Ron Cemer",
"author_id": 751626,
"autho... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/305/"
] |
65,095 | <p>What are the common algorithms being used to measure the processor frequency?</p>
| [
{
"answer_id": 65159,
"author": "Todd Gamblin",
"author_id": 9122,
"author_profile": "https://Stackoverflow.com/users/9122",
"pm_score": 0,
"selected": false,
"text": "> cat /proc/cpuinfo\n"
},
{
"answer_id": 65369,
"author": "Nathan Fellman",
"author_id": 1084,
"auth... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
65,128 | <p>I have a huge ear that uses log4j and there is a single config file that is used to set it up. In this config file there is no mention of certain log files but, additional files apart from those specified in the config file get generated in the logs folder. I've searched for other combinations of (logger|log4j|log).... | [
{
"answer_id": 65957,
"author": "James A. N. Stauffer",
"author_id": 6770,
"author_profile": "https://Stackoverflow.com/users/6770",
"pm_score": 2,
"selected": false,
"text": "-Dlog4j.debug"
}
] | 2008/09/15 | [
"https://Stackoverflow.com/questions/65128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7616/"
] |
65,129 | <p>We are planning to use the jQuery library to augment our client side JavaScript needs. </p>
<p>Are there any major issues in trying to use both ASP.Net AJAX and jQuery? Both libraries seem to use $ for special purposes. Are there any conflicts that we need to be aware of? </p>
<p>We also use Telerik controls that ... | [
{
"answer_id": 67754,
"author": "Chris James",
"author_id": 3193,
"author_profile": "https://Stackoverflow.com/users/3193",
"pm_score": 1,
"selected": false,
"text": "<input type=\"text\" id=\"whatever\" />\n <%=MyControlId.ClientID%>\n"
},
{
"answer_id": 67907,
"author": "gr... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3635/"
] |
65,133 | <p>I'm running into a perplexing problem with an ActiveX control I'm writing - sometimes, Internet Explorer appears to fail to properly unload the control on process shutdown. This results in the control instance's destructor not being called.</p>
<p>The control is written in C++, uses ATL and it's compiled using Visu... | [
{
"answer_id": 165477,
"author": "Bruce",
"author_id": 6310,
"author_profile": "https://Stackoverflow.com/users/6310",
"pm_score": 0,
"selected": false,
"text": "BOOL WINAPI DllMain(HINSTANCE, DWORD dwReason, LPVOID) {\n if (dwReason == DLL_PROCESS_DETACH) {\n CleanUpAnyObjects... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9047/"
] |
65,164 | <p>Some 4 years back, I followed this <a href="http://msdn.microsoft.com/en-us/library/ms973825.aspx" rel="noreferrer">MSDN article</a> for DateTime usage best practices for building a .Net client on .Net 1.1 and ASMX web services (with SQL 2000 server as the backend). I still remember the serialization issues I had wi... | [
{
"answer_id": 65474,
"author": "Jesse C. Slicer",
"author_id": 3312,
"author_profile": "https://Stackoverflow.com/users/3312",
"pm_score": 2,
"selected": false,
"text": "[Serializable]\npublic sealed class MyDateTime\n{\n public MyDateTime()\n {\n this.Now = DateTime.Now;\n... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65164",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4337/"
] |
65,170 | <p>What's the easiest way to get the filename associated with an open HANDLE in Win32?</p>
| [
{
"answer_id": 65254,
"author": "Taylor Price",
"author_id": 3805,
"author_profile": "https://Stackoverflow.com/users/3805",
"pm_score": 2,
"selected": false,
"text": "GetFileInformationByHandleEx( fileHandle, FILE_NAME_INFO, lpFileInformation, sizeof(FILE_NAME_INFO));\n"
},
{
"a... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4842/"
] |
65,173 | <p>I'm trying to run PHP from the command line under <a href="https://en.wikipedia.org/wiki/Windows_XP" rel="nofollow noreferrer">Windows XP</a>.</p>
<p>That works, except for the fact that I am not able to provide parameters to my PHP script.</p>
<p>My test case:</p>
<pre><code>echo "param = " . $param . &qu... | [
{
"answer_id": 65269,
"author": "Ben",
"author_id": 5005,
"author_profile": "https://Stackoverflow.com/users/5005",
"pm_score": 0,
"selected": false,
"text": "$tmp = $argv[1]; // $tmp=\"param=test\"\n$tmp = explode(\"=\", $tmp); // $tmp=Array( 0 => param, 1 => test)\n\n$par... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
65,200 | <p>I was reading a book on programming skills wherein the author asks the interviewee, "How do you crash a JVM?" I thought that you could do so by writing an infinite for-loop that would eventually use up all the memory.</p>
<p>Anybody has any idea?</p>
| [
{
"answer_id": 65290,
"author": "Mike Stone",
"author_id": 122,
"author_profile": "https://Stackoverflow.com/users/122",
"pm_score": 0,
"selected": false,
"text": "public static void main(String[] args) {\n causeStackOverflow();\n}\n\npublic void causeStackOverflow() {\n causeStack... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9195/"
] |
65,205 | <p>What's the best way to store a linked list in a MySQL database so that inserts are simple (i.e. you don't have to re-index a bunch of stuff every time) and such that the list can easily be pulled out in order?</p>
| [
{
"answer_id": 65238,
"author": "Adrian Dunston",
"author_id": 8344,
"author_profile": "https://Stackoverflow.com/users/8344",
"pm_score": 5,
"selected": true,
"text": " alter table linked_list add column position integer not null default 0;\n alter table linked_list add index position_i... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65205",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
65,206 | <p>Using <a href="http://en.wikipedia.org/wiki/JQuery" rel="noreferrer">jQuery</a>, how can I dynamically set the size attribute of a select box?</p>
<p>I would like to include it in this code:</p>
<pre><code>$("#mySelect").bind("click",
function() {
$("#myOtherSelect").children().remove();
var op... | [
{
"answer_id": 65239,
"author": "Loren Segal",
"author_id": 6436,
"author_profile": "https://Stackoverflow.com/users/6436",
"pm_score": 6,
"selected": true,
"text": "$('#mySelect').attr('size', value)\n"
},
{
"answer_id": 65261,
"author": "Community",
"author_id": -1,
... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65206",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2755/"
] |
65,209 | <p>I was recently asked to come up with a script that will allow the end user to upload a PSD (Photoshop) file, and split it up and create images from each of the layers.</p>
<p>I would love to stay with PHP for this, but I am open to Python or Perl as well.</p>
<p>Any ideas would be greatly appreciated.</p>
| [
{
"answer_id": 65239,
"author": "Loren Segal",
"author_id": 6436,
"author_profile": "https://Stackoverflow.com/users/6436",
"pm_score": 6,
"selected": true,
"text": "$('#mySelect').attr('size', value)\n"
},
{
"answer_id": 65261,
"author": "Community",
"author_id": -1,
... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65209",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9176/"
] |
65,250 | <p>Convert a .doc or .pdf to an image and display a thumbnail in Ruby?<br>
Does anyone know how to generate document thumbnails in Ruby (or C, python...)</p>
| [
{
"answer_id": 69015,
"author": "Federico Builes",
"author_id": 161,
"author_profile": "https://Stackoverflow.com/users/161",
"pm_score": 0,
"selected": false,
"text": "´convert -size 300x300 doc.pdf doc.png´\n"
},
{
"answer_id": 69804,
"author": "tomafro",
"author_id": 7... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
65,266 | <p>Each time a python file is imported that contains a large quantity of static regular expressions, cpu cycles are spent compiling the strings into their representative state machines in memory.</p>
<pre><code>a = re.compile("a.*b")
b = re.compile("c.*d")
...
</code></pre>
<p>Question: Is it possible to store these ... | [
{
"answer_id": 65440,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 5,
"selected": true,
"text": "sre"
},
{
"answer_id": 65844,
"author": "Pat Notz",
"author_id": 825,
"author_profile": "https://Sta... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9241/"
] |
65,268 | <p>I have a sample held in a buffer from DirectX. It's a sample of a note played and captured from an instrument. How do I analyse the frequency of the sample (like a guitar tuner does)? I believe FFTs are involved, but I have no pointers to HOWTOs.</p>
| [
{
"answer_id": 77946,
"author": "AShelly",
"author_id": 10396,
"author_profile": "https://Stackoverflow.com/users/10396",
"pm_score": 2,
"selected": false,
"text": "FFT(N, input, output);\nmax = max_i = 0;\nfor(i=0;i<N;i++)\n if (output[i]>max) max_i = i;\nroot = S/2.0 * max_i/N ;\n"
... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
65,310 | <p>I am using Apache Axis to connect my Java app to a web server. I used wsdl2java to create the stubs for me, but when I try to use the stubs, I get the following exception:</p>
<blockquote>
<p>org.apache.axis.ConfigurationException: No service named <code><web service name></code> is available</p>
</blockquo... | [
{
"answer_id": 65575,
"author": "ScArcher2",
"author_id": 1310,
"author_profile": "https://Stackoverflow.com/users/1310",
"pm_score": 0,
"selected": false,
"text": "SomeServiceLocator locator = new SomeServiceLocator();\nSomeService service = null;\ntry\n{\n service = locator.getSomeS... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2328/"
] |
65,351 | <p>I have a generic method defined like this:</p>
<pre><code>public void MyMethod<T>(T myArgument)
</code></pre>
<p>The first thing I want to do is check if the value of myArgument is the default value for that type, something like this:</p>
<pre><code>if (myArgument == default(T))
</code></pre>
<p>But this d... | [
{
"answer_id": 65423,
"author": "Eric Schoonover",
"author_id": 3957,
"author_profile": "https://Stackoverflow.com/users/3957",
"pm_score": 5,
"selected": false,
"text": "public class Test<T> where T : Exception\n public class Test<T> where T : struct\n object.Equals(param, default(T))\n... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8739/"
] |
65,364 | <p>I've created a seperate assembly with a class that is intended to be
published through wmi. Then I've created a windows forms app that
references that assembly and attempts to publish the class. When I try to
publish the class, I get an exception of type
System.Management.Instrumentation.WmiProviderInstallation... | [
{
"answer_id": 97083,
"author": "Jeremy",
"author_id": 9266,
"author_profile": "https://Stackoverflow.com/users/9266",
"pm_score": 2,
"selected": false,
"text": "// the namespace used for publishing the WMI classes and object instances \n[assembly: Instrumented(\"root/mytest\")]\n\nusing... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9266/"
] |
65,400 | <p>How do I add an instance method to a class using a metaclass (yes I do need to use a metaclass)? The following kind of works, but the func_name will still be "foo":</p>
<pre><code>def bar(self):
print "bar"
class MetaFoo(type):
def __new__(cls, name, bases, dict):
dict["foobar"] = bar
retur... | [
{
"answer_id": 65682,
"author": "Nathan Shively-Sanders",
"author_id": 7851,
"author_profile": "https://Stackoverflow.com/users/7851",
"pm_score": 2,
"selected": false,
"text": ">>> class Foo():\n... def __init__(self, x):\n... self.x = x\n... \n>>> def bar(self):\n... print 'bar... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5179/"
] |
65,427 | <p>As I understand it, anything created with an <strong>alloc</strong>, <strong>new</strong>, or <strong>copy</strong> needs to be manually released. For example:</p>
<pre><code>int main(void) {
NSString *string;
string = [[NSString alloc] init];
/* use the string */
[string release];
}
</code></pre>
... | [
{
"answer_id": 65517,
"author": "Loren Segal",
"author_id": 6436,
"author_profile": "https://Stackoverflow.com/users/6436",
"pm_score": -1,
"selected": false,
"text": "-drain objc_collect_if_needed -release -release -drain -drain -release - (void)func:(NSObject*)allocd_but_not_init\n{\n ... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65427",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7979/"
] |
65,431 | <p>Is there a reliable way to detect whether or not WinHelp is installed on Windows Vista or newer versions of Windows? If possible, I'd like a solution that's not specific to any particular version of Windows.</p>
<p>I've posted this question to other message boards and got back answers regarding the size of Winhlp32... | [
{
"answer_id": 129698,
"author": "TrevH",
"author_id": 10124,
"author_profile": "https://Stackoverflow.com/users/10124",
"pm_score": 2,
"selected": false,
"text": "wmic qfe list full /format:htable >C:\\hotfixes.htm\n"
}
] | 2008/09/15 | [
"https://Stackoverflow.com/questions/65431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
65,434 | <p>I know there are some ways to get notified when the page body has loaded (before all the images and 3rd party resources load which fires the <strong>window.onload</strong> event), but it's different for every browser.</p>
<p>Is there a definitive way to do this on all the browsers?</p>
<p>So far I know of:</p>
<u... | [
{
"answer_id": 65476,
"author": "Dave Ward",
"author_id": 60,
"author_profile": "https://Stackoverflow.com/users/60",
"pm_score": -1,
"selected": false,
"text": "setTimeout(MyInitFunction, 0);\n"
},
{
"answer_id": 65527,
"author": "John Millikin",
"author_id": 3560,
"... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4465/"
] |
65,447 | <p>A sample perl script that connects to an oracle database, does a simple SELECT query, and spits the results to stdout in CSV format would be great. Python or any other language available in a typical unix distribution would be fine too. </p>
<p>Note that I'm starting from scratch with nothing but a username/passw... | [
{
"answer_id": 65568,
"author": "Jumpy",
"author_id": 9416,
"author_profile": "https://Stackoverflow.com/users/9416",
"pm_score": 3,
"selected": true,
"text": "use DBI; \nuse DBD::Oracle;\n\n$dbh = DBI->connect( \"dbi:Oracle:host=127.0.0.1;sid=XE\", \"username\", \"password\" );\n\n# som... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65447",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4234/"
] |
65,456 | <p>I'm specifically interested in tools that can be plugged into Vim to allow CScope-style source browsing (1-2 keystroke commands to locate function definitions, callers, global symbols and so on) for languages besides C/C++ such as Java and C# (since Vim and Cscope already integrate very well for browsing C/C++). I'm... | [
{
"answer_id": 164864,
"author": "alps123",
"author_id": 22337,
"author_profile": "https://Stackoverflow.com/users/22337",
"pm_score": 3,
"selected": true,
"text": "find . -name '*.java' > cscope.files\n"
}
] | 2008/09/15 | [
"https://Stackoverflow.com/questions/65456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8998/"
] |
65,458 | <p>There are many SCM systems out there. Some open, some closed, some free, some quite expensive. Which one <em>(please choose only one)</em> would you use for a 3000+ developer organization with several sites (some behind a very slow link)? Explain why you chose the one you chose. (Give some reasons, not just "because... | [
{
"answer_id": 66332,
"author": "Lanny",
"author_id": 9127,
"author_profile": "https://Stackoverflow.com/users/9127",
"pm_score": 3,
"selected": false,
"text": "git hg"
}
] | 2008/09/15 | [
"https://Stackoverflow.com/questions/65458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9362/"
] |
65,475 | <p>What characters are valid in a Java class name? What other rules govern Java class names (for instance, Java class names cannot begin with a number)?</p>
| [
{
"answer_id": 65531,
"author": "Ivan Bosnic",
"author_id": 3221,
"author_profile": "https://Stackoverflow.com/users/3221",
"pm_score": 4,
"selected": false,
"text": "static final int NUM_GEARS = 6"
}
] | 2008/09/15 | [
"https://Stackoverflow.com/questions/65475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8720/"
] |
65,491 | <p>When working with large and/or many Javascript and CSS files, what's the best way to reduce the file sizes?</p>
| [
{
"answer_id": 65505,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 0,
"selected": false,
"text": "function compressCSS($css) {\n return\n preg_replace(\n array('@\\s\\s+@','@(\\w+:)\\s*([\\w\\s,#]+;?)@'),... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
65,512 | <p>I've heard that <code>SELECT *</code> is generally bad practice to use when writing SQL commands because it is more efficient to <code>SELECT</code> columns you specifically need.</p>
<p>If I need to <code>SELECT</code> every column in a table, should I use </p>
<pre><code>SELECT * FROM TABLE
</code></pre>
<p>or ... | [
{
"answer_id": 67380,
"author": "IDisposable",
"author_id": 2076,
"author_profile": "https://Stackoverflow.com/users/2076",
"pm_score": 6,
"selected": false,
"text": "SELECT * * * *"
},
{
"answer_id": 2972041,
"author": "Matthew Abbott",
"author_id": 357693,
"author_p... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/392/"
] |
65,515 | <p>What techniques or tools are recommended for finding broken links on a website?</p>
<p>I have access to the logfiles, so could conceivably parse these looking for 404 errors, but would like something automated which will follow (or attempt to follow) all links on a site.</p>
| [
{
"answer_id": 65625,
"author": "ConroyP",
"author_id": 2287,
"author_profile": "https://Stackoverflow.com/users/2287",
"pm_score": 0,
"selected": false,
"text": "// Pseudo-code to recursively check for broken links\n// logging all errors centrally\nfunction check_links($page)\n{\n $h... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65515",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2084/"
] |
65,524 | <p>What is the best way to generate a Unique ID from two (or more) short ints in C++? I am trying to uniquely identify vertices in a graph. The vertices contain two to four short ints as data, and ideally the ID would be some kind of a hash of them. Prefer portability and uniqueness over speed or ease. </p>
<p>The... | [
{
"answer_id": 65551,
"author": "Fire Lancer",
"author_id": 6266,
"author_profile": "https://Stackoverflow.com/users/6266",
"pm_score": 0,
"selected": false,
"text": "int ID = ((int)short1 << 16) | short2;\n unsigned LastId = 0;//global\n\nunsigned GetNewId(){return ++LastId;}\n"
},
... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65524",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8264/"
] |
65,530 | <p>In Tomcat 5.5 the server.xml can have many connectors, typically port only 8080, but for my application a user might configure their servlet.xml to also have other ports open (say 8081-8088). I would like for my servlet to figure out what socket connections ports will be vaild (During the Servlet.init() tomcat has ... | [
{
"answer_id": 65656,
"author": "jrudolph",
"author_id": 7647,
"author_profile": "https://Stackoverflow.com/users/7647",
"pm_score": 3,
"selected": true,
"text": "org.apache.catalina.ServerFactory.getServer().getServices \n Service.findConnectors\n Connector.getPort\n"
}
] | 2008/09/15 | [
"https://Stackoverflow.com/questions/65530",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6580/"
] |
65,536 | <p>How would I get the <code>here</code> and <code>and here</code> to be on the right, on the same lines as the lorem ipsums? See the following:</p>
<pre class="lang-none prettyprint-override"><code>Lorem Ipsum etc........here
blah.......................
blah blah..................
blah.......................
... | [
{
"answer_id": 65572,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "<div> <div> <div> float:left float:right <div style=\"width:500;height:50\"><br>\n<div style=\"float:left\" >stuff </div><br>\n... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9328/"
] |
65,566 | <p>I have a control that, upon postback, saves form results back to the database. It populates the values to be saved by iterating through the querystring. So, for the following SQL statement (vastly simplified for the sake of discussion)...</p>
<pre><code>UPDATE MyTable
SET MyVal1 = @val1,
MyVal2 = @val2
WHERE @i... | [
{
"answer_id": 65629,
"author": "Sander Rijken",
"author_id": 5555,
"author_profile": "https://Stackoverflow.com/users/5555",
"pm_score": 3,
"selected": false,
"text": "Command.Parameters.AddWithValue(\"@val2\", null)\n If MyValue Is Nothing Then\n Command.Parameters.AddWithValue(\"@v... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65566",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1923/"
] |
65,585 | <p>I want to delete foo() if foo() isn't called from anywhere.</p>
| [
{
"answer_id": 65740,
"author": "Helen Toomik",
"author_id": 9449,
"author_profile": "https://Stackoverflow.com/users/9449",
"pm_score": 3,
"selected": false,
"text": "public private internal"
}
] | 2008/09/15 | [
"https://Stackoverflow.com/questions/65585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9328/"
] |
65,607 | <p>I've been attempting to write a Lisp macro that would perfom the equivalent of ++ in other programming languages for semantic reasons. I've attempted to do this in several different ways, but none of them seem to work, and all are accepted by the interpreter, so I don't know if I have the correct syntax or not. My... | [
{
"answer_id": 65641,
"author": "Kyle Cronin",
"author_id": 658,
"author_profile": "https://Stackoverflow.com/users/658",
"pm_score": 5,
"selected": true,
"text": "(defmacro ++ (variable)\n `(incf ,variable))\n"
},
{
"answer_id": 65657,
"author": "Drew Olson",
"author_i... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1256/"
] |
65,627 | <p>In a Flex <code>AdvancedDatGrid</code>, we're doing a lot of grouping. Most of the columns are the same for the parents and for the children, so I'd like to show the first value of the group as the summary rather than the MAX, MIN or AVG</p>
<p>This code works on numerical but not textual values (without the comme... | [
{
"answer_id": 1406545,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": " private function getNestedItem(item:Object):Object {\n\n try {\n if (item.undef... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65627",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9056/"
] |
65,651 | <p>I'm a longtime Java programmer working on a PHP project, and I'm trying to get PHPUnit up and working. When unit testing in Java, it's common to put test case classes and regular classes into separate directories, like this -</p>
<pre><code>/src
MyClass.java
/test
MyClassTest.java
</code></pre>
<p>and so... | [
{
"answer_id": 65754,
"author": "Brian Phillips",
"author_id": 7230,
"author_profile": "https://Stackoverflow.com/users/7230",
"pm_score": 2,
"selected": false,
"text": "include() \nset_include_path(get_include_path() . PATH_SEPARATOR . \"../src\");\n src"
},
{
"answer_id": 65814... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65651",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8770/"
] |
65,668 | <p>Someone told me it's more efficient to use <code>StringBuffer</code> to concatenate strings in Java than to use the <code>+</code> operator for <code>String</code>s. What happens under the hood when you do that? What does <code>StringBuffer</code> do differently?</p>
| [
{
"answer_id": 65677,
"author": "André Chalella",
"author_id": 4850,
"author_profile": "https://Stackoverflow.com/users/4850",
"pm_score": 4,
"selected": false,
"text": "String StringBuffer append() String myString = \"\";\n\nfor (String s : listOfStrings) {\n // Be careful! You're crea... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
65,683 | <p>I would like to know how to write PHPUnit tests with Zend_Test and in general with PHP.</p>
| [
{
"answer_id": 70082,
"author": "Stefan Gehrig",
"author_id": 11354,
"author_profile": "https://Stackoverflow.com/users/11354",
"pm_score": 4,
"selected": false,
"text": "abstract class Controller_TestCase extends Zend_Test_PHPUnit_ControllerTestCase\n{\n protected function setUp()\n ... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65683",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
65,687 | <p>Can someone tell me how to get path geometry from a WPF FlowDocument object? Please note that I do <strong>not</strong> want to use <code>FormattedText</code>. Thanks.</p>
| [
{
"answer_id": 87716,
"author": "Tim Erickson",
"author_id": 8787,
"author_profile": "https://Stackoverflow.com/users/8787",
"pm_score": 1,
"selected": false,
"text": "FlowDocument myFlowDocument = new FlowDocument(); //get your FlowDocument\n\n//put in some (or it already has) text\nst... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9476/"
] |
65,718 | <p>Maybe this is a silly question, but I've always assumed each number delineated by a period represented a single component of the software. If that's true, do they ever represent something different? I'd like to start assigning versions to the different builds of my software, but I'm not really sure how it should be... | [
{
"answer_id": 65807,
"author": "Thomas Jespersen",
"author_id": 8547,
"author_profile": "https://Stackoverflow.com/users/8547",
"pm_score": 1,
"selected": false,
"text": "// Version information for an assembly consists of the following four values:\n//\n// Major Version\n// Mi... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/191808/"
] |
65,724 | <p>As everyone knows, the <a href="http://en.wikipedia.org/wiki/Visual_C%2B%2B" rel="nofollow noreferrer">Visual C++</a> runtime marks uninitialized or just freed memory blocks with special non-zero markers. Is there any way to disable this behavior entirely without manually setting all uninitialized memory to zeros? I... | [
{
"answer_id": 65760,
"author": "Eclipse",
"author_id": 8701,
"author_profile": "https://Stackoverflow.com/users/8701",
"pm_score": 4,
"selected": false,
"text": "NULL delete boost::shared_ptr"
},
{
"answer_id": 65777,
"author": "Fire Lancer",
"author_id": 6266,
"auth... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8844/"
] |
65,734 | <p>This link describes an exploit into my app using fckEditor:
<a href="http://knitinr.blogspot.com/2008/07/script-exploit-via-fckeditor.html" rel="nofollow noreferrer">http://knitinr.blogspot.com/2008/07/script-exploit-via-fckeditor.html</a></p>
<p>How do I make my app secure while still using fckEditor? Is it an f... | [
{
"answer_id": 65851,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 2,
"selected": false,
"text": "<b><script>evil here</script></b> <b><script>evil here</script></b>"
}
] | 2008/09/15 | [
"https://Stackoverflow.com/questions/65734",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9328/"
] |
65,820 | <p>I worked on an embedded system this summer written in straight C. It was an existing project that the company I work for had taken over. I have become quite accustomed to writing unit tests in Java using JUnit but was at a loss as to the best way to write unit tests for existing code (which needed refactoring) as ... | [
{
"answer_id": 69820,
"author": "Ovid",
"author_id": 8003,
"author_profile": "https://Stackoverflow.com/users/8003",
"pm_score": 5,
"selected": false,
"text": "#include <tap.h>\n\nint main () {\n plan(5);\n\n ok(3 == 3);\n is(\"fnord\", \"eek\", \"two different strings not that ... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7049/"
] |
65,849 | <p>I'm writing a web service, and I want to return the data as XHTML. Because it's data, not markup, I want to keep it very clean - no extra <code><div></code>s or <code><span></code>s. However, as a convenience to developers, I'd also like to make the returned data reasonably readable in a browser. To do s... | [
{
"answer_id": 65929,
"author": "Dergachev",
"author_id": 9621,
"author_profile": "https://Stackoverflow.com/users/9621",
"pm_score": -1,
"selected": false,
"text": "$(\"input.a\").after(\"<br/>\")\n"
},
{
"answer_id": 65941,
"author": "Thunder3",
"author_id": 2832,
"... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
65,856 | <p>VMware ESX, ESXi, and VirtualCenter are supposed to be able to support HTTP PUT uploads since version 3.5. I know how to do downloads, that's easy. I've never done PUT before.</p>
<p>Background information on the topic is here: <a href="http://communities.vmware.com/thread/117504" rel="nofollow noreferrer">http://c... | [
{
"answer_id": 67048,
"author": "Jaykul",
"author_id": 8718,
"author_profile": "https://Stackoverflow.com/users/8718",
"pm_score": 2,
"selected": false,
"text": "Send-PoshCode param($url,$data,$filename,[switch]$quiet)\n\n$request = [System.Net.WebRequest]::Create($url)\n$data = [Text.En... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6637/"
] |
65,865 | <p>I get this error:</p>
<p><code>Can't locate Foo.pm in @INC</code></p>
<p>Is there an easier way to install it than downloading, untarring, making, etc?</p>
| [
{
"answer_id": 65876,
"author": "dreeves",
"author_id": 4234,
"author_profile": "https://Stackoverflow.com/users/4234",
"pm_score": 4,
"selected": false,
"text": "sudo perl -MCPAN -e 'install Foo'"
},
{
"answer_id": 65883,
"author": "Benedikt Waldvogel",
"author_id": 4308... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4234/"
] |
65,925 | <p>From time to time am I working in a completely disconnected environment with a Macbook Pro. For testing purposes I need to run a local DNS server in a VMWare session. I've configured the lookup system to use the DNS server (/etc/resolve.conf and through the network configuration panel, which is using configd underne... | [
{
"answer_id": 66756,
"author": "Nicholas Riley",
"author_id": 6372,
"author_profile": "https://Stackoverflow.com/users/6372",
"pm_score": 1,
"selected": false,
"text": "/etc/resolv.conf dig nslookup /etc/resolv.conf SCDynamicStore scutil"
}
] | 2008/09/15 | [
"https://Stackoverflow.com/questions/65925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9504/"
] |
65,926 | <p>When using a browser to transform XML (Google Chrome or IE7) is it possible to pass a parameter to the XSLT stylesheet through the URL?</p>
<p>example:</p>
<p><strong>data.xml</strong></p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="sample.xsl"?>
<root&g... | [
{
"answer_id": 66017,
"author": "Peter Boughton",
"author_id": 9360,
"author_profile": "https://Stackoverflow.com/users/9360",
"pm_score": 3,
"selected": true,
"text": "<?xml-stylesheet type=\"text/xsl\"href=\"/myscript.cfm/sample.xsl?paramter=something\" ?>\n"
},
{
"answer_id": ... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9547/"
] |
65,940 | <p>This should be simple. I'm trying to import data from Access into SQL Server. I don't have direct access to the SQL Server database - it's on GoDaddy and they only allow web access. So I can't use the Management Studio tools, or other third-party Access upsizing programs that require remote access to the database.</... | [
{
"answer_id": 66324,
"author": "David-W-Fenton",
"author_id": 9787,
"author_profile": "https://Stackoverflow.com/users/9787",
"pm_score": -1,
"selected": false,
"text": "INSERT INTO tblSQLServer (ID, OtherField ) \nSELECT ID, OtherField\nFROM [c:\\MyDBs\\Access.mdb].tblSQLServer \n"
}... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65940",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
65,969 | <p>In C# documentation tags allow you to produce output similar to MSDN. What are a list of allowable tags for use inside the /// (triple slash) comment area above classes, methods, and properties?</p>
| [
{
"answer_id": 66022,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 4,
"selected": false,
"text": "/// <\n"
}
] | 2008/09/15 | [
"https://Stackoverflow.com/questions/65969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9587/"
] |
65,970 | <p>I was asked this question in a job interview. The interviewer and I disagreed on what the correct answer was. I'm wondering if anyone has any data on this.</p>
<p>Update: I should have mentioned that the use of shuffle() was strictly forbidden... sorry.</p>
| [
{
"answer_id": 65978,
"author": "Loren Segal",
"author_id": 6436,
"author_profile": "https://Stackoverflow.com/users/6436",
"pm_score": 2,
"selected": false,
"text": "shuffle($arr);\n"
},
{
"answer_id": 66688,
"author": "Scott Swezey",
"author_id": 9439,
"author_profi... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65970",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9557/"
] |
65,994 | <p>I want to use a file to store the current version number for a piece of customer software which can be used by a start-up script to run the binary in the correct directory.</p>
<p>For Example, if the run directory looks like this:</p>
<pre><code>.
..
1.2.1
1.2.2
1.3.0
run.sh
current_version
</code></pre>
<p>And c... | [
{
"answer_id": 66087,
"author": "slipset",
"author_id": 9422,
"author_profile": "https://Stackoverflow.com/users/9422",
"pm_score": -1,
"selected": false,
"text": "!#/bin/sh\n\nif [ -e 'current_version' ]; then\n version=`cat current_version`;\n version=`echo $version | tr -ds [[:b... | 2008/09/15 | [
"https://Stackoverflow.com/questions/65994",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7476/"
] |
66,006 | <p>Is it possible to have XML-embedded JavaScript executed to assist in client-side (browser-based) XSL transformations? How is it done and how official is it?</p>
<p>Microsoft's XML DOM objects allow this on the server-side (i.e. in ASP/ASP.NET).</p>
<p><strong>Clarification:</strong> I do not mean HTML DOM scripti... | [
{
"answer_id": 74836,
"author": "Neil C. Obremski",
"author_id": 9642,
"author_profile": "https://Stackoverflow.com/users/9642",
"pm_score": 3,
"selected": true,
"text": "<?xml version=\"1.0\"?>\n<?xml-stylesheet type=\"text/xsl\" href=\"scripted.xsl\"?>\n<data a=\"v\">\n ding dong\n<... | 2008/09/15 | [
"https://Stackoverflow.com/questions/66006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9642/"
] |
66,009 | <p>I know you could make a helper pretty easily given the data. So, if possible, please only submit answers that also include getting the data.</p>
| [
{
"answer_id": 67644,
"author": "Matt Hinze",
"author_id": 2676,
"author_profile": "https://Stackoverflow.com/users/2676",
"pm_score": 5,
"selected": true,
"text": " public override void OnActionExecuting(ActionExecutingContext filterContext)\n {\n var controller = (Controll... | 2008/09/15 | [
"https://Stackoverflow.com/questions/66009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1946/"
] |
66,016 | <p>Most program languages have some kind of exception handling; some languages have return codes, others have try/catch, or rescue/retry, etc., each with its own pecularities in readability, robustness, and practical effectiveness in a large group development effort. Which one is the best and why ?</p>
| [
{
"answer_id": 66145,
"author": "squadette",
"author_id": 7754,
"author_profile": "https://Stackoverflow.com/users/7754",
"pm_score": 0,
"selected": false,
"text": "Control.Exception"
}
] | 2008/09/15 | [
"https://Stackoverflow.com/questions/66016",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9613/"
] |
66,032 | <p>The DOM method <code>getChildNodes()</code> returns a <code>NodeList</code> of the children of the current <code>Node</code>. Whilst a <code>NodeList</code> is ordered, is the list guaranteed to be in document order?</p>
<p>For example, given <code><a><b/><c/><d/></a></code> is <code>a... | [
{
"answer_id": 66116,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 4,
"selected": true,
"text": "current = node.firstChild;\nwhile(null != current) {\n ...\n current = current.nextSibling;\n}\n"
},
{
"answer_i... | 2008/09/15 | [
"https://Stackoverflow.com/questions/66032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4332/"
] |
66,066 | <p>I've seen examples like this: </p>
<pre><code>public class MaxSeconds {
public static final int MAX_SECONDS = 25;
}
</code></pre>
<p>and supposed that I could have a Constants class to wrap constants in, declaring them static final. I know practically no Java at all and am wondering if this is the best way to c... | [
{
"answer_id": 66076,
"author": "jjnguy",
"author_id": 2598,
"author_profile": "https://Stackoverflow.com/users/2598",
"pm_score": 10,
"selected": true,
"text": "(public/private) static final TYPE NAME = VALUE;\n TYPE NAME VALUE public static final Point ORIGIN = new Point(0,0);\n\npubli... | 2008/09/15 | [
"https://Stackoverflow.com/questions/66066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1797/"
] |
66,094 | <p>Have been trying out the new Dynamic Data site create tool that shipped with .NET 3.5. The tool uses LINQ Datasources to get the data from the database using a .dmbl context file for a reference. I am interseted in customizing a data grid but I need to show data from more than one table. Does anyone know how to do... | [
{
"answer_id": 84141,
"author": "naspinski",
"author_id": 14777,
"author_profile": "https://Stackoverflow.com/users/14777",
"pm_score": 3,
"selected": true,
"text": "<%# Bind(\"unit1.unit_name\") %>\n"
}
] | 2008/09/15 | [
"https://Stackoverflow.com/questions/66094",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9626/"
] |
66,107 | <p>I need to get the number of digits containing the number 1. I know in java I can take the input as a <code>String</code> and use <code>charAt</code>, but I understand there is no implicit String function in C. How can I accomplish this?</p>
| [
{
"answer_id": 66122,
"author": "Aaron Maenpaa",
"author_id": 2603,
"author_profile": "https://Stackoverflow.com/users/2603",
"pm_score": 3,
"selected": false,
"text": "#include \"stdio.h\"\n\nint main(){\n int digits[] = {0,0,0,0,0,0,0,0,0,0};\n int i = 11031;\n\n while(i > 0){... | 2008/09/15 | [
"https://Stackoverflow.com/questions/66107",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9628/"
] |
66,117 | <p>When I am working with ASP.NET, I find that there are always unexpected things I run into that take forever to debug. I figure that having a consolidated list of these would be great for those "weird error" circumstances, plus to expand our knowledge of oddness in the platform.</p>
<p>So: answer with one of your "G... | [
{
"answer_id": 66401,
"author": "Thunder3",
"author_id": 2832,
"author_profile": "https://Stackoverflow.com/users/2832",
"pm_score": -1,
"selected": false,
"text": "UpdateName(ByRef aName as String) UpdateName(Employee.Name)"
},
{
"answer_id": 179298,
"author": "Adam Lassek",... | 2008/09/15 | [
"https://Stackoverflow.com/questions/66117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2832/"
] |
66,164 | <p>I'm responsible for some test database servers. Historically, too many other poeple have access to them. They run on <code>SQL Server 2005</code>. </p>
<p>I've been writing queries and wrapping them in scripts so I can run a regular audit of rights. Finding out which users had Administrator rights on the server... | [
{
"answer_id": 66349,
"author": "Jason Punyon",
"author_id": 6212,
"author_profile": "https://Stackoverflow.com/users/6212",
"pm_score": 1,
"selected": false,
"text": "\nselect * from Master.dbo.syslogins l inner join sys.sysusers u on l.sid = u.sid\n"
},
{
"answer_id": 66511,
... | 2008/09/15 | [
"https://Stackoverflow.com/questions/66164",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9727/"
] |
66,293 | <p>I have a Visual Studio application with a splash screen image cut into "slices". The positions are specified in the Form Designer so they line up properly on the screen. However, the images are out of place when the application is run on the Chinese version of Windows XP. It looks as if the image slices were "explod... | [
{
"answer_id": 67007,
"author": "Benjamin Autin",
"author_id": 1440933,
"author_profile": "https://Stackoverflow.com/users/1440933",
"pm_score": 0,
"selected": false,
"text": "images[0].Location = new Point(0,0);\nfor (int i = 1; i < images.Length; i++)\n{\n images[i].Location = new Poi... | 2008/09/15 | [
"https://Stackoverflow.com/questions/66293",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5626/"
] |
66,330 | <p>Is there a Perl module that allows me to view diffs between actual and reference output of programs (or functions)? The test fails if there are differences.</p>
<p>Also, in case there are differences but the output is OK (because the functionality has changed) I want to be able to commit the actual output as future... | [
{
"answer_id": 68725,
"author": "Yanick",
"author_id": 10356,
"author_profile": "https://Stackoverflow.com/users/10356",
"pm_score": 2,
"selected": false,
"text": "use Test::Command tests => 3;\n\nmy $echo_test = Test::Command->new( cmd => 'echo out' );\n\n$echo_test->exit_is_num(0, 'exi... | 2008/09/15 | [
"https://Stackoverflow.com/questions/66330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9792/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.