qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
191,746 | <p>Given the following HTML:</p>
<pre><code><select name="my_dropdown" id="my_dropdown">
<option value="1">displayed text 1</option>
</select>
</code></pre>
<p>How do I grab the string "displayed text 1" using Javascript/the DOM?</p>
| [
{
"answer_id": 191755,
"author": "Adam Bellaire",
"author_id": 21632,
"author_profile": "https://Stackoverflow.com/users/21632",
"pm_score": 1,
"selected": false,
"text": "myOptionNode.childNodes[0];\n myOptionNode.text;\n"
},
{
"answer_id": 191767,
"author": "Liam",
"aut... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26848/"
] |
191,757 | <p>I thought this would be really simple, but it's presenting some difficulties. If I have</p>
<pre><code>std::string name = "John";
int age = 21;
</code></pre>
<p>How do I combine them to get a single string <code>"John21"</code>?</p>
| [
{
"answer_id": 191775,
"author": "Tom Ritter",
"author_id": 8435,
"author_profile": "https://Stackoverflow.com/users/8435",
"pm_score": 2,
"selected": false,
"text": "itoa"
},
{
"answer_id": 191776,
"author": "tloach",
"author_id": 14092,
"author_profile": "https://St... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23120/"
] |
191,766 | <p>When I get a java.io.InvalidClassException, it gives me the serialVersionUID that it wants, and the serialVersionUID that it got. Is there an easy way to tell which of my dozens of jars using the wrong serialVersionUID?</p>
<p><strong>Update</strong>: I should mention that our intention is to update everything at ... | [
{
"answer_id": 191822,
"author": "entzik",
"author_id": 12297,
"author_profile": "https://Stackoverflow.com/users/12297",
"pm_score": 2,
"selected": false,
"text": "java.io.ObjectStreamClass.getSerialVersionUID()"
},
{
"answer_id": 353985,
"author": "user44722",
"author_i... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191766",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3333/"
] |
191,787 | <p>I want to find a sql command or something that can do this where I have a table named tblFoo and I want to name it tblFooBar. However, I want the primary key to also be change, for example, currently it is:</p>
<pre><code>CONSTRAINT [PK_tblFoo] PRIMARY KEY CLUSTERED
</code></pre>
<p>And I want a name change to ch... | [
{
"answer_id": 191888,
"author": "Tom H",
"author_id": 5696608,
"author_profile": "https://Stackoverflow.com/users/5696608",
"pm_score": 4,
"selected": true,
"text": "DECLARE\n @old_name VARCHAR(100),\n @new_name VARCHAR(100)\n\nSET @old_name = 'tblFoo'\nSET @new_name = 'tblFoo... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7952/"
] |
191,788 | <p>In my c# app, I've got a list that I navigate with an Enumerator. It works great for moving forward through the list, but the Enumerator class doesn't have a MoveBack method. </p>
<p>Is there different class that has a MoveBack method, or do I need to write my own?</p>
| [
{
"answer_id": 384510,
"author": "Hosam Aly",
"author_id": 41283,
"author_profile": "https://Stackoverflow.com/users/41283",
"pm_score": 0,
"selected": false,
"text": "IEnumerator<int> e1 = yourListOfInt.GetEnumerator();\nIEnumerator<int> e2 = e1;\nfor (int i = 0; i < 3; ++i) e2.MoveNext... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26339/"
] |
191,791 | <p>I am hoping to find a way to do this in vb.net: </p>
<p>Say you have function call getPaint(Color). You want the call to be limited to the parameter values of (red,green,yellow). When they enter that parameter, the user is provided the available options, like how a boolean parameter functions.</p>
<p>Any ideas? <... | [
{
"answer_id": 191811,
"author": "Jorge Ferreira",
"author_id": 6508,
"author_profile": "https://Stackoverflow.com/users/6508",
"pm_score": 2,
"selected": false,
"text": "Enum Color\n Red = 1\n Green = 2\n Yellow = 3\nEnd Enum\n getPaint(Color"
},
{
"answer_id": 191832,
... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44449/"
] |
191,808 | <p>I'm currently looking at ways to allow people to select multiple files at once to batch upload images. I'm evaluating these options for my ASP.NET web app:</p>
<ul>
<li><a href="http://developer.yahoo.com/yui/uploader/" rel="nofollow noreferrer">YUI Uploader</a></li>
<li><a href="http://www.codeplex.com/FlajaxianFi... | [
{
"answer_id": 1368939,
"author": "dlamblin",
"author_id": 459,
"author_profile": "https://Stackoverflow.com/users/459",
"pm_score": 2,
"selected": true,
"text": "flickr flickr flickr"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/191808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/459/"
] |
191,812 | <p>How can I create a custom property for my .Net assembly which would then be visible under the Details tab in Windows explorer?</p>
<p>Something to sit parallel with "File Description", "Type", "Product Version"... etc</p>
<p>Update: To quote my comment to Lars ... "Whilst I would have liked to do this from within ... | [
{
"answer_id": 191996,
"author": "KyleLanser",
"author_id": 12923,
"author_profile": "https://Stackoverflow.com/users/12923",
"pm_score": 2,
"selected": false,
"text": "[assembly: AssemblyDescription(\"One Line of Content Here\")]\n"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/191812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11356/"
] |
191,817 | <p>I'm roughing a layout together and doing some browser testing. Never came across this issue before, check out the contact form in the footer of this page</p>
<p><a href="http://staging.terrilynn.com/fundraising/" rel="nofollow noreferrer"><a href="http://staging.terrilynn.com/fundraising/" rel="nofollow noreferrer"... | [
{
"answer_id": 191878,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 0,
"selected": false,
"text": "<p>"
},
{
"answer_id": 192076,
"author": "matte",
"author_id": 25768,
"author_profile": "https://... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26858/"
] |
191,826 | <p>I'm actually developing a Web Service in Java using Axis 2.
I designed my service as a POJO (Plain Old Java Object) with public method throwing exceptions :</p>
<pre><code>public class MyService {
public Object myMethod() throws MyException {
[...]
}
}
</code></pre>
<p>I then generated the WSDL using... | [
{
"answer_id": 2919955,
"author": "Russell",
"author_id": 351795,
"author_profile": "https://Stackoverflow.com/users/351795",
"pm_score": 1,
"selected": false,
"text": " MyFaultException ex = new MyFaultException(\"My Exception Message\");\n MyFault fault = new MyFault();\n... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26859/"
] |
191,842 | <p>If I have a native C++ windows program (i.e. the entry point is WinMain) how do I view output from console functions like std::cout?</p>
| [
{
"answer_id": 191880,
"author": "luke",
"author_id": 16434,
"author_profile": "https://Stackoverflow.com/users/16434",
"pm_score": 5,
"selected": false,
"text": "#include <windows.h>\n#include <stdio.h>\n#include <fcntl.h>\n#include <io.h>\n#include <iostream>\n#include <fstream>\n#ifnd... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23120/"
] |
191,844 | <p>I have a Java array such as: </p>
<pre><code>String[] arr = new String[] {"123","doc","projectReport.doc"};
</code></pre>
<p>In my opinion the natural way to access would be: </p>
<pre><code> #set($att_id = $arr[0])
#set($att_type = $arr[1])
#set($att_name = $arr[2])
</code></pre>
<p>But that it is not working... | [
{
"answer_id": 192018,
"author": "Brian",
"author_id": 8959,
"author_profile": "https://Stackoverflow.com/users/8959",
"pm_score": 3,
"selected": false,
"text": "List Arrays.asList(T... a) $list.get(int index) Array.get(Object array, int index)"
},
{
"answer_id": 505343,
"aut... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191844",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2138/"
] |
191,845 | <p>Currently, I've got images (max. 6MB) stored as BLOB in a InnoDB table.
As the size of the data is growing, the nightly backup is growing slower and slower hindering normal performance.</p>
<p>So, the binary data needs to go to the file system. (pointers to the files will be kept in the DB.)</p>
<p>The data has a ... | [
{
"answer_id": 191863,
"author": "Node",
"author_id": 7190,
"author_profile": "https://Stackoverflow.com/users/7190",
"pm_score": 6,
"selected": true,
"text": "UserID = 6435624 \nPath = /images/24/56/6435624\n"
},
{
"answer_id": 21829997,
"author": "fustaki",
"author_id":... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191845",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22674/"
] |
191,855 | <p>If I have added/removed/modified a large number of files in my local ClearCase view, how can I be certain that all the files have been added to source control?</p>
| [
{
"answer_id": 191857,
"author": "Grant Wagner",
"author_id": 9254,
"author_profile": "https://Stackoverflow.com/users/9254",
"pm_score": 3,
"selected": false,
"text": "cleartool ls -view_only -r"
},
{
"answer_id": 191964,
"author": "VonC",
"author_id": 6309,
"author_... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9254/"
] |
191,879 | <p>Eg.</p>
<pre><code>ConnectionDetails cd = new ConnectionDetails ();
cd.ProviderName = "System.Data.OleDb";
cd.DataSource = "serverAddress";
cd.Catalog = "database";
cd.UserId = "userId";
cd.Password = "password";
string connectionString = cs.CreateConnectionString();
// Should return:
// "Provider=SQLOLEDB;Data So... | [
{
"answer_id": 191932,
"author": "harpo",
"author_id": 4525,
"author_profile": "https://Stackoverflow.com/users/4525",
"pm_score": 2,
"selected": false,
"text": "DbConnectionStringBuilder csb = new DbConnectionStringBuilder();\ncsb[\"ProviderName\"] = \"System.Data.OleDb\";\ncsb[\"DataSo... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9825/"
] |
191,881 | <p>I need to <a href="https://en.wikipedia.org/wiki/Serialization" rel="noreferrer">serialize</a> an object to <a href="https://www.json.org/" rel="noreferrer">JSON</a>. I'm using <a href="https://api.jquery.com/" rel="noreferrer">jQuery</a>. Is there a "standard" way to do this?</p>
<p>My specific situation: I have a... | [
{
"answer_id": 191911,
"author": "Tahir Akhtar",
"author_id": 18027,
"author_profile": "https://Stackoverflow.com/users/18027",
"pm_score": 6,
"selected": false,
"text": "$.toJSON(value) $.parseJSON(json_str, [safe])"
},
{
"answer_id": 912247,
"author": "Community",
"auth... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/239663/"
] |
191,883 | <p>I want to be able to do the following:</p>
<pre><code>$normal_array = array();
$array_of_arrayrefs = array( &$normal_array );
// Here I want to access the $normal_array reference **as a reference**,
// but that doesn't work obviously. How to do it?
end( $array_of_arrayrefs )["one"] = 1; // choking on thi... | [
{
"answer_id": 191939,
"author": "Joe Scylla",
"author_id": 25771,
"author_profile": "https://Stackoverflow.com/users/25771",
"pm_score": -1,
"selected": false,
"text": "error_reporting display_error $normal_array = array();\n$array_of_arrayrefs = array( &$normal_array );\n// Here ... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7891/"
] |
191,894 | <p>I have the following component </p>
<pre><code>public class MyTimer : IMyTimer {
public MyTimer(TimeSpan timespan){...}
}
</code></pre>
<p>Where timespan should be provided by the property ISettings.MyTimerFrequency.</p>
<p>How do I wire this up in windsor container xml?
I thought I could do something like this... | [
{
"answer_id": 197501,
"author": "George Mauer",
"author_id": 5056,
"author_profile": "https://Stackoverflow.com/users/5056",
"pm_score": 3,
"selected": true,
"text": "public class MyClass {\n public object Item {\n get;\n }\n public object get_Item() {return null;}\n}\n <component... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5056/"
] |
191,897 | <p>I have around 3500 flood control facilities that I would like to represent as a network to determine flow paths (essentially a directed graph). I'm currently using SqlServer and a CTE to recursively examine all the nodes and their upstream components and this works as long as the upstream path doesn't fork alot. How... | [
{
"answer_id": 191986,
"author": "oz10",
"author_id": 14069,
"author_profile": "https://Stackoverflow.com/users/14069",
"pm_score": 1,
"selected": false,
"text": "vertex1 vertex2 {edge_label1}+\n vertex1 vertex2\nvertex2 vertex1\n"
},
{
"answer_id": 192020,
"author": "Cervo",... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16623/"
] |
191,923 | <p>I have an XML file loaded into a DOM document,
I wish to iterate through all 'foo' tags, getting values from every tag below it. I know I can get values via </p>
<pre><code>$element = $dom->getElementsByTagName('foo')->item(0);
foreach($element->childNodes as $node){
$data[$node->nodeName] = $node-... | [
{
"answer_id": 192015,
"author": "roryf",
"author_id": 270,
"author_profile": "https://Stackoverflow.com/users/270",
"pm_score": 7,
"selected": true,
"text": "$elements = $dom->getElementsByTagName('foo');\n$data = array();\nforeach($elements as $node){\n foreach($node->childNodes as ... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191923",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4224/"
] |
191,926 | <p>I have a database on ms sql 2000 that is being hit by hundreds of users at a time. There are intense reports using reporting services 2005 hitting the same database.</p>
<p>When there are lots of reports running and people using the database concurrently we see blocking processes to the level that the system starts... | [
{
"answer_id": 192007,
"author": "Cade Roux",
"author_id": 18255,
"author_profile": "https://Stackoverflow.com/users/18255",
"pm_score": 1,
"selected": false,
"text": "WITH(NOLOCK)"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/191926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
191,929 | <p>If I were to use more than one, what order should I use modifier keywords such as:</p>
<p><code>public</code>, <code>private</code>, <code>protected</code>, <code>virtual</code>, <code>abstract</code>, <code>override</code>, <code>new</code>, <code>static</code>, <code>internal</code>, <code>sealed</code>, and any ... | [
{
"answer_id": 18270569,
"author": "Jeppe Stig Nielsen",
"author_id": 1336654,
"author_profile": "https://Stackoverflow.com/users/1336654",
"pm_score": 1,
"selected": false,
"text": "C B public class B\n{\n public void X()\n {\n }\n}\npublic class C : B\n{\n protected internal new st... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191929",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16260/"
] |
191,940 | <p>Is it possible to define a class in C# such that</p>
<pre><code>class GenericCollection<T> : SomeBaseCollection<T> where T : Delegate
</code></pre>
<p>I couldn't for the life of me accomplish this last night in .NET 3.5. I tried using</p>
<p><code>delegate, Delegate, Action<T> and Func<T, T&g... | [
{
"answer_id": 191949,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 7,
"selected": true,
"text": "static GenericCollection()\n{\n if (!typeof(T).IsSubclassOf(typeof(Delegate)))\n {\n throw new InvalidOpe... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191940",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8945/"
] |
191,950 | <p>In my project I have a class that is inherited by many other classes. We'll call it ClassBase.</p>
<pre><code>public class ClassInheritFromBase : ClassBase
</code></pre>
<p>When ClassBase is being inherited, <a href="http://en.wikipedia.org/wiki/ReSharper" rel="noreferrer">ReSharper</a> throws an "Ambiguous refere... | [
{
"answer_id": 22411256,
"author": "HiredMind",
"author_id": 79648,
"author_profile": "https://Stackoverflow.com/users/79648",
"pm_score": 0,
"selected": false,
"text": "Copy Local = false Copy Local = true"
},
{
"answer_id": 31254550,
"author": "Evan",
"author_id": 43432... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1215/"
] |
191,952 | <p>If I have the following Linq code:</p>
<pre><code>context.Table1s.InsertOnSubmit(t);
context.Table1s.InsertOnSubmit(t2);
context.Table1s.InsertOnSubmit(t3);
context.SubmitChanges();
</code></pre>
<p>And I get a database error due to the 2nd insert, Linq throws an exception that there was an error. But, is there ... | [
{
"answer_id": 22411256,
"author": "HiredMind",
"author_id": 79648,
"author_profile": "https://Stackoverflow.com/users/79648",
"pm_score": 0,
"selected": false,
"text": "Copy Local = false Copy Local = true"
},
{
"answer_id": 31254550,
"author": "Evan",
"author_id": 43432... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3291/"
] |
191,955 | <p>What is the correct way to do this? For example, how would I change a stored procedure with this signature:</p>
<pre><code>CREATE PROCEDURE dbo.MyProcedure
@Param BIT = NULL
AS
SELECT *
FROM dbo.SomeTable T
WHERE T.SomeColumn = @Param
</code></pre>
<p>So that giving @Param with a value of 1 or 0 performs t... | [
{
"answer_id": 191971,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 4,
"selected": true,
"text": "CREATE PROCEDURE dbo.MyProcedure \n @Param BIT = NULL\nAS\n SELECT *\n FROM dbo.SomeTable T\n WHERE T.SomeColumn... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6651/"
] |
191,974 | <p>The SQL implementation of relational databases has been around in their current form for something like 25 years (since System R and Ingres). Even the main (loosely adhered to) standard is ANSI-92 (although there were later updates) is a good 15 years old.</p>
<p>What innovations can you think of with SQL based da... | [
{
"answer_id": 192087,
"author": "hova",
"author_id": 2170,
"author_profile": "https://Stackoverflow.com/users/2170",
"pm_score": 2,
"selected": false,
"text": "SELECT (invoiceprice * detailweight) / SUM(weight) OVER(PARITTION BY invoice) as weighted, * \nFROM tblInvoiceDetails\n"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/191974",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3893/"
] |
191,980 | <p>Should I create two <code>CFile</code> objects and copy one into the other character by character? Or is there something in the library that will do this for me?</p>
| [
{
"answer_id": 191992,
"author": "jeffm",
"author_id": 1544,
"author_profile": "https://Stackoverflow.com/users/1544",
"pm_score": 5,
"selected": true,
"text": "CopyFile CFile::Open CFile"
},
{
"answer_id": 200063,
"author": "skst",
"author_id": 4858,
"author_profile"... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11575/"
] |
191,984 | <p>I am writing a little application, which is writing jpeg images at a constant rate on a SD card.
I choose an EXT3 filesystem, but the same behaviour was observed with an EXT2 filesystem.</p>
<p>My writing loop looks like this :</p>
<pre><code>get_image()
fwrite()
fsync()
</code></pre>
<p>Or like this :</p>
<pre>... | [
{
"answer_id": 192107,
"author": "Matt J",
"author_id": 18528,
"author_profile": "https://Stackoverflow.com/users/18528",
"pm_score": 2,
"selected": false,
"text": "fsync() extN"
},
{
"answer_id": 2098613,
"author": "pierrotlefou",
"author_id": 115722,
"author_profile... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11589/"
] |
191,998 | <p>In Eclipse (Ganymede) I'm debugging some code that uses Apache Commons HttpClient and would like to step into the HttpClient code. I've downloaded the source code and tried to attach it in the normal fashion (CTRL-click on the method name and use the Attach Source button). I've tried to attach both as external file ... | [
{
"answer_id": 193385,
"author": "Dave L.",
"author_id": 3093,
"author_profile": "https://Stackoverflow.com/users/3093",
"pm_score": 4,
"selected": true,
"text": "<classpathentry kind=\"lib\" path=\"/blib/java/commons-httpclient-3.1/commons-httpclient-3.1.jar\" sourcepath=\"/blib/java/co... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18995/"
] |
192,028 | <p>I am trying to use concat_ws inside a group_concat command. With a query, which simplified looks like: </p>
<pre><code>SELECT item.title, GROUP_CONCAT( CONCAT_WS( ',', attachments.id, attachments.type, attachments.name ) ) as attachments
FROM story AS item
LEFT OUTER JOIN story_attachment AS attachments ON it... | [
{
"answer_id": 192057,
"author": "Wayne",
"author_id": 8236,
"author_profile": "https://Stackoverflow.com/users/8236",
"pm_score": 3,
"selected": true,
"text": "SELECT item.title, GROUP_CONCAT( CAST(CONCAT_WS(',', attachments.id, \nattachments.type, attachments.name ) as CHAR ) ) as atta... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2138/"
] |
192,048 | <p>I understand that an id must be unique within an HTML/XHTML page.</p>
<p>For a given element, can I assign multiple ids to it?</p>
<pre><code><div id="nested_element_123 task_123"></div>
</code></pre>
<p>I realize I have an easy solution with simply using a class. I'm just curious about using i... | [
{
"answer_id": 192064,
"author": "tpower",
"author_id": 18107,
"author_profile": "https://Stackoverflow.com/users/18107",
"pm_score": 2,
"selected": false,
"text": "name id"
},
{
"answer_id": 192071,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192048",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6349/"
] |
192,049 | <p>...just like packages do.</p>
<p>I use Emacs (maybe, it can offer some kind of solution).</p>
<p>For example <code>(defun the-very-very-long-but-good-name () ...)</code> is not to useful later in code. But the name like <code>Fn-15</code> or the first letters abbreviation is not useful too.
Is it possible either t... | [
{
"answer_id": 192293,
"author": "dsm",
"author_id": 7780,
"author_profile": "https://Stackoverflow.com/users/7780",
"pm_score": -1,
"selected": false,
"text": "(defmacro ...)"
},
{
"answer_id": 192336,
"author": "Allen",
"author_id": 6043,
"author_profile": "https://... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192049",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20514/"
] |
192,055 | <p>I want to create a component that allows us to have compound keyboard shortcuts associated with an arbitrary command, like the Visual Studio IDE and Microsoft Office do.</p>
<p>That is, keyboard shortcuts consisting of a sequence of multiple keystrokes, such as <kbd>Ctrl</kbd> + <kbd>W</kbd> + <kbd>C</kbd>. In Visu... | [
{
"answer_id": 192170,
"author": "jop",
"author_id": 11830,
"author_profile": "https://Stackoverflow.com/users/11830",
"pm_score": 2,
"selected": false,
"text": "// Handle the KeyDown event to determine the type of character entered into the control.\nprivate void textBox1_KeyDown(object... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26877/"
] |
192,073 | <p>What are the differences between pipes in Windows and Linux?</p>
| [
{
"answer_id": 192187,
"author": "davr",
"author_id": 14569,
"author_profile": "https://Stackoverflow.com/users/14569",
"pm_score": 6,
"selected": true,
"text": "mkfifo pipe.wav\ndecodeMP3 song.mp3 --out pipe.wav &\nencodeAVI video.mpeg pipe.wav --out video.avi\n"
},
{
"answer_id... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192073",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
192,077 | <p>I created a simple class with a DependencyProperty. When setting the value, I observe that ValidateValueCallback is called before CoerceValueCallback.</p>
<p>On <a href="http://wpftutorial.net/How+does+a+DependencyProperty+resolve+its+value.htm" rel="nofollow noreferrer">wpftutorial</a> and in other books, it is st... | [
{
"answer_id": 192187,
"author": "davr",
"author_id": 14569,
"author_profile": "https://Stackoverflow.com/users/14569",
"pm_score": 6,
"selected": true,
"text": "mkfifo pipe.wav\ndecodeMP3 song.mp3 --out pipe.wav &\nencodeAVI video.mpeg pipe.wav --out video.avi\n"
},
{
"answer_id... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1624/"
] |
192,078 | <p>Shouldn't this be a pretty straightforward operation? However, I see there's neither a <code>size()</code> nor <code>length()</code> method.</p>
| [
{
"answer_id": 192094,
"author": "JeeBee",
"author_id": 17832,
"author_profile": "https://Stackoverflow.com/users/17832",
"pm_score": 7,
"selected": false,
"text": "ResultSet rs = ps.executeQuery();\nint rowcount = 0;\nif (rs.last()) {\n rowcount = rs.getRow();\n rs.beforeFirst(); // n... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10675/"
] |
192,080 | <p>I have a .asp application where image files (.PDF) are stored in a directory (fed by a copier/scanner). The created file names are stored in a database table. When a query is launched from the web page a link to the file is created. When clicked the image should be displayed.
This functionality works 100% in Inter... | [
{
"answer_id": 192284,
"author": "alexandrul",
"author_id": 19756,
"author_profile": "https://Stackoverflow.com/users/19756",
"pm_score": 4,
"selected": false,
"text": "<a href=\"file://N:/path/to/file.ext\">test</a> user.js user_pref(\"capability.policy.default.checkloaduri.enabled\", \... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26883/"
] |
192,083 | <p>We have PHP 5.2.6 deployed to c:\php and in that folder there is the php.ini file. On Windows, can a website override these settings similar to the way that apache has .htaccess? e.g.</p>
<pre><code>DirectoryIndex index.php index.html
<IfModule mod_php5.c>
php_flag magic_quotes_gpc off
php_flag register_glo... | [
{
"answer_id": 192093,
"author": "Darryl Hein",
"author_id": 5441,
"author_profile": "https://Stackoverflow.com/users/5441",
"pm_score": 3,
"selected": true,
"text": "egister_globals init_set()"
},
{
"answer_id": 192361,
"author": "ConroyP",
"author_id": 2287,
"author... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/419/"
] |
192,085 | <p>I am writing a diagnostic page for SiteScope and one area we need to test is if the connection to the file/media assets are accesible from the web server. One way I think I can do this is load the image via code behind and test to see if the IIS status message is 200. </p>
<p>So basically I should be able to navi... | [
{
"answer_id": 192141,
"author": "Greg Dean",
"author_id": 1200558,
"author_profile": "https://Stackoverflow.com/users/1200558",
"pm_score": 7,
"selected": true,
"text": "HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(\"url\");\nrequest.Method = \"HEAD\";\n\nbool exists;\... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/648/"
] |
192,092 | <p>When calling php via cli, the current directory is NOT changed to the one of the script. All the scripts i have running in crontab run via the CLI, so this is an issue.</p>
<p>I'm currently <em>fixing</em> the problem by doing a chdir() with the absolute path where the script is, but i REALLY dont like hardcoding p... | [
{
"answer_id": 192112,
"author": "hasseg",
"author_id": 4111,
"author_profile": "https://Stackoverflow.com/users/4111",
"pm_score": 2,
"selected": false,
"text": "__FILE__ <?php\necho \"I'm here: \".__FILE__.\"\\n\";\n?>\n"
},
{
"answer_id": 192145,
"author": "eyelidlessness"... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192092",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/314/"
] |
192,100 | <p>.NET Framework 3.5 SP1 installs the .NET Framework 2.0 SP2 and the .NET Framework 3.0 SP2 behind the scenes. These installation packages (especially .NET Framework 2.0 SP2) are not available directly from Microsoft.</p>
<p>Is there a way to extract them from the .NET Framework 3.5 SP1 installation package?</p>
| [
{
"answer_id": 392647,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "FL_FL_NetFx20SP2_x86.exe.3643236F_FC70_11D3_A536_0090278A1BB8 NetFx20SP2_x86.exe FL_NetFx20SP2_x64.3643236F_FC70_11D3_A536_009... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192100",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23372/"
] |
192,109 | <p>So what I'm looking for here is something like PHP's <a href="http://us2.php.net/print_r" rel="noreferrer">print_r</a> function.</p>
<p>This is so I can debug my scripts by seeing what's the state of the object in question.</p>
| [
{
"answer_id": 192116,
"author": "Joe Skora",
"author_id": 14057,
"author_profile": "https://Stackoverflow.com/users/14057",
"pm_score": 5,
"selected": false,
"text": ">>> import sys\n>>> dir(sys)\n['__displayhook__', '__doc__', '__excepthook__', '__name__', '__stderr__', '__stdin__', '_... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10708/"
] |
192,111 | <p>In PHP, I am able to use a normal function as a variable without problem, but I haven't figured out how to use a static method. Am I just missing the right syntax, or is this not possible?</p>
<p>(EDIT: the first suggested answer does not seem to work. I've extended my example to show the errors returned.)</p>
<... | [
{
"answer_id": 192123,
"author": "Peter Bailey",
"author_id": 8815,
"author_profile": "https://Stackoverflow.com/users/8815",
"pm_score": 6,
"selected": true,
"text": "<?php\n\nfunction foo1($a,$b) { return $a/$b; }\n\nclass Bar\n{\n public static function foo2($a,$b) { return $a/$b; ... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4540/"
] |
192,117 | <p>I am writing in C#.<br>
How can i find out which methods/functions I can use in an unmanaged dll that doesn't belong to windows?<br>
Exmaple : I have some installed software on my computer, it has a dll, and i want to know what my options are as to creating code to connect to that software?</p>
| [
{
"answer_id": 12727656,
"author": "Mike Perrenoud",
"author_id": 1195080,
"author_profile": "https://Stackoverflow.com/users/1195080",
"pm_score": 0,
"selected": false,
"text": "Object Explorer"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/192117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
192,121 | <p>I want to use the DateTime.TryParse method to get the datetime value of a string into a Nullable. But when I try this:</p>
<pre><code>DateTime? d;
bool success = DateTime.TryParse("some date text", out (DateTime)d);
</code></pre>
<p>the compiler tells me </p>
<blockquote>
<p>'out' argument is not classified as... | [
{
"answer_id": 192146,
"author": "Jason Kealey",
"author_id": 20893,
"author_profile": "https://Stackoverflow.com/users/20893",
"pm_score": 8,
"selected": true,
"text": "DateTime? d=null;\nDateTime d2;\nbool success = DateTime.TryParse(\"some date text\", out d2);\nif (success) d=d2;\n"
... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/767/"
] |
192,122 | <p>This may seem a bit trivial, but I have not been able to figure it out. I am opening up a SPSite and then trying to open up a SPWeb under that SPSite. This is working fine on the VPC, which has the same Site Collection/Site hierarchy, but on production, I get an exception telling me that the URL is invalid when I ... | [
{
"answer_id": 198885,
"author": "Peter Seale",
"author_id": 25911,
"author_profile": "https://Stackoverflow.com/users/25911",
"pm_score": 0,
"selected": false,
"text": "string webServerRelativeUrl = site.ServerRelativeUrl + \"/internal/scheduletool\""
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/192122",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22426/"
] |
192,124 | <p>I need specifically to load a JPG image that was saved as a blob. GDI+ makes it very easy to retrieve images from files but not from databases...</p>
| [
{
"answer_id": 192139,
"author": "Jason Kealey",
"author_id": 20893,
"author_profile": "https://Stackoverflow.com/users/20893",
"pm_score": 0,
"selected": false,
"text": "public static Image CreateImage(byte[] pict)\n{\n System.Drawing.Image img = null;\n using (System.IO.MemoryStrea... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4880/"
] |
192,126 | <p>I have a method that needs to accept an array of country names, and return a list of records that match one of those country names. I'm trying this</p>
<pre><code>Public Shared Function GetConcessions(ByVal Countries As String()) As IEnumerable
Dim CountryList As String = Utility.JoinArray(Countries) ' turns st... | [
{
"answer_id": 192167,
"author": "sepang",
"author_id": 25930,
"author_profile": "https://Stackoverflow.com/users/25930",
"pm_score": 3,
"selected": false,
"text": "Where SqlMethods.Like(t.country, \"%Sweden%\")\n"
},
{
"answer_id": 192172,
"author": "tvanfosson",
"author... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192126",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/239663/"
] |
192,128 | <p>I am working on an Actionscript 2 project - trying to use the XML object to find a url which is returned as a 302 redirect. Is there a way to do this in actionscript 2?</p>
<p>code:</p>
<pre><code>var urlone:XML = new XML();
urlone.load("http://mydomain.com/file.py");
urlone.onLoad = function (success) {
trac... | [
{
"answer_id": 192167,
"author": "sepang",
"author_id": 25930,
"author_profile": "https://Stackoverflow.com/users/25930",
"pm_score": 3,
"selected": false,
"text": "Where SqlMethods.Like(t.country, \"%Sweden%\")\n"
},
{
"answer_id": 192172,
"author": "tvanfosson",
"author... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26888/"
] |
192,134 | <p>I have to check some code and run it. I have the URL:</p>
<pre><code>svn+ssh://myuser@www.myclient.com/home/svn/project/trunk
</code></pre>
<p>I have a file with their private key. What do I do to get this code?</p>
| [
{
"answer_id": 192186,
"author": "Swaroop C H",
"author_id": 4869,
"author_profile": "https://Stackoverflow.com/users/4869",
"pm_score": 1,
"selected": false,
"text": "~/.ssh/ ssh-agent $SHELL; ssh-add; svn co"
},
{
"answer_id": 192221,
"author": "ephemient",
"author_id":... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/577/"
] |
192,153 | <p>I would like to access the Rails session secret programmatically (I am using it to generate a sign-on token).</p>
<p>Here's what I've come up with:</p>
<pre><code>ActionController::Base.session.first[:secret]
</code></pre>
<p>This returns the session secret. However, every time you call ActionController::Base.ses... | [
{
"answer_id": 192270,
"author": "whoisjake",
"author_id": 2609,
"author_profile": "https://Stackoverflow.com/users/2609",
"pm_score": 3,
"selected": true,
"text": "ActionController::Base.session_options_for(request,params[:action])[:secret]\n"
},
{
"answer_id": 192298,
"auth... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192153",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17965/"
] |
192,200 | <p>I have to do a cross site POST (with a redirection, so not using a XMLHTTPRequest), and the base platform is ASP.NET. I don't want to POST all of the controls in the ASP.NET FORM to this other site, so I was considering dynamicly creating a new form element using javascript and just posting that.</p>
<p>Has anyone ... | [
{
"answer_id": 192212,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": " <asp:TemplateField HeaderText=\"Station\" SortExpression=\"Name\">\n <ItemTemplate>\n <a href=\"javascript:vo... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] |
192,203 | <p>How do I do this</p>
<pre><code>Select top 10 Foo from MyTable
</code></pre>
<p>in Linq to SQL?</p>
| [
{
"answer_id": 192209,
"author": "David Alpert",
"author_id": 8997,
"author_profile": "https://Stackoverflow.com/users/8997",
"pm_score": 8,
"selected": true,
"text": "from m in MyTable\ntake 10\nselect m.Foo\n"
},
{
"answer_id": 192222,
"author": "Adam Lassek",
"author_i... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/239663/"
] |
192,206 | <p>Is there a method, or some other light-weight way, to check if a reference is to a disposed object?</p>
<p>P.S. - This is just a curiousity (sleep well, not in production code). Yes, I know I can catch the <code>ObjectDisposedException</code> upon trying to access a member of the object.</p>
| [
{
"answer_id": 192226,
"author": "Ryan Lundy",
"author_id": 5486,
"author_profile": "https://Stackoverflow.com/users/5486",
"pm_score": 5,
"selected": false,
"text": "System.Windows.Forms.Control IsDisposed Dispose()"
},
{
"answer_id": 211470,
"author": "Scott Dorman",
"a... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192206",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9642/"
] |
192,213 | <p>This is the SQL that I want to accomplish:</p>
<pre><code>WHERE domain_nm + '\' + group_nm in ('DOMAINNAME\USERNAME1','DOMAINNAME2\USERNAME2')
</code></pre>
<p>I can't for the life of me find an appropriate Expression for this. And I don't think I can use two expressions as the domain name and the group name need... | [
{
"answer_id": 214260,
"author": "kͩeͣmͮpͥ ͩ",
"author_id": 26479,
"author_profile": "https://Stackoverflow.com/users/26479",
"pm_score": 2,
"selected": false,
"text": "criteria\n .Add(Expression.In(\"DomainName\", new string[] { \"DOMAINNAME\", \"DOMAINNAME2\" }))\n .Add(Expression.In... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26896/"
] |
192,220 | <p>Assume you have a flat table that stores an ordered tree hierarchy:</p>
<pre><code>Id Name ParentId Order
1 'Node 1' 0 10
2 'Node 1.1' 1 10
3 'Node 2' 0 20
4 'Node 1.1.1' 2 10
5 'Node 2.1' 3 10
6 'Node 1.2' ... | [
{
"answer_id": 192252,
"author": "wcm",
"author_id": 2173,
"author_profile": "https://Stackoverflow.com/users/2173",
"pm_score": 2,
"selected": false,
"text": "function PrintLevel (int curr, int level)\n //print the indents\n for (i=1; i<=level; i++)\n print a tab\n print... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18771/"
] |
192,228 | <p>I'm not much of a coder, but I need to write a simple <em>preg_replace</em> statement in PHP that will help me with a WordPress plugin. Basically, I need some code that will search for a string, pull out the video ID, and return the embed code with the video id inserted into it. </p>
<p>In other words, I'm search... | [
{
"answer_id": 192239,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 2,
"selected": false,
"text": "$str = preg_replace('/\\[youtube=.*?v=([a-z0-9_-]+?)&.*?\\]/i', 'param name=\"movie\" value=\"http://www.youtube.com/v/$1&hl=... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192228",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
192,249 | <p>Say, I have a script that gets called with this line:</p>
<pre><code>./myscript -vfd ./foo/bar/someFile -o /fizz/someOtherFile
</code></pre>
<p>or this one:</p>
<pre><code>./myscript -v -f -d -o /fizz/someOtherFile ./foo/bar/someFile
</code></pre>
<p>What's the accepted way of parsing this such that in each case (o... | [
{
"answer_id": 192266,
"author": "Matt J",
"author_id": 18528,
"author_profile": "https://Stackoverflow.com/users/18528",
"pm_score": 7,
"selected": false,
"text": "getopt() getopts() #!/bin/bash\necho \"Before getopt\"\nfor i\ndo\n echo $i\ndone\nargs=`getopt abc:d $*`\nset -- $args\ne... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1512/"
] |
192,256 | <p>What would be the best method to implement extra functionality in a database layer that uses Linq-to-SQL? Currently I'm looking at implementing functions for adding information based on presets and similar tasks?</p>
<p>Inserts, updates and deletes requires access to the <code>DataContext</code> and in the <code>Ta... | [
{
"answer_id": 7253842,
"author": "dougajmcdonald",
"author_id": 777733,
"author_profile": "https://Stackoverflow.com/users/777733",
"pm_score": 1,
"selected": false,
"text": "public static class StringExtensions \n{\n public static int ToInt(this string oString)\n {\n retur... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26746/"
] |
192,260 | <p>I am currently working on a website to track projects. In it, it is possible to create Service Level Agreements (SLAs). These are configurable with days of the week that a project can be worked on and also the timespan on each of those days. Eg. on Monday it might be between 08:00 and 16:00 and then on friday from 1... | [
{
"answer_id": 192307,
"author": "Ian Jacobs",
"author_id": 22818,
"author_profile": "https://Stackoverflow.com/users/22818",
"pm_score": 1,
"selected": false,
"text": "public DateTime getDeadline(SubmitTime, ProjectTimeAllowed)\n{\n if (SubmitTime+ProjectTimeAllowed >= DayEndTime)\n ... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26841/"
] |
192,261 | <p>Using something like this:</p>
<pre><code>try:
# Something...
except Exception as excep:
logger = logging.getLogger("component")
logger.warning("something raised an exception: " + excep)
logger.info("something raised an exception: " + excep)
</code></pre>
<p>I would rather not have it on the error-leve... | [
{
"answer_id": 193153,
"author": "Douglas Leeder",
"author_id": 3978,
"author_profile": "https://Stackoverflow.com/users/3978",
"pm_score": 8,
"selected": true,
"text": "kwargs exc_info stack_info extra exc_info sys.exc_info() sys.exc_info() logger.warning(\"something raised an exception... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192261",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26905/"
] |
192,264 | <p>I have a page that is hitting a webservice every 5 seconds to update the information on the page. I'm using the DynamicPopulateExtender from the Ajax Control Toolkit to just populate a panel with some text.</p>
<p>What I was wanting to do, is if a certain condition is met, to refresh the page completely. </p>
<p>A... | [
{
"answer_id": 192393,
"author": "Alfred B. Thordarson",
"author_id": 3379,
"author_profile": "https://Stackoverflow.com/users/3379",
"pm_score": 2,
"selected": false,
"text": "<html xmlns=\"http://www.w3.org/1999/xhtml\" >\n<head runat=\"server\">\n <title>Untitled Page</title>\n\n ... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21828/"
] |
192,292 | <p>The way you would normally include a script is with "source"</p>
<p>eg:</p>
<p>main.sh:</p>
<pre><code>#!/bin/bash
source incl.sh
echo "The main script"
</code></pre>
<p>incl.sh:</p>
<pre><code>echo "The included script"
</code></pre>
<p>The output of executing "./main.sh" is:</p>
<pre><code>The included sc... | [
{
"answer_id": 192305,
"author": "Chris Boran",
"author_id": 25660,
"author_profile": "https://Stackoverflow.com/users/25660",
"pm_score": 9,
"selected": true,
"text": "#!/bin/sh\n\nmy_dir=\"$(dirname \"$0\")\"\n\n\"$my_dir/other_script.sh\"\n"
},
{
"answer_id": 192306,
"auth... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16258/"
] |
192,294 | <p>Background: We develop win32 applications, and use the "Thompson Toolkit" on windows to give us a unix-like shell that we use as our command-line.</p>
<p>We have a GUI program (with a WinMain and message loop) that we want to write to the console, but printf and so on don't work, even when we launch the program fro... | [
{
"answer_id": 4990664,
"author": "bkausbk",
"author_id": 575491,
"author_profile": "https://Stackoverflow.com/users/575491",
"pm_score": 1,
"selected": false,
"text": "AllocConsole AttachConsole GetStdHandle _open_osfhandle stdin stdout printf"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/192294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13500/"
] |
192,313 | <p>I'm writing a Windows Forms Application in C#.NET</p>
<p>On startup, the application displays a splash screen which is running in a separate thread. Whilst the splash screen is showing, the main application is initialising.</p>
<p>Once the main application has finished initialising, the main form of the applicati... | [
{
"answer_id": 192523,
"author": "Jack Bolding",
"author_id": 5882,
"author_profile": "https://Stackoverflow.com/users/5882",
"pm_score": 0,
"selected": false,
"text": "private void button1_Click(object sender, System.EventArgs e)\n{\n this.DialogResult = DialogResult.Abort;\n th... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26906/"
] |
192,319 | <p>How can I determine the name of the Bash script file inside the script itself?</p>
<p>Like if my script is in file <code>runme.sh</code>, then how would I make it to display "You are running runme.sh" message without hardcoding that?</p>
| [
{
"answer_id": 192337,
"author": "Tanktalus",
"author_id": 23512,
"author_profile": "https://Stackoverflow.com/users/23512",
"pm_score": 11,
"selected": true,
"text": "me=`basename \"$0\"`\n me=\"$(basename \"$(test -L \"$0\" && readlink \"$0\" || echo \"$0\")\")\"\n foo.sh bar.sh bar.sh... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20390/"
] |
192,329 | <p>I have boiled down an issue I'm seeing in one of my applications to an incredibly simple reproduction sample. I need to know if there's something amiss or something I'm missing.</p>
<p>Anyway, below is the code. The behavior is that the code runs and steadily grows in memory until it crashes with an OutOfMemoryExce... | [
{
"answer_id": 192421,
"author": "Joel B Fant",
"author_id": 22211,
"author_profile": "https://Stackoverflow.com/users/22211",
"pm_score": 0,
"selected": false,
"text": "Timer public partial class Window1 : Window {\n Class1 c;\n DispatcherTimer t;\n int count = 0;\n public W... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192329",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13322/"
] |
192,332 | <p>What I am looking for is a way to call a method after another method has been invoked but before it is entered. Example:</p>
<pre><code>public class Test {
public void Tracer ( ... )
{
}
public int SomeFunction( string str )
{
return 0;
}
public void TestFun()
{
SomeFunction( "" );
}
}... | [
{
"answer_id": 192355,
"author": "Bob King",
"author_id": 6897,
"author_profile": "https://Stackoverflow.com/users/6897",
"pm_score": 2,
"selected": false,
"text": "public int SomeFunction(string str)\n{\n Tracer();\n return SomeFunctionCore(str);\n}\n\nprivate int SomeFunctionCore... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2415/"
] |
192,345 | <p>I would like to use Pylons with Elixir, however, I am not sure what is the best way to get about doing this. There are several blog posts (<a href="http://cleverdevil.org/computing/68/" rel="nofollow noreferrer" title="cleverdevil's technique">cleverdevil</a>, <a href="http://beachcoder.wordpress.com/2007/05/11/... | [
{
"answer_id": 192355,
"author": "Bob King",
"author_id": 6897,
"author_profile": "https://Stackoverflow.com/users/6897",
"pm_score": 2,
"selected": false,
"text": "public int SomeFunction(string str)\n{\n Tracer();\n return SomeFunctionCore(str);\n}\n\nprivate int SomeFunctionCore... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12682/"
] |
192,366 | <p>Is it possible to grab activedirectory credentials for the user on a client machine from within a web application?</p>
<p>To clarify, I am designing a web application which will be hosted on a client's intranet. </p>
<p>There is a requirement that the a user of the application not be prompted for credentials when... | [
{
"answer_id": 192414,
"author": "Sean Hanley",
"author_id": 7290,
"author_profile": "https://Stackoverflow.com/users/7290",
"pm_score": 3,
"selected": false,
"text": "using System.DirectoryServices;\n\n/// <summary>\n/// Gets the email address, if defined, of a user from Active Director... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192366",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26527/"
] |
192,367 | <p>I have the following two models:</p>
<pre><code>class Activity(models.Model):
name = models.CharField(max_length=50, help_text='Some help.')
entity = models.ForeignKey(CancellationEntity)
...
class Cancellation(models.Model):
activity = models.ForeignKey(Activity)
date = models.DateField(defau... | [
{
"answer_id": 192525,
"author": "willurd",
"author_id": 1943957,
"author_profile": "https://Stackoverflow.com/users/1943957",
"pm_score": 5,
"selected": true,
"text": "from django.db.models.signals import post_save\n\nclass Activity(models.Model):\n name = models.CharField(max_length... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10825/"
] |
192,373 | <p>Is it possible to programmatically force a full garbage collection run in ActionScript 3.0?</p>
<p>Let's say I've created a bunch of Display objects with eventListeners and some of the DO's have been removed, some of the eventListeners have been triggered and removed etc... Is there a way to force garbage collectio... | [
{
"answer_id": 192418,
"author": "davr",
"author_id": 14569,
"author_profile": "https://Stackoverflow.com/users/14569",
"pm_score": 6,
"selected": true,
"text": "System.gc()"
},
{
"answer_id": 2295438,
"author": "FredV",
"author_id": 30829,
"author_profile": "https://... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10875/"
] |
192,375 | <p>When using <code>before_filter :login_required</code> to protect a particular page, the <code>link_to_unless_current</code> method in the application layout template renders the "Login" link for the login page as a hyperlink instead of just text.</p>
<p>The "Login" text/link problem only occurs when redirected to t... | [
{
"answer_id": 527112,
"author": "Toby Hede",
"author_id": 14971,
"author_profile": "https://Stackoverflow.com/users/14971",
"pm_score": 1,
"selected": false,
"text": " redirect_to login_url\n"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/192375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
192,398 | <p>I am selecting from a table that has an XML column using T-SQL. I would like to select a certain type of node and have a row created for each one.</p>
<p>For instance, suppose I am selecting from a <em>people</em> table. This table has an XML column for <em>addresses</em>. The XML is formated similar to the followi... | [
{
"answer_id": 192445,
"author": "Wyatt",
"author_id": 26626,
"author_profile": "https://Stackoverflow.com/users/26626",
"pm_score": -1,
"selected": false,
"text": "var addresses = dataContext.People.Addresses\n .Elements(\"address\")\n .Select(address => new { \n st... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3645/"
] |
192,413 | <p>I have a RichTextBox where I need to update the Text property frequently, but when I do so the RichTextBox "blinks" annoyingly as it refreshes all throughout a method call.</p>
<p>I was hoping to find an easy way to temporarily suppress the screen refresh until my method is done, but the only thing I've found on th... | [
{
"answer_id": 192423,
"author": "BKimmel",
"author_id": 13776,
"author_profile": "https://Stackoverflow.com/users/13776",
"pm_score": -1,
"selected": false,
"text": "myRichTextBox.SuspendLayout();\nDoStuff();\nmyRichTextBox.ResumeLayout();\n"
},
{
"answer_id": 192461,
"autho... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
192,417 | <p>Personally, I find the range of functionality provided by java.util.Iterator to be fairly pathetic. At a minimum, I'd like to have methods such as:</p>
<ul>
<li>peek() returns next element without moving the iterator forward</li>
<li>previous() returns the previous element</li>
</ul>
<p>Though there are lots of ot... | [
{
"answer_id": 192449,
"author": "William",
"author_id": 9193,
"author_profile": "https://Stackoverflow.com/users/9193",
"pm_score": 4,
"selected": false,
"text": "previous() java.util.ListIterator public <T> T peek(ListIterator<T> iter) throws NoSuchElementException {\n T obj = iter.... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192417",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2648/"
] |
192,432 | <p>I've tried to use the new <a href="http://groovy.codehaus.org/Grape" rel="noreferrer">Groovy Grape</a> capability in Groovy 1.6-beta-2 but I get an error message;</p>
<pre><code>unable to resolve class com.jidesoft.swing.JideSplitButton
</code></pre>
<p>from the Groovy Console (/opt/groovy/groovy-1.6-beta-2/bin/gr... | [
{
"answer_id": 194403,
"author": "shemnon",
"author_id": 8020,
"author_profile": "https://Stackoverflow.com/users/8020",
"pm_score": 4,
"selected": true,
"text": "groovy.grape.Grape.initGrape()\n import com.jidesoft.swing.JideSplitButton\n\n@Grab(group='com.jidesoft', module='jide-oss', ... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6580/"
] |
192,454 | <p>I have TortoiseSVN set up to use KDiff3 as the conflict resolution tool (I find it shows more information useful to the merge than the built-in TortoiseMerge does).</p>
<p>When I open a file with Tortoise's "Edit Conflicts" command it shows me the three files and I have to select "Merge->Merge Current File" manuall... | [
{
"answer_id": 192558,
"author": "Owen",
"author_id": 4790,
"author_profile": "https://Stackoverflow.com/users/4790",
"pm_score": 3,
"selected": false,
"text": "kdiff3.exe -o C:\\Program Files\\KDiff3\\kdiff3.exe %base %theirs %mine -o %merged\n"
},
{
"answer_id": 200657,
"au... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4790/"
] |
192,456 | <p>I would like to set the log file name for a log4j and log4net appender to have the current date. We are doing Daily rollovers but the current log file does not have a date. The log file name format would be </p>
<pre><code>logname.2008-10-10.log
</code></pre>
<p>Anyone know the best way for me to do this?</p>
<... | [
{
"answer_id": 192548,
"author": "gedevan",
"author_id": 20225,
"author_profile": "https://Stackoverflow.com/users/20225",
"pm_score": 7,
"selected": true,
"text": "<appender name=\"roll\" class=\"org.apache.log4j.DailyRollingFileAppender\">\n <param name=\"File\" value=\"application.... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/387361/"
] |
192,527 | <p>I've been researching memory mapped files for a project and would appreciate any thoughts from people who have either used them before, or decided against using them, and why?</p>
<p>In particular, I am concerned about the following, in order of importance:</p>
<ul>
<li>concurrency</li>
<li>random access</li>
<li>... | [
{
"answer_id": 192672,
"author": "bog",
"author_id": 20909,
"author_profile": "https://Stackoverflow.com/users/20909",
"pm_score": 5,
"selected": false,
"text": "11111111\n22222222\n11112222\n22221111\n"
},
{
"answer_id": 192674,
"author": "Brian Ensink",
"author_id": 125... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10184/"
] |
192,539 | <p>I have a .NET application that processes around 300,000 records in a batch import, and it takes a few seconds per record so I would like to parallelize this. In the following code, what's the difference between <code>ProcessWithAnsycDelegates()</code> and <code>ProcessWithThreadPool()</code>?</p>
<pre><code>public ... | [
{
"answer_id": 192580,
"author": "chadmyers",
"author_id": 10862,
"author_profile": "https://Stackoverflow.com/users/10862",
"pm_score": 4,
"selected": true,
"text": "QueueUserWorkItem() BeginInvoke()"
},
{
"answer_id": 194648,
"author": "Thomas Bratt",
"author_id": 15985... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1659/"
] |
192,549 | <p>I have a controller method that returns a list for a drop down that gets rendered in a partial, but depending on where the partial is being used, the RJS template needs to be different. Can I pass a parameter to the controller that will determine which RJS gets used?</p>
<p>Here is the controller method, it is very... | [
{
"answer_id": 192867,
"author": "Mike Breen",
"author_id": 22346,
"author_profile": "https://Stackoverflow.com/users/22346",
"pm_score": 1,
"selected": false,
"text": "if params[:use_alternate]\n render :template => alternate.rjs and return\nend\n"
},
{
"answer_id": 192910,
... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1486/"
] |
192,553 | <p>I am currently in the process of making a new ASP.net MVC website, and find myself using Html.Encode all over the place, which is good practice, but gets pretty messy. I think a good way to clean this up would be if I could overload an operator to automatically do Html encoding. </p>
<p>Previously:</p>
<pre><code>... | [
{
"answer_id": 192564,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": -1,
"selected": false,
"text": "public static String h (this System.Object o, System.Object viewData)\n{\n return Html.Encode(viewData);\n}\n <%=h(ViewD... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24841/"
] |
192,570 | <p>The project I'm working on uses a window.onerror event handler to report user problems. I've noticed a single user that just cannot seem to load the Google Analytics script. Our site doesn't see a lot of traffic so I'm not sure how widespread this is, but so far it seems to just effect one user. </p>
<p>His user... | [
{
"answer_id": 7686057,
"author": "Karl Bartel",
"author_id": 114926,
"author_profile": "https://Stackoverflow.com/users/114926",
"pm_score": 3,
"selected": false,
"text": "[11:35:57.428] uncaught exception: [Exception... \"prompt aborted by user\" nsresult: \"0x80040111 (NS_ERROR_NOT_A... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192570",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1423/"
] |
192,575 | <p>How do I transfer the users of a vBulletin forum to a new installation of IceBB?</p>
| [
{
"answer_id": 7686057,
"author": "Karl Bartel",
"author_id": 114926,
"author_profile": "https://Stackoverflow.com/users/114926",
"pm_score": 3,
"selected": false,
"text": "[11:35:57.428] uncaught exception: [Exception... \"prompt aborted by user\" nsresult: \"0x80040111 (NS_ERROR_NOT_A... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5509/"
] |
192,584 | <p>I have a listbox that is databound to a Collection of objects. The listbox is configured to display an identifier property of each object. I would like to show a tooltip with information specific to the item within the listbox that is being hovered over rather than one tooltip for the listbox as a whole.</p>
<p>I... | [
{
"answer_id": 192654,
"author": "Michael Lang",
"author_id": 19452,
"author_profile": "https://Stackoverflow.com/users/19452",
"pm_score": 5,
"selected": true,
"text": "private ITypeOfObjectsBoundToListBox DetermineHoveredItem()\n{\n Point screenPosition = ListBox.MousePosition;\n ... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19452/"
] |
192,641 | <p>I recently wrote a DLL in C# (.Net 2.0) which contains a class that requires an IP address. A co-worker of mine altered the class to retrieve the IP from a ".dll.config" (XML) file -- This apparently is automatically generated by the "Application Settings" file he created (Settings1.settings). The benefit of this wa... | [
{
"answer_id": 192828,
"author": "Howard Pinsley",
"author_id": 7961,
"author_profile": "https://Stackoverflow.com/users/7961",
"pm_score": 3,
"selected": false,
"text": " [global::System.Configuration.ApplicationScopedSettingAttribute()]\n [global::System.Diagnostics.DebuggerNonUs... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192641",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21244/"
] |
192,643 | <p>How do I determine if a <code>Nullable(of Enum)</code> is indeed an <code>Enum</code> by means of reflection?</p>
<p>I'm working with a method that dynamically populates an object of type <code>T</code> with an <code>IDataReader</code> retrieved from a database call. At its essence, it loops through the datareader... | [
{
"answer_id": 192706,
"author": "OregonGhost",
"author_id": 20363,
"author_profile": "https://Stackoverflow.com/users/20363",
"pm_score": 4,
"selected": true,
"text": "PropertyInfo.PropertyType IsGenericType GetGenericTypeDefinition() typeof(Nullable<>) Enum Nullable.GetUnderlyingType(p... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192643",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13611/"
] |
192,648 | <p>OK, so I'm trying to teach myself the CakePHP framework, and I'm trying to knock up a simple demo app for myself.</p>
<p>I have the controllers, views and models all set up and working, but I want to do something slightly more than the basic online help shows.</p>
<p>I have a guitars_controller.php file as follows... | [
{
"answer_id": 192657,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 0,
"selected": false,
"text": "$this->pageTitle = $this->Guitar->Name;\n"
},
{
"answer_id": 192737,
"author": "Paolo Bergantino",
"author_i... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/377/"
] |
192,649 | <p>Ruby can add methods to the Number class and other core types to get effects like this:</p>
<pre class="lang-rb prettyprint-override"><code>1.should_equal(1)
</code></pre>
<p>But it seems like Python cannot do this. Is this true? And if so, why? Does it have something to do with the fact that <em>type</em> can't be ... | [
{
"answer_id": 192681,
"author": "HanClinto",
"author_id": 26933,
"author_profile": "https://Stackoverflow.com/users/26933",
"pm_score": 2,
"selected": false,
"text": "import TelnetConnection\n import TelnetConnectionExtended as TelnetConnection\n"
},
{
"answer_id": 192703,
"... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192649",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5304/"
] |
192,653 | <p>I'm using .NET 3.5 and I have a class, A, marked as internal sealed partial and it derives from System.Configuration.ApplicationSettingsBase. I then use an instance of this class in the following manner:</p>
<pre><code>A A_Instance = new A();
A_Instance.Default.Save();
</code></pre>
<p>Why would the Visual C# comp... | [
{
"answer_id": 192690,
"author": "Greg Dean",
"author_id": 1200558,
"author_profile": "https://Stackoverflow.com/users/1200558",
"pm_score": 3,
"selected": true,
"text": "private static ServerSettings defaultInstance = ((ServerSettings)(global::System.Configuration.ApplicationSettingsBas... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2836/"
] |
192,686 | <p>Difficult question. The answer is probably no, if all I found in the Intertubes is right, but it is worth a try. I need to override the <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Esc</kbd> and the <kbd>Ctrl</kbd> + <kbd>Esc</kbd> combinations. It would be good to be able to override the <kbd>Win</kbd> key combination... | [
{
"answer_id": 43309345,
"author": "Michael Z.",
"author_id": 4114591,
"author_profile": "https://Stackoverflow.com/users/4114591",
"pm_score": 0,
"selected": false,
"text": "RegisterHotKey HookManager //It's worth noting here that if you subscribe to the Key_Press event then it will bre... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5954/"
] |
192,693 | <p>I'm writing a routine that validates data before inserting it into a database, and one of the steps is to see if numeric values fit the precision and scale of a Numeric(x,y) SQL-Server type. </p>
<p>I have the precision and scale from SQL-Server already, but what's the most efficient way in C# to get the precision ... | [
{
"answer_id": 192906,
"author": "Jimmy",
"author_id": 4435,
"author_profile": "https://Stackoverflow.com/users/4435",
"pm_score": 5,
"selected": true,
"text": "System.Data.SqlTypes.SqlDecimal.ConvertToPrecScale( new SqlDecimal (1234.56789), 8, 2)\n"
},
{
"answer_id": 38383700,
... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5548/"
] |
192,697 | <p>How do you fix a names mismatch problem, if the client-side names are keywords or reserved words in the server-side language you are using?</p>
<p>The DOJO JavaScript toolkit has a QueryReadStore class that you can subclass to submit REST patterned queries to the server. I'm using this in conjunction w/ the Filteri... | [
{
"answer_id": 452537,
"author": "MojoMark",
"author_id": 56056,
"author_profile": "https://Stackoverflow.com/users/56056",
"pm_score": 0,
"selected": false,
"text": "create or replace package pkg_name\n TYPE plsqltable\n IS\n TABLE OF VARCHAR2 (32000)\n INDEX BY BINARY... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
192,715 | <p>Take this non-compiling code for instance:</p>
<pre><code>public string GetPath(string basefolder, string[] extraFolders)
{
string version = Versioner.GetBuildAndDotNetVersions();
string callingModule = StackCrawler.GetCallingModuleName();
return AppendFolders(basefolder, version, callingModule, extraFo... | [
{
"answer_id": 192758,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 3,
"selected": false,
"text": "AppendFolders(extraFolders);\n List<string> lstFolders = new List<string>(extraFolders);\nlstFolder.Insert(0, calling... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9251/"
] |
192,718 | <p>I need to run a JNDI provider without the overhead of a J2EE container. I've tried to follow the directions in this <a href="http://www.javaworld.com/javaworld/jw-04-2002/jw-0419-jndi.html" rel="noreferrer">article</a>, which describes (on page 3) exactly what I want to do. Unfortunately, these directions fail. I... | [
{
"answer_id": 192936,
"author": "KC Baltz",
"author_id": 9910,
"author_profile": "https://Stackoverflow.com/users/9910",
"pm_score": 2,
"selected": false,
"text": "java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory\n\n# use the following property to confi... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13816/"
] |
192,721 | <p>In <a href="https://stackoverflow.com/users/23233/mmalc">@mmalc's</a> <a href="https://stackoverflow.com/questions/155964/what-are-best-practices-that-you-use-when-writing-objective-c-and-cocoa#156288">response</a> to <a href="https://stackoverflow.com/questions/155964/what-are-best-practices-that-you-use-when-writi... | [
{
"answer_id": 192852,
"author": "Andrew Grant",
"author_id": 1043,
"author_profile": "https://Stackoverflow.com/users/1043",
"pm_score": 5,
"selected": false,
"text": "@implementation Example\n\n-(void) setFoo:(Foo*)foo\n{\n _foo = foo;\n [_observer onPropertyChange:self object:foo];... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23113/"
] |
192,725 | <p>I have just started learning Erlang and am trying out some Project Euler problems to get started. However, I seem to be able to do any operations on large sequences without crashing the erlang shell.</p>
<p>Ie.,even this:</p>
<pre><code>list:seq(1,64000000).
</code></pre>
<p>crashes erlang, with the error:</p>
... | [
{
"answer_id": 193804,
"author": "Darius Bacon",
"author_id": 27024,
"author_profile": "https://Stackoverflow.com/users/27024",
"pm_score": 5,
"selected": true,
"text": "-module(lazy).\n-export([seq/2]).\n\nseq(M, N) when M =< N ->\n fun() -> [M | seq(M+1, N)] end;\nseq(_, _) ->\n ... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7856/"
] |
192,736 | <p>A word of warning: I'm a n00b to <code>git</code> in general. My team uses feature branches in <code>svn</code>, and I'd like to use <code>git-svn</code> to track my work on a particular feature branch. I've been (roughly) following <a href="http://andy.delcambre.com/2008/03/04/git-svn-workflow.html" rel="noreferrer... | [
{
"answer_id": 197453,
"author": "Hank Gay",
"author_id": 4203,
"author_profile": "https://Stackoverflow.com/users/4203",
"pm_score": 7,
"selected": true,
"text": "git git checkout -b git-topic-branch-foo foo\n foo"
},
{
"answer_id": 696304,
"author": "Sam Mulube",
"autho... | 2008/10/10 | [
"https://Stackoverflow.com/questions/192736",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4203/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.