qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
19,096 | <p>I have a project that utilizes the javax.mail.internet.MimeMessage and other related classes that does mime parsing for emails that we receive. This needs to be ported to .NET.</p>
<p>What .Net 3rd party or built in library can I use to replace the Java classes that I'm using?</p>
<p>EDIT: Anything change in the l... | [
{
"answer_id": 2644678,
"author": "Pawel Lesnikowski",
"author_id": 80894,
"author_profile": "https://Stackoverflow.com/users/80894",
"pm_score": 0,
"selected": false,
"text": "using(Imap imap = new Imap())\n{\n imap.Connect(\"imapServer\");\n imap.UseBestLogin(\"user\", \"password... | 2008/08/20 | [
"https://Stackoverflow.com/questions/19096",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
19,127 | <p>I have a page using <code><ul></code> lists for navigation (Javascript changes the styling to display or not on mouseover).</p>
<p>This is working fine for me <em>except</em> in IE6 and IE7 when I have a Google Map on the page.</p>
<p>In this case the drop-down simply does not work. However, the page continu... | [
{
"answer_id": 19279,
"author": "travis",
"author_id": 1414,
"author_profile": "https://Stackoverflow.com/users/1414",
"pm_score": 2,
"selected": false,
"text": "$(function () {\n $(\"#primary-nav\").appendTo(\"#footer\");\n});\n"
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/19127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/364/"
] |
19,132 | <p>I'm asking with regards to c#, but I assume its the same in most other languages.</p>
<p>Does anyone have a good definition of <em>expressions</em> and <em>statements</em> and what the differences are?</p>
| [
{
"answer_id": 19139,
"author": "Patrick",
"author_id": 429,
"author_profile": "https://Stackoverflow.com/users/429",
"pm_score": 4,
"selected": false,
"text": "1 + 2 * 4 * foo.bar() //Expression\nfoo.voidFunc(1); //Statement\n"
},
{
"answer_id": 19224,
"author":... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
19,147 | <p>Using C# and WPF under .NET (rather than <a href="http://en.wikipedia.org/wiki/Windows_Forms" rel="noreferrer">Windows Forms</a> or console), what is the correct way to create an application that can only be run as a single instance?</p>
<p>I know it has something to do with some mythical thing called a mutex, rare... | [
{
"answer_id": 19165,
"author": "jason saldo",
"author_id": 1293,
"author_profile": "https://Stackoverflow.com/users/1293",
"pm_score": 7,
"selected": false,
"text": "class OneAtATimePlease {\n\n // Use a name unique to the application (eg include your company URL)\n static Mutex mutex... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19147",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/483/"
] |
19,151 | <p>How would one create an iterative function (or iterator object) in python?</p>
| [
{
"answer_id": 19152,
"author": "akdom",
"author_id": 145,
"author_profile": "https://Stackoverflow.com/users/145",
"pm_score": 7,
"selected": false,
"text": "def count(n=0):\n while True:\n yield n\n n += 1\n"
},
{
"answer_id": 24377,
"author": "ars",
"a... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/145/"
] |
19,173 | <p>If you're building an <code>AJA~Xy</code> app, are there any downsides to using <code>JSONP</code> requests/responses even if you're not planning on any <code>cross-domain</code> requests? </p>
<p>The only thing I can think of is that there are a couple extra bytes for the callback wrapper... </p>
<p><strong>Edit:... | [
{
"answer_id": 23208,
"author": "Shog9",
"author_id": 811,
"author_profile": "https://Stackoverflow.com/users/811",
"pm_score": 4,
"selected": true,
"text": "<script>"
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/19173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2031/"
] |
19,185 | <p>There is some documentation on the internet that shows that Windows changes the behavior of the NotifyIcon.BalloonTipShown command if the user is currently idle and this is <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=343411&SiteID=1" rel="nofollow noreferrer">detected by checking for keyboard ... | [
{
"answer_id": 19188,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 3,
"selected": true,
"text": "using System.Runtime.InteropServices;\n\n[DllImport(\"User32.dll\")] \nstatic extern bool GetLastInputInfo(ref LASTINPUTIN... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1185/"
] |
19,193 | <p>How do I make a tree data structure in C++ that uses iterators instead of pointers? I couldn't find anything in the STL that can do this. What I would like to do is to be able to create and manipulate trees like this:</p>
<pre><code>#include <iostream>
#include <tree>
using namespace std;
int main()
... | [
{
"answer_id": 19255,
"author": "fulmicoton",
"author_id": 446497,
"author_profile": "https://Stackoverflow.com/users/446497",
"pm_score": 4,
"selected": true,
"text": "int main(int, char **)\n {\n tree<string> tr;\n tree<string>::iterator top, one, two, loc, banana;\n\n top=tr.b... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19193",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2222/"
] |
19,201 | <p>Does anyone use Accurev for Source Control Management? We are switching (eventually) from StarTeam to Accurev.</p>
<p>My initial impression is that the GUI tool is severely lacking, however the underlying engine, and the branches as streams concept is incredible.</p>
<p>The biggest difficulty we are facing is asse... | [
{
"answer_id": 14609643,
"author": "Paul",
"author_id": 70930,
"author_profile": "https://Stackoverflow.com/users/70930",
"pm_score": 4,
"selected": false,
"text": "accurev update -t <transaction-number>"
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/19201",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] |
19,236 | <p>I'm working on a internal web based tool for my company. Part of this tool is another application (The Cruise Control Dashboard) that runs in its own Virtual Directory under my root application.</p>
<p>I wanted to limit access to this internal application by setting up Forms Authentication on it, and having a login... | [
{
"answer_id": 19239,
"author": "Darren Kopp",
"author_id": 77,
"author_profile": "https://Stackoverflow.com/users/77",
"pm_score": 0,
"selected": false,
"text": "<deny users=\"?\"/>\n"
},
{
"answer_id": 19253,
"author": "Mark Glorie",
"author_id": 952,
"author_profil... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] |
19,280 | <p>I could only find the function <code>confirm()</code> that gives OK/Cancel buttons. Is there any way to give Yes/No buttons?</p>
| [
{
"answer_id": 19290,
"author": "Cade",
"author_id": 565,
"author_profile": "https://Stackoverflow.com/users/565",
"pm_score": 4,
"selected": true,
"text": "prompt"
},
{
"answer_id": 19307,
"author": "travis",
"author_id": 1414,
"author_profile": "https://Stackoverflo... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19280",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/184/"
] |
19,294 | <p>In my code behind I wire up my events like so:</p>
<pre><code>protected override void OnInit(EventArgs e)
{
base.OnInit(e);
btnUpdateUser.Click += btnUpateUserClick;
}
</code></pre>
<p>I've done it this way because that's what I've seen in examples. </p>
<ul>
<li>Does the base.OnInit() method need to be c... | [
{
"answer_id": 19299,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 0,
"selected": false,
"text": "protected virtual void OnClick(EventArgs e)\n{\n if (Click != null) Click(this, e);\n}\n"
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/19294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1894/"
] |
19,295 | <p>I'd like to use a database to store i18n key/value pairs so we can modify / reload the i18n data at runtime. Has anyone done this? Or does anyone have an idea of how to implement this? I've read several threads on this, but I haven't seen a workable solution.</p>
<p>I'm specifically refering to something that would... | [
{
"answer_id": 19308,
"author": "danb",
"author_id": 2031,
"author_profile": "https://Stackoverflow.com/users/2031",
"pm_score": 3,
"selected": true,
"text": "HttpSession session = .. [get hold of the session] \nResourceBundle bundle = new PropertyResourceBundle(toInputStream(myOwnProper... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19295",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1310/"
] |
19,318 | <p>I have an ASP.NET webservice with along the lines of:</p>
<pre><code>[WebService(Namespace = "http://internalservice.net/messageprocessing")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ToolboxItem(false)]
public class ProvisioningService : WebService
{
[WebMethod]
public XmlDocument Proc... | [
{
"answer_id": 19324,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 0,
"selected": false,
"text": "XmlDocument changeDocumentNamespace(XmlDocument doc, string newNamespace) \n{ \n if (doc.DocumentElement.NamespaceURI.Le... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19318",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/419/"
] |
19,339 | <p>I have a list of 2-item tuples and I'd like to convert them to 2 lists where the first contains the first item in each tuple and the second list holds the second item.</p>
<p><strong>For example:</strong></p>
<pre><code>original = [('a', 1), ('b', 2), ('c', 3), ('d', 4)]
# and I want to become...
result = (['a', '... | [
{
"answer_id": 19343,
"author": "Patrick",
"author_id": 429,
"author_profile": "https://Stackoverflow.com/users/429",
"pm_score": 11,
"selected": true,
"text": "zip"
},
{
"answer_id": 25193,
"author": "Anders Eurenius",
"author_id": 1421,
"author_profile": "https://St... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19339",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/680/"
] |
19,347 | <p>At my university most of my classes have been in Java. I have also recently learned C# (and the Visual Studio environment) at a summer internship. Now I'm taking an Intro to Computer Graphics class and the grad student teaching the class prefers us to use C++ to access the OpenGL bindings via GLUT.</p>
<p>Does an... | [
{
"answer_id": 19439,
"author": "postfuturist",
"author_id": 1892,
"author_profile": "https://Stackoverflow.com/users/1892",
"pm_score": 2,
"selected": false,
"text": "Thing mything = new Thing(); // mything is an object reference\nmything.method();\n"
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/19347",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/396/"
] |
19,353 | <p>I'm tasked with building a .NET client app to detect silence in a WAV files.</p>
<p>Is this possible with the built-in Windows APIs? Or alternately, any good libraries out there to help with this?</p>
| [
{
"answer_id": 21500363,
"author": "Aleks",
"author_id": 3258422,
"author_profile": "https://Stackoverflow.com/users/3258422",
"pm_score": -1,
"selected": false,
"text": "private static void SkipSilent(string fileName, short silentLevel)\n{\n WaveReader wr = new WaveReader(File.OpenRe... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19353",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/536/"
] |
19,355 | <p>In a .NET project, say you have a configuration setting - like a connection string - stored in a app.config file, which is different for each developer on your team (they may be using a local SQL Server, or a specific server instance, or using a remote server, etc). </p>
<p>How can you structure your solution so th... | [
{
"answer_id": 19360,
"author": "DevelopingChris",
"author_id": 1220,
"author_profile": "https://Stackoverflow.com/users/1220",
"pm_score": 0,
"selected": false,
"text": "<target name=\"copyconfigs\" depends=\"clean\">\n <foreach item=\"File\" property=\"filename\" unless=\"${string::ge... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19355",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/708/"
] |
19,388 | <p>I've heard rumors that PHP is planning on introducing a "goto" command. What is it supposed to be doing?</p>
<p>I've tried searching a bit, but haven't found anything awfully descriptive. I understand that it won't be a "<code>GOTO 10</code>"-like command...</p>
| [
{
"answer_id": 19398,
"author": "postfuturist",
"author_id": 1892,
"author_profile": "https://Stackoverflow.com/users/1892",
"pm_score": 2,
"selected": false,
"text": "for(...) {\n for (...) {\n for (...) {\n // some code\n if (x) GOTO outside;\n }\n }\n... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19388",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2238/"
] |
19,409 | <p>This is kinda oddball, but I was poking around with the GNU assembler today (I want to be able to at least read the syntax), and was trying to get this little contrived example of mine to work. Namely I just want to go from 0 to 100, printing out numbers all the while. So a few minutes later I come up with this:</p>... | [
{
"answer_id": 19453,
"author": "seanyboy",
"author_id": 1726,
"author_profile": "https://Stackoverflow.com/users/1726",
"pm_score": 5,
"selected": true,
"text": "# count.s: print the numbers from 0 to 100. \n .text\nstring: .asciz \"%d\\n\"\n .globl _main\n\n_main:\n movl $0... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/61/"
] |
19,412 | <p>How can I request a random row (or as close to truly random as is possible) in pure SQL?</p>
| [
{
"answer_id": 19414,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 6,
"selected": false,
"text": "SELECT TOP 1 * FROM MyTable ORDER BY newid()\n"
},
{
"answer_id": 19415,
"author": "Paige Ruten",
"author... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19412",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/473/"
] |
19,433 | <p>What is a good free library for editing MP3s/FLACs. </p>
<p>By editing I mean:</p>
<ul>
<li>Cutting audio file into multiple parts</li>
<li>Joining multiple audio files together</li>
<li>Increase playback speed of file without affecting the pitch (eg. podcasts up to 1.3x)</li>
<li>Re-encoding audio file from Flac ... | [
{
"answer_id": 19434,
"author": "Christian Hagelid",
"author_id": 202,
"author_profile": "https://Stackoverflow.com/users/202",
"pm_score": 1,
"selected": false,
"text": "* Record live audio.\n* Convert tapes and records into digital recordings or CDs.\n* Edit Ogg Vorbis, MP3, WAV or AIF... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1915/"
] |
19,436 | <p>I have a datalist with a OnDeleteCommand="Delete_Command".</p>
<p>I want the delete a record with multiple primary Keys but I do not know how to access it from the Delete_Command event.</p>
<p>If I use DataKeyField I'm limited to only one key.
Any workarounds for this?</p>
| [
{
"answer_id": 19447,
"author": "Biri",
"author_id": 968,
"author_profile": "https://Stackoverflow.com/users/968",
"pm_score": 2,
"selected": true,
"text": "gridView.DataKeys[rowNum][dataKeyName]\n"
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/19436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1013/"
] |
19,442 | <p>How can I create this file in a directory in windows 2003 SP2:</p>
<pre><code>.hgignore
</code></pre>
<p>I get error: You must type a file name.</p>
| [
{
"answer_id": 19443,
"author": "Ishmaeel",
"author_id": 227,
"author_profile": "https://Stackoverflow.com/users/227",
"pm_score": 6,
"selected": true,
"text": "echo Hello there! > .hgignore\n"
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/19442",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/479/"
] |
19,454 | <p>Following on from my recent question on <a href="https://stackoverflow.com/questions/17725/large-complex-objects-as-a-web-service-result">Large, Complex Objects as a Web Service Result</a>. I have been thinking about how I can ensure all future child classes are serializable to XML.</p>
<p>Now, obviously I could imp... | [
{
"answer_id": 19455,
"author": "Fredrik Kalseth",
"author_id": 1710,
"author_profile": "https://Stackoverflow.com/users/1710",
"pm_score": 5,
"selected": true,
"text": "[TestClass]\npublic class When_type_inherits_MyObject\n{\n private readonly List<Type> _types = new List<Type>();\n... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/832/"
] |
19,461 | <p>I have a standard HTML image tag with an image in it, 100 by 100 pixels in size. I want people to be able to click the image and for that to pass the X and Y that they click into a function.</p>
<p>The coordinates need to be relative to the image top and left.</p>
| [
{
"answer_id": 19464,
"author": "Jon Galloway",
"author_id": 5,
"author_profile": "https://Stackoverflow.com/users/5",
"pm_score": 3,
"selected": false,
"text": "<input id=\"info\" type=\"image\">\n"
},
{
"answer_id": 1222641,
"author": "Community",
"author_id": -1,
"... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19461",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1384652/"
] |
19,466 | <p>How can I check <code>file permissions</code>, without having to run operating system specific command via <code>passthru()</code> or <code>exec()</code>?</p>
| [
{
"answer_id": 19472,
"author": "Željko Živković",
"author_id": 1926,
"author_profile": "https://Stackoverflow.com/users/1926",
"pm_score": 6,
"selected": true,
"text": "clearstatcache();\necho substr(sprintf('%o', fileperms('/etc/passwd')), -4);\n"
},
{
"answer_id": 11434314,
... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/115/"
] |
19,481 | <p>Another discussion (we've been having a lot of them these days!) in our work is whether data binding is a bad idea or not.</p>
<p>Personally, I think it is a Bad Thing™.</p>
<p>My reasons are thrice:</p>
<ol>
<li><p>It circumvents my well architectured MVP framework - with databinding, the view communicates bi-di... | [
{
"answer_id": 663652,
"author": "Bevan",
"author_id": 30280,
"author_profile": "https://Stackoverflow.com/users/30280",
"pm_score": 2,
"selected": false,
"text": "Bind()"
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/19481",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1193/"
] |
19,487 | <p>I generally use a manual process:</p>
<ol>
<li>Look at the page, figure out the semantic elements, and build the HTML</li>
<li>Slice up the images I think I'll need</li>
<li>Start writing CSS</li>
<li>Tweak and repeat different steps as necessary</li>
</ol>
<p>Got a better approach, or a tool?</p>
| [
{
"answer_id": 22078,
"author": "Andy",
"author_id": 1993,
"author_profile": "https://Stackoverflow.com/users/1993",
"pm_score": 3,
"selected": false,
"text": "<ul id=\"menu\">\n <li id=\"home\"><a href=\"/\" title=\"Go to Homepage\">Home</a></li>\n <li id=\"about\"><a href=\"/abou... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5/"
] |
19,516 | <p>Here is a simplification of my database:</p>
<pre>Table: Property
Fields: ID, Address
Table: Quote
Fields: ID, PropertyID, BespokeQuoteFields...
Table: Job
Fields: ID, PropertyID, BespokeJobFields...</pre>
<p>Then we have other tables that relate to the <strong>Quote</strong> and <strong>Job</strong> tables indi... | [
{
"answer_id": 19521,
"author": "Ian Nelson",
"author_id": 2084,
"author_profile": "https://Stackoverflow.com/users/2084",
"pm_score": 3,
"selected": true,
"text": "Table: Message\nFields: Id, TimeReceived, MessageDetails, WhateverElse...\n"
},
{
"answer_id": 19545,
"author":... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/366/"
] |
19,517 | <p>I was reading the example chapter from <a href="http://www.manning.com/rahien/" rel="nofollow noreferrer">the book by Ayende</a> and on the website of <a href="http://boo.codehaus.org/" rel="nofollow noreferrer">the Boo language</a> I saw a reference to the <a href="http://specter.sourceforge.net/" rel="nofollow nor... | [
{
"answer_id": 19521,
"author": "Ian Nelson",
"author_id": 2084,
"author_profile": "https://Stackoverflow.com/users/2084",
"pm_score": 3,
"selected": true,
"text": "Table: Message\nFields: Id, TimeReceived, MessageDetails, WhateverElse...\n"
},
{
"answer_id": 19545,
"author":... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4367/"
] |
19,553 | <p>I have a "Status" class in C#, used like this:</p>
<pre><code>Status MyFunction()
{
if(...) // something bad
return new Status(false, "Something went wrong")
else
return new Status(true, "OK");
}
</code></pre>
<p>You get the idea.
All callers of MyFunction <em>should</em> check the returned Status:... | [
{
"answer_id": 19560,
"author": "Ian Nelson",
"author_id": 2084,
"author_profile": "https://Stackoverflow.com/users/2084",
"pm_score": 3,
"selected": false,
"text": "bool TryMyFunction(out Status status)\n{\n}\n"
},
{
"answer_id": 19561,
"author": "TK.",
"author_id": 1816... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1163/"
] |
19,589 | <p>Using C# .NET 3.5 and WCF, I'm trying to write out some of the WCF configuration in a client application (the name of the server the client is connecting to).</p>
<p>The obvious way is to use <code>ConfigurationManager</code> to load the configuration section and write out the data I need.</p>
<pre><code>var servi... | [
{
"answer_id": 19594,
"author": "DavidWhitney",
"author_id": 1297,
"author_profile": "https://Stackoverflow.com/users/1297",
"pm_score": 6,
"selected": false,
"text": "// Automagically find all client endpoints defined in app.config\nClientSection clientSection = \n ConfigurationManag... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1297/"
] |
19,604 | <p>What is the best Image Manager to integrate in TinyMce editor apart the official Moxiecode commercial ones?</p>
<p>I'm looking to integrate a light texteditor in an asp.net mvc application and I choosed the Tinymce solution (and not the classic FCKEditor as this seems more lightweight and more jquery friendly).</p>... | [
{
"answer_id": 24569996,
"author": "Ravimallya",
"author_id": 1201322,
"author_profile": "https://Stackoverflow.com/users/1201322",
"pm_score": 0,
"selected": false,
"text": " div.mce-fullscreen\n {\n z-index: 1030;\n }\n div.mce-edit-area\n {\n border-width:... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1929/"
] |
19,611 | <p>Given a (source) patch file, what's the easiest way to apply this patch on the source files under Windows?</p>
<p>A GUI tool where I can visually compare the unchanged-changed source lines would be great.</p>
| [
{
"answer_id": 8056005,
"author": "Nicolas Thery",
"author_id": 903840,
"author_profile": "https://Stackoverflow.com/users/903840",
"pm_score": 4,
"selected": false,
"text": "git apply --ignore-space-change --ignore-whitespace --whitespace=nowarn file.patch\n"
},
{
"answer_id": 2... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1630/"
] |
19,656 | <p>I have an Interface called <code>IStep</code> that can do some computation (See "<a href="http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html" rel="nofollow noreferrer">Execution in the Kingdom of Nouns</a>"). At runtime, I want to select the appropriate implementation by class name.</p>
<pre... | [
{
"answer_id": 19658,
"author": "Ian Nelson",
"author_id": 2084,
"author_profile": "https://Stackoverflow.com/users/2084",
"pm_score": 2,
"selected": false,
"text": "IStep step = System.Activator.CreateInstance(sAssemblyName, sClassName).Unwrap() as IStep;\n"
},
{
"answer_id": 19... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2260/"
] |
19,708 | <p>To grab the inode of a file in PHP, you can use this:</p>
<pre><code>$fs = stat($file);
echo $fs['ino'];
</code></pre>
<p>The problem with this is EVERYWHERE says it's slow and you should avoid it. So the question becomes what's the fast(er) way to do it?</p>
| [
{
"answer_id": 19716,
"author": "mercutio",
"author_id": 1951,
"author_profile": "https://Stackoverflow.com/users/1951",
"pm_score": 2,
"selected": true,
"text": "fileinode()"
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/19708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/497/"
] |
19,746 | <p>I'm trying to create a webapplication where I want to be able to plug-in separate assemblies. I'm using MVC preview 4 combined with Unity for dependency injection, which I use to create the controllers from my plugin assemblies. I'm using WebForms (default aspx) as my view engine.</p>
<p>If I want to use a view, I'... | [
{
"answer_id": 1514764,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": false,
"text": "protected void Application_Start()\n{\n WebFormViewEngine engine = new WebFormViewEngine();\n\n engine.ViewLocationForm... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/909/"
] |
19,766 | <p>What would be the best way to have a list of items with a checkbox each in Java Swing?</p>
<p>I.e. a JList with items that have some text and a checkbox each?</p>
| [
{
"answer_id": 19804,
"author": "Telcontar",
"author_id": 518,
"author_profile": "https://Stackoverflow.com/users/518",
"pm_score": 5,
"selected": true,
"text": "ListCellRenderer"
},
{
"answer_id": 1966151,
"author": "Dan Rosenstark",
"author_id": 8047,
"author_profil... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19766",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1827/"
] |
19,772 | <p>Does anyone know of a good Command Prompt replacement? I've tried bash/Cygwin, but that does not really meet my needs at work because it's too heavy. I'd like a function-for-function identical wrapper on cmd.exe, but with highlighting, intellisense, and (critically) a tabbed interface. Powershell is okay, but the... | [
{
"answer_id": 6149994,
"author": "Priya",
"author_id": 465560,
"author_profile": "https://Stackoverflow.com/users/465560",
"pm_score": 0,
"selected": false,
"text": "ZOC"
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/19772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1490/"
] |
19,773 | <p>I have a huge web app that is having issues with memory leak in IE 6.</p>
<p>Fixing a memory leak in a 5 line code sample that demonstrates the problem is easy. </p>
<p>But if I have a very huge application, where should a start from?</p>
| [
{
"answer_id": 9519996,
"author": "Trident D'Gao",
"author_id": 139667,
"author_profile": "https://Stackoverflow.com/users/139667",
"pm_score": 0,
"selected": false,
"text": "<!--[if lt IE 8]>\n<script type=\"text/javascript\">\n\nfunction disposeAll() {\n if (window.document.all) {\n... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19773",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1100/"
] |
19,786 | <p>I am maintaining an app for a client that is used in two locations. One in England and one in Poland.</p>
<p>The database is stored in England and uses the format £1000.00 for currency, but the information is being gathered locally in Poland where 1000,00 is the format.</p>
<p>My question is, in VB6 is there a fun... | [
{
"answer_id": 19920,
"author": "Joel Spolsky",
"author_id": 4,
"author_profile": "https://Stackoverflow.com/users/4",
"pm_score": 4,
"selected": true,
"text": "\"£1000.00\""
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/19786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1075/"
] |
19,787 | <p>Is it possible to look back through the history of a Subversion repository for files of a certain name (even better would be for them to have a wildcard search)?</p>
<p>I want to see if a <code>.bat</code> file has been committed to the repository at some point in the past but has since been removed in later update... | [
{
"answer_id": 19824,
"author": "Philip Reynolds",
"author_id": 1087,
"author_profile": "https://Stackoverflow.com/users/1087",
"pm_score": 0,
"selected": false,
"text": "svnadmin dump -r1:HEAD /path/to/repo/\n"
},
{
"answer_id": 19826,
"author": "crashmstr",
"author_id":... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/277/"
] |
19,790 | <p>By default each row of a Gridview maps to each row in a datatable or dataset attached to its datasource. But what if I want to display these rows in multiple columns. For example if it has 10 rows, 5 rows each should be displayed in 2 columns side by side. Also can I do this with the Infragistics grid. Is this possi... | [
{
"answer_id": 19805,
"author": "Serhat Ozgel",
"author_id": 31505,
"author_profile": "https://Stackoverflow.com/users/31505",
"pm_score": 5,
"selected": true,
"text": "DataList"
},
{
"answer_id": 177689,
"author": "BenB",
"author_id": 11703,
"author_profile": "https:... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1688440/"
] |
19,837 | <p>Currently we have a hybrid ASP/PHP setup connecting to a SQL Server 2005 database. But all the query work is done on the client side, I'd like to move some of this to PHP. </p>
<p>What driver and/or connection string is needed to connect to Sql Svr and what is the syntax to use in PHP?</p>
<hr>
<p>Update: OK so I... | [
{
"answer_id": 19851,
"author": "Julio César",
"author_id": 2148,
"author_profile": "https://Stackoverflow.com/users/2148",
"pm_score": 2,
"selected": false,
"text": "$conn = mssql_connect('localhost', 'sa' , '123456')\n or die('Can\\'t connect.');\nmssql_select_db('database', $conn)\... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1915/"
] |
19,838 | <p>I've been trying to understand how Ruby blocks work, and to do that I've been trying to implement them in C.</p>
<p>One easy way to implement closures is to pass a <code>void*</code> to the enclosing stack to the closure/function but Ruby blocks also seem to handle returns and break statements from the scope that u... | [
{
"answer_id": 20154,
"author": "wvdschel",
"author_id": 2018,
"author_profile": "https://Stackoverflow.com/users/2018",
"pm_score": 4,
"selected": true,
"text": "context"
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/19838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2148/"
] |
19,843 | <p>My question concerns c# and how to access Static members ... Well I don't really know how to explain it (which kind of is bad for a question isn't it?) I will just give you some sample code:</p>
<pre><code>Class test<T>{
int method1(Obj Parameter1){
//in here I want to do something which I would ... | [
{
"answer_id": 19867,
"author": "Nick Berardi",
"author_id": 17,
"author_profile": "https://Stackoverflow.com/users/17",
"pm_score": -1,
"selected": false,
"text": "class a {\n static StaticMethod1 ()\n virtual Method1 ()\n}\n\nclass b : a {\n override Method1 () return StaticMe... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2275/"
] |
19,852 | <p>I'm just designing the schema for a database table which will hold details of email attachments - their size in bytes, filename and content-type (i.e. "image/jpg", "audio/mp3", etc).</p>
<p>Does anybody know the maximum length that I can expect a content-type to be?</p>
| [
{
"answer_id": 1849792,
"author": "speaker",
"author_id": 215670,
"author_profile": "https://Stackoverflow.com/users/215670",
"pm_score": 7,
"selected": true,
"text": "Type and subtype names MUST conform to the following ABNF:\n\n type-name = reg-name\n subtype-name = reg-name\n\n ... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2084/"
] |
19,883 | <p>I've used Trac/Subversion before and really like the integration. My current project is using Mercurial for distributed development and it'd be nice to be able to track issues/bugs and have this be integrated with Mercurial. I realized this could be tricky with the nature of DVCS.</p>
| [
{
"answer_id": 3129480,
"author": "dimo414",
"author_id": 113632,
"author_profile": "https://Stackoverflow.com/users/113632",
"pm_score": 1,
"selected": false,
"text": "hg b"
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/19883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/287/"
] |
19,893 | <p>I have two applications written in Java that communicate with each other using XML messages over the network. I'm using a SAX parser at the receiving end to get the data back out of the messages. One of the requirements is to embed binary data in an XML message, but SAX doesn't like this. Does anyone know how to ... | [
{
"answer_id": 19939,
"author": "Mo.",
"author_id": 1870,
"author_profile": "https://Stackoverflow.com/users/1870",
"pm_score": 8,
"selected": false,
"text": "<DATA>\n <BINARY>\n <BIT index=\"0\">0</BIT>\n <BIT index=\"1\">0</BIT>\n <BIT index=\"2\">1</BIT>\n ...\n <BIT i... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1288/"
] |
19,933 | <p>I want to copy a file from A to B in C#. How do I do that?</p>
| [
{
"answer_id": 19936,
"author": "Eric Z Beard",
"author_id": 1219,
"author_profile": "https://Stackoverflow.com/users/1219",
"pm_score": 2,
"selected": false,
"text": "FileInfo fi = new FileInfo(\"a.txt\");\nfi.CopyTo(\"b.txt\");\n"
},
{
"answer_id": 19938,
"author": "Corey",... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2260/"
] |
19,941 | <p>I want to be able to capture the exception that is thrown when a user requests a non-existent controller and re-direct it to a 404 page. How can I do this?</p>
<p>For example, the user requests <code>http://www.nosite.com/paeges/1</code> (<em>should be</em> <code>/pages/</code>). How do I make it so they get re-dir... | [
{
"answer_id": 19959,
"author": "Dale Ragan",
"author_id": 1117,
"author_profile": "https://Stackoverflow.com/users/1117",
"pm_score": 4,
"selected": false,
"text": "// We couldn't find a route to handle the request. Show the 404 page.\nroutes.MapRoute(\"Error\", \"{*url}\",\n new { ... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2285/"
] |
19,952 | <p>The RFC for a Java class is set of all methods that can be invoked in response to a message to an object of the class or by some method in the class.
RFC = M + R where
M = Number of methods in the class.
R = Total number of other methods directly invoked from the M.</p>
<p>Thinking C is the .class and J is the .j... | [
{
"answer_id": 19998,
"author": "Herms",
"author_id": 1409,
"author_profile": "https://Stackoverflow.com/users/1409",
"pm_score": 0,
"selected": false,
"text": "class J {\n a() { }\n b() { this.a(); }\n c() { jj.aa(); }\n d() { i.k(); }\n e() { this.f().a(); }\n f() { return this; ... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/482/"
] |
19,988 | <p>I'm currently using the awesome attachment-fu plugin for a Rails app, but as a novice developer, I've never encountered a scenario like the one I've found myself in.</p>
<p>Essentially, I'm using the attachment-fu plugin on two levels.</p>
<ol>
<li>Is for user avatars in the user class.</li>
<li>Is to allow file a... | [
{
"answer_id": 78719,
"author": "Dan Harper",
"author_id": 14530,
"author_profile": "https://Stackoverflow.com/users/14530",
"pm_score": 0,
"selected": false,
"text": " class FileUpload < ActiveRecord::Base\n belongs_to :fileable, :polymorphic => true\n file_column :name\n ... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19988",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2293/"
] |
19,995 | <p>Of course I am aware of Ajax, but the problem with Ajax is that the browser should poll the server frequently to find whether there is new data. This increases server load.</p>
<p>Is there any better method (even using Ajax) other than polling the server frequently?</p>
| [
{
"answer_id": 20014,
"author": "sparkes",
"author_id": 269,
"author_profile": "https://Stackoverflow.com/users/269",
"pm_score": 1,
"selected": false,
"text": "multipart/x-mixed-replace"
},
{
"answer_id": 19458245,
"author": "pafinde",
"author_id": 1033410,
"author_p... | 2008/08/21 | [
"https://Stackoverflow.com/questions/19995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/184/"
] |
20,047 | <p>We're seeing some pernicious, but rare, deadlock conditions in the Stack Overflow SQL Server 2005 database.</p>
<p>I attached the profiler, set up a trace profile using <a href="http://www.simple-talk.com/sql/learn-sql-server/how-to-track-down-deadlocks-using-sql-server-2005-profiler/" rel="noreferrer">this excelle... | [
{
"answer_id": 20094,
"author": "GateKiller",
"author_id": 383,
"author_profile": "https://Stackoverflow.com/users/383",
"pm_score": 0,
"selected": false,
"text": "Begin Tran\nInsert into Table (Columns) Values (Values)\nSelect Max(ID) From Table\nCommit Tran\n"
},
{
"answer_id":... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20047",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1/"
] |
20,054 | <p>I shudder to ask, but my client might offer no other SQL (or SQL-like) solution. I know Access has some SQL hooks; are they enough for basic ActiveRecord?</p>
<p><em>Later:</em></p>
<p>I appreciate all the suggestions to use other databases, but trust me: I've tried convincing them. There is an "approved" list, ... | [
{
"answer_id": 20940,
"author": "James A. Rosen",
"author_id": 1190,
"author_profile": "https://Stackoverflow.com/users/1190",
"pm_score": 2,
"selected": false,
"text": "development:\n adapter: msaccess\n database: C:\\path\\to\\access_file.mdb\n"
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/20054",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1190/"
] |
20,061 | <p>I've recently taken up learning some C# and wrote a Yahtzee clone. My next step (now that the game logic is in place and functioning correctly) is to integrate some method of keeping stats across all the games played.</p>
<p>My question is this, how should I go about storing this information? My first thought wou... | [
{
"answer_id": 20117,
"author": "Skizz",
"author_id": 1898,
"author_profile": "https://Stackoverflow.com/users/1898",
"pm_score": 1,
"selected": false,
"text": "System::Xml"
},
{
"answer_id": 20130,
"author": "Brian Ensink",
"author_id": 1254,
"author_profile": "https... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/271/"
] |
20,063 | <p>What's the <strong>easiest</strong>, <strong>tersest</strong>, and most <strong>flexible</strong> method or library for parsing Python command line arguments?</p>
| [
{
"answer_id": 20065,
"author": "Corey",
"author_id": 1595,
"author_profile": "https://Stackoverflow.com/users/1595",
"pm_score": 4,
"selected": false,
"text": "optparse"
},
{
"answer_id": 20069,
"author": "fulmicoton",
"author_id": 446497,
"author_profile": "https://... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1335/"
] |
20,081 | <p>I've written PL/SQL code to denormalize a table into a much-easer-to-query form. The code uses a temporary table to do some of its work, merging some rows from the original table together.</p>
<p>The logic is written as a <a href="http://www.oreillynet.com/lpt/a/3136" rel="nofollow noreferrer">pipelined table funct... | [
{
"answer_id": 89084,
"author": "Sergey Stadnik",
"author_id": 10557,
"author_profile": "https://Stackoverflow.com/users/10557",
"pm_score": 0,
"selected": false,
"text": "CREATE GLOBAL TEMPORARY TABLE tab_ids (id INTEGER) \nON COMMIT DELETE ROWS;\n"
},
{
"answer_id": 97091,
... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/726/"
] |
20,084 | <p>Following on from my <a href="https://stackoverflow.com/questions/19454/enforce-attribute-decoration-of-classesmethods">previous question</a> I have been working on getting my object model to serialize to XML. But I have now run into a problem (quelle surprise!).</p>
<p>The problem I have is that I have a collectio... | [
{
"answer_id": 20126,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "IList"
},
{
"answer_id": 392690,
"author": "Max Galkin",
"author_id": 2351099,
"author_profile": "https://S... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/832/"
] |
20,088 | <p>I am maintaining a few web applications. The development and qa environments use invalid/outdated ssl-certificates.</p>
<p>Although it is generally a good thing, that Firefox makes me click like a dozen times to accept the certificate, this is pretty annoying.</p>
<p>Is there a configuration-parameter to make Fire... | [
{
"answer_id": 32188658,
"author": "Bryan Focht",
"author_id": 3145191,
"author_profile": "https://Stackoverflow.com/users/3145191",
"pm_score": 5,
"selected": false,
"text": "about:config"
},
{
"answer_id": 71890334,
"author": "Leniel Maccaferri",
"author_id": 114029,
... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1870/"
] |
20,107 | <p>This line in YUI's <a href="http://developer.yahoo.com/yui/reset/" rel="nofollow noreferrer">Reset CSS</a> is causing trouble for me:</p>
<pre class="lang-css prettyprint-override"><code>address,caption,cite,code,dfn,em,strong,th,var {
font-style: normal;
font-weight: normal;
}
</code></pre>
<p>It makes my... | [
{
"answer_id": 20118,
"author": "palmsey",
"author_id": 521,
"author_profile": "https://Stackoverflow.com/users/521",
"pm_score": 5,
"selected": true,
"text": "strong, b, strong *, b * { font-weight: bold; }\nem, i, em *, i * { font-style: italic; }\n"
},
{
"answer_id": 20138,
... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20107",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/437/"
] |
20,146 | <p>I'm looking for something like the <code>tempfile</code> module in Python: A (preferably) secure way to open a file for writing to. This should be easy to delete when I'm done too...</p>
<p>It seems, .NET does not have the "batteries included" features of the <code>tempfile</code> module, which not only cr... | [
{
"answer_id": 20153,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "Path.Combine(Path.GetTempPath(), Path.ChangeExtension(Guid.NewGuid().ToString(), \".TMP\"))\n"
},
{
"answer_id": 337847... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2260/"
] |
20,148 | <p>I'm working on a projects which involves a lot of database writes, I'd say (<em>70% inserts and 30% reads</em>). This ratio would also include updates which I consider to be one read and one write. The reads can be dirty (e.g. I don't need 100% accurate information at the time of read).<br>
The task in question wi... | [
{
"answer_id": 414934,
"author": "staticsan",
"author_id": 28832,
"author_profile": "https://Stackoverflow.com/users/28832",
"pm_score": 6,
"selected": false,
"text": "SELECT"
},
{
"answer_id": 16785740,
"author": "Pankaj Khurana",
"author_id": 2413197,
"author_profil... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2013/"
] |
20,156 | <p>Is there an easy way in C# to create <a href="http://en.wikipedia.org/wiki/Ordinal_numbers_%28linguistics%29" rel="noreferrer">Ordinals</a> for a number? For example:</p>
<ul>
<li>1 returns 1st</li>
<li>2 returns 2nd</li>
<li>3 returns 3rd</li>
<li>...etc</li>
</ul>
<p>Can this be done through <code>String.Format(... | [
{
"answer_id": 20166,
"author": "Stu",
"author_id": 414,
"author_profile": "https://Stackoverflow.com/users/414",
"pm_score": 4,
"selected": false,
"text": "public static string Ordinal(this int number)\n{\n var work = number.ToString();\n if ((number % 100) == 11 || (number % 100) == ... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20156",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/383/"
] |
20,173 | <p>Does anyone have any experience getting MSTest to copy hibernate.cfg.xml properly to the output directory? All my MSTests fail with a cannot find hibernate.cfg.xml error (I have it set to Copy Always), but my MBUnit tests pass.</p>
| [
{
"answer_id": 178478,
"author": "Watson",
"author_id": 25807,
"author_profile": "https://Stackoverflow.com/users/25807",
"pm_score": 2,
"selected": false,
"text": " try\n {\n sessionFactory = new Configuration()\n .Configure()\n ... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1975/"
] |
20,185 | <p>I have a collection of classes that inherit from an abstract class I created. I'd like to use the abstract class as a factory for creating instances of concrete implementations of my abstract class. </p>
<p>Is there any way to hide a constructor from all code except a parent class.</p>
<p>I'd like to do this basic... | [
{
"answer_id": 20200,
"author": "samjudson",
"author_id": 1908,
"author_profile": "https://Stackoverflow.com/users/1908",
"pm_score": 3,
"selected": true,
"text": "public abstract class AbstractClass\n{\n public static AbstractClass MakeAbstractClass(string args)\n {\n if (a... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/392/"
] |
20,198 | <p>I thought .Net code gets compiled into MSIL, so I always wondered how do Yellow Screens produce the faulty code. If it's executing the compiled code, how is the compiler able to produce code from the source files in the error message?</p>
<p>Feel free to edit this question/title, I know it doesn't really make sens... | [
{
"answer_id": 20315,
"author": "Darren Kopp",
"author_id": 77,
"author_profile": "https://Stackoverflow.com/users/77",
"pm_score": 3,
"selected": false,
"text": "// reverse the stack\nprivate static Stack<Exception> GenerateExceptionStack(Exception exception)\n{\n var exceptionStack ... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40/"
] |
20,227 | <p>Every method I write to encode a string in Java using 3DES can't be decrypted back to the original string. Does anyone have a simple code snippet that can just encode and then decode the string back to the original string?</p>
<p>I know I'm making a very silly mistake somewhere in this code. Here's what I've been ... | [
{
"answer_id": 20670,
"author": "Boris Terzic",
"author_id": 1996,
"author_profile": "https://Stackoverflow.com/users/1996",
"pm_score": 7,
"selected": true,
"text": "import java.security.MessageDigest;\nimport java.util.Arrays;\n\nimport javax.crypto.Cipher;\nimport javax.crypto.SecretK... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1486/"
] |
20,245 | <p>I am doing an e-commerce solution in ASP.NET which uses <a href="https://www.paypal.com/IntegrationCenter/ic_standard_home.html" rel="noreferrer">PayPal's Website Payments Standard</a> service. Together with that I use a service they offer (<a href="https://www.paypal.com/IntegrationCenter/ic_pdt.html" rel="noreferr... | [
{
"answer_id": 20274,
"author": "Markus Olsson",
"author_id": 2114,
"author_profile": "https://Stackoverflow.com/users/2114",
"pm_score": 5,
"selected": true,
"text": "if (Request.RequestType == \"POST\")\n{\n using (StreamReader sr = new StreamReader(Request.InputStream))\n {\n ... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1801/"
] |
20,263 | <p>"Microsoft SQL Server Profiler is a graphical user interface to SQL Trace for monitoring an instance of the Database Engine or Analysis Services."</p>
<p>I find using SQL Server Profiler extremely useful during development, testing and when I am debugging database application problems. Does anybody know if there is... | [
{
"answer_id": 82757,
"author": "Jon Topper",
"author_id": 6945,
"author_profile": "https://Stackoverflow.com/users/6945",
"pm_score": 4,
"selected": false,
"text": "log = /var/lib/mysql/query.log"
},
{
"answer_id": 14636239,
"author": "Matija",
"author_id": 779965,
"... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20263",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1982/"
] |
20,267 | <p>I have a large text template which needs tokenized sections replaced by other text. The tokens look something like this: ##USERNAME##. My first instinct is just to use String.Replace(), but is there a better, more efficient way or is Replace() already optimized for this?</p>
| [
{
"answer_id": 20341,
"author": "Slavo",
"author_id": 1801,
"author_profile": "https://Stackoverflow.com/users/1801",
"pm_score": 3,
"selected": false,
"text": "MailDefinition md = new MailDefinition();\nmd.BodyFileName = pathToTemplate;\nmd.From = \"test@somedomain.com\";\n\nListDiction... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1436/"
] |
20,272 | <p>In a macro for Visual Studio 6, I wanted to run an external program, so I typed:</p>
<pre><code>shell("p4 open " + ActiveDocument.FullName)
</code></pre>
<p>Which gave me a type mismatch runtime error. What I ended up having to type was this:</p>
<pre><code>Dim wshShell
Set wshShell = CreateObject("WScript.Shell"... | [
{
"answer_id": 20353,
"author": "Bryan Roth",
"author_id": 299,
"author_profile": "https://Stackoverflow.com/users/299",
"pm_score": 0,
"selected": false,
"text": "Shell \"p4 open\" & ActiveDocument.FullName\n"
},
{
"answer_id": 29042,
"author": "Michael Pryor",
"author_i... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1105/"
] |
20,298 | <p>I have something like this:</p>
<pre>
barProgress.BeginAnimation(RangeBase.ValueProperty, new DoubleAnimation(
barProgress.Value, dNextProgressValue,
new Duration(TimeSpan.FromSeconds(dDuration)));
</pre>
<p>Now, how would you stop that animation (the <code>DoubleAnimation</code>)? The reason I want to do ... | [
{
"answer_id": 20306,
"author": "TheSmurf",
"author_id": 1975282,
"author_profile": "https://Stackoverflow.com/users/1975282",
"pm_score": 8,
"selected": true,
"text": "BeginAnimation"
},
{
"answer_id": 36744,
"author": "user3837",
"author_id": 3837,
"author_profile":... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2260/"
] |
20,326 | <p>I have a ASP.NET 1.1 application, and I'm trying to find out why when I change a ComboBox which value is used to fill another one (parent-child relation), two postbacks are produced.</p>
<p>I have checked and checked the code, and I can't find the cause.</p>
<p>Here are both call stacks which end in a page_load</p... | [
{
"answer_id": 20479,
"author": "Jason Shoulders",
"author_id": 1953,
"author_profile": "https://Stackoverflow.com/users/1953",
"pm_score": 0,
"selected": false,
"text": "Dim i As Integer\ni = 0\n"
},
{
"answer_id": 20649,
"author": "juan",
"author_id": 1782,
"author_... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1782/"
] |
20,346 | <p>What are attributes in .NET, what are they good for, and how do I create my own attributes?</p>
| [
{
"answer_id": 20418,
"author": "Quibblesome",
"author_id": 1143,
"author_profile": "https://Stackoverflow.com/users/1143",
"pm_score": 8,
"selected": true,
"text": "public class DisplayWrapper\n{\n private UnderlyingClass underlyingObject;\n\n public DisplayWrapper(UnderlyingClass... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1595/"
] |
20,363 | <p>I have a database with a table Customers that have some data<br><br>
I have another database in the office that everything is the same, but my table Customers is empty<br><br>
How can I create a sql file in SQL Server 2005 (T-SQL) that takes everything on the table Customers from the first database, creates a, let's... | [
{
"answer_id": 228896,
"author": "Nordin",
"author_id": 29669,
"author_profile": "https://Stackoverflow.com/users/29669",
"pm_score": 0,
"selected": false,
"text": "INSERT INTO [DestinationDB].[schema].[table] ([column])\nSELECT [column] FROM [OriginDB].[schema].[table]\nGO\n"
},
{
... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20363",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
20,386 | <p>What are all the possible ways in which we can get memory leaks in .NET?</p>
<p>I know of two:</p>
<ol>
<li>Not properly un-registering <a href="http://diditwith.net/PermaLink,guid,fcf59145-3973-468a-ae66-aaa8df9161c7.aspx" rel="nofollow noreferrer">Event Handlers/Delegates</a>.</li>
<li>Not disposing dynamic chil... | [
{
"answer_id": 20431,
"author": "Keith",
"author_id": 905,
"author_profile": "https://Stackoverflow.com/users/905",
"pm_score": 4,
"selected": false,
"text": "// slows GC\nLabel label = new Label(); \nthis.Controls.Add(label); \nthis.Controls.Remove(label); \n\n// better \nLabel labe... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/380/"
] |
20,391 | <p>I have a svn repo on my machine (Windows). Anyone have a script to back it up to a network share?</p>
<p>I'm using the repo locally since I'm disconnected a lot. The network share is on a server with a backup strategy. I'm a perfect candidate for git/hg but I don't want to give up my VS integration just yet.</p>
| [
{
"answer_id": 20453,
"author": "jonezy",
"author_id": 2272,
"author_profile": "https://Stackoverflow.com/users/2272",
"pm_score": 3,
"selected": true,
"text": "svnadmin hotcopy m:\\Source\\Q4Press\\Repo m:\\SvnOut\\Q4Press\n"
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/20391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1946/"
] |
20,392 | <p>We've been trying to alter a lot of columns from nullable to not nullable, which involves dropping all the associated objects, making the change, and recreating the associated objects.</p>
<p>We've been using SQL Compare to generate the scripts, but I noticed that SQL Compare doesn't script statistic objects. Does ... | [
{
"answer_id": 20417,
"author": "SQLMenace",
"author_id": 740,
"author_profile": "https://Stackoverflow.com/users/740",
"pm_score": 2,
"selected": false,
"text": "sp_updatestats"
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/20392",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2086/"
] |
20,420 | <p>I'm a complete Xcode/Objective-C/Cocoa newbie but I'm learning fast and really starting to enjoy getting to grips with a new language, platform and paradigm.</p>
<p>One thing is though, having been using Visual Studio with R# for so long I've kind of been spoiled with the coding tools such as refactorings and compl... | [
{
"answer_id": 21019,
"author": "Chris Hanson",
"author_id": 714,
"author_profile": "https://Stackoverflow.com/users/714",
"pm_score": 3,
"selected": false,
"text": "mogenerator"
},
{
"answer_id": 21106,
"author": "Benjamin Pollack",
"author_id": 2354,
"author_profile... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1120/"
] |
20,426 | <p>I have a tree encoded in a MySQL database as edges:</p>
<pre><code>CREATE TABLE items (
num INT,
tot INT,
PRIMARY KEY (num)
);
CREATE TABLE tree (
orig INT,
term INT
FOREIGN KEY (orig,term) REFERENCES items (num,num)
)
</code></pre>
<p>For each leaf in the tree, <code>items.tot</cod... | [
{
"answer_id": 21019,
"author": "Chris Hanson",
"author_id": 714,
"author_profile": "https://Stackoverflow.com/users/714",
"pm_score": 3,
"selected": false,
"text": "mogenerator"
},
{
"answer_id": 21106,
"author": "Benjamin Pollack",
"author_id": 2354,
"author_profile... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1343/"
] |
20,450 | <p>I'd like to take some RTF input and clean it to remove all RTF formatting except \ul \b \i to paste it into Word with minor format information.</p>
<p>The command used to paste into Word will be something like:
oWord.ActiveDocument.ActiveWindow.Selection.PasteAndFormat(0) (with some RTF text already in the Clipboar... | [
{
"answer_id": 20708,
"author": "Martin",
"author_id": 770,
"author_profile": "https://Stackoverflow.com/users/770",
"pm_score": 3,
"selected": false,
"text": "Dim unformatedtext As String\n\nsomeRTFtext = Replace(someRTFtext, \"\\ul\", \"[ul]\")\nsomeRTFtext = Replace(someRTFtext, \"\\b... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1508/"
] |
20,463 | <p><a href="http://php.net/Interfaces" rel="noreferrer">Interfaces</a> allow you to create code which defines the methods of classes that implement it. You cannot however add any code to those methods. </p>
<p><a href="http://php.net/Abstract" rel="noreferrer">Abstract classes</a> allow you to do the same thing, along... | [
{
"answer_id": 20500,
"author": "Tim Frey",
"author_id": 1471,
"author_profile": "https://Stackoverflow.com/users/1471",
"pm_score": 3,
"selected": false,
"text": "interface Readable {\n String read();\n}\n\nList<Readable> readables; // dunno what these actually are, but we know they ha... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1797/"
] |
20,467 | <p>Are there any automatic methods for trimming a path string in .NET?</p>
<p>For example:</p>
<pre><code>C:\Documents and Settings\nick\My Documents\Tests\demo data\demo data.emx
</code></pre>
<p>becomes</p>
<pre><code>C:\Documents...\demo data.emx
</code></pre>
<p>It would be particularly cool if this were built... | [
{
"answer_id": 20492,
"author": "Darren Kopp",
"author_id": 77,
"author_profile": "https://Stackoverflow.com/users/77",
"pm_score": 0,
"selected": false,
"text": "c:\\Documents and Settings\\nick\\My Doc...\n"
},
{
"answer_id": 20494,
"author": "Quibblesome",
"author_id":... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1490/"
] |
20,484 | <p>Can/Should I use a LIKE criteria as part of an INNER JOIN when building a stored procedure/query? I'm not sure I'm asking the right thing, so let me explain.</p>
<p>I'm creating a procedure that is going to take a list of keywords to be searched for in a column that contains text. If I was sitting at the console, I... | [
{
"answer_id": 20599,
"author": "jason saldo",
"author_id": 1293,
"author_profile": "https://Stackoverflow.com/users/1293",
"pm_score": 1,
"selected": false,
"text": "create table name(\n nameID identity / int\n ,name varchar(50))\n\ncreate table description(\n descID identity / ... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/71/"
] |
20,510 | <p>I have a flex application that needs the ability to generate and execute JavaScript. When I say this, I mean I need to execute raw JavaScript that I create in my Flex application (not just an existing JavaScript method)</p>
<p>I am currently doing this by exposing the following JavaScript method:</p>
<pre><code>fu... | [
{
"answer_id": 20645,
"author": "Theo",
"author_id": 1109,
"author_profile": "https://Stackoverflow.com/users/1109",
"pm_score": 4,
"selected": true,
"text": "ExternalInterface"
},
{
"answer_id": 40553258,
"author": "user2629253",
"author_id": 2629253,
"author_profile... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1638/"
] |
20,529 | <p>I have been using Eclipse as an IDE for a short amount of time (about 3 months of full use) and almost every day I learn about some shortcut or feature that I had absolutely no idea about. For instance, just today I learned that <kbd>Ctrl</kbd>+<kbd>3</kbd> was the shortcut for a Quick Access window.</p>
<p>I was ... | [
{
"answer_id": 19623660,
"author": "Lukas Eder",
"author_id": 521799,
"author_profile": "https://Stackoverflow.com/users/521799",
"pm_score": 1,
"selected": false,
"text": "java.lang.Object"
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/20529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2329/"
] |
20,586 | <p>I'm trying to bind a list of custom objects to a WPF Image like this:</p>
<pre><code><Image>
<Image.Source>
<BitmapImage UriSource="{Binding Path=ImagePath}" />
</Image.Source>
</Image>
</code></pre>
<p>But it doesn't work. This is the error I'm getting:</p>
<p><em>"P... | [
{
"answer_id": 20617,
"author": "Dale Ragan",
"author_id": 1117,
"author_profile": "https://Stackoverflow.com/users/1117",
"pm_score": 3,
"selected": false,
"text": "BitmapImage image = new BitmapImage();\nimage.BeginInit();\nimage.UriSource = new Uri(value as string);\nimage.EndInit();\... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/373/"
] |
20,587 | <p>I want to get the results of a stored procedure and place them into a CSV file onto an FTP location.</p>
<p>The catch though is that I cannot create a local/temporary file that I can then FTP over.</p>
<p>The approach I was taking was to use an SSIS package to create a temporary file and then have a FTP Task withi... | [
{
"answer_id": 20689,
"author": "Kev",
"author_id": 419,
"author_profile": "https://Stackoverflow.com/users/419",
"pm_score": 3,
"selected": false,
"text": "public static void DoQueryAndUploadFile(string uri, string username, string password, string filename)\n{\n FtpWebRequest ftp = ... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1950/"
] |
20,598 | <p>I'm interested in doing comparisons between the date string and the MySQL timestamp. However, I'm not seeing an easy conversion. Am I overlooking something obvious?</p>
| [
{
"answer_id": 20605,
"author": "Ross",
"author_id": 2025,
"author_profile": "https://Stackoverflow.com/users/2025",
"pm_score": 5,
"selected": true,
"text": "date('Y-m-d', $timestamp);\n"
},
{
"answer_id": 20668,
"author": "Jake McGraw",
"author_id": 302,
"author_pro... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
20,611 | <p>The following code should find the appropriate project tag and remove it from the XmlDocument, however when I test it, it says:</p>
<p><strong>The node to be removed is not a child of this node.</strong></p>
<p>Does anyone know the proper way to do this?</p>
<pre><code>public void DeleteProject (string projectNam... | [
{
"answer_id": 20624,
"author": "David Hayes",
"author_id": 1769,
"author_profile": "https://Stackoverflow.com/users/1769",
"pm_score": 0,
"selected": false,
"text": "<Root>\n <Blah>\n <project>...</project>\n </Blah>\n</Root>\n"
},
{
"answer_id": 20625,
"author": "Pat",
... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] |
20,627 | <p>I've seen this all over the place: </p>
<blockquote>
<p>Download here! SHA1 =
8e1ed2ce9e7e473d38a9dc7824a384a9ac34d7d0</p>
</blockquote>
<p>What does it mean? How does a hash come into play as far as downloads and... What use can I make of it? Is this a legacy item where you used to have to verify some checks... | [
{
"answer_id": 20654,
"author": "jl23x",
"author_id": 2143,
"author_profile": "https://Stackoverflow.com/users/2143",
"pm_score": 0,
"selected": false,
"text": "If (hash(file) == “Hash in page”)\n validFile = true;\nelse\n validFile = false;\n"
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/20627",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/547/"
] |
20,658 | <p>How, in general, does one determine if a PC supports hardware virtualization? I use VirtualPC to set up parallel test environments and I'd enjoy a bit of a speed boost.</p>
| [
{
"answer_id": 20700,
"author": "jmanning2k",
"author_id": 1480,
"author_profile": "https://Stackoverflow.com/users/1480",
"pm_score": 1,
"selected": false,
"text": "cat /proc/cpuinfo"
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/20658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1490/"
] |
20,674 | <p>Other than <code>self.class.send :method, args...</code>, of course. I'd like to make a rather complex method available at both the class and instance level without duplicating the code.</p>
<hr>
<p><strong>UPDATE:</strong> </p>
<p>@Jonathan Branam: that was my assumption, but I wanted to make sure nobody else ... | [
{
"answer_id": 20690,
"author": "John",
"author_id": 2168,
"author_profile": "https://Stackoverflow.com/users/2168",
"pm_score": -1,
"selected": false,
"text": "class Foo\n private\n def Foo.bar\n # Complex logic goes here\n puts \"hi\"\n end\n\n public\n def... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1190/"
] |
20,675 | <p>What is the difference in ASP/VBScript between <code>Int()</code> and <code>CInt()</code>?</p>
| [
{
"answer_id": 360003,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "wscript.echo 40.91 * 100\nwscript.echo Int(40.91 * 100)\nwscript.echo CInt(40.91 * 100)\n"
},
{
"answer_id": 4404489,
... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/357/"
] |
20,684 | <p>I've been using Linq to SQL for some time now and I find it to be really helpful and easy to use. With other ORM tools I've used in the past, the entity object filled from the database normally has a property indicating the length of the underlying data column in the database. This is helpful in databinding situatio... | [
{
"answer_id": 1397564,
"author": "Paul Alexander",
"author_id": 76456,
"author_profile": "https://Stackoverflow.com/users/76456",
"pm_score": 1,
"selected": false,
"text": "var context = new DataContextFromSomewhere();\nvar connection = context.Connection;\nvar command = connection.Crea... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/689/"
] |
20,696 | <p>In E (specman) I want to declare variables that are lists, and I want to fix their lengths.</p>
<p>It's easy to do for a member of a struct:</p>
<pre><code>thread[2] : list of thread_t;
</code></pre>
<p>while for a "regular" variable in a function the above doesn't work, and I have to do something like:</p>
<pre... | [
{
"answer_id": 37438,
"author": "JawnV6",
"author_id": 3869,
"author_profile": "https://Stackoverflow.com/users/3869",
"pm_score": 3,
"selected": true,
"text": "event list_size_changed is true (wanted.size() != 5) @clk;\n"
}
] | 2008/08/21 | [
"https://Stackoverflow.com/questions/20696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1084/"
] |
20,718 | <p>I want to test the behavior of a certain piece of .NET code in partial trust environments. What's the fastest way to set this up? Feel free to assume that I (and other readers) are total CAS noobs.</p>
<p>@Nick: Thanks for the reply. Alas, the tool in question is explicitly for unmanaged code. I didn't say "man... | [
{
"answer_id": 12189044,
"author": "bricelam",
"author_id": 475031,
"author_profile": "https://Stackoverflow.com/users/475031",
"pm_score": 1,
"selected": false,
"text": "public class SomeTests : MarshalByRefObject\n{\n [PartialTrustFact]\n public void Partial_trust_test1()\n {\... | 2008/08/21 | [
"https://Stackoverflow.com/questions/20718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/533/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.