qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
341,900 | <p>I'm matching ASP.Net generated elements by ID name, but I have some elements which may render as text boxes or labels depending on the page context. I need to figure out whether the match is to a textbox or label in order to know whether to get the contents by val() or by html().</p>
<pre><code>$("[id$=" + endOfIdT... | [
{
"answer_id": 341919,
"author": "CMPalmer",
"author_id": 14894,
"author_profile": "https://Stackoverflow.com/users/14894",
"pm_score": 3,
"selected": false,
"text": "$(\"[id$=\" + endOfIdToMatch + \"]\").each(function () {\n alert($(this).attr(tagName));\n});\n"
},
{
"answer_i... | 2008/12/04 | [
"https://Stackoverflow.com/questions/341900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14894/"
] |
341,911 | <p>I'm trying to run the Camel Example "camel-example-spring-jms" (also at <a href="http://activemq.apache.org/camel/tutorial-jmsremoting.html" rel="nofollow noreferrer">http://activemq.apache.org/camel/tutorial-jmsremoting.html</a>).
However, when I try to start Camel using "org.apache.camel.spring.Main" class, I get ... | [
{
"answer_id": 343237,
"author": "James Strachan",
"author_id": 2068211,
"author_profile": "https://Stackoverflow.com/users/2068211",
"pm_score": 2,
"selected": true,
"text": "mvn eclipse:eclipse\n"
},
{
"answer_id": 404084,
"author": "Community",
"author_id": -1,
"au... | 2008/12/04 | [
"https://Stackoverflow.com/questions/341911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/325613/"
] |
341,933 | <p>If I am inserting elements into a wrap panel and there is still space in the panel before it overflows on the next line, can I specifically make it wrap over so that the subsequent elements are on the next line?</p>
<p>I am looking for something like this:</p>
<pre><code><WrapPanel>
<Element/>
<... | [
{
"answer_id": 341994,
"author": "Timothy Khouri",
"author_id": 11917,
"author_profile": "https://Stackoverflow.com/users/11917",
"pm_score": 6,
"selected": true,
"text": "<WrapPanel>\n <TextBlock>1</TextBlock>\n <TextBlock>2</TextBlock>\n <TextBlock>3</TextBlock>\n <TextBloc... | 2008/12/04 | [
"https://Stackoverflow.com/questions/341933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24177/"
] |
341,942 | <p>This should be easy, but I'm not sure how to best go about it. I have a WinForms app that lets the user type in long descriptions. Occaisionally, they would type in URLs, and the RichTextBox would recognize them and make them clickable when displayed.</p>
<p>I'm moving the app to the web, and I'm not sure how to ma... | [
{
"answer_id": 341960,
"author": "MrKurt",
"author_id": 35296,
"author_profile": "https://Stackoverflow.com/users/35296",
"pm_score": 5,
"selected": true,
"text": "\\b(?:(?:https?|ftp|file)://|www\\.|ftp\\.)\n (?:\\([-A-Z0-9+&@#/%=~_|$?!:,.]*\\)|[-A-Z0-9+&@#/%=~_|$?!:,.])*\n (?:\\([-A-... | 2008/12/04 | [
"https://Stackoverflow.com/questions/341942",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23935/"
] |
341,952 | <p>I've got two Django projects on the same server. The first launched several months ago, and has since collected hundreds of user accounts. The second project is launching in a few days, and we'd like the second project to allow users of the first app to authenticate using the same credentials.</p>
<p>At first, I ... | [
{
"answer_id": 342161,
"author": "eliego",
"author_id": 39092,
"author_profile": "https://Stackoverflow.com/users/39092",
"pm_score": 2,
"selected": false,
"text": "DROP TABLE proj2.users;\nCREATE VIEW proj2.users AS SELECT * FROM proj1.users;\n"
},
{
"answer_id": 342303,
"au... | 2008/12/04 | [
"https://Stackoverflow.com/questions/341952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22468/"
] |
341,953 | <p>I am a bit rusty on my Haskell and am looking to ramp back up. One thing I enjoy from F# is the F# Interactive shell integrated with Visual Studio: I can evaluate virtually anything (including function and class definitions) and use F# as a shell. Is there an equivalent in Haskell? When I use <code>ghci</code>, I ca... | [
{
"answer_id": 342010,
"author": "Darius Bacon",
"author_id": 27024,
"author_profile": "https://Stackoverflow.com/users/27024",
"pm_score": 4,
"selected": true,
"text": "$ ghci\nPrelude> let double n = n + n\nPrelude> double 42\n84\n"
},
{
"answer_id": 342014,
"author": "J Co... | 2008/12/04 | [
"https://Stackoverflow.com/questions/341953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34596/"
] |
341,957 | <p>I have a c# struct where I need to forbid calling the no args constructor on it.</p>
<pre><code>MyStruct a;
/// init a by members // OK
MyStruct b = MyStruct.Fact(args); // OK, inits by memebers
MyStruct s = new MyStruct(); // can't have that
</code></pre>
<p>I'm doing this mostly to force explicet values for a... | [
{
"answer_id": 341977,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "MyStruct ms = new MyStruct();"
},
{
"answer_id": 35088203,
"author": "Eljay",
"author_id": 4641116,
"... | 2008/12/04 | [
"https://Stackoverflow.com/questions/341957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1343/"
] |
341,966 | <p>How is it that tools like this one can make an ajax style call back to a central site? basically they give you a " tag to put on your site where ever it is. So in this widget you have the ability to ask for an email to be sent to you for the page you're currently on. I assume this makes an ajax style call back to sh... | [
{
"answer_id": 342150,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 1,
"selected": false,
"text": "someFunction(\"Callback Data\");\n"
}
] | 2008/12/04 | [
"https://Stackoverflow.com/questions/341966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42987/"
] |
341,971 | <p>What is this "Execute Around" idiom (or similar) I've been hearing about?
Why might I use it, and why might I not want to use it?</p>
| [
{
"answer_id": 342016,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 8,
"selected": true,
"text": "public interface InputStreamAction\n{\n void useStream(InputStream stream) throws IOException;\n}\n\n// Somewhere else... | 2008/12/04 | [
"https://Stackoverflow.com/questions/341971",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4725/"
] |
342,031 | <p>Does anyone know of a way to monitor table record changes in a SQL Server (2005 or 2008) database from a .Net application? It needs to be able to support multiple clients at a time. Each client will "subscribe" when it starts, and "unsubscribe" when it exits. Multiple users could be accessing the system at once a... | [
{
"answer_id": 895300,
"author": "Aaron",
"author_id": 2742,
"author_profile": "https://Stackoverflow.com/users/2742",
"pm_score": 3,
"selected": false,
"text": "void Initialization()\n{\n // Create a dependency connection.\n SqlDependency.Start(connectionString, queueName);\n}\n\n... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34440/"
] |
342,032 | <p>I was trying to raise a post back event by div tag.
I don't know how to do that. AL I could think of is javascript, but that is not what I want.
I need to call function of a class inside a event handler. </p>
| [
{
"answer_id": 342253,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 2,
"selected": false,
"text": "<div id=\"foo\" onclick=\"__doPostBack('foo','')\">\nClicky!\n</div>\n"
}
] | 2008/12/04 | [
"https://Stackoverflow.com/questions/342032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21918/"
] |
342,037 | <p>I put together a class yesterday to do some useful task. I started alpha testing, and at some point realized I was adding alpha test related methods to the class itself. It hit me that they don't belong there. After a bit of head scratching I derived a test class from the base class that has access to the protect... | [
{
"answer_id": 342066,
"author": "Jeff B",
"author_id": 25879,
"author_profile": "https://Stackoverflow.com/users/25879",
"pm_score": 0,
"selected": false,
"text": "class myClass\n{\nprivate:\n int foo;\npublic:\n myClass() { foo = 0; }\n}\n"
}
] | 2008/12/04 | [
"https://Stackoverflow.com/questions/342037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7734/"
] |
342,044 | <p>I'm selecting 1 field from 1 table and storing it into a temp table.</p>
<p>Sometimes that table ends up with 0 rows.</p>
<p>I want to add that field onto another table that has 20+ fields</p>
<p>Regular union won't work for me because of the field # mismatch.
Outer wont work for me because there is nothing to co... | [
{
"answer_id": 342068,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 2,
"selected": false,
"text": "SELECT t20.*, t1.*\nFROM table_with_20_columns AS t20\n LEFT OUTER JOIN temp_table_with_1_column AS t1 ON (1=1);\n"
... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342044",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42229/"
] |
342,052 | <p>I need to increment a String in java from "aaaaaaaa" to "aaaaaab" to "aaaaaac" up through the alphabet, then eventually to "aaaaaaba" to "aaaaaabb" etc. etc.</p>
<p>Is there a trick for this?</p>
| [
{
"answer_id": 342090,
"author": "Pyrolistical",
"author_id": 21838,
"author_profile": "https://Stackoverflow.com/users/21838",
"pm_score": 0,
"selected": false,
"text": "public String(byte[] bytes, String charsetName)\n"
},
{
"answer_id": 342104,
"author": "Joachim Sauer",
... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13930/"
] |
342,057 | <p>This is a continuation of my question about <a href="https://stackoverflow.com/questions/339795/reading-the-superblock">reading the superblock</a>.</p>
<p>Let's say I want to target the HFS+ file system in Mac OS X. How could I read sector 2 of the boot disk? As far as I know Unix only provides system calls to read... | [
{
"answer_id": 342077,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 4,
"selected": true,
"text": "/dev/sda"
}
] | 2008/12/04 | [
"https://Stackoverflow.com/questions/342057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18091/"
] |
342,080 | <p>I have a little utility that does a search of a number of files. I had to create it because both Google & Windows desktop searches were not finding the appropriate lines in files. The searching works fine (I am willing to improve on it) but one of the things I would like to add to my util is a batch find/replace... | [
{
"answer_id": 347668,
"author": "Emperor XLII",
"author_id": 2495,
"author_profile": "https://Stackoverflow.com/users/2495",
"pm_score": 0,
"selected": false,
"text": "'a string'"
}
] | 2008/12/04 | [
"https://Stackoverflow.com/questions/342080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18821/"
] |
342,088 | <p>I have a web app on our intranet (VS 2005). There are a couple pages that don't require the user to be logged into the app (feedback and the default page). I am trying to get the domain and username to display and/or send with the feedback. Is there a way to do this without requiring the user to log in? I've tri... | [
{
"answer_id": 342123,
"author": "matt_dev",
"author_id": 39086,
"author_profile": "https://Stackoverflow.com/users/39086",
"pm_score": 2,
"selected": false,
"text": "AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);\n\nWindowsPrincipal principal = (WindowsPri... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39355/"
] |
342,093 | <p>Here's my PS1 variable:</p>
<pre><code>PS1='\u:\W$(__git_ps1 "\e[32m\][%s]\e[0m\]")$ '
</code></pre>
<p>Works great for picking up my Git branch, but it has the unfortunate side-effect of wrapping the lines when the colours are active, so that they overlap when you use long commands.</p>
<p>Can anyone with magic ... | [
{
"answer_id": 342135,
"author": "Aupajo",
"author_id": 10407,
"author_profile": "https://Stackoverflow.com/users/10407",
"pm_score": 7,
"selected": true,
"text": "PS1='\\u:\\W$(__git_ps1 \"\\[\\e[32m\\][%s]\\[\\e[0m\\]\")$ '\n"
},
{
"answer_id": 1703567,
"author": "SiegeX",
... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10407/"
] |
342,100 | <p>I have a Guid.NewGuid() call that is creating an Empty Guid. </p>
<p>What would cause such a problem and how can I fix it?</p>
<p><b>Edit:</b> The code:<br /></p>
<pre><code><WebMethod()> _
Public Function CreateRow(rowValue As String) as String
Dim rowPointer As Guid = System.Guid.NewGuid()
Dim ro... | [
{
"answer_id": 993192,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "Dim g As New Guid();\n\nDim whereDoYouWantToSeeIt As String = g.ToString();\n"
}
] | 2008/12/04 | [
"https://Stackoverflow.com/questions/342100",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33226/"
] |
342,101 | <p>ok, ive a class and i pass an object as property.</p>
<p>the object that i pass is a <code>List<X></code></p>
<p>in my class im trying to access the Object index by reflection BUT I CAN'T!!! </p>
<p>Example:</p>
<p>this class works i just wrote down the part i want to show you and i need help.</p>
<pre><c... | [
{
"answer_id": 342114,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": true,
"text": "object"
}
] | 2008/12/04 | [
"https://Stackoverflow.com/questions/342101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
342,103 | <p>I have an SSRS report
where the date should be grouped by project category
the project code in the category is repeating in side the group how do I suppress the value</p>
<p>Please help me to get an idea.</p>
<p>Thanks,brijit</p>
| [
{
"answer_id": 10850941,
"author": "H B",
"author_id": 521443,
"author_profile": "https://Stackoverflow.com/users/521443",
"pm_score": 3,
"selected": false,
"text": "=Fields!ProductCode.Value = Previous(Fields!ProductCode.Value)\n"
},
{
"answer_id": 28763270,
"author": "Nicky... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
342,116 | <p>I have a Viewbox with <code>Stretch=Uniform</code> in order to not distort the content.
However, when the frame window is wider or taller than the content, the Viewbox content is always centered.</p>
<p>I cannot seem to find any content alignment options on the Viewbox.
Is there a way to do this?</p>
| [
{
"answer_id": 342548,
"author": "John Z",
"author_id": 43430,
"author_profile": "https://Stackoverflow.com/users/43430",
"pm_score": 5,
"selected": true,
"text": "VerticalAlignment=\"Top\""
}
] | 2008/12/04 | [
"https://Stackoverflow.com/questions/342116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25879/"
] |
342,119 | <p>I'm trying to use a generic list as a property of the users profile. I'll admit this is probably just making my life harder than it needs to be but I don't want to change the programming model just because the data store struggles.</p>
<p>I have this in my web.config</p>
<p>
... | [
{
"answer_id": 342548,
"author": "John Z",
"author_id": 43430,
"author_profile": "https://Stackoverflow.com/users/43430",
"pm_score": 5,
"selected": true,
"text": "VerticalAlignment=\"Top\""
}
] | 2008/12/04 | [
"https://Stackoverflow.com/questions/342119",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42975/"
] |
342,122 | <p>What are the best practices for naming ant targets? </p>
<p>For example, what would you expect the target "test" to run? All unit tests? All functional tests? Both?</p>
<p>What are the standard names used for running different types of tests (unit/functional/all)? Are there standards for target names to deploy ... | [
{
"answer_id": 342155,
"author": "matt b",
"author_id": 4249,
"author_profile": "https://Stackoverflow.com/users/4249",
"pm_score": 1,
"selected": false,
"text": "test"
},
{
"answer_id": 342255,
"author": "Rob Hruska",
"author_id": 29995,
"author_profile": "https://St... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342122",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6180/"
] |
342,131 | <p>Is there a way to get Visual Studio to display strings as verbatim strings (prefixed with '@')? I'd like to easily cut strings containing file paths from Visual Studio into Explorer or other apps.</p>
<p>Clarification: when VS displays a string in the auto, watch, immediate, etc. window, I'd like it to be formatted... | [
{
"answer_id": 342165,
"author": "a_hardin",
"author_id": 1497,
"author_profile": "https://Stackoverflow.com/users/1497",
"pm_score": 0,
"selected": false,
"text": "string s = @\"c:\\my folder\\\";\n"
}
] | 2008/12/04 | [
"https://Stackoverflow.com/questions/342131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43370/"
] |
342,140 | <p>I would like to keep a static counter in a garbage collected class and increment it using Interlocked::Increment. What's the C++/CLI syntax to do this?</p>
<p>I've been trying variations on the following, but no luck so far:</p>
<pre><code>ref class Foo
{
static __int64 _counter;
__int64 Next()
{
... | [
{
"answer_id": 342283,
"author": "McKenzieG1",
"author_id": 3776,
"author_profile": "https://Stackoverflow.com/users/3776",
"pm_score": 4,
"selected": true,
"text": "_int64"
},
{
"answer_id": 6738677,
"author": "Ben Voigt",
"author_id": 103167,
"author_profile": "http... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4540/"
] |
342,151 | <p>I'm trying to perform a once-through read of a large file (~4GB) using Java 5.0 x64 (on Windows XP).</p>
<p>Initially the file read rate is very fast, but gradually the throughput slows down substantially, and my machine seems very unresponsive as time goes on.</p>
<p>I've used ProcessExplorer to monitor the File ... | [
{
"answer_id": 344054,
"author": "kohlerm",
"author_id": 26056,
"author_profile": "https://Stackoverflow.com/users/26056",
"pm_score": 0,
"selected": false,
"text": " // read from the file with buffering\n // and with direct access to the buffer\n\n MyTimer mt = new ... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
342,152 | <p>I was working with a new C++ developer a while back when he asked the question: "Why can't variable names start with numbers?"</p>
<p>I couldn't come up with an answer except that some numbers can have text in them (123456L, 123456U) and that wouldn't be possible if the compilers were thinking everything with some ... | [
{
"answer_id": 342176,
"author": "Pyrolistical",
"author_id": 21838,
"author_profile": "https://Stackoverflow.com/users/21838",
"pm_score": 7,
"selected": false,
"text": "int 2d = 42;\ndouble a = 2d;\n"
},
{
"answer_id": 342192,
"author": "skiphoppy",
"author_id": 18103,
... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342152",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34183/"
] |
342,167 | <p>The function below is logging the "0", "z" and the "1" ok... but its not capturing the "Z" (shift-z)... any help would be appreciated...</p>
<pre><code>__declspec(dllexport)
LRESULT CALLBACK HookProc (UINT nCode, WPARAM wParam, LPARAM lParam)
{
if ((nCode == HC_ACTION) && (wParam == WM_KEYUP))
{
... | [
{
"answer_id": 342213,
"author": "arul",
"author_id": 15409,
"author_profile": "https://Stackoverflow.com/users/15409",
"pm_score": 3,
"selected": false,
"text": " case 90:\n if(GetKeyState(VK_LSHIFT|VK_RSHIFT)\n Logger[0] = L'Z'; break;\n ... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37109/"
] |
342,171 | <p>I have a MFC dialog with 32 CComboBoxes on it that all have the same data in the listbox. Its taking a while to come up, and it looks like part of the delay is the time I need to spend using InsertString() to add all the data to the 32 controls. How can I subclass CComboBox so that the 32 instances share the same ... | [
{
"answer_id": 342372,
"author": "Rob",
"author_id": 9236,
"author_profile": "https://Stackoverflow.com/users/9236",
"pm_score": 2,
"selected": true,
"text": "m_wndCombo.SetRedraw(FALSE);\n// Fill combo here\n...\nm_wndCombo.SetRedraw(TRUE);\nm_wndCombo.Invalidate();\n"
},
{
"ans... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6701/"
] |
342,181 | <p>My application allows the user to enter a numeric value (currency) in a <code>UITextField</code> control, but the keyboard layout that I wish was available is unfortunately not one of the built-in options, so I had to choose the "Numbers & Punctuation" option in Interface Builder. Here's the corresponding dialog... | [
{
"answer_id": 342231,
"author": "Marc Novakowski",
"author_id": 27020,
"author_profile": "https://Stackoverflow.com/users/27020",
"pm_score": 4,
"selected": true,
"text": "UITextFieldDelegate"
},
{
"answer_id": 342390,
"author": "Matt Gallagher",
"author_id": 36103,
... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35478/"
] |
342,189 | <p>I've written a fairly simple java application that allows you to drag your mouse and based on the length of the mouse drag you did, it will shoot a ball in that direction, bouncing off walls as it goes.</p>
<p>Here is a quick screenshot:<br>
<a href="http://img222.imageshack.us/img222/3179/ballbouncemf9.png">alt te... | [
{
"answer_id": 342233,
"author": "torb",
"author_id": 42986,
"author_profile": "https://Stackoverflow.com/users/42986",
"pm_score": 1,
"selected": false,
"text": "public void step()\n{\n posX += xVector;\n posY += yVector;\n\n yVector += g //some constant representing 9.8\n\n ... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
342,218 | <p>What techniques are available for sending an email via a webpage or a form on a webpage? </p>
<p>I've got some background idea that you POST the form data to a script but I've don't really know what a cgi script is (I'd love to learn if this is the suggested method!) or what the current practice is.</p>
<p>This is... | [
{
"answer_id": 342240,
"author": "Matt Howell",
"author_id": 2321,
"author_profile": "https://Stackoverflow.com/users/2321",
"pm_score": 0,
"selected": false,
"text": "<a href=\"mailto:someperson@someaddress.com\">Please spam me, kthx</a>\n"
},
{
"answer_id": 343578,
"author"... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342218",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40443/"
] |
342,219 | <p>I am trying to select a record out of the table1 by joining table2 and using table2 columns in the WHERE statement. Col1 and Col2 in table1 can be stored in col1 of table2. I need to join col1 of table2 with either the value of col1 or col2 in table1</p>
<p>here is the sql statement I created so (pseudo):</p>
<p... | [
{
"answer_id": 342241,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 4,
"selected": true,
"text": "... JOIN table2 t2 on t2.Col1 IN (t1.Col1, t1.Col2)\n"
}
] | 2008/12/04 | [
"https://Stackoverflow.com/questions/342219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26327/"
] |
342,250 | <p>I need to read the value of a property from a file in an Ant script and strip off the first few characters. The property in question is</p>
<pre><code>path=file:C:/tmp/templates
</code></pre>
<p>This property is store in a file that I can access within the ant script via</p>
<pre><code><property file="${web.in... | [
{
"answer_id": 342288,
"author": "Rob Hruska",
"author_id": 29995,
"author_profile": "https://Stackoverflow.com/users/29995",
"pm_score": 0,
"selected": false,
"text": "<target name=\"foo\">\n <property name=\"my.property\" value=\"file:C:/foo/bar\"/>\n <exec executable=\"/bin/cut\" in... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2648/"
] |
342,263 | <p>When I try to run the following code (from the REPL) in Clojure:</p>
<pre><code>(dotimes [i 5]
(.start
(Thread.
(fn []
(Thread/sleep (rand 1000))
(println (format "Finished %d on %s" i (Thread/currentThread)))))))
</code></pre>
<p>I get the following error:</p>
<pre><code>java.lang.Exception:... | [
{
"answer_id": 342454,
"author": "Brian Carper",
"author_id": 23070,
"author_profile": "https://Stackoverflow.com/users/23070",
"pm_score": 4,
"selected": true,
"text": "user> (dotimes [i 5] (.start (Thread. (fn [] (Thread/sleep (rand 1000)) (println (format \"Finished %d on %s\" i (Thre... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342263",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7648/"
] |
342,268 | <p>I am using the following method to browse for a file:</p>
<pre><code> OpenFileDialog.ShowDialog()
PictureNameTextEdit.Text = OpenFileDialog.FileName
</code></pre>
<p>Is there a way get ONLY the file name?</p>
<p>The <strong>FileName</strong> method returns the entire path and file name.</p>
<p>i.e. I want... | [
{
"answer_id": 342272,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 7,
"selected": true,
"text": "Path.GetFileName(fullPath)"
},
{
"answer_id": 1136501,
"author": "Community",
"author_id": -1,
"autho... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4964/"
] |
342,270 | <p>I have a large set of XML files of a propriatary schema -the XML files define binary communication protocol (message structure).</p>
<p>I'd like to leverage Google's protocol buffers technology. </p>
<p>I am using existing code to load the XML files into an object model (in memory).
I'd like to generate a .proto ... | [
{
"answer_id": 342272,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 7,
"selected": true,
"text": "Path.GetFileName(fullPath)"
},
{
"answer_id": 1136501,
"author": "Community",
"author_id": -1,
"autho... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38265/"
] |
342,281 | <p>I have been tasked with creating a program that will generate an amortization schedule. I have only done a bit of research so far, but I need to calculate out payments, interest per payment and principal per payment. Can any one point me in the right direction to figure this out? While I will be writing this in RPG,... | [
{
"answer_id": 342338,
"author": "Benry",
"author_id": 28408,
"author_profile": "https://Stackoverflow.com/users/28408",
"pm_score": 3,
"selected": false,
"text": "var balance = 200000; // for example\nvar periods = 360; // 30 years\nvar monthlyRate = (0.065)/12; // 0.065= APR of 6.5% a... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2535/"
] |
342,285 | <p>I have a table in a SQL 2005 database that contains a column defined as a xml datatype. I'm trying to write stored proc that queries the xml and returns a resultset from a select statement. I've seen examples of returning scalar values or xml but not how to return a resultset.</p>
<p>Am I going to have to use ope... | [
{
"answer_id": 342316,
"author": "GalacticCowboy",
"author_id": 29638,
"author_profile": "https://Stackoverflow.com/users/29638",
"pm_score": 2,
"selected": false,
"text": "select xmlColumnName.value('XpathExpression', 'outputSqlType') from dataTable\n"
},
{
"answer_id": 342335,
... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27714/"
] |
342,290 | <p>I'm looking to inspect SQL statements in Java/jdbc code to ensure that the SQL to be executed is of acceptable quality. Neither PMD not Findbugs appears to have JDBC or sql rules. I could use p6spy to log the SQL and look at that way, but this is manual. </p>
<p>I'm wondering if the strategy of of using PMD/Findbu... | [
{
"answer_id": 342321,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 2,
"selected": true,
"text": "="
}
] | 2008/12/04 | [
"https://Stackoverflow.com/questions/342290",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13753/"
] |
342,293 | <p>I think the question says it all. I have several monthly processes in stored procedures which take anywhere from a minute to an hour. If I declare them <code>WITH RECOMPILE</code>, an execution plan will be generated each time.</p>
<p>If the underlying indexes or statistics or views are changed by the DBA, I don'... | [
{
"answer_id": 342319,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 1,
"selected": false,
"text": "WITH RECOMPILE"
}
] | 2008/12/04 | [
"https://Stackoverflow.com/questions/342293",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18255/"
] |
342,320 | <p>I have a very complicated .NET application that contains cut/copy/paste functionality. I want to enable/disable cut/copy/paste buttons depending on the selected control/content. The app has many user controls. What is the best way to achieve this?</p>
<p>Thanks</p>
| [
{
"answer_id": 342336,
"author": "grepsedawk",
"author_id": 14388,
"author_profile": "https://Stackoverflow.com/users/14388",
"pm_score": 0,
"selected": false,
"text": "textBox.GotFocus += myFunctionalityEnabler;"
},
{
"answer_id": 342349,
"author": "Mike Hall",
"author_i... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
342,333 | <p>I see the following code in the attribute_fu plugin:</p>
<pre><code>module AttributeFu
module Associations #:nodoc:
def self.included(base) #:nodoc: ... | [
{
"answer_id": 342341,
"author": "mat",
"author_id": 42083,
"author_profile": "https://Stackoverflow.com/users/42083",
"pm_score": 0,
"selected": false,
"text": "self"
},
{
"answer_id": 344864,
"author": "Matt Burke",
"author_id": 29691,
"author_profile": "https://Sta... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4883/"
] |
342,365 | <p>What are some good examples of coding guidelines. I'm not really looking for anything specific to a single language.</p>
<p>But what should I be doing/evaluating as I write coding guidelines? Such as how flexible should the guidelines and how much should decisions be left to the programmer or to someone else or eve... | [
{
"answer_id": 342408,
"author": "John MacIntyre",
"author_id": 29043,
"author_profile": "https://Stackoverflow.com/users/29043",
"pm_score": 3,
"selected": false,
"text": "if( !codingGuidelines.Followed)\n{\n reason = programmer.WhyNot();\n if( reason.Acceptable)\n {\n coding... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/657/"
] |
342,371 | <p>Linux 2.6.18-92.el5, ruby 1.8.7, Rails 2.2.2, mysql gem 2.7</p>
<p>I installed the MySQL binary distribution under /usr/local, then installed the mysql gem like this:</p>
<pre><code>gem install mysql --no-rdoc --no-ri \
-- --with-mysql-include=/usr/local/mysql/include \
--with-mysql-lib=/usr/local/mysql/lib \
... | [
{
"answer_id": 353586,
"author": "bradheintz",
"author_id": 40093,
"author_profile": "https://Stackoverflow.com/users/40093",
"pm_score": 3,
"selected": true,
"text": "gem install mysql"
}
] | 2008/12/04 | [
"https://Stackoverflow.com/questions/342371",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42595/"
] |
342,378 | <p>We offer a number of online services. We are required to develop a system which provides a quick/simple experience for users if they are transferred from one service (on <code>domain1.com</code>) to another service (on <code>domain2.com</code>).</p>
<p>Is there a safe and secure way to log a user in automatically o... | [
{
"answer_id": 342387,
"author": "BenAlabaster",
"author_id": 40650,
"author_profile": "https://Stackoverflow.com/users/40650",
"pm_score": 3,
"selected": false,
"text": "domain1.com"
},
{
"answer_id": 342498,
"author": "Will Hartung",
"author_id": 13663,
"author_prof... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35293/"
] |
342,409 | <p>I have binary data in an unsigned char variable.
I need to convert them to PEM base64 in c.
I looked in openssl library but i could not find any function.
Does any body have any idea?</p>
| [
{
"answer_id": 342439,
"author": "Piotr Lesnicki",
"author_id": 38796,
"author_profile": "https://Stackoverflow.com/users/38796",
"pm_score": 5,
"selected": false,
"text": "openssl enc"
},
{
"answer_id": 342755,
"author": "Norman Ramsey",
"author_id": 41661,
"author_p... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
342,411 | <p>I want some of the items to be bold depending on a property of an object i'm putting into the listbox.</p>
<p>I think you can do it with changing templates but can't seem to find an example.</p>
<p>Thanks!</p>
| [
{
"answer_id": 342460,
"author": "a_hardin",
"author_id": 1497,
"author_profile": "https://Stackoverflow.com/users/1497",
"pm_score": 3,
"selected": false,
"text": "<ListView x:Name=\"Notes\" Margin=\"4,4,4,4\" \n ItemsSource=\"{Binding Path=CurrentCustomer.CustomerNotes}\"\n ItemTem... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
342,434 | <p>I'm developing a Django app, and I'm trying to use Python's logging module for error/trace logging. Ideally I'd like to have different loggers configured for different areas of the site. So far I've got all of this working, but one thing has me scratching my head.</p>
<p>I have the root logger going to sys.stderr... | [
{
"answer_id": 343575,
"author": "Philippe F",
"author_id": 13618,
"author_profile": "https://Stackoverflow.com/users/13618",
"pm_score": 4,
"selected": false,
"text": "def init_logging():\n stdoutHandler = logging.StreamHandler( sys.stdout )\n stdoutHandler.setLevel( DEBUG )\n ... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33775/"
] |
342,435 | <p>Given an instance <code>x</code> of <code>Callable<T></code>, how can I run <code>x</code> in a separate process such that I can redirect the standard input and output of the process? For example, is there a way to build a <code>Process</code> from a <code>Callable</code>? Is there a standard <code>Executor</c... | [
{
"answer_id": 342476,
"author": "noah",
"author_id": 12034,
"author_profile": "https://Stackoverflow.com/users/12034",
"pm_score": 3,
"selected": true,
"text": "import java.io.InputStream;\nimport java.io.PrintStream;\nimport java.util.concurrent.Callable;\n\n\npublic interface MyCallab... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1412/"
] |
342,437 | <p>Which method makes the most sense for importing a module in python that is version specific? My use case is that I'm writing code that will be deployed into a python 2.3 environment and in a few months be upgraded to python 2.5. This:</p>
<pre><code>if sys.version_info[:2] >= (2, 5):
from string import Templ... | [
{
"answer_id": 342484,
"author": "orip",
"author_id": 37020,
"author_profile": "https://Stackoverflow.com/users/37020",
"pm_score": 6,
"selected": true,
"text": "Template"
}
] | 2008/12/04 | [
"https://Stackoverflow.com/questions/342437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33786/"
] |
342,438 | <p>I have many requires and includes and i was wondering if there's something that can help me look at the whole of php code when a webpage is loaded. the reason i'm asking is that after fiddling with some code i cannot put any php code anymore as it will not be "sensed" by the compiler. like if i put anything inside t... | [
{
"answer_id": 342463,
"author": "benlumley",
"author_id": 39161,
"author_profile": "https://Stackoverflow.com/users/39161",
"pm_score": 3,
"selected": true,
"text": "error_reporting(E_ALL);\nini_set('display_errors', 1);\n"
},
{
"answer_id": 1738880,
"author": "mattbasta",
... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/419730/"
] |
342,443 | <p>I work with an application which uses rather big numbers and I need to store data as an unsigned 64-bit integer. I prefer to just store it without worrying about bit manipulation or anything like that so different programs can use the data in different ways. </p>
| [
{
"answer_id": 342467,
"author": "Ken Gentle",
"author_id": 8709,
"author_profile": "https://Stackoverflow.com/users/8709",
"pm_score": 3,
"selected": false,
"text": "NUMERIC"
}
] | 2008/12/04 | [
"https://Stackoverflow.com/questions/342443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10352/"
] |
342,455 | <p>I'm developing a script that involves creating an email contact and forwarding mail to that contact. Last part of the script is to automatically send a test email to the address to make sure the forwarding works.</p>
<p>So I use the following code:</p>
<pre><code>[void] [Reflection.Assembly]::LoadWithPartialName("... | [
{
"answer_id": 38535871,
"author": "nickdmax",
"author_id": 2524721,
"author_profile": "https://Stackoverflow.com/users/2524721",
"pm_score": 1,
"selected": false,
"text": "$msg.Recipients.Add(\"me@example.com\")"
}
] | 2008/12/04 | [
"https://Stackoverflow.com/questions/342455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/456628/"
] |
342,468 | <p>I've been benchmarking the performance of a framework I'm writing in Perl and I'm getting a 50% decrease in requests per second over our existing codebase (some hit is understandable, because we're going from procedural spaghetti code to an OOP MVC framework).</p>
<p>The application is running under mod_perl, and I... | [
{
"answer_id": 342482,
"author": "ysth",
"author_id": 17389,
"author_profile": "https://Stackoverflow.com/users/17389",
"pm_score": 4,
"selected": true,
"text": "# this code goes at file scope\nmy $config;\nBEGIN {\n $config = { Config::General->new( ... )->getall }\n}\n\n# when creat... | 2008/12/04 | [
"https://Stackoverflow.com/questions/342468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3404/"
] |
342,509 | <p>Is it possible to read the data in the php $_SESSION array in the .htaccess file in Apache? So say I have the following:</p>
<pre><code>$_SESSION['foo'] = 'bar';
</code></pre>
<p>could I then in .htaccess do something like:</p>
<pre><code>RewriteRule bla.png folder/{the php session var foo}/file.png
</code></pre>... | [
{
"answer_id": 25286371,
"author": "jave.web",
"author_id": 1835470,
"author_profile": "https://Stackoverflow.com/users/1835470",
"pm_score": 4,
"selected": false,
"text": ".ht"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/342509",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35197/"
] |
342,518 | <p><em>Problem:</em> There are a bunch of .lnk files on the C drive that point to the J: drive, but the J: drive is gone, and the P: drive has replaced it. Various tricks have been done to get the .lnk files to still work anyway, but it's getting annoying, and it's time to just fix the things.</p>
<p>Using Ruby, Pytho... | [
{
"answer_id": 1211860,
"author": "Program.X",
"author_id": 76037,
"author_profile": "https://Stackoverflow.com/users/76037",
"pm_score": 2,
"selected": false,
"text": " dim onlyFolder\n Set onlyFolder =fso.GetFolder(\"C:\\\") \n SearchFolder onlyFolder\n\n' for each aDrive in ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42223/"
] |
342,528 | <p>Can all .NET exception objects be serialized?</p>
| [
{
"answer_id": 342534,
"author": "Matt Briggs",
"author_id": 10771,
"author_profile": "https://Stackoverflow.com/users/10771",
"pm_score": 2,
"selected": false,
"text": "System.Exception"
},
{
"answer_id": 342541,
"author": "Barry Kelly",
"author_id": 3712,
"author_pr... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342528",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/781/"
] |
342,529 | <p>Anybody ever had the error "Installation of the "Microsoft Expression Web 2" product has reported the following error: -2147024873.. " when trying to install Microsoft Expression Web 2 or Microsoft Expression Studio? This is the error I'm getting, but I can't figure out what the problem is. I have no beta or RC or... | [
{
"answer_id": 342534,
"author": "Matt Briggs",
"author_id": 10771,
"author_profile": "https://Stackoverflow.com/users/10771",
"pm_score": 2,
"selected": false,
"text": "System.Exception"
},
{
"answer_id": 342541,
"author": "Barry Kelly",
"author_id": 3712,
"author_pr... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9266/"
] |
342,532 | <p>I'm trying to animate a block level element using jQuery. The page loads with the element styled with <code>display: none</code>. Id like it to <code>slideDown</code> whilst transparent and then <code>fadeIn</code> the content using the callback, however <code>slideDown</code> appears to set the visibility to full b... | [
{
"answer_id": 342569,
"author": "orip",
"author_id": 37020,
"author_profile": "https://Stackoverflow.com/users/37020",
"pm_score": 0,
"selected": false,
"text": "$('#hiddenElement').css(\"opacity\", 0).slideDown().animate({opacity:1})\n"
},
{
"answer_id": 342574,
"author": "... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/199/"
] |
342,543 | <p>I'm using .net's PrintPreviewDialog and whenever it's generating a preview, it locks up my GUI in the background and makes it look like it has crashed until the preview is finished. Seeing how the .net's page progress window that pops up isn't a dialog, the back ground can be selected which then comes to the front i... | [
{
"answer_id": 373428,
"author": "Matthew Savage",
"author_id": 18434,
"author_profile": "https://Stackoverflow.com/users/18434",
"pm_score": 2,
"selected": false,
"text": "ThreadStart ts = () =>\n{\n printDocument.Print();\n\n // Start the message loop to prevent the thread from f... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342543",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24571/"
] |
342,546 | <p>What would be the fastest way, to merge 2 XML files, so I would locate a node in first one, empty it, take all children from the same tag (same node) in second XML and put it in the first one.</p>
| [
{
"answer_id": 342564,
"author": "Zachary Yates",
"author_id": 8360,
"author_profile": "https://Stackoverflow.com/users/8360",
"pm_score": 0,
"selected": false,
"text": "try\n{\n XmlTextReader xmlreader1 = new XmlTextReader(\"C:\\\\Books1.xml\");\n XmlTextReader xmlreader2 = new Xm... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24839/"
] |
342,554 | <p>Is it possible to create an HTML email signature for <strong>Outlook 2003</strong> or above that doesn't reference external images?</p>
<p>That is, using those special "cid" reference but embed the image itself in the signature and not on the file system or network.</p>
<p>This is for an web application that gener... | [
{
"answer_id": 343276,
"author": "Oliver Giesen",
"author_id": 9784,
"author_profile": "https://Stackoverflow.com/users/9784",
"pm_score": 4,
"selected": true,
"text": "file:///"
},
{
"answer_id": 2458592,
"author": "Adam Patterson",
"author_id": 295219,
"author_profi... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19377/"
] |
342,556 | <p>I am experimenting with the new multiprocessing module in Python 2.6. I am creating several processes each with its own multiprocessor.JoinableQueue instance. Each process spawns one or more worker threads (subclasses of threading.Thread) which share the JoinableQueue instance (passed in through each Thread's <cod... | [
{
"answer_id": 342586,
"author": "jfs",
"author_id": 4279,
"author_profile": "https://Stackoverflow.com/users/4279",
"pm_score": 2,
"selected": false,
"text": "from multiprocessing import Process, Queue\n\ndef f(q):\n q.put([42, None, 'hello'])\n\n if __name__ == '__main__':\n q =... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43233/"
] |
342,576 | <p>There are a number of run-time differences in compatible code between these two versions of .NET.</p>
<p>Here is a list of differences so far:</p>
<ul>
<li>Graphics.DrawRectangle - differs by 1 pixel</li>
<li>Graphics.DrawString - Loses the line wrap if used with a StringFormat with both StringAlignments set to Ce... | [
{
"answer_id": 391900,
"author": "Qwertie",
"author_id": 22820,
"author_profile": "https://Stackoverflow.com/users/22820",
"pm_score": 1,
"selected": false,
"text": "System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase\n"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/342576",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1143/"
] |
342,577 | <p>If I have an NSString with a text file in it, how do I get an NSArray of NSString with each NSString containing a line of the file.</p>
<p>In 10.5 I did this:</p>
<pre><code>NSArray* lines = [str componentsSeparatedByCharactersInSet: [NSCharacterSet newlineCharacterSet]];
</code></pre>
<p>But that doesn't work in... | [
{
"answer_id": 342595,
"author": "e.James",
"author_id": 33686,
"author_profile": "https://Stackoverflow.com/users/33686",
"pm_score": 4,
"selected": true,
"text": "unsigned length = [string length];\nunsigned paraStart = 0, paraEnd = 0, contentsEnd = 0;\nNSMutableArray *array = [NSMutab... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342577",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39138/"
] |
342,578 | <p>How can the OpenFileDialog View Menu be set to Detail View?</p>
| [
{
"answer_id": 342611,
"author": "DaEagle",
"author_id": 43024,
"author_profile": "https://Stackoverflow.com/users/43024",
"pm_score": 0,
"selected": false,
"text": "Dim OpenFileDialog1 As New OpenFileDialog\nSendKeys.Send(\"{tab}{tab}{tab}{tab}{tab}{right}{right}{down}{up}{enter}\")\nOp... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4964/"
] |
342,579 | <p>A few quick searches discovered that I'm obviously <a href="http://morethanseven.net/2008/10/13/unit-testing-css-looking-solution/" rel="noreferrer">not the</a> <a href="http://www.thoughtballoon.co.uk/blog/2008/11/11/example-css-style-guide-unit-testing-for-css" rel="noreferrer">first person</a> to have the thought... | [
{
"answer_id": 22340521,
"author": "boudu",
"author_id": 2608997,
"author_profile": "https://Stackoverflow.com/users/2608997",
"pm_score": 2,
"selected": false,
"text": "Ex : base.css / form.css / article.css etc.\n"
},
{
"answer_id": 24869064,
"author": "Heroselohim",
"a... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
342,590 | <p>Has anyone implemented sorting a list of domain names?</p>
<p>I have seen some applications sort them as flat strings, but the problem is that you end up scattering all the related hosts in a domain:</p>
<p>a.me.com
a.you.com
b.me.com
b.you.com</p>
<p>So, the basic logic I came up with reverse the order of the la... | [
{
"answer_id": 342667,
"author": "Tom",
"author_id": 40620,
"author_profile": "https://Stackoverflow.com/users/40620",
"pm_score": 2,
"selected": false,
"text": "hosts = [\"a.foo.com\", \"b.foo.com\", \"foo.com\", \"c.bar.com\"]\n\nsplit_hosts = []\nfor h in hosts:\n segments = h.spli... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342590",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2910/"
] |
342,596 | <p>I have a very simple problem and a solution that will work, but I'm looking for a simpler one.</p>
<p>I'd like to prevent rows from being added to a database when multiple values equal existing values. For example, if a2=a1 AND b2=b1 then the data gets rejected. If only a2=a1 or only b2=b1 it is allowed. Basical... | [
{
"answer_id": 342607,
"author": "gcores",
"author_id": 40256,
"author_profile": "https://Stackoverflow.com/users/40256",
"pm_score": 4,
"selected": true,
"text": "CREATE UNIQUE INDEX index_name ON table(col1, col2);\n"
},
{
"answer_id": 342615,
"author": "Stewart Johnson",
... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30098/"
] |
342,609 | <p>I'm writing what will be an intranet application, and one of its features is roughly analogous to content voting - not unlike what SO, Amazon, and many other sites do.</p>
<p>Assuming each votable piece of content has a unique ID, and each user (they're authenticated) has a unique ID, the easiest way would seem to ... | [
{
"answer_id": 342825,
"author": "ysth",
"author_id": 17389,
"author_profile": "https://Stackoverflow.com/users/17389",
"pm_score": 2,
"selected": false,
"text": " `vote_id` int(11) NOT NULL default '0',\n `voter_user` int(11) NOT NULL default '0',\n `voted_user` int(11) default NULL,\n ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40405/"
] |
342,613 | <p>How do you manage your database connections in your ASP.Net application?</p>
<p>My understanding tells me the "best" way is to open a connection, make a query, close the connection - and do that multiple times because connection pooling makes the cost negligable.</p>
<p>The problem comes when I have a DAL where ea... | [
{
"answer_id": 342636,
"author": "JoshBerke",
"author_id": 26160,
"author_profile": "https://Stackoverflow.com/users/26160",
"pm_score": 2,
"selected": true,
"text": "using (CustomTS.New())\n{\n CustomerDal.Update()\n userDal.Update()\n}\n"
},
{
"answer_id": 342759,
"author":... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342613",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42975/"
] |
342,619 | <p>I've been using the Rome API to parse data from an XML feed pretty successfully so for, but have run in to a bit of a snag. </p>
<p>Given the following snippet of XML:</p>
<p><entry><br> <id>uniqueId</id><br> <updated>2008-11-05T01:32:35Z</updated><br> <mm:status xmlns:mm=... | [
{
"answer_id": 763083,
"author": "Pat",
"author_id": 20161,
"author_profile": "https://Stackoverflow.com/users/20161",
"pm_score": 1,
"selected": false,
"text": "import com.sun.syndication.io.ModuleGenerator;\nimport com.sun.syndication.io.impl.DateParser;\nimport com.sun.syndication.fee... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342619",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
342,632 | <p>Any idea why the following code doesn't print the amount of characters in the input?
I've taken this straight from the K&R book. Learning C at the moment and this is really confusing, looks to me like I'm never reaching EOF. If that's the case then why would this be used as an example?</p>
<pre><code>#include &... | [
{
"answer_id": 342642,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 3,
"selected": false,
"text": "stdin"
},
{
"answer_id": 342645,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "h... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
342,638 | <p>I'm coming from a .net background and want to know the accepted way of creating a method that returns a boolean and modifies a string that was passed in via parameter. I understand Strings are immutable in Java so the below snippet will always produce an empty string. I am constrained to return boolean only. Excepti... | [
{
"answer_id": 342652,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 1,
"selected": false,
"text": " class StringHolder\n {\n String msg;\n }\n\n StringHolder sMsg = new StringHolder();\n sMsg.msg = \"\";\n if... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4458/"
] |
342,641 | <p>I'm looking for guidance on how to use PHP's Mailparse pecl extension. The <a href="http://us2.php.net/manual/en/book.mailparse.php" rel="noreferrer">documentation</a> on the PHP website isn't very helpful. </p>
<p>Does anyone have experience with this and care to share a few pointers?</p>
| [
{
"answer_id": 342652,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 1,
"selected": false,
"text": " class StringHolder\n {\n String msg;\n }\n\n StringHolder sMsg = new StringHolder();\n sMsg.msg = \"\";\n if... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342641",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1103/"
] |
342,655 | <p>I have a strange encounter when creating a GridView using <code>SELECT..WHERE..<field> IN (value1, val2...)</code>.</p>
<p>In the "Configure datasource" tab, if i hard code the values <code>SELECT .... WHERE field1 in ('AAA', 'BBB', 'CCC')</code>, the system works well.</p>
<p>However, if I define a new para... | [
{
"answer_id": 12667285,
"author": "Hutcho",
"author_id": 1710769,
"author_profile": "https://Stackoverflow.com/users/1710769",
"pm_score": 2,
"selected": false,
"text": "CREATE PROCEDURE [dbo].[get_bars_in_foo]\n @bars varchar(255)\nAS\nBEGIN\n DECLARE @query AS varchar(MAX)\n ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
342,665 | <p>We are using verisign's time stamp service currently, but every so often the time stamp server becomes unavailable - mostly due to our ISP failing.</p>
<p>We now timestamp everything we build, even simple dev builds as we had a lot of trouble with Vista not running the unsigned/unstamped files properly.</p>
<p>Can... | [
{
"answer_id": 12667285,
"author": "Hutcho",
"author_id": 1710769,
"author_profile": "https://Stackoverflow.com/users/1710769",
"pm_score": 2,
"selected": false,
"text": "CREATE PROCEDURE [dbo].[get_bars_in_foo]\n @bars varchar(255)\nAS\nBEGIN\n DECLARE @query AS varchar(MAX)\n ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37558/"
] |
342,675 | <p>I've got a number of WebService methods that all include some very boilerplate code of wrapping the actual work in a try/catch/finally and performing the same tasks in the catch/finally. So as a way to encapsulate all of the shared catch/finally stuff I wrote a simple generic.</p>
<p>This works and really eliminate... | [
{
"answer_id": 342709,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 1,
"selected": false,
"text": "public interface IServiceResponse { ... }\npublic class ApplianceInitResp : IServiceResponse { ... }\npublic interface ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43406/"
] |
342,687 | <h2>Context</h2>
<ul>
<li>Take a look at Wordle: <a href="http://www.wordle.net/" rel="noreferrer">http://www.wordle.net/</a></li>
<li>It's much better looking than any other word cloud generators I've seen</li>
<li>Note: the source is not available - read the FAQ: <a href="http://www.wordle.net/faq#code" rel="norefer... | [
{
"answer_id": 1478314,
"author": "Jonathan Feinberg",
"author_id": 143938,
"author_profile": "https://Stackoverflow.com/users/143938",
"pm_score": 10,
"selected": true,
"text": "place the word where it wants to be\nwhile it intersects any of the previously placed words\n move it one ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13477/"
] |
342,708 | <p>Wondering the most efficent way to make a binary search tree into a spell checker by reading in say 1000 word dictionary file and then having it check another document that say has a couple paragraphs. </p>
| [
{
"answer_id": 342806,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 1,
"selected": false,
"text": "- C\n - A\n - R\n - end\n - T\n - T\n - end\n - U\n - P\n - end\n - T\n - end\n"
},
... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
342,737 | <p>When creating links for an an html based email, how critical is it to use absolute links? Also, What are the benefits in using relative links in general?</p>
| [
{
"answer_id": 342751,
"author": "balexandre",
"author_id": 28004,
"author_profile": "https://Stackoverflow.com/users/28004",
"pm_score": 1,
"selected": false,
"text": "/portal/images/myImage.png\n"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/342737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39781/"
] |
342,758 | <p>I'd like to implement a UITableView which displays say 20 rows at a time. But given the fact that I might actually have say 120 items to present, I'd like to handle this using some sort of paging:</p>
<p>Populate table with first 20 items. When the user does a right-to-left swipe, reload the UITableView with the ne... | [
{
"answer_id": 698824,
"author": "Bingosabi",
"author_id": 84800,
"author_profile": "https://Stackoverflow.com/users/84800",
"pm_score": 2,
"selected": false,
"text": "- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView;\n\n- (NSInteger)tableView:(UITableView *)tableView... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
342,767 | <p>Hypothetical situation:</p>
<p>Suppose I ran a hosting firm where I hosted subdomains for people. You could sign up and give me a few bucks a month, and I'd give you yourname.mycompany.com.</p>
<p>Now, say I wanted mail.*.mycompany.com to point to one server and www.*.mycompany.com to point to another.</p>
<p>Is ... | [
{
"answer_id": 698824,
"author": "Bingosabi",
"author_id": 84800,
"author_profile": "https://Stackoverflow.com/users/84800",
"pm_score": 2,
"selected": false,
"text": "- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView;\n\n- (NSInteger)tableView:(UITableView *)tableView... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6010/"
] |
342,772 | <p>Would anyone happen to know how to convert type <code>LPTSTR</code> to <code>char *</code> in C++?</p>
| [
{
"answer_id": 342786,
"author": "John Z",
"author_id": 43430,
"author_profile": "https://Stackoverflow.com/users/43430",
"pm_score": 3,
"selected": false,
"text": "LPTSTR szString = _T(\"Testing\");\nchar* pBuffer;\n"
},
{
"answer_id": 343038,
"author": "Mark Ransom",
"a... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37875/"
] |
342,777 | <p>I'm working on a Zend Framework (1.7) project with a structure loosely based on the structure of the quickstart application - front controller, action controllers, views & models that use Zend_Db_Table to get to the database. One of my main models relies on some expensive joins to pull up its primary listing, s... | [
{
"answer_id": 342912,
"author": "rg88",
"author_id": 11252,
"author_profile": "https://Stackoverflow.com/users/11252",
"pm_score": 0,
"selected": false,
"text": "$select = $db->from('users')->order('name'); \n$paginator = new Zend_Paginator(new Zend_Paginator_Adapter_DbSelect($select... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39413/"
] |
342,829 | <p>OK I'm redoing this since I messed it up. :) here's the xaml.</p>
<pre><code><Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="ucWaitIndicator.Window1"
x:Name="Window"
Title="Window1"
Width="640" Heigh... | [
{
"answer_id": 342891,
"author": "discorax",
"author_id": 30408,
"author_profile": "https://Stackoverflow.com/users/30408",
"pm_score": 3,
"selected": true,
"text": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Windows;\nusing Sys... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22451/"
] |
342,843 | <p>I want to calculate what is $x percentage of a $total. $x could be 15%, 20%, etc, and $total could be 1000, 2000, etc. So I'd want the 15% of 1000, for example.</p>
<p>What is the formula for calculating this? (I know this isn't <em>exactly</em> a coding question but I'm coding this feature and need help!</p>
| [
{
"answer_id": 342851,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 3,
"selected": false,
"text": "percentage = partialAmount / totalAmount\ntotalAmount = partialAmount / percentage\npartialAmount = percentage * tota... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
342,844 | <p>I'm designing an html email for a Holiday Art Market. The request is simply for graphic design, make it pretty-put the date/time etc., but I'm wondering if I can also implement an RSVP form in the email: Are you coming, yes or no? Can this be done in an email, or do I need to redirect to a website? If it can be done... | [
{
"answer_id": 342860,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 3,
"selected": true,
"text": "http://www.yourdomain.com/rsvp.aspx?by=email@receiver.com&response=no\n\nhttp://www.yourdomain.com/rsvp.aspx?by=email@... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342844",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39781/"
] |
342,862 | <p>I've been trying to refactor a "bit" of code that I'd previously developed. Basically, the project was my response to not knowing how to use XSLT effectively, so I developed an XML transformation system in PHP. The program reads through the tags of an XML file and does something along these lines to convert it to HT... | [
{
"answer_id": 342877,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 2,
"selected": false,
"text": "private function getTemplate(...) \n{\n $func = $nodeName + \"_converter\";\n if (function_exists($func)) //... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
342,896 | <p>I am planning to use this to poll a database which can take close to 10-15 minutes or more, so should I be using timers for this.</p>
| [
{
"answer_id": 343766,
"author": "Tom Hawtin - tackline",
"author_id": 4725,
"author_profile": "https://Stackoverflow.com/users/4725",
"pm_score": 1,
"selected": false,
"text": "java.util.concurrent.ScheduledThreadPoolExecutor"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/342896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
342,910 | <p>This is the trace of my app,when I updated my device to 2.2.</p>
<p>any idea to get rid of this leak? because I think that's the culprit who keep crashing my application.<br>
This is trace when I run my application in os2.2,see the image which show the part which might be generating leak,and if you can give me some... | [
{
"answer_id": 346038,
"author": "wisequark",
"author_id": 33159,
"author_profile": "https://Stackoverflow.com/users/33159",
"pm_score": 1,
"selected": false,
"text": "scan-build xcodebuild"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/342910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/451867/"
] |
342,933 | <p>I'd like to put in an UIButton in the center of the navigation bar. Based on the document, it appears I need to set title view, and make sure the leftBarButtonItem is nil. But it is not work for me. Here is the code.</p>
<pre><code>UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[btn setTitle:@"L... | [
{
"answer_id": 342952,
"author": "August",
"author_id": 30966,
"author_profile": "https://Stackoverflow.com/users/30966",
"pm_score": 3,
"selected": false,
"text": "self.navigationItem.titleView = btn;\n"
},
{
"answer_id": 346035,
"author": "wisequark",
"author_id": 33159... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32096/"
] |
342,954 | <p>A bit of a neophyte haskell question, but I came across this example in Haskell's <a href="http://www.haskell.org/haskellwiki/99_questions/1_to_10" rel="noreferrer">tutorial examples</a>. For "find the last element of a list" there are some obvious versions, like </p>
<pre><code>last' [x] = x
last' (_:xs) = last' ... | [
{
"answer_id": 343036,
"author": "Chris Conway",
"author_id": 1412,
"author_profile": "https://Stackoverflow.com/users/1412",
"pm_score": 6,
"selected": true,
"text": "const"
},
{
"answer_id": 348064,
"author": "Magnus",
"author_id": 34996,
"author_profile": "https://... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19479/"
] |
342,961 | <p>When you are developing a web-based application and you want to allow richly formatted text from the user you have to make a choice about how to allow that input. Many different markup languages have been created because it is arguably more difficult to sanitize HTML.</p>
<p>What are the advantages and disadvantag... | [
{
"answer_id": 17640402,
"author": "Community",
"author_id": 2327283,
"author_profile": "https://Stackoverflow.com/users/2327283",
"pm_score": 0,
"selected": false,
"text": "<li>"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/342961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20267/"
] |
342,964 | <p>Suppose I have this interface</p>
<pre><code>public interface IFoo
{
///<summary>
/// Foo method
///</summary>
void Foo();
///<summary>
/// Bar method
///</summary>
void Bar();
///<summary>
/// Situation normal
///</summary>
void ... | [
{
"answer_id": 342968,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 5,
"selected": true,
"text": "FlingThing()"
},
{
"answer_id": 343072,
"author": "Dennis",
"author_id": 73025,
"author_profile": ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18731/"
] |
342,966 | <p>How do I group search results returned by Lucene by fields (similar to SQL Server's)?</p>
| [
{
"answer_id": 343120,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 0,
"selected": false,
"text": "org.apache.lucene.search.Sort"
},
{
"answer_id": 7517135,
"author": "mihaicc",
"author_id": 648904,
"au... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43478/"
] |
342,969 | <p>Case in point: </p>
<p>I'm a on mac with bash v3.2.17, I'm using git installed via macports with the bash_completion variant.</p>
<p>When I type <code>git checkout m<tab></code>. for example, I get it completed to <code>master</code>.</p>
<p>However, I've got an alias to <code>git checkout</code>, <code>gco... | [
{
"answer_id": 343013,
"author": "Chris Lloyd",
"author_id": 42413,
"author_profile": "https://Stackoverflow.com/users/42413",
"pm_score": 4,
"selected": false,
"text": "git-completion.bash"
},
{
"answer_id": 344211,
"author": "mipadi",
"author_id": 28804,
"author_pro... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13989/"
] |
342,973 | <p>We use Perl for GUI test automation. It has been very successful. We have written a very lightweight DSL kind of language for GUI testing. The DSL is very similar to a object model.</p>
<p>For example, we have an Application object at the root. Each property sheet in the application is a View object. Each page unde... | [
{
"answer_id": 343026,
"author": "derobert",
"author_id": 27727,
"author_profile": "https://Stackoverflow.com/users/27727",
"pm_score": 2,
"selected": false,
"text": "->"
},
{
"answer_id": 343054,
"author": "Axeman",
"author_id": 11289,
"author_profile": "https://Stac... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43056/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.