qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
378,415 | <p>I have a string <code>User name (sales)</code> and I want to extract the text between the brackets, how would I do this? </p>
<p>I suspect sub-string but I can't work out how to read until the closing bracket, the length of text will vary.</p>
| [
{
"answer_id": 378433,
"author": "chills42",
"author_id": 23855,
"author_profile": "https://Stackoverflow.com/users/23855",
"pm_score": 4,
"selected": false,
"text": "\\(([a-z]+?)\\)\n"
},
{
"answer_id": 378446,
"author": "Jennifer",
"author_id": 22360,
"author_profil... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378415",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
378,422 | <p>Apparently I can't move files on different volumes using Directory.Move.</p>
<p>I have read that I have to copy each file individually to the destination, then delete the source directory.</p>
<p>Do I have any other option?</p>
| [
{
"answer_id": 378487,
"author": "Martijn Laarman",
"author_id": 47020,
"author_profile": "https://Stackoverflow.com/users/47020",
"pm_score": 2,
"selected": false,
"text": "UnauthorizedAccessException"
},
{
"answer_id": 38370485,
"author": "NePh",
"author_id": 1603095,
... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378422",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39677/"
] |
378,428 | <pre><code>$c = $record['corrects'];
$i = $record['incorrects'];
if($c == 0 && $i == 0)
{
$image = imagecreatetruecolor(200,80);
$white = imagecolorallocate($image,255,255,255);
$red = imagecolorallocate($image,255,0,0);
imagefilledrectangle($image,0,0,199,79,$white);
$text = 'Quiz cance... | [
{
"answer_id": 378459,
"author": "David Heggie",
"author_id": 4309,
"author_profile": "https://Stackoverflow.com/users/4309",
"pm_score": 1,
"selected": false,
"text": "<?php\n// Set the enviroment variable for GD\nputenv('GDFONTPATH=' . realpath('.'));\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/378428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47468/"
] |
378,441 | <p>I've an MFC application that currently uses CAtlHttpClient to query a web server for some information.</p>
<p>I'd like to change this so that the query goes over securely, with server authentication, using SSL.</p>
<p>Googling reveals that Microsoft has changed the way they support this several times, e.g., WinIne... | [
{
"answer_id": 31977621,
"author": "Richard Chambers",
"author_id": 1466970,
"author_profile": "https://Stackoverflow.com/users/1466970",
"pm_score": 0,
"selected": false,
"text": "WinINet"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/378441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47466/"
] |
378,449 | <p>I want to use RSpec mocks to provide canned input to a block.</p>
<p>Ruby:</p>
<pre><code>class Parser
attr_accessor :extracted
def parse(fname)
File.open(fname).each do |line|
extracted = line if line =~ /^RCS file: (.*),v$/
end
end
end
</code></pre>
<p>RSpec:</p>
<pre><code>describe Parser... | [
{
"answer_id": 378605,
"author": "James Mead",
"author_id": 2025138,
"author_profile": "https://Stackoverflow.com/users/2025138",
"pm_score": 3,
"selected": true,
"text": "and_yields"
},
{
"answer_id": 379572,
"author": "Jeff Waltzer",
"author_id": 23513,
"author_prof... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11414/"
] |
378,456 | <p>Is there a javascript function to swap a still image(jpg) to a movie(swf)? If there is is there a disjointed swap image path?</p>
| [
{
"answer_id": 378521,
"author": "Jack",
"author_id": 24998,
"author_profile": "https://Stackoverflow.com/users/24998",
"pm_score": 2,
"selected": false,
"text": "<div id=\"still_image\" style=\"display:block\">\n <!-- img code here -->\n</div>\n\n\n<div id=\"ani_swf\" style=\"display... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
378,465 | <p>I just recently noticed <code>Dictionary.TryGetValue(TKey key, out TValue value)</code> and was curious as to which is the better approach to retrieving a value from the Dictionary.</p>
<p>I've traditionally done:</p>
<pre><code>if (myDict.Contains(someKey))
someVal = myDict[someKey];
...
</code></pre>
... | [
{
"answer_id": 378477,
"author": "Micah",
"author_id": 17744,
"author_profile": "https://Stackoverflow.com/users/17744",
"pm_score": 7,
"selected": true,
"text": "public bool TryGetValue(TKey key, out TValue value)\n{\n int index = this.FindEntry(key);\n if (index >= 0)\n {\n ... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8945/"
] |
378,485 | <p>I have the follow Linq query ... which executes correctly:</p>
<pre><code>from t in Tasks
where LookupTaskStarted(t.TaskId) == true
select new
{
t.TaskId,
t.Number,
Started = LookupTaskStarted(t.TaskId)
}
</code></pre>
<p>Is there anyway to create this as a property on the Linq-To-Sql class? Or do ... | [
{
"answer_id": 378618,
"author": "Bryan Watts",
"author_id": 37815,
"author_profile": "https://Stackoverflow.com/users/37815",
"pm_score": 2,
"selected": true,
"text": "let"
},
{
"answer_id": 378689,
"author": "James Curran",
"author_id": 12725,
"author_profile": "htt... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1768/"
] |
378,490 | <p>I'm running on win2003 server, PHP 526, via the cmd-line.</p>
<p>I have a cmdline string:</p>
<pre><code>$cmd = ' "d:\Prog Files\foo.exe" -p "d:\data path\datadir" ';
</code></pre>
<p>Trying to do this in php code</p>
<pre><code>$out = `$cmd`; # note use of backticks AKA shell_exec
</code></pre>
<p>re... | [
{
"answer_id": 1545523,
"author": "user187383",
"author_id": 187383,
"author_profile": "https://Stackoverflow.com/users/187383",
"pm_score": 0,
"selected": false,
"text": "exec('cmd /c \" '.$path.' \"';\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/378490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23598/"
] |
378,492 | <p>I have 2 components for example (editor.mxml using mx:windows), when I click an edit button, I want to get the current value from the other component's datafield? (datagrid.mxml using mx:window)</p>
<p>I do know how to access the main MXML's datagrid by parentDocument or Application.application method, but stumped ... | [
{
"answer_id": 380269,
"author": "hasseg",
"author_id": 4111,
"author_profile": "https://Stackoverflow.com/users/4111",
"pm_score": 1,
"selected": false,
"text": "A"
},
{
"answer_id": 4160164,
"author": "czerasz",
"author_id": 325852,
"author_profile": "https://Stacko... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
378,493 | <p>I wanted to create my own Python exception class, like this:</p>
<pre><code>class MyException(BaseException):
def __init__(self, errno, address):
if errno == 10048:
mess = str(address) + ' is already in use'
else:
mess = 'Unable to open ' + str(address)
BaseExcept... | [
{
"answer_id": 378514,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": true,
"text": "BaseException.__init__(self, mess)\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/378493",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11677/"
] |
378,498 | <p><a href="http://msdn.microsoft.com/en-us/netframework/aa569603.aspx" rel="nofollow noreferrer">BCL</a></p>
<p>Specifically, am I breaking the EULA by doing this? </p>
| [
{
"answer_id": 378509,
"author": "Greg Beech",
"author_id": 13552,
"author_profile": "https://Stackoverflow.com/users/13552",
"pm_score": 5,
"selected": true,
"text": "where /R \"%WINDIR%\\Microsoft.NET\" eula*.*\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/378498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4435/"
] |
378,515 | <p>I've noticed that boost.asio has a lot of examples involving sockets, serial ports, and all sorts of non-file examples. Google hasn't really turned up a lot for me that mentions if asio is a good or valid approach for doing asynchronous file i/o.</p>
<p>I've got gobs of data i'd like to write to disk asynchronously... | [
{
"answer_id": 35297114,
"author": "moof2k",
"author_id": 4343378,
"author_profile": "https://Stackoverflow.com/users/4343378",
"pm_score": 3,
"selected": false,
"text": "epoll"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/378515",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8123/"
] |
378,524 | <p>I'm trying to create a Regex usuable in C# that will allow me to take a list of single letters and/or letter groups and ensure that a word is only comprised of items from that list. For instance:</p>
<ul>
<li>'a' would match 'a', 'aa', 'aaa', but not 'ab'</li>
<li>'a b' would match 'a', 'ab', 'abba', 'b', but not '... | [
{
"answer_id": 378582,
"author": "Diadistis",
"author_id": 47401,
"author_profile": "https://Stackoverflow.com/users/47401",
"pm_score": 3,
"selected": true,
"text": "Regex regex = new Regex(@\"\\A(?:(a|b|abc)*)\\Z\");\n"
},
{
"answer_id": 378661,
"author": "Michael Burr",
... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378524",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9913/"
] |
378,534 | <p>How can I make a Property "ReadOnly" outside the Assembly (DLL) for people using the DLL but still be able to populate that property from within the assembly for them to read?</p>
<p>For example, if I have a <strong>Transaction</strong> object that needs to populate a property in a <strong>Document</strong> object ... | [
{
"answer_id": 378543,
"author": "Greg Beech",
"author_id": 13552,
"author_profile": "https://Stackoverflow.com/users/13552",
"pm_score": 3,
"selected": false,
"text": "get"
},
{
"answer_id": 378546,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stac... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47167/"
] |
378,548 | <p>How can you join between a table with a sparse number of dates and another table with an exhaustive number of dates such that the gaps between the sparse dates take the values of the previous sparse date?</p>
<p>Illustrative example:</p>
<pre><code>PRICE table (sparse dates):
date itemid price
2008-12-04 ... | [
{
"answer_id": 378572,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 2,
"selected": false,
"text": "SELECT v.date, p.price, v.volume\nFROM volume v\nLEFT JOIN Price p ON p.itemID=v.itemID\n AND p.[date] = (\n ... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41613/"
] |
378,555 | <p>when I press the Maximize button on my WPF app, all the controls therein expand perfectly horizontally, but they do not expand to fill the window vertically. I figure it Maximize handles it horizontally, it should handle it vertically as well. Should I be setting a property somewhere on each control? I can catch ... | [
{
"answer_id": 378677,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "<Window x:Class=\"MainScreen.Window1\"\n xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n xmlns:x=\... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
378,556 | <p>I'm having trouble getting this code to show up correctly in WebKit browsers(chrome/safari). It looks fine in IE6, IE7, and FireFox. </p>
<pre><code><table width="100%">
<tr>
<td rowspan="2" style="vertical-align:middle;">
<a href="http://http://{$smarty.const.DOMAIN}/co... | [
{
"answer_id": 413408,
"author": "Ross",
"author_id": 2025,
"author_profile": "https://Stackoverflow.com/users/2025",
"pm_score": 0,
"selected": false,
"text": "tr"
},
{
"answer_id": 1020958,
"author": "Travis",
"author_id": 307338,
"author_profile": "https://Stackove... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13778/"
] |
378,559 | <p>I restored my development database from production, and the stored procedures I need in my development environment doesn't exist in my production database. Is there a command Ii can use to import the developmetn stored procedures back into SQL Server. There are about 88 files, as each procedure is in a different t... | [
{
"answer_id": 378570,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 5,
"selected": true,
"text": "for %f in (*.sql) do sqlcmd -i %f\n"
},
{
"answer_id": 6538207,
"author": "David Q Hogan",
"author_id": 323931,... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36269/"
] |
378,564 | <p>Are there any sorts of useful idioms I can make use of when writing an API that is asynchronous? I would like to standardize on something as I seem to be using a few different styles throughout. It seems hard to make asynchronous code simple; I suppose this is because asynchronous operations are anything but.</p>
<... | [
{
"answer_id": 379525,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 2,
"selected": false,
"text": "class SomeClientInterface( object ):\n def update( self, source, data ):\n # handle data being pushed from Observ... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378564",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29825/"
] |
378,574 | <p>I'm using this to check for the availability of a URL:</p>
<pre><code>$fp = fsockopen($url, 443, $errno, $errstr);
</code></pre>
<p>and I get this error back...</p>
<p><strong>Warning: fsockopen() [function.fsockopen]: unable to connect to <a href="https://example.com/soapserver.php:443" rel="noreferrer">https://... | [
{
"answer_id": 4844906,
"author": "Sérgio",
"author_id": 532544,
"author_profile": "https://Stackoverflow.com/users/532544",
"pm_score": 6,
"selected": false,
"text": "extension=php_openssl.dll"
},
{
"answer_id": 42327389,
"author": "The Onin",
"author_id": 1325575,
"... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26107/"
] |
378,583 | <p>I have a simple function that I want to call in the code behind file name Move
and I was trying to see how this can be done and Im not using asp image button because not trying to use asp server side controls since they tend not to work well with ASP.net MVC..the way it is set up now it will look for a javascript fu... | [
{
"answer_id": 379017,
"author": "Craig Stuntz",
"author_id": 7714,
"author_profile": "https://Stackoverflow.com/users/7714",
"pm_score": 0,
"selected": false,
"text": "public ActionResult ShowMyPage();\n{\n return View();\n}\n"
},
{
"answer_id": 379668,
"author": "joshper... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378583",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39809/"
] |
378,596 | <p>I wrote a google map lookup page. Everthing worked fine until I referenced the page to use a master page. I removed the form tag from the master page as the search button on the map page is a submit button. Everything else on my page appears but the google map div appears with map navigation controls and logo but no... | [
{
"answer_id": 378667,
"author": "Chris Brandsma",
"author_id": 9443,
"author_profile": "https://Stackoverflow.com/users/9443",
"pm_score": 0,
"selected": false,
"text": "runat=\"server\""
},
{
"answer_id": 402458,
"author": "Community",
"author_id": -1,
"author_profi... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46064/"
] |
378,608 | <p>I have a set of data that models a hierarchy of categories. A root category contains a set of top-level categories. Each top-level category contains a set of sub-categories.</p>
<p>Each sub category has a set of organizations. A given organization can appear in multiple sub categories. </p>
<p>The leaf nodes of th... | [
{
"answer_id": 378646,
"author": "Tom H",
"author_id": 5696608,
"author_profile": "https://Stackoverflow.com/users/5696608",
"pm_score": 3,
"selected": true,
"text": "SELECT DISTINCT\n O.organization_id,\n O.organization_name\nFROM\n Categories CAT\nINNER JOIN Categories SUB ... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378608",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3238/"
] |
378,620 | <p>I have a RadioButtonList on my page that is populated via Data Binding</p>
<pre><code><asp:RadioButtonList ID="rb" runat="server">
</asp:RadioButtonList>
<asp:Button Text="Submit" OnClick="submit" runat="server" />
</code></pre>
<p>How do I get the value of the radio button that the user selected... | [
{
"answer_id": 378639,
"author": "terjetyl",
"author_id": 29519,
"author_profile": "https://Stackoverflow.com/users/29519",
"pm_score": 4,
"selected": false,
"text": "rb.SelectedValue"
},
{
"answer_id": 379229,
"author": "azamsharp",
"author_id": 3797,
"author_profile... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
378,622 | <p>Can someone tell me how can I extract a public keu in .pem format from a .cer file ?
I'm trying to configure webservice over https with nusoap.</p>
<p>Tks,
ED</p>
| [
{
"answer_id": 378690,
"author": "Douglas Leeder",
"author_id": 3978,
"author_profile": "https://Stackoverflow.com/users/3978",
"pm_score": 2,
"selected": false,
"text": "openssl x509 -inform der -in <certificate> -noout -pubkey\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/378622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
378,630 | <p>I am writing a DLL with mixed C/C++ code. I want to specify the ordinals of the functions I'm exporting. So I created a .DEF file that looks like this</p>
<pre><code>LIBRARY LEONMATH
EXPORTS
sca_alloc @1
vec_alloc @2
mat_alloc @3
sca_free @4
vec_free @5
mat_free @6
...... | [
{
"answer_id": 378751,
"author": "coppro",
"author_id": 16855,
"author_profile": "https://Stackoverflow.com/users/16855",
"pm_score": 3,
"selected": true,
"text": "class MyClass\n{\n void foo(int);\n int bar(int);\n double bar(double);\n void baz(MyClass);\n};\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/378630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46571/"
] |
378,632 | <p>I have the following html in my webpage (simplified).</p>
<pre><code><button type="submit" name="action" value="ButtonA">Click Here</button>
</code></pre>
<p>In Firefox, it submits "ButtonA" as the value for the "action" form value. However, in IE7, it submits "Click Here". Is there any way to resolv... | [
{
"answer_id": 378642,
"author": "Abram Simon",
"author_id": 46204,
"author_profile": "https://Stackoverflow.com/users/46204",
"pm_score": 0,
"selected": false,
"text": "<input type=\"submit\" />"
},
{
"answer_id": 378649,
"author": "Bullines",
"author_id": 27870,
"au... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1862/"
] |
378,638 | <p>If I have a <code>DropDownList</code> control that makes up part of a CompositeControl how can I expose the <code>SelectedIndexChanged</code> event to the consuming aspx page?</p>
<p>Thanks</p>
| [
{
"answer_id": 378843,
"author": "BFree",
"author_id": 15861,
"author_profile": "https://Stackoverflow.com/users/15861",
"pm_score": 2,
"selected": false,
"text": "public event EventHandler SelectedIndexChanged;\n"
},
{
"answer_id": 379030,
"author": "Brian Rudolph",
"aut... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39643/"
] |
378,643 | <p>The following event can possibly get called hundreds of times a frame.</p>
<pre><code>public bool OnCollision(Body body1, Body body2)
{
if(body2.Tag is Dog)
((Dog)body2.Tag).Bark();
}
</code></pre>
<p>I understand that using "is" causes a cast to be made and then when i want to do something with it, cast it... | [
{
"answer_id": 378657,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 5,
"selected": true,
"text": " if(body2.Tag is Dog)\n"
},
{
"answer_id": 378713,
"author": "joshperry",
"author_id": 30587,
"aut... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378643",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47489/"
] |
378,655 | <p>I want to exclude a subdirectories by pattern in subversion because the development tool we are using is generating them. Getting the tool to generate the directories elsewhere is not an option. We don't want to edit the global-ignore property in ~/.subversion/config as it is difficult to maintain consistency with ... | [
{
"answer_id": 378695,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 3,
"selected": true,
"text": "svn:ignore"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/378655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40800/"
] |
378,669 | <p>I am looking for best practice in building multiple visual basic projects(all dll's).We have multiple projects, and our final deliverable will be a dll.Now, one project uses 2 other projects, and another refers to another project.Should projects reference the vbp files, or the dll? If they reference vbp files, how ... | [
{
"answer_id": 397624,
"author": "Kb.",
"author_id": 49544,
"author_profile": "https://Stackoverflow.com/users/49544",
"pm_score": 2,
"selected": false,
"text": "\\project\\source\n\\project\\source\\project1\\\n\\project\\source\\project2\\\n...\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/378669",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9087/"
] |
378,678 | <p>Throughout the history of software development, it sometimes happens that some person (usually unknown, probably unwittingly) made what, at the time, seemed a trivial, short-term decision that changed the world of programming. What events of this nature come to mind, and what have been our industry's response to mit... | [
{
"answer_id": 474121,
"author": "Kluge",
"author_id": 8752,
"author_profile": "https://Stackoverflow.com/users/8752",
"pm_score": 3,
"selected": false,
"text": "cd \\program files\\MyCompany\\MyProgram\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/378678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31641/"
] |
378,700 | <p>Is it possible to add a "metadata"-like description or comments to a table in Microsoft SQL 2000 and above? </p>
<p>How would you do this through the CREATE TABLE statement?</p>
<p>Is it possible to add a description or comment to fields?</p>
<p>How do you query this info back in MSSQL 2000? 2005?</p>
| [
{
"answer_id": 378729,
"author": "JoshBerke",
"author_id": 26160,
"author_profile": "https://Stackoverflow.com/users/26160",
"pm_score": 6,
"selected": true,
"text": "EXEC sys.sp_addextendedproperty @name=N'<NameOfProp>', \n@value=N'<Value>' , @level0type=N'SCHEMA',@level0name=N'dbo', \n... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378700",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36590/"
] |
378,704 | <p>It sounds wonky, but this is what I'm trying to do with javascript (this is all triggered by an event handler):</p>
<ol>
<li>Save the contents of a page (preferably the whole document or at least documentElement object) into a variable.</li>
<li>Create an iframe and insert it into
the body.</li>
<li>Replace the doc... | [
{
"answer_id": 49194933,
"author": "user3363398",
"author_id": 3363398,
"author_profile": "https://Stackoverflow.com/users/3363398",
"pm_score": 0,
"selected": false,
"text": "var myIframe = document.createElement(\"iframe\");\nmyIframe.style.display = \"none\";\ndocument.body.appendChil... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3625/"
] |
378,716 | <p>I've been building a database input form. There are three fields for notes. They were all build at the same time. They have the same logic & class system - but one of them is returning with escape marks when I update the record, e.g. I enter</p>
<pre><code>1
2
3
</code></pre>
<p>and the updated record returns ... | [
{
"answer_id": 378728,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 0,
"selected": false,
"text": "'\\'"
},
{
"answer_id": 380858,
"author": "Jay",
"author_id": 41690,
"author_profile": "https://S... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378716",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
378,737 | <p>I'm cloning a TClientDataSet and I want to copy all the fields to the clone (which is a new DataSet), I know I can loop through the Fields and copy the info, or make 2 instances of my class and just clone the cursor, but is there some better way? Something like create a new DataSet and assign the fields info?</p>
<... | [
{
"answer_id": 379047,
"author": "Jim McKeeth",
"author_id": 255,
"author_profile": "https://Stackoverflow.com/users/255",
"pm_score": 3,
"selected": false,
"text": "ds2.FieldDefs.Assign(ds1.FieldDefs);\nds2.CreateDataSet;\nds2.Open;\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/378737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/727/"
] |
378,752 | <p>Is there any way to map to a network drive by using a stored procedure? I have tried: </p>
<pre><code>xp_cmdshell 'net use Q: [shared_network_drive] [pwd] /user:[username]'
</code></pre>
<p>but I got an error saying something like </p>
<pre><code>'System error 1312 has occurred.'
'A specified logon session does n... | [
{
"answer_id": 378908,
"author": "Tom H",
"author_id": 5696608,
"author_profile": "https://Stackoverflow.com/users/5696608",
"pm_score": 1,
"selected": false,
"text": "EXEC sp_xp_cmdshell_proxy_account 'DOMAIN\\Username', 'password'\n"
},
{
"answer_id": 12455430,
"author": "M... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/62776/"
] |
378,754 | <p>I am trying to debug a problem where a user clicks on the button and the UI just dies. I know, good luck. </p>
<p>The logs just end after the user clicks the button so i'm thinking there may be some exception/error that we are not logging. Maybe an OutOfMemoryError.</p>
<p>Any suggestions on how to proceed? to ... | [
{
"answer_id": 378796,
"author": "Charlie Martin",
"author_id": 35092,
"author_profile": "https://Stackoverflow.com/users/35092",
"pm_score": 3,
"selected": true,
"text": "Thread.setDefaultUncaughtExceptionHandler()"
},
{
"answer_id": 378970,
"author": "Paul Brinkley",
"a... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47508/"
] |
378,768 | <p>This morning, I tried to commit a revision to Subversion and found that all of a sudden I did not have permission to do so.</p>
<pre>Can't move '/svn/db/txn-protorevs/21000-ga9.rev' to '/svn/db/revs/21/21001':
Permission Denied</pre>
<p>Looking at the revs directory, I noticed that somebody had committed the 21000... | [
{
"answer_id": 378776,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 4,
"selected": true,
"text": "file://"
},
{
"answer_id": 378886,
"author": "orip",
"author_id": 37020,
"author_profile": "https://St... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3434/"
] |
378,786 | <p>When writing an abstract class, or a class that doesn't get instantiated directly... do you tend to write a dealloc method in the abstract class and release where appropriate, and then allow for children to call [super dealloc] and then worry about only instance variables they add which aren't part of the super clas... | [
{
"answer_id": 379014,
"author": "Peter Hosey",
"author_id": 30461,
"author_profile": "https://Stackoverflow.com/users/30461",
"pm_score": 2,
"selected": false,
"text": "alloc"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/378786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40882/"
] |
378,801 | <p>Here is the basic situation.</p>
<pre><code>Public Class MyEnumClass(of T)
Public MyValue as T
End Class
</code></pre>
<p>This is vast oversimplification of the actual class, but basically I know that T is an enumeration (if it is not then there will be many other problems, and is a logical error made by the pr... | [
{
"answer_id": 378824,
"author": "Ross Goddard",
"author_id": 4779,
"author_profile": "https://Stackoverflow.com/users/4779",
"pm_score": 3,
"selected": false,
"text": "String.Format(\"{0:d}\", MyValue)\n"
},
{
"answer_id": 378828,
"author": "Jason Down",
"author_id": 973... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4779/"
] |
378,811 | <p>I'm trying to get Python scripts, called from a web browser, to work. I keep getting the error: </p>
<pre><code>500 Internal Server Error
</code></pre>
<p>When I check my error logs I see the message </p>
<pre><code>Premature end of script headers
</code></pre>
<p>The only documentation of this error online says... | [
{
"answer_id": 378822,
"author": "Kenan Banks",
"author_id": 43089,
"author_profile": "https://Stackoverflow.com/users/43089",
"pm_score": 3,
"selected": false,
"text": "Content-Type: text/html"
},
{
"answer_id": 378826,
"author": "Jack",
"author_id": 24998,
"author_p... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47514/"
] |
378,829 | <p>In a UNIX shell script, what can I use to convert decimal numbers into hexadecimal? I thought od would do the trick, but it's not realizing I'm feeding it ASCII representations of numbers.</p>
<p>printf? Gross! Using it for now, but what else is available?</p>
| [
{
"answer_id": 378839,
"author": "Keltia",
"author_id": 16143,
"author_profile": "https://Stackoverflow.com/users/16143",
"pm_score": 8,
"selected": false,
"text": "printf(1)"
},
{
"answer_id": 378844,
"author": "Rob Wells",
"author_id": 2974,
"author_profile": "https... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18103/"
] |
378,832 | <p>i have sql statement like this </p>
<pre><code>SELECT DISTINCT results_sp_08.material_number FROM results_sp_08
INNER JOIN courses ON results_sp_08.material_number = courses.material_number
INNER JOIN users ON results_sp_08.id = users.id
AND results_sp_08.doctor = 'xx260'
</code></pre>
<p>i... | [
{
"answer_id": 378838,
"author": "dkretz",
"author_id": 31641,
"author_profile": "https://Stackoverflow.com/users/31641",
"pm_score": 0,
"selected": false,
"text": "JOIN tablex AS x1 ON whatever \nLEFT JOIN tablex AS x2 ON whatever \n AND x2.pkid < x1.pkid AND x2.somefield IS NULL\n... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47507/"
] |
378,847 | <p><code>CGI.escapeHTML</code> is pretty bad, but <code>CGI.unescapeHTML</code> is completely borked. For example:</p>
<pre><code>require 'cgi'
CGI.unescapeHTML('&#8230;')
# => "…" # correct - an ellipsis
CGI.unescapeHTML('&hellip;')
# => "&hellip;" # should be "…"
... | [
{
"answer_id": 379680,
"author": "Chris Lloyd",
"author_id": 42413,
"author_profile": "https://Stackoverflow.com/users/42413",
"pm_score": 2,
"selected": false,
"text": "require 'rubygems'\nrequire 'hpricot'\n\nHpricot('…', :xhtml_strict => true).to_plain_text\n"
},
{
"answ... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1190/"
] |
378,848 | <p>I'm wanting to capture my search terms and pass them to a JavaScript variable, but I don't know how to handle quotes that might come through.</p>
<p>Here's what I have currently:</p>
<pre><code>var searchTerms = "<!--#echo var="terms"-->";
var pattern = / /g;
newSearchTerms = searchTerms.replace(/[^a-zA-Z 0-... | [
{
"answer_id": 378874,
"author": "Grant Wagner",
"author_id": 9254,
"author_profile": "https://Stackoverflow.com/users/9254",
"pm_score": 2,
"selected": false,
"text": "terms"
},
{
"answer_id": 378945,
"author": "Kenan Banks",
"author_id": 43089,
"author_profile": "ht... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16124/"
] |
378,862 | <p>I need to update a field (which is currently empty) based on a match with another table. This should be simple, but my syntax is wrong.</p>
<p>In SQLServer 2005, the syntax would be </p>
<pre><code>UPDATE Facilities-NOID
SET Facilities-NOID.ID = Facilities-ID.ID
FROM Facilities-NOID, Facilities-ID
WHERE [Faciliti... | [
{
"answer_id": 378986,
"author": "BIBD",
"author_id": 685,
"author_profile": "https://Stackoverflow.com/users/685",
"pm_score": 0,
"selected": false,
"text": "UPDATE Facilities-NOID\nSET Facilities-NOID.ID = Facilities-ID.ID\nWHERE [Facilities-ID].[Structure ID] = [Facilities-NOID].[Stru... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22523/"
] |
378,864 | <p>I need to convert a name in the format Parisi, Kenneth into the format kparisi.</p>
<p>Does anyone know how to do this in Perl?<br></p>
<p>Here is some sample data that is abnormal:</p>
<p>Zelleb, Charles F.,,IV<br>
Eilt, John,, IV<br>
Wods, Charles R.,,III<br>
Welkt, Craig P.,,Jr.<br></p>
<p>These specific name... | [
{
"answer_id": 378878,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 2,
"selected": false,
"text": "$name =~ s/(\\w+),\\s(\\w)/$2$1/;\n$name = lc $name;\n"
},
{
"answer_id": 378891,
"author": "Brian Rasmus... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378864",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42229/"
] |
378,876 | <p>Consider the following example. It consists of two header files, declaring two different namespaces:</p>
<pre><code>// a1.h
#pragma once
#include "a2.h"
namespace a1
{
const int x = 10;
typedef a2::C B;
}
</code></pre>
<p>and the second one is</p>
<pre><code>// a2.h
#pragma once
#include "a1.h"
nam... | [
{
"answer_id": 378913,
"author": "Greg Rogers",
"author_id": 5963,
"author_profile": "https://Stackoverflow.com/users/5963",
"pm_score": 5,
"selected": true,
"text": "// a1.h\n#pragma once\n\nnamespace a2 {\n class C;\n}\n\nnamespace a1 \n{\n const int x = 10;\n typedef a2::C B;... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13543/"
] |
378,880 | <p>I hope this isn't a waste of time, however I have really been trying to figure this on out. Is it my syntax. I simply want to remove the parent div ".number-row" once the link with a class of ".remove-link" is clicked.</p>
<p>Thanks in advance</p>
<pre><code><script>
$(document).ready(function(){
$(".rem... | [
{
"answer_id": 378898,
"author": "cLFlaVA",
"author_id": 45109,
"author_profile": "https://Stackoverflow.com/users/45109",
"pm_score": 2,
"selected": false,
"text": "$(document).ready(function(){ \n $(\".remove-link\").click(function() { \n $(this).parent().parent().parent().hi... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378880",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
378,883 | <p>I want my web application users to download some data as an Excel file. </p>
<p>I have the next function to send an Input Stream in the response object. </p>
<pre><code>public static void sendFile(InputStream is, HttpServletResponse response) throws IOException {
BufferedInputStream in = null;
try... | [
{
"answer_id": 379148,
"author": "lucas",
"author_id": 31172,
"author_profile": "https://Stackoverflow.com/users/31172",
"pm_score": 0,
"selected": false,
"text": "HSSFWorkbook wb = new HSSFWorkBook();\n//populate\n\nServletOutputStream out = response.getOutputStream();\ntry {\n wb.wri... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2138/"
] |
378,887 | <p><code>String.length</code> will only tell me how many characters are in the String. (In fact, before Ruby 1.9, it will only tell me how many bytes, which is even less useful.)</p>
<p>I'd really like to be able to find out how many 'en' wide a String is. For example:</p>
<pre><code>'foo'.width
# => 3
'moo'.wi... | [
{
"answer_id": 379597,
"author": "krusty.ar",
"author_id": 43981,
"author_profile": "https://Stackoverflow.com/users/43981",
"pm_score": 2,
"selected": false,
"text": "Left, Width, Advance values for ArialBD16 'c' through 'm'\nLetter Left Width Advance\nc 1 7 9\n... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1190/"
] |
378,895 | <p>I'm having a little bit of trouble understanding what the problem is here. I have a bit of code that pulls records from a database using LINQ and puts them into an object which is cast into an interface. It looks a bit like this:</p>
<pre><code>public IEnumerable<ISomeObject> query()
{
return from a in ... | [
{
"answer_id": 378931,
"author": "Zachary Yates",
"author_id": 8360,
"author_profile": "https://Stackoverflow.com/users/8360",
"pm_score": 3,
"selected": false,
"text": "new SomeObject { ... }"
},
{
"answer_id": 378948,
"author": "Av Pinzur",
"author_id": 26222,
"auth... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2147/"
] |
378,905 | <p>I have to ship some groovy code to some users that have only java installed (no grooy, no $groovy_home, etc). I'm trying to invoke groovy from the commandline but I'm having no luck. Here's my bat file:</p>
<pre><code>java -classpath .;lib;bin;bin-groovy introspector.AclCollector
</code></pre>
<p>And here's my exc... | [
{
"answer_id": 379045,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 4,
"selected": false,
"text": "java -cp [...];%GROOVY_HOME%/embeddable/groovy-all-1.5.4.jar;[..]\n"
},
{
"answer_id": 6914824,
"author": "Chris",
... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22992/"
] |
378,909 | <p>I created a NamedTemporaryFile, added some content in it and now I want to save it into a model FileField. </p>
<p>The problem is that I get a SuspiciousOperation because the tmp directory is not within the FileSystemStorage directory.</p>
<p>What's the proper way to do this?</p>
| [
{
"answer_id": 380810,
"author": "rombarcz",
"author_id": 47267,
"author_profile": "https://Stackoverflow.com/users/47267",
"pm_score": 2,
"selected": false,
"text": "from django.core.files.storage import FileSystemStorage\nfs = FileSystemStorage(location='/tmp')\n\nclass YourModel(model... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1044/"
] |
378,927 | <p>I need to know if a variable in Python is a string or a dict. Is there anything wrong with the following code?</p>
<pre><code>if type(x) == type(str()):
do_something_with_a_string(x)
elif type(x) == type(dict()):
do_somethting_with_a_dict(x)
else:
raise ValueError
</code></pre>
<p><strong>Update</stro... | [
{
"answer_id": 378957,
"author": "nakedfanatic",
"author_id": 44817,
"author_profile": "https://Stackoverflow.com/users/44817",
"pm_score": 2,
"selected": false,
"text": "{type(str()): do_something_with_a_string,\n type(dict()): do_something_with_a_dict}.get(type(x), errorhandler)()\n"
... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4766/"
] |
378,935 | <p>What does it mean by logical grouping of modules in assembly?
Can anyone please explain how .NET's CLR works with assembly ?</p>
| [
{
"answer_id": 379829,
"author": "Dylan Beattie",
"author_id": 5017,
"author_profile": "https://Stackoverflow.com/users/5017",
"pm_score": 0,
"selected": false,
"text": "System.Data.SqlClient"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/378935",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45648/"
] |
378,940 | <p>If you have two applications residing on the same server, can you use Server.Transfer to load a page in a different AppDomain/Application?</p>
<p>My guess is no, because Server.Transfer() copies HttpContext.Items, among other things. To copy this data between AppDomains, would cause threading and memory sharing con... | [
{
"answer_id": 378956,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 3,
"selected": true,
"text": "Server.Transfer"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/378940",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17360/"
] |
378,942 | <p>Emacs Lisp function often start like this:</p>
<pre><code>(lambda () (interactive) ...
</code></pre>
<p>What does "(interactive)" do?</p>
| [
{
"answer_id": 378960,
"author": "Charlie Martin",
"author_id": 35092,
"author_profile": "https://Stackoverflow.com/users/35092",
"pm_score": 4,
"selected": false,
"text": "CTRL-h f interactive"
},
{
"answer_id": 379171,
"author": "Michael Paulukonis",
"author_id": 41153,... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378942",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91385/"
] |
378,958 | <p>There is someone in my team that swears by using some kind of GVim feature to do manually code folding.</p>
<p>As I'm using another editor and do not really need the folding feature, I think it only pollutes the source code with tags like:</p>
<pre><code>/* {{{1 */
</code></pre>
<p>Convincing the person not to us... | [
{
"answer_id": 379001,
"author": "grieve",
"author_id": 34329,
"author_profile": "https://Stackoverflow.com/users/34329",
"pm_score": 3,
"selected": false,
"text": "set foldmethod=syntax\n"
},
{
"answer_id": 379100,
"author": "slim",
"author_id": 7512,
"author_profile... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26387/"
] |
378,959 | <p>Is there a static analysis tool for PHP source files?</p>
<p>The binary itself can check for syntax errors, but I'm looking for something that does more, like:</p>
<ul>
<li>unused variable assignments</li>
<li>arrays that are assigned into without being initialized first</li>
<li>and possibly code style warnings</li... | [
{
"answer_id": 379471,
"author": "troelskn",
"author_id": 18180,
"author_profile": "https://Stackoverflow.com/users/18180",
"pm_score": 10,
"selected": true,
"text": "php"
},
{
"answer_id": 10770319,
"author": "rjha94",
"author_id": 262376,
"author_profile": "https://... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378959",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21229/"
] |
378,969 | <p>I have the following Int lists:</p>
<pre><code>t1 = [1000, 1001, 1002, 1003, 1004]
t2 = [2000, 2001, 2002]
t3 = [3000, 3001, 3002, 3003]
</code></pre>
<p>The lists size are variable, they are not just 3 like in this example. They can have 1 element or many more. Then I have this:</p>
<pre><code>tAll = [t1, t2, t3... | [
{
"answer_id": 379037,
"author": "comingstorm",
"author_id": 210211,
"author_profile": "https://Stackoverflow.com/users/210211",
"pm_score": 1,
"selected": false,
"text": "zip3"
},
{
"answer_id": 379168,
"author": "ShreevatsaR",
"author_id": 4958,
"author_profile": "h... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40480/"
] |
378,972 | <p>I've got a variable in Emacs called my-var that I'd like to set whenever I press C-v. How do I do that? I tried this:</p>
<pre><code>(defun set-my-var (value)
"set my var"
(interactive)
(defvar my-var value
"a variable of mine")
)
(global-set-key "\C-v" 'set-my-var)
</code></pre>
<p>But that fails:</p>
... | [
{
"answer_id": 379004,
"author": "Charlie Martin",
"author_id": 35092,
"author_profile": "https://Stackoverflow.com/users/35092",
"pm_score": 2,
"selected": false,
"text": "(interactive)"
},
{
"answer_id": 379022,
"author": "Charlie Martin",
"author_id": 35092,
"autho... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91385/"
] |
378,979 | <p>Is it possible to use a converter within a style? For instance I am trying to create a styled <code>TextBlock</code> whose text resizes based on the <code>ActualHeight</code> property of the <code>TextBlock</code>. The resizing would be done via a converter.</p>
| [
{
"answer_id": 379032,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 6,
"selected": true,
"text": "<Style TargetType=\"TextBlock\">\n <Setter Property=\"FontSize\">\n <Setter.Value>\n <Binding Path... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378979",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
378,982 | <p>Can I do something like this in the markup of an asp.net page, based off the "Define DEBUG constant" setting?</p>
<pre><code>#IF (DEBUG) THEN
<asp:TextBox ID="TextBox1" runat="server">You're in debug mode</asp:TextBox>
#END IF
</code></pre>
| [
{
"answer_id": 379157,
"author": "jrcs3",
"author_id": 3819,
"author_profile": "https://Stackoverflow.com/users/3819",
"pm_score": 4,
"selected": true,
"text": "<asp:Literal id=\"isDebug\" runat=\"server\" />\n<script runat=\"server\">\n void Page_Load()\n {\n#if DEBUG\n isD... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44394/"
] |
378,983 | <p>I'm using IPAddress.TryParse() to parse IP addresses. However, it's a little too permissive (parsing "1" returns 0.0.0.1). I'd like to limit the input to dotted octet notation. What's the best way to do this?</p>
<p>(Note: I'm using .NET 2.0)</p>
<hr>
<p><strong>Edit</strong></p>
<p>Let me clarify:</p>
<p>I'm w... | [
{
"answer_id": 379008,
"author": "Michael Haren",
"author_id": 29,
"author_profile": "https://Stackoverflow.com/users/29",
"pm_score": 4,
"selected": true,
"text": "bool IsDottedDecimalIP(string possibleIP)\n{\n Regex R = New Regex(@\"\\b(?:\\d{1,3}\\.){3}\\d{1,3}\\b\");\n return R... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378983",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27414/"
] |
378,985 | <p>I am having trouble with visible attribute of an ASP.NET <code>Panel</code> control. I have a page that calls a database table and returns the results in a datagrid.</p>
<h3>Requirements</h3>
<p>If some of the returned values are <code>null</code> I need to hide the image that's next to it.</p>
<p>I am using a <code... | [
{
"answer_id": 379028,
"author": "Ben Scheirman",
"author_id": 3381,
"author_profile": "https://Stackoverflow.com/users/3381",
"pm_score": 0,
"selected": false,
"text": "public void grid1_RowDataBound(object sender, GridViewRowDataBoundEventArgs e)\n{\n if(e.Row.RowType == RowType.Data... | 2008/12/18 | [
"https://Stackoverflow.com/questions/378985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
379,007 | <p>Your basic SP with a default parameter:</p>
<pre><code>ALTER PROCEDURE [usp_debug_fails]
@DATA_DT_ID AS int = 20081130
WITH RECOMPILE
AS
BEGIN
/*
Usage:
EXEC [usp_debug_fails] WITH RECOMPILE
*/
-- Stuff here that depends on DATA_DT_ID
END
</code></pre>
<p>The same SP with a local th... | [
{
"answer_id": 379067,
"author": "gbn",
"author_id": 27535,
"author_profile": "https://Stackoverflow.com/users/27535",
"pm_score": 3,
"selected": true,
"text": "ALTER PROCEDURE [usp_debug_mightwork]\n @DATA_DT_ID AS int = 20081130\nAS\nBEGIN\n DECLARE @IDATA_DT_ID AS int\n SET @... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18255/"
] |
379,015 | <p>Is it possible to send a UDP broadcast packet to a different subnet through a router? I'm writing an app to discover certain devices on the network, and the PC might be on a different subnet than the devices it's looking for.</p>
| [
{
"answer_id": 379043,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 5,
"selected": true,
"text": "no ip directed-broadcasts"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/379015",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27414/"
] |
379,041 | <p>When I write a class I always expose private fields through a public property like this:</p>
<pre><code>private int _MyField;
public int MyField
{ get{return _MyField; }
</code></pre>
<p>When is it ok to just expose a public field like this:</p>
<pre><code>public int MyField;
</code></pre>
<p>I am creating a str... | [
{
"answer_id": 379611,
"author": "jpsimard-nyx",
"author_id": 47109,
"author_profile": "https://Stackoverflow.com/users/47109",
"pm_score": 1,
"selected": false,
"text": "private readonly int result;\nprivate readonly int message;\n\npublic Result(bool result, string message)\n{\n this... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17744/"
] |
379,053 | <p>I know that having diamond inheritance is considered bad practice. However, I have 2 cases in which I feel that diamond inheritance could fit very nicely. I want to ask, would you recommend me to use diamond inheritance in these cases, or is there another design that could be better.</p>
<p><strong>Case 1:</strong>... | [
{
"answer_id": 379217,
"author": "Michael Kristofik",
"author_id": 46821,
"author_profile": "https://Stackoverflow.com/users/46821",
"pm_score": -1,
"selected": false,
"text": "OneCommand"
},
{
"answer_id": 379575,
"author": "Roger Nelson",
"author_id": 14964,
"author... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44673/"
] |
379,062 | <p>Does anyone have a method to understand complex SQL statements? When reading structural / OO code there are usually layers of abstraction that help you break it down into manageable chunks. Often in SQL, though, it seems that you have to keep track of what's going on in multiple parts of a query all at the same ti... | [
{
"answer_id": 379111,
"author": "Kon",
"author_id": 22303,
"author_profile": "https://Stackoverflow.com/users/22303",
"pm_score": 4,
"selected": false,
"text": "select ID, Description, Status from ABC where Status = 1 OR Status = 3\n"
},
{
"answer_id": 379153,
"author": "Evi... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18891/"
] |
379,068 | <p>I've got a working SOAP::Lite client. It works against an established server, but so far my development server is sending back nothing except a 404. (Which is odd, because I'm not even seeing a connection on the server end.)</p>
<p>The closest parallel that I'm used to is <code>Net::FTP</code>. </p>
<pre><code>my ... | [
{
"answer_id": 379111,
"author": "Kon",
"author_id": 22303,
"author_profile": "https://Stackoverflow.com/users/22303",
"pm_score": 4,
"selected": false,
"text": "select ID, Description, Status from ABC where Status = 1 OR Status = 3\n"
},
{
"answer_id": 379153,
"author": "Evi... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379068",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11289/"
] |
379,081 | <p>Tracking a single remote branch as a local branch is straightforward enough. </p>
<pre><code>$ git checkout --track -b ${branch_name} origin/${branch_name}
</code></pre>
<p>Pushing all local branches up to the remote, creating new remote branches as needed is also easy.</p>
<pre><code>$ git push --all origin
</co... | [
{
"answer_id": 379842,
"author": "Otto",
"author_id": 9594,
"author_profile": "https://Stackoverflow.com/users/9594",
"pm_score": 8,
"selected": true,
"text": "for i in `git branch -a | grep remote | grep -v HEAD | grep -v master`; do git branch --track ${i#remotes/origin/} $i; done\n"
... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47532/"
] |
379,105 | <p>Is it possible to specify my own default object instead of it being null? I would like to define my own default properties on certain objects.</p>
<p>For example, if I have an object foo with properties bar and baz, instead of default returing null, I'd like it to be an instance of foo with bar set to "abc" and ba... | [
{
"answer_id": 379129,
"author": "recursive",
"author_id": 44743,
"author_profile": "https://Stackoverflow.com/users/44743",
"pm_score": 3,
"selected": true,
"text": "public class GenericClass<T> where T : new() {\n //class definition\n\n private void SomeMethod() {\n T myT ... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4068/"
] |
379,115 | <p>I've got a grid (dojox.grid v1.2) that I don't want to be sortable. How can I disable that?</p>
| [
{
"answer_id": 379220,
"author": "sprugman",
"author_id": 24197,
"author_profile": "https://Stackoverflow.com/users/24197",
"pm_score": 3,
"selected": true,
"text": "\ndojo.byId('myGridId').canSort = function(col){\n if(Math.abs(col) == 3) {\n return false;\n } else {\n ... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24197/"
] |
379,128 | <p>How would someone who really knows how to take advantage of dynamic programming languages approach programming differently than someone working in a static language? </p>
<p>I'm familiar with the whole debate over static versus dynamic typing, but that's not what I'm getting at. I'd like to discuss problem solvin... | [
{
"answer_id": 379169,
"author": "chaos",
"author_id": 47529,
"author_profile": "https://Stackoverflow.com/users/47529",
"pm_score": 2,
"selected": false,
"text": "$row = $db->getTable('user')->getRow(27);\n$row->setValue('name', 'Bob');\n"
},
{
"answer_id": 517683,
"author":... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25188/"
] |
379,131 | <p><strong>Area :</strong>
Textbox in Silverlight</p>
<p><strong>Question:</strong>
I need to know what "line number" that is currently edited.</p>
<p><strong>I've tried:</strong>
As a workaround I've tried splitting with textBox.Split("\r") and counting matches on Regex with similar performance. Performance during t... | [
{
"answer_id": 383916,
"author": "Christoffer Lette",
"author_id": 11808,
"author_profile": "https://Stackoverflow.com/users/11808",
"pm_score": 2,
"selected": false,
"text": "string.Split"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/379131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
379,133 | <p>I had a straight forward approach of turning Key/Value pairs of an XML excerpt into an NSDictionary when I started a simple iPhone application. The problem is, I need to turn those NSDictionary's instances that once populated my UITableView's into custom classes because they require behavior and additional complexit... | [
{
"answer_id": 379203,
"author": "Marc Charbonneau",
"author_id": 35136,
"author_profile": "https://Stackoverflow.com/users/35136",
"pm_score": 4,
"selected": true,
"text": "setValue:forKey:"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/379133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40882/"
] |
379,136 | <p>Can I call a function from lisp from a library written in c or c++? How can I extend lisp?
This is useful when you want to do some system calls or stuff like that.</p>
| [
{
"answer_id": 379970,
"author": "geocar",
"author_id": 37507,
"author_profile": "https://Stackoverflow.com/users/37507",
"pm_score": 4,
"selected": true,
"text": "cl_eval()"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/379136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47537/"
] |
379,138 | <p>Why is that Web Service files (.asmx) have their code-behind placed in app_code folder by default unlike the regular .aspx files?</p>
| [
{
"answer_id": 379970,
"author": "geocar",
"author_id": 37507,
"author_profile": "https://Stackoverflow.com/users/37507",
"pm_score": 4,
"selected": true,
"text": "cl_eval()"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/379138",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3096/"
] |
379,141 | <p>I have two versions of rails (2.1.0 and 2.2.2) installed in my computer.</p>
<p>When I create a new application, is it possible to specify that I want to use the older (2.1.0) version?</p>
| [
{
"answer_id": 379190,
"author": "Keltia",
"author_id": 16143,
"author_profile": "https://Stackoverflow.com/users/16143",
"pm_score": 2,
"selected": false,
"text": "config/environment.rb"
},
{
"answer_id": 379482,
"author": "Thiago Arrais",
"author_id": 17801,
"author... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14755/"
] |
379,164 | <p>I have a legacy VB6 application which I've inherited. The issue I'm facing is that I'm getting the infamous</p>
<pre><code>ORA-12638: Credential retrieval failed
</code></pre>
<p>error message whenever it tries to connect to one of our Oracle databases. I can connect fine from SQLPlus and Toad, however. I've Googl... | [
{
"answer_id": 11019158,
"author": "Mark Kram",
"author_id": 100283,
"author_profile": "https://Stackoverflow.com/users/100283",
"pm_score": 6,
"selected": false,
"text": "Original Entry - SQLNET.AUTHENTICATION_SERVICES= (NTS)\n\nModified Entry - SQLNET.AUTHENTICATION_SERVICES= (NONE)\n"... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379164",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25371/"
] |
379,172 | <p>Currently I am working on a project where goto statements are heavely used. The main purpose of goto statements is to have one cleanup section in a routine rather than multiple return statements.
Like below:</p>
<pre><code>BOOL foo()
{
BOOL bRetVal = FALSE;
int *p = NULL;
p = new int;
if (p == NULL)
... | [
{
"answer_id": 379189,
"author": "Tamas Czinege",
"author_id": 8954,
"author_profile": "https://Stackoverflow.com/users/8954",
"pm_score": 7,
"selected": true,
"text": "void MyMethod()\n{\n MyClass *myInstance = new MyClass(\"myParameter\");\n /* Your code here */\n delete myIns... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33411/"
] |
379,175 | <p>I have a <code>Dictionary<string,int></code> that has the potential to contain upwards of 10+ million unique keys. I am trying to reduce the amount of memory that this takes, while still maintaining the functionality of the dictionary.</p>
<p>I had the idea of storing a hash of the string as a long instead, t... | [
{
"answer_id": 379182,
"author": "Andrew Hare",
"author_id": 34211,
"author_profile": "https://Stackoverflow.com/users/34211",
"pm_score": 2,
"selected": false,
"text": "GetHashCode()"
},
{
"answer_id": 379196,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_pr... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47540/"
] |
379,176 | <p>Is there a library that will convert a Double to a String with the whole number, followed by a fraction?</p>
<p>For example</p>
<pre><code>1.125 = 1 1/8
</code></pre>
<p>I am only looking for fractions to a 64th of an inch. </p>
| [
{
"answer_id": 379250,
"author": "chaos",
"author_id": 47529,
"author_profile": "https://Stackoverflow.com/users/47529",
"pm_score": 2,
"selected": false,
"text": "string strfrac(float frac) {\n int main = to_int(frac + frac / 1000000.0);\n string out = to_string(main);\n float ... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17712/"
] |
379,191 | <p>I have a text file that contains localized language strings that is currently encoded in GB2312 (simplified Chinese), but all of my other language files are in UTF-8. I am finding it very difficult to work with this file, as none of my text editors will work properly with it and keep corrupting it. Are there any too... | [
{
"answer_id": 379864,
"author": "mercator",
"author_id": 23263,
"author_profile": "https://Stackoverflow.com/users/23263",
"pm_score": 3,
"selected": false,
"text": "&"
},
{
"answer_id": 379929,
"author": "Renaud Bompuis",
"author_id": 3811,
"author_profile": "https:... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379191",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/343/"
] |
379,231 | <p>I've been developing Web applications for a while now and have dipped my toe into GUI and Game application development.</p>
<p>In the web application (php for me), a request is made to the file, that file includes all the necessary files to process the info into memory, then the flow is from Top to Bottom for each ... | [
{
"answer_id": 379270,
"author": "slim",
"author_id": 7512,
"author_profile": "https://Stackoverflow.com/users/7512",
"pm_score": 5,
"selected": true,
"text": "accept()"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/379231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22459/"
] |
379,234 | <p>I'm trying to come up with a clean way of sorting a set of strings based on a "sorting template". I apologize if my wording is confusing, but I can't think of a better way to describe it (maybe someone can come up with a better way to describe it after reading what I'm trying to do?).</p>
<p>Consider the following ... | [
{
"answer_id": 379255,
"author": "Ian G",
"author_id": 31765,
"author_profile": "https://Stackoverflow.com/users/31765",
"pm_score": 1,
"selected": false,
"text": "[1FA, 2TY, 3AK, 4PO, 5PR, 6ZZ, 7QW, 8BC]\n"
},
{
"answer_id": 379272,
"author": "Konrad Rudolph",
"author_id... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18505/"
] |
379,236 | <p>I'm trying to design a data model that denotes one user being the friend of another user. This is what i've come up with so far, but it seems clunky, is there a better solution?</p>
<pre><code>User
=====
Id
Name
etc...
UserFriend
===========
UserId
FriendId
IsMutual
IsBlocked
</code></pre>
| [
{
"answer_id": 379262,
"author": "chaos",
"author_id": 47529,
"author_profile": "https://Stackoverflow.com/users/47529",
"pm_score": 7,
"selected": true,
"text": "UserRelationship\n====\nRelatingUserID\nRelatedUserID\nType[friend, block, etc]\n"
},
{
"answer_id": 379329,
"aut... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8360/"
] |
379,238 | <p>My project is about to introduce SOAP. It's going to be used for C++ <-> Java and C++ <-> Flex communication. I'm responsible for refactoring our apps to take advantage of Java business rules engine and new Flex gui.</p>
<p>What resources are must read for C++ SOAP? I've read W3 materials. We're probably be u... | [
{
"answer_id": 379262,
"author": "chaos",
"author_id": 47529,
"author_profile": "https://Stackoverflow.com/users/47529",
"pm_score": 7,
"selected": true,
"text": "UserRelationship\n====\nRelatingUserID\nRelatedUserID\nType[friend, block, etc]\n"
},
{
"answer_id": 379329,
"aut... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379238",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3579/"
] |
379,239 | <p>in asp.net 2.0 (not mvc), the form's action is to itself. how can I use the forms plugin to send information to server?
I need to send data from the form (let's say name, email, comment) and to display the result on the client side.
Any ideas?</p>
<p>Thanks,
Dave</p>
| [
{
"answer_id": 382300,
"author": "Corey Downie",
"author_id": 44861,
"author_profile": "https://Stackoverflow.com/users/44861",
"pm_score": 2,
"selected": false,
"text": "$(form).ajaxSubmit(function(){\n success:function(ret){\n $.ajax({\n type: \"POST\",\n contentType:... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
379,240 | <p>Assuming I have fonts installed which have the appropriate glyphs in them, is there a command shell for Windows XP that will display Unicode characters? At a minimum, two things that should display Unicode correctly:</p>
<ul>
<li>Directory listings. I don't care what I have to type (dir, ls, get-childitem, etc.), s... | [
{
"answer_id": 737677,
"author": "McDowell",
"author_id": 304,
"author_profile": "https://Stackoverflow.com/users/304",
"pm_score": 5,
"selected": false,
"text": " CHCP 65001\n DIR > UTF8.TXT\n TYPE UTF8.TXT\n"
},
{
"answer_id": 10359541,
"author": "crusherjoe",
"author_i... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17834/"
] |
379,276 | <p>I want to store the username/password information of my windows service 'logon as' user in the app.config.</p>
<p>So in my Installer, I am trying to grab the username/password from app.config and set the property but I am getting an error when trying to install the service.</p>
<p>It works fine if I hard code the ... | [
{
"answer_id": 462719,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": false,
"text": "Configuration config = ConfigurationManager.OpenExeConfiguration(assemblyPath);\nConnectionStringsSection csSection = config.C... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39677/"
] |
379,282 | <p>In the C# example of polymorphism, there is a Cat class which inherits a class called AnimalBase and an interface called IAnimal.</p>
<p>The link in question is: <a href="http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming" rel="nofollow noreferrer">http://en.wikipedia.org/wiki/Polymorphism_in_... | [
{
"answer_id": 379491,
"author": "Jared",
"author_id": 44757,
"author_profile": "https://Stackoverflow.com/users/44757",
"pm_score": 4,
"selected": true,
"text": "|anAnimal| \nanAnimal := Pig new.\nanAnimal makeNoise.\n\nanAnimal := Cow new.\nanAnimal makeNoise.\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/379282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32484/"
] |
379,328 | <p>I want in a good performance way (I hope) replace a named parameter in my string to a named parameter from code, example, my string:</p>
<pre><code>"Hi {name}, do you like milk?"
</code></pre>
<p>How could I replace the {name} by code, Regular expressions? To expensive? Which way do you recommend?</p>
<p>How do t... | [
{
"answer_id": 379341,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 5,
"selected": true,
"text": "Compiled"
},
{
"answer_id": 379347,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile"... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
379,339 | <p>I am using <a href="http://htmlpurifier.org" rel="nofollow noreferrer">HTML Purifier</a> in my PHP project and am having trouble getting it to work properly with user input.</p>
<p>I am having users enter in HTML using a WYSIWYG editor (<a href="http://tinymce.moxiecode.com/" rel="nofollow noreferrer">TinyMCE</a>),... | [
{
"answer_id": 379504,
"author": "mercator",
"author_id": 23263,
"author_profile": "https://Stackoverflow.com/users/23263",
"pm_score": 3,
"selected": true,
"text": "0xC2 0xA0"
},
{
"answer_id": 380869,
"author": "Jay",
"author_id": 41690,
"author_profile": "https://S... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379339",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6001/"
] |
379,342 | <p>I have a site where users can post stuff (as in forums, comments, etc) using a customised implementation of TinyMCE. A lot of them like to copy & paste from Word, which means their input often comes with a plethora of associated MS inline formatting.</p>
<p>I can't just get rid of <code><span whatever></c... | [
{
"answer_id": 28474984,
"author": "Isra",
"author_id": 1426639,
"author_profile": "https://Stackoverflow.com/users/1426639",
"pm_score": 0,
"selected": false,
"text": "<p>, <b>"
},
{
"answer_id": 37284498,
"author": "Szél Lajos",
"author_id": 4570923,
"author_profile... | 2008/12/18 | [
"https://Stackoverflow.com/questions/379342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14979/"
] |
379,343 | <p>It seems to me its very easy to implement an implicit operator versus a TypeConverter, so I'm assuming they aren't equivalent because of the prevalence of TypeConverters in the framework (see anything that extends FrameworkElement).</p>
<p>But why? Wouldn't it have been much easier to create string->object and obj... | [
{
"answer_id": 379563,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": true,
"text": "TypeConverter"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/379343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.