qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
342,990 | <p>How can I create an instance of the Java console inside of a GUI panel?</p>
| [
{
"answer_id": 343007,
"author": "Lawrence Dol",
"author_id": 8946,
"author_profile": "https://Stackoverflow.com/users/8946",
"pm_score": 6,
"selected": false,
"text": "PrintStream con=new PrintStream(new TextAreaOutputStream(...));\nSystem.setOut(con);\nSystem.setErr(con);\n"
},
{
... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342990",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
342,994 | <p>How do I download a file from the internet in a Flex based AIR application. </p>
<p>I tried using a file with url set to the address, but I got a file does not exist error when I tried to save it. And it is really hard to google for help on this issue.</p>
| [
{
"answer_id": 343587,
"author": "Swaroop C H",
"author_id": 4869,
"author_profile": "https://Stackoverflow.com/users/4869",
"pm_score": 0,
"selected": false,
"text": "flash.net.URLRequest"
},
{
"answer_id": 414226,
"author": "pkaeding",
"author_id": 4257,
"author_pro... | 2008/12/05 | [
"https://Stackoverflow.com/questions/342994",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40397/"
] |
343,014 | <p>I have a custom error page set up for my application:</p>
<pre><code><customErrors mode="On" defaultRedirect="~/errors/GeneralError.aspx"
/>
</code></pre>
<p>In Global.asax, Application_Error(), the following code works to get the exception details:</p>
<pre><code> Exception ex = Server.GetLastError();
i... | [
{
"answer_id": 343056,
"author": "nailitdown",
"author_id": 40934,
"author_profile": "https://Stackoverflow.com/users/40934",
"pm_score": 8,
"selected": true,
"text": "customErrors"
},
{
"answer_id": 344871,
"author": "rlb.usa",
"author_id": 449902,
"author_profile": ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343014",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40934/"
] |
343,035 | <p>I have a program that writes to a FILE *cgiOut and just after it has written to the stream, I need to fork and run a background process. The trouble is that after the fork, the FILE * stream seems to flush out sometimes and I get duplicated output (after the fork, all open files are closed which I guess causes the ... | [
{
"answer_id": 343066,
"author": "freespace",
"author_id": 8297,
"author_profile": "https://Stackoverflow.com/users/8297",
"pm_score": 4,
"selected": true,
"text": "cgiOut"
},
{
"answer_id": 343067,
"author": "BCS",
"author_id": 1343,
"author_profile": "https://Stacko... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20889/"
] |
343,039 | <p>I need to retrieve the browser and OS through php coding.</p>
<p>I had used <code>$_SERVER['HTTP_USER_AGENT']</code>, but its shows the following </p>
<pre><code>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; IEMB3)
</code></pre>
<p>How can I separate the browser and OS ... | [
{
"answer_id": 343057,
"author": "lfx",
"author_id": 43164,
"author_profile": "https://Stackoverflow.com/users/43164",
"pm_score": -1,
"selected": false,
"text": "<?php\n$ex=explode(' ',$_SERVER['HTTP_USER_AGENT']);\necho 'OS: '.$ex[4].' '.$ex[5].' '.$ex[6].'/n'; \necho 'Browser: '.$ex[0... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38172/"
] |
343,061 | <p>I have the need/desire to learn to program against Win32 in C++. I am a little confused as to what Win32 even is, as I have no experience on the platform. </p>
<p>What would you recommend to get me started programming and debugging C++ programs on Win32?</p>
| [
{
"answer_id": 343106,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 6,
"selected": false,
"text": "do_something.exe"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41522/"
] |
343,075 | <p>I want to write my own little chat server in C on a MacOS machine. Now I want to connect to all clients, that are online and let the connection open, to be able to receive and send messages. The problem is that I only know, how to have one socket connection at a time open. So only one client can connect so far and c... | [
{
"answer_id": 343081,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 1,
"selected": false,
"text": "select(2)"
},
{
"answer_id": 343172,
"author": "qrdl",
"author_id": 28494,
"author_profile": "ht... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25017/"
] |
343,078 | <p>If have created a custom role within SqlServer which I added to the db__denydatareader and db__denydatawriter roles. I think went through the db and granted exec permission to all neccersary stored procedures. </p>
<p>Everything works fine, calling those sps will run fine. The one exception is a stored procedure wh... | [
{
"answer_id": 343090,
"author": "Samiksha",
"author_id": 29515,
"author_profile": "https://Stackoverflow.com/users/29515",
"pm_score": 0,
"selected": false,
"text": " [ , [ @datasrc= ] 'data_source' ] \n [ , [ @location= ] 'location' ] \n [ , [ @provstr= ] 'provider_string' ] \n [ , [ @... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6084/"
] |
343,085 | <p>In IOC's what does <code>ResolveAll</code> do?? I know that the offical answer is "Resolve all valid components that match this type." Does that mean that it will return any class that implements a given interface?</p>
| [
{
"answer_id": 2726982,
"author": "LukeN",
"author_id": 98313,
"author_profile": "https://Stackoverflow.com/users/98313",
"pm_score": 2,
"selected": false,
"text": "container.RegisterType<IInterface, ActualClassOne>(new ContainerControlledLifetimeManager());\ncontainer.RegisterType<IInte... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30572/"
] |
343,088 | <p>I am writing an Objective-C application which communicates with a USB device. The application writes certain data to the device continuously and displays the status of the write operation in a textView, which is an object of NSTextView. I call the <code>-[NSTextView insertText:]</code> method in the loop when I get ... | [
{
"answer_id": 343135,
"author": "Chris Hanson",
"author_id": 714,
"author_profile": "https://Stackoverflow.com/users/714",
"pm_score": 2,
"selected": false,
"text": "select(2)"
},
{
"answer_id": 16124620,
"author": "Phillip Boushy",
"author_id": 1399529,
"author_prof... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39270/"
] |
343,100 | <p>I have an assembly. Is there a way to detect which version of .NET was used to build that assembly?</p>
| [
{
"answer_id": 343179,
"author": "Julien Hoarau",
"author_id": 12248,
"author_profile": "https://Stackoverflow.com/users/12248",
"pm_score": 0,
"selected": false,
"text": "using System;\nusing System.Reflection;\n\nclass Module1\n{\n\n public static void CheckReferencedAssemblies(stri... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343100",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/191/"
] |
343,101 | <p>Let me start off by saying that I know there is probably a much simpler way to do this.
But this is what i have and yes hopefully I can make some improvements and/or simplifications at the end.</p>
<p><strong>Goal as of this moment</strong></p>
<p>To double space the output stored in the <code>$tmp</code> variable... | [
{
"answer_id": 343592,
"author": "Aaron Digulla",
"author_id": 34088,
"author_profile": "https://Stackoverflow.com/users/34088",
"pm_score": 1,
"selected": false,
"text": "awk ' { print NF \" \" $0; print \"\"; }'\n"
},
{
"answer_id": 1851878,
"author": "meingbg",
"author... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40120/"
] |
343,111 | <p>I am writing a client-side validation function for <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.customvalidator.aspx" rel="nofollow noreferrer">CustomValidator</a> and I need to check length of entered string. But before, to counteract cheaters a little, I want to remove all leading and... | [
{
"answer_id": 343127,
"author": "J Cooper",
"author_id": 38803,
"author_profile": "https://Stackoverflow.com/users/38803",
"pm_score": 2,
"selected": false,
"text": "trim"
},
{
"answer_id": 343149,
"author": "Alexander Prokofyev",
"author_id": 11256,
"author_profile"... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11256/"
] |
343,115 | <p>I'm trying to find a way to make a list of everything between <code><a></code> and <code></a></code> tags. So I have a list of links and I want to get the names of the links (not where the links go, but what they're called on the page). Would be really helpful to me.</p>
<p>Currently I have this:</p>
<... | [
{
"answer_id": 343174,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 5,
"selected": true,
"text": "<a\\b[^>]*>(.*?)</a> // match group one will contain the link text\n"
},
{
"answer_id": 343233,
"author": "Jø... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43510/"
] |
343,133 | <p>My problem is that I want a grid that is populated with a set of times spent on tasks. It needs to have the days of the week at the top (these would preferably be fixed - i.e. Sun, Mon... Sat) and task names down the left column. The contents of the grid will have the individual hours spent for that day on that ta... | [
{
"answer_id": 343142,
"author": "David Schmitt",
"author_id": 4918,
"author_profile": "https://Stackoverflow.com/users/4918",
"pm_score": 1,
"selected": false,
"text": "ResultSet"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15609/"
] |
343,138 | <p>I'm running a project on a Postgres database and need to retrieve the comments on columns within the DB to be used as table headings and such. I have seen that there are a couple of built in functions (<a href="http://www.postgresql.org/docs/9.1/static/catalog-pg-description.html" rel="noreferrer">pg_description</a>... | [
{
"answer_id": 343152,
"author": "mat",
"author_id": 42083,
"author_profile": "https://Stackoverflow.com/users/42083",
"pm_score": 4,
"selected": false,
"text": "mat=> SELECT c.oid FROM pg_catalog.pg_class c WHERE c.relname = 'customers';\n oid \n-------\n 23208\n(1 row)\n"
},
{
... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343138",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
343,145 | <p>I've created two functions to load expanded views of a month in the archive section of my blog when it's link is clicked:</p>
<pre><code>// Load open view of a month in the Archive section
function loadMonth(date) {
// Remove other open month
removeMonth();
// Hide opening month's link
// Define variabl... | [
{
"answer_id": 343155,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 3,
"selected": false,
"text": "openMonth.id = \"openMonth\";\n"
},
{
"answer_id": 343180,
"author": "Ryan Cook",
"author_id": 43029,
... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343145",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29297/"
] |
343,164 | <p><code>IntToStr()</code> function returns string which is Unicode now. I want to convert to <code>AnsiString</code>.
Can I use <code>AnsiString(IntToStr(I))</code> safely?</p>
| [
{
"answer_id": 343168,
"author": "gabr",
"author_id": 4997,
"author_profile": "https://Stackoverflow.com/users/4997",
"pm_score": 3,
"selected": false,
"text": "IntToAnsiString"
},
{
"answer_id": 344086,
"author": "Rob Kennedy",
"author_id": 33732,
"author_profile": "... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343164",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42065/"
] |
343,182 | <p>Can anyone help me to convert a C# .NET program to PowerShell cmdlet? I am very new to this area. Please help me to get out of this checkpoint!</p>
<p>Regards,</p>
<p>Arun</p>
| [
{
"answer_id": 343199,
"author": "Cristian Libardo",
"author_id": 16526,
"author_profile": "https://Stackoverflow.com/users/16526",
"pm_score": 4,
"selected": false,
"text": "[Cmdlet(VerbsCommon.Get, \"Double\")]\npublic class GetDouble : Cmdlet\n{\n [Parameter]\n public int SomeIn... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/201406/"
] |
343,192 | <p>I have a textbox with an onchange event. Why does this event not fire when the user uses the autocomplete feature to populate the textbox?</p>
<p>I am working with Internet Explorer. Is there a standard and relatively simple solution to workaround this problem, without me having to disable the autocomplete feature?... | [
{
"answer_id": 343215,
"author": "Tom Jelen",
"author_id": 28399,
"author_profile": "https://Stackoverflow.com/users/28399",
"pm_score": 5,
"selected": true,
"text": "onpropertychange"
},
{
"answer_id": 343218,
"author": "Tim C",
"author_id": 7585,
"author_profile": "... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41766/"
] |
343,200 | <p>I need to extract the icon from a windows shortcut (.lnk) file (or find the icon file, if it's just pointed to by the shortcut).</p>
<p>I'm not asking about extracting icons from exe's, dll's, etc. The shortcut in question is created when I run a installation program. And the icon displayed by the shortcut is not... | [
{
"answer_id": 343208,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 4,
"selected": true,
"text": "Path2Link := 'C:\\Stuff\\TBear S Saver.lnk';\nSHGetFileInfo(PChar(Path2Link), 0, ShInfo1, SizeOf(TSHFILEINFO),\n SHGFI_... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
343,204 | <p>I've been working on getting a 2.5 module ported to 3.0, mostly for my own education, when I've gotten stuck. The class "Builder" has as its init:</p>
<pre><code>def __init__(self, **options):
self._verifyOptions(options)
self._options = options
self._initDigest()
self._initBuildNames()
self._me... | [
{
"answer_id": 343228,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "encoded"
},
{
"answer_id": 343284,
"author": "tzot",
"author_id": 6899,
"author_profile": "https://Stackov... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39851/"
] |
343,210 | <p>I found the <a href="http://www.cgal.org/" rel="nofollow noreferrer">Computational Geometry Algorithms Library</a> in my search for an algorithm to decompose a concave polygon into the minimum number of convex components. Links off the site and numerous google results indicate there are python bindings for it, whic... | [
{
"answer_id": 69006755,
"author": "A. Hendry",
"author_id": 8748308,
"author_profile": "https://Stackoverflow.com/users/8748308",
"pm_score": 1,
"selected": false,
"text": "pip install -i https://test.pypi.org/simple/ cgal\n"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343210",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2653/"
] |
343,211 | <p>Is it possible to assign a blank string (i.e. "") as a Default Value in the Entity Framework's EDMX designer? The only technique I've found is to edit the edmx file manually using a text editor</p>
| [
{
"answer_id": 866437,
"author": "Davy8",
"author_id": 23822,
"author_profile": "https://Stackoverflow.com/users/23822",
"pm_score": 2,
"selected": false,
"text": "_privateFieldName = string.Empty;\n"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1131/"
] |
343,219 | <p>I am doing something like this:</p>
<pre><code>#include <signal.h>
class myClass {
public:
void myFunction ()
{
signal(SIGIO,myHandler);
}
void myHandler (int signum)
{
/**
* Handling code
*/
}
}
</code></pre>
<p>I am working on Ubuntu, using gcc. ... | [
{
"answer_id": 343253,
"author": "Jørn Jensen",
"author_id": 34585,
"author_profile": "https://Stackoverflow.com/users/34585",
"pm_score": 4,
"selected": false,
"text": "class myClass {\n void myFunction () \n {\n signal(SIGIO, myClass::myHandler);\n }\n\n static void myHandler (i... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/366094/"
] |
343,271 | <p>I have a simple program print barcodes. The label format is in a preloaded form.
The value the barcode is passed by a parameter as follow.</p>
<pre><code>^XA
^XFR:FORM.ZPL
^FN999^FDH654321+Y0001+OABC+^FS
^PQ2,0,1,N
</code></pre>
<p>And it print two barcodes</p>
<pre><code>H654321+Y0001+OABC+
H654321+Y0001+OABC+
<... | [
{
"answer_id": 24886344,
"author": "Paul",
"author_id": 3864410,
"author_profile": "https://Stackoverflow.com/users/3864410",
"pm_score": 0,
"selected": false,
"text": "^PQ2,0,1,N"
},
{
"answer_id": 28647163,
"author": "Vladis",
"author_id": 4397756,
"author_profile":... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40214/"
] |
343,275 | <p>I'm using ganymede but I can't find the option to change mirror for the update sites. Is there a way to change this? </p>
| [
{
"answer_id": 349026,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": true,
"text": "eclipsec -verbose -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication \n-source http://www.someurl.com/ -d... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20300/"
] |
343,277 | <p>I'm working on a canvas app embedded in a page. I have it so you can zoom into the drawing with the mousewheel but unfortunately this scrolls the page as it is part of an article.</p>
<p>Is it possible to prevent mousewheel scrolling on the window when I'm mousewheeling on a dom element?!</p>
| [
{
"answer_id": 22712226,
"author": "Josh Harrison",
"author_id": 940252,
"author_profile": "https://Stackoverflow.com/users/940252",
"pm_score": 0,
"selected": false,
"text": "// disable all scrolling:\n$(window).disablescroll();\n\n// enable scrolling again:\n$(window).disablescroll(\"u... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
343,282 | <p>In the following, I'd like to alter the CSS such that the <code>right-sibling</code> is <em>truly</em> centered in the <code>container</code> div. (Edit: without using absolute positioning). </p>
<pre><code><html>
<head>
<style type='text/css'>
#container {
width: 500px;
... | [
{
"answer_id": 343289,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 1,
"selected": false,
"text": "float: left;"
},
{
"answer_id": 343302,
"author": "Mark Bell",
"author_id": 43140,
"author_profile": "htt... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3594/"
] |
343,288 | <p>I'm building a framework and want developers who build with it to have the ability to allow parts of it to both share data with other sites and allow other sites to add/edit/delete data.</p>
<p>For example, if someone makes a site that has book reviews, authors, quotes, code examples, comments, etc. the developer c... | [
{
"answer_id": 1081681,
"author": "pbreitenbach",
"author_id": 42048,
"author_profile": "https://Stackoverflow.com/users/42048",
"pm_score": 2,
"selected": false,
"text": "GET /search?type=books&category=ruby\n"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4639/"
] |
343,299 | <p>What is the fastest way to do Bulk insert to Oracle using .NET? I need to transfer about 160K records using .NET to Oracle. Currently, I'm using insert statement and execute it 160K times.It takes about 25 minutes to complete. The source data is stored in a DataTable, as a result of query from another database (MySQ... | [
{
"answer_id": 343398,
"author": "Theo",
"author_id": 43402,
"author_profile": "https://Stackoverflow.com/users/43402",
"pm_score": 4,
"selected": false,
"text": "for (int n = 0; n < 100000; n ++)\n{\n mycommand.CommandText = String.Format(\"INSERT INTO [MyTable] ([MyId]) VALUES({0})\... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343299",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10629/"
] |
343,313 | <p>Sorry for the slightly rubbish title. I could not think how to describe this one better.</p>
<p>I am trying to implement the Google Friend Connect members gadget on my site, (just got into the scheme and want to put it in without a major redesign, at least for testing sake).</p>
<p>My problem is as follows:</p>
... | [
{
"answer_id": 45336531,
"author": "Reggie Pinkham",
"author_id": 2927114,
"author_profile": "https://Stackoverflow.com/users/2927114",
"pm_score": 2,
"selected": false,
"text": ".main {\n display: flex;\n width: 90%;\n}\n.col1 {\n flex-grow: 1;\n}\n.col2 {\n width: 300px;\n margin-... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6486/"
] |
343,346 | <p>I'm trying to get the label of some network resources mapped as drives. When I use DriveInfo.GetDrives(), local volumes have the VolumeLabel filled parameter as expected, but in network drives it is an empty string. How can I get those labels?</p>
| [
{
"answer_id": 45336531,
"author": "Reggie Pinkham",
"author_id": 2927114,
"author_profile": "https://Stackoverflow.com/users/2927114",
"pm_score": 2,
"selected": false,
"text": ".main {\n display: flex;\n width: 90%;\n}\n.col1 {\n flex-grow: 1;\n}\n.col2 {\n width: 300px;\n margin-... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40996/"
] |
343,356 | <p>I'm developing a web application that is targeted at IE and during testing would like to log in as a number of different users and test their interactions with each other.</p>
<p>At present I have to log in and out to switch users; Opening another window just overrides the cookies/session.</p>
<p>Is there any way ... | [
{
"answer_id": 343360,
"author": "Tamas Czinege",
"author_id": 8954,
"author_profile": "https://Stackoverflow.com/users/8954",
"pm_score": 3,
"selected": true,
"text": "runas /user:domain\\account iexplore.exe\n"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343356",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24525/"
] |
343,362 | <p>I have a web application (ASP.net 2.0) that has a database (SQL Server) at the background. I'm considering ways how to handle database concurrency if two users insert the same data to the same table at the same time. Are there any way to handle this case? Thanks in advance.</p>
<p>Jimmy</p>
| [
{
"answer_id": 343399,
"author": "Brannon",
"author_id": 5745,
"author_profile": "https://Stackoverflow.com/users/5745",
"pm_score": 2,
"selected": false,
"text": "INSERT"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
343,366 | <p>If I am storing the Subversion user names and passwords for repository access in a text file in the <code>conf</code> folder, what is the maximum length of the passwords I can use? That is to say, how long can the secrets in the following file be?</p>
<pre><code>[users]
harry = harryssecret
sally = sallyssecret
</c... | [
{
"answer_id": 343441,
"author": "alexandrul",
"author_id": 19756,
"author_profile": "https://Stackoverflow.com/users/19756",
"pm_score": 3,
"selected": true,
"text": "svnserve"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343366",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39722/"
] |
343,368 | <p>I am getting this linker error.</p>
<blockquote>
<p><strong>mfcs80.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRT.lib(dllmain.obj)</strong></p>
</blockquote>
<p>Please tell me the correct way of eliminating this bug. I read solution on microsoft support site about this bug but it didnt ... | [
{
"answer_id": 16124492,
"author": "izogfif",
"author_id": 156973,
"author_profile": "https://Stackoverflow.com/users/156973",
"pm_score": 2,
"selected": false,
"text": "Solution Explorer"
},
{
"answer_id": 19930430,
"author": "Constantin",
"author_id": 531840,
"autho... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38038/"
] |
343,383 | <p>I have this code:</p>
<pre><code>if (file.exists()) {
Document doc = builder.parse(file);
NodeList list = doc.getElementsByTagName("property");
System.out.println("XML Elements: ");
for (int ii = 0; ii < list.getLength(); ii++) {
</code></pre>
<p>line 2 gives following exception</p>
<pre>
E:\workspace\... | [
{
"answer_id": 354740,
"author": "kevindaub",
"author_id": 27669,
"author_profile": "https://Stackoverflow.com/users/27669",
"pm_score": 0,
"selected": false,
"text": "DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\nDocumentBuilder db = dbf.newDocumentBuilder();\nDocu... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
343,396 | <p>When we run a update query we get prompt saying that 'these many records are going to be updated. do you want to continue' is it possible to capture the value in the prompt message to a variable i.e the number of records going to be updated.</p>
| [
{
"answer_id": 343752,
"author": "Fionnuala",
"author_id": 2548,
"author_profile": "https://Stackoverflow.com/users/2548",
"pm_score": 4,
"selected": true,
"text": "Dim db As Database\nSet db=CurrentDB\ndb.Execute \"Some SQL here\"\ndb.RecordsAffected\n"
},
{
"answer_id": 343765,... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31132/"
] |
343,402 | <p>I'm currently busy implementing a filter of sorts for which I need to generate an INNER JOIN clausse for every "tag" to filter on.</p>
<p>The problem is that after a whole bunch of SQL, I have a table that contains all the information I need to make my selection, but I need it again for every generated INNER JOIN</... | [
{
"answer_id": 347300,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 6,
"selected": false,
"text": "TEMPORARY"
},
{
"answer_id": 23441101,
"author": "beeks",
"author_id": 2624707,
"author_profile": ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18565/"
] |
343,422 | <p>How can i make the inner table to overlap the parent div with 5 px while resizing?</p>
<p>my current solution:</p>
<pre><code><div id="crop">
<table style="width:105%; height:105%;">
//table cells
</table>
</div>
</code></pre>
<p>problem is that it gets smaller when resizing... ... | [
{
"answer_id": 343498,
"author": "chriscena",
"author_id": 32671,
"author_profile": "https://Stackoverflow.com/users/32671",
"pm_score": 0,
"selected": false,
"text": "table {\nposition: relative;\ntop: 5px;\nleft: 5px;\nmargin-top: -5px;\nmargin-left: -5px;\n}\n"
},
{
"answer_id... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343422",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
343,435 | <h3>ANSWER:</h3>
<p>If you ever see these lines and are mistified like I was, here's what they mean.</p>
<p><code>Thread[AWT-EventQueue-0] (Suspended (exception NullPointerException))</code></p>
<p><code>EventDispatchTread.run() line: not available [local variables unavailable]</code></p>
<p>It's not that the variables... | [
{
"answer_id": 343530,
"author": "Steve McLeod",
"author_id": 2959,
"author_profile": "https://Stackoverflow.com/users/2959",
"pm_score": 3,
"selected": true,
"text": "public void actionPerformed(ActionEvent e) {\n String cmd = e.getActionCommand();\n String name;\n\n// mor... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29182/"
] |
343,457 | <p>--Edit with more bgnd information--</p>
<p>A (black box) COM object returns me a string.
A 2nd COM object expects this same string as byte[] as input and returns a byte[] with the processed data.
This will be fed to a browser as downloadable, non-human-readable file that will be loaded in a client side stand-alone ... | [
{
"answer_id": 343477,
"author": "leppie",
"author_id": 15541,
"author_profile": "https://Stackoverflow.com/users/15541",
"pm_score": 1,
"selected": false,
"text": " ÿÿÿÿ AIronScheme, Version=1.0.0.0, Culture=neutral, Public\n"
},
{
"answer_id": 343496,
"author": ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11333/"
] |
343,466 | <p>Does dot net have an interface like IEnumerable with a count property? I know about interfaces such as IList and ICollection which do offer a Count property but it seems like these interfaces were designed for mutable data structures first and use as a read only interface seems like an afterthought - the presence of... | [
{
"answer_id": 343478,
"author": "Ruben Bartelink",
"author_id": 11635,
"author_profile": "https://Stackoverflow.com/users/11635",
"pm_score": 5,
"selected": true,
"text": "using System.Linq;\n\nclass X\n{\n void Y(IEnumerable<int> collection)\n {\n int itemCount = collection.Co... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39648/"
] |
343,468 | <p>To do DataBinding of the <code>Document</code> in a WPF <code>RichtextBox</code>, I saw 2 solutions so far, which are to derive from the <code>RichtextBox</code> and add a <code>DependencyProperty</code>, and also the solution with a "proxy".</p>
<p>Neither the first or the second are satisfactory. Does somebody kn... | [
{
"answer_id": 343888,
"author": "Arcturus",
"author_id": 900,
"author_profile": "https://Stackoverflow.com/users/900",
"pm_score": 3,
"selected": false,
"text": " public FlowDocument Document\n {\n get { return (FlowDocument)GetValue(DocumentProperty); }\n set { SetV... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41407/"
] |
343,476 | <p>I'm using the Win32 <code>CreateProcess</code> function to perform a call to an external executable. The executable returns a string.</p>
<p>Is there a way I can capture and interrogate the returned string after calling the executable? Failing that, I might have to write out the string to a file in the executable... | [
{
"answer_id": 343489,
"author": "Steve",
"author_id": 22712,
"author_profile": "https://Stackoverflow.com/users/22712",
"pm_score": 1,
"selected": false,
"text": "var\n fMapping : THandle;\n pMapData : Pointer;\n\nfMapping := CreateFileMapping($FFFFFFFF, nil, PAGE_READWRITE,\n ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7703/"
] |
343,491 | <p>Here's some code I saw once. Can you see what's wrong with it?</p>
<p>[updated]</p>
<pre><code>public class ResourceManager1
{
private final String mutex = "";
Object resource = null;
public Object getResource()
{
synchronized (mutex)
{
if (resource == null)
... | [
{
"answer_id": 343507,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "private final"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17641/"
] |
343,517 | <p>I want to use git to allow me to work on several features in a module I'm writing concurrently. I'm currently using SVN, with only one workspace, so I just have the workspace on my PYTHONPATH. I'm realizing this is less than ideal, so I was wondering if anyone could suggest a more 'proper' way of doing this.</p>
<p... | [
{
"answer_id": 343534,
"author": "jfs",
"author_id": 4279,
"author_profile": "https://Stackoverflow.com/users/4279",
"pm_score": 2,
"selected": false,
"text": "eggs/\n __init__.py\n foo.py\n bar.py\n\n# foo.py\nfrom __future__ import absolute_import\nfrom . import bar\n"
},
{
... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37984/"
] |
343,518 | <p>Inside a windows batch file I'd like to figure out what the fully qualified path name of this batch file is.</p>
<p>I have tried <code>%0</code> but this does only gave me the typed command (e.g. just the file name without path or extension).</p>
| [
{
"answer_id": 343531,
"author": "benlumley",
"author_id": 39161,
"author_profile": "https://Stackoverflow.com/users/39161",
"pm_score": 3,
"selected": false,
"text": "%CD%"
},
{
"answer_id": 343823,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "https://S... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25782/"
] |
343,521 | <p>Using TeamCity, I'm trying to get a (TestAutomationFX) test that requires an STA thread to run .</p>
<p>It works via a custom app.config that configures NUnit 2.4.x (8) (as referred to by Gishu, thanks, described at <a href="http://madcoderspeak.blogspot.com/2008/12/getting-nunit-to-go-all-sta.html" rel="nofollow n... | [
{
"answer_id": 343589,
"author": "Ruben Bartelink",
"author_id": 11635,
"author_profile": "https://Stackoverflow.com/users/11635",
"pm_score": 0,
"selected": false,
"text": " private void ForceSTAIfNecessary(ThreadStart threadStart)\n {\n if (Thread.CurrentThread.GetApartmen... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11635/"
] |
343,528 | <p>I'm looking for a <em>SimpleGrepSedPerlOrPythonOneLiner</em> that outputs all quotations in a text.</p>
<hr>
<p>Example 1:</p>
<pre><code>echo “HAL,” noted Frank, “said that everything was going extremely well.” | SimpleGrepSedPerlOrPythonOneLiner
</code></pre>
<p>stdout:</p>
<pre><code>"HAL,"
"said that everyt... | [
{
"answer_id": 343555,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 2,
"selected": false,
"text": "grep -o \"\\\"[^\\\"]*\\\"\"\n"
},
{
"answer_id": 343559,
"author": "Vinko Vrsalovic",
"author_id": 5190,
... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343528",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4085/"
] |
343,533 | <p>I am trying to build a function grapher,</p>
<p>The user enters xmin, xmax, ymin, ymax, function.
I got the x, y for all points.</p>
<p>Now i want to translate this initial referential to a Canvas starting at 0,0 up to
250,250.</p>
<p>Is there a short way or should i just check </p>
<pre><code>if x < 0
new ... | [
{
"answer_id": 343771,
"author": "jamesh",
"author_id": 4737,
"author_profile": "https://Stackoverflow.com/users/4737",
"pm_score": 0,
"selected": false,
"text": "(canvas_x, canvas_y) -> (maths_x, maths_y)\n(maths_x, maths_y) -> (canvas_x, canvas_y)\n\nmaths_x -> maths_y\n"
},
{
... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32032/"
] |
343,553 | <p>I am not a Delphi programmer, but I I got an old Delphi 7 application that I need to fix and it is using ADO.</p>
<p>The database table (MS Accesss) contains +100,000 rows and when I set the ADOTable.Active=true it starts to load the entire table into RAM and that takes a lot of memory and time.</p>
<p>How can I p... | [
{
"answer_id": 356686,
"author": "Fabricio Araujo",
"author_id": 10300,
"author_profile": "https://Stackoverflow.com/users/10300",
"pm_score": 3,
"selected": false,
"text": "procedure ConfigCDSFromAdoQuery(p_ADOQ: TADOQuery; p_CDS: TClientDataset; p_Prov: TDatasetProvider);\nbegin\n If ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38165/"
] |
343,556 | <p>I have 10 websites on an IP. I would like to share the IP among all the websites.How do I achieve this without having to run these websites on different port numbers?</p>
| [
{
"answer_id": 356686,
"author": "Fabricio Araujo",
"author_id": 10300,
"author_profile": "https://Stackoverflow.com/users/10300",
"pm_score": 3,
"selected": false,
"text": "procedure ConfigCDSFromAdoQuery(p_ADOQ: TADOQuery; p_CDS: TClientDataset; p_Prov: TDatasetProvider);\nbegin\n If ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39312/"
] |
343,557 | <p>Is there a way to distinguish if a script was invoked from the command line or by the web server? </p>
<p>(<strong>See <a href="https://stackoverflow.com/questions/173851/what-is-the-canonical-way-to-determine-commandline-vs-http-execution-of-a-php-s">What is the canonical way to determine commandline vs. http exec... | [
{
"answer_id": 343569,
"author": "Nuramon",
"author_id": 43583,
"author_profile": "https://Stackoverflow.com/users/43583",
"pm_score": 8,
"selected": true,
"text": "define(\"CLI\", !isset($_SERVER['HTTP_USER_AGENT']));\n"
},
{
"answer_id": 343580,
"author": "Piskvor left the ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19746/"
] |
343,561 | <p>I want to achieve going to the parent element then to the prev element get the atrribute id of the element which has class: classname.</p>
<pre><code><div>
<span><span id="190" class="classname">blabla</span></span>
<span><a href="#" class="button">blabla</a></sp... | [
{
"answer_id": 343582,
"author": "Garry Shutler",
"author_id": 6369,
"author_profile": "https://Stackoverflow.com/users/6369",
"pm_score": 0,
"selected": false,
"text": "find"
},
{
"answer_id": 343601,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "htt... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
343,562 | <p>I need some SQL to update a record in a database if it exists and insert it when it does not, looking around there looks to be several solutions for this, but I don't know what are the correct/ accepted ways to do this.</p>
<p>I would ideally like it to work on both Firebird 2 and MySQL 5 as the update will need to... | [
{
"answer_id": 343579,
"author": "xahtep",
"author_id": 42184,
"author_profile": "https://Stackoverflow.com/users/42184",
"pm_score": 1,
"selected": false,
"text": "REPLACE"
},
{
"answer_id": 343591,
"author": "Samiksha",
"author_id": 29515,
"author_profile": "https:/... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343562",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2098/"
] |
343,584 | <p>How do I get whole and fractional parts from double in JSP/Java ? If the value is 3.25 then I want to get <code>fractional =.25</code>, <code>whole = 3</code></p>
<p>How can we do this in Java?</p>
| [
{
"answer_id": 343598,
"author": "Rasmus Faber",
"author_id": 5542,
"author_profile": "https://Stackoverflow.com/users/5542",
"pm_score": 3,
"selected": false,
"text": "long bits = Double.doubleToLongBits(3.25);\n\nboolean isNegative = (bits & 0x8000000000000000L) != 0; \nlong exponent ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28557/"
] |
343,605 | <p>I'm interested in hearing what technique(s) you're using to validate the internal state of an object during an operation that, from it's own point of view, only can fail because of bad internal state or invariant breach.</p>
<p>My primary focus is on C++, since in C# the official and prevalent way is to throw an ex... | [
{
"answer_id": 343628,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 3,
"selected": false,
"text": "template method"
},
{
"answer_id": 343640,
"author": "James Hopkin",
"author_id": 11828,
... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6345/"
] |
343,609 | <p>I have two or three i18n files in my struts application. I am able to switch between these by setting the <code>Global.LOCALE_KEY</code> variable in the session.</p>
<p>Is there a way to set a default locale for the application (probably in the struts-config.xml file, I guess) ? Is the session the only place to set... | [
{
"answer_id": 343641,
"author": "JeeBee",
"author_id": 17832,
"author_profile": "https://Stackoverflow.com/users/17832",
"pm_score": 2,
"selected": false,
"text": "<context-param>\n <param-name>LOCALE</param-name>\n <param-value>en-GB</param-value>\n</context-param>\n"
},
{
... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15649/"
] |
343,622 | <p>I would like to be able to submit a form in an <strong>HTML source (string)</strong>. In other words I need at least the ability to generate POST parameters <strong>from a string containing HTML source of the form</strong>. This is needed in unit tests for a Django project. I would like a solution that possibly;</p>... | [
{
"answer_id": 343639,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 2,
"selected": false,
"text": "class Test_HTML_Change_User( django.test.TestCase ):\n fixtures = [ 'auth.json', 'someApp.json' ]\n def test_chg_user... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42188/"
] |
343,638 | <p>I'm looking for some information on Routing in MVC with C#. I'm currently very aware of the basics of routing in MVC, but what i'm looking for is somewhat difficult to find. </p>
<p>Effectively, what I want to find is a way of defining a single route that takes a single parameter.</p>
<p>The common examples I have... | [
{
"answer_id": 343681,
"author": "Eduardo Molteni",
"author_id": 2385,
"author_profile": "https://Stackoverflow.com/users/2385",
"pm_score": 1,
"selected": true,
"text": "routes.MapRoute(\n \"Default\",\n \"{controller}.mvc/{action}/{param1}/{param2}/{param3}\"\n new { controlle... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20749/"
] |
343,642 | <p>Where I work, people don't like to write specs. (Boy, does anyone?) So they don't do it, unless forced by their bosses. If they are forced to write them, they make them as short as possible. (By the way, <em>they</em> also includes <em>me</em>.)</p>
<p>This results in specifications like</p>
<ul>
<li>This software... | [
{
"answer_id": 343681,
"author": "Eduardo Molteni",
"author_id": 2385,
"author_profile": "https://Stackoverflow.com/users/2385",
"pm_score": 1,
"selected": true,
"text": "routes.MapRoute(\n \"Default\",\n \"{controller}.mvc/{action}/{param1}/{param2}/{param3}\"\n new { controlle... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22114/"
] |
343,646 | <p>How can I ignore directories or folders in Git using msysgit on Windows?</p>
| [
{
"answer_id": 343734,
"author": "stew",
"author_id": 43613,
"author_profile": "https://Stackoverflow.com/users/43613",
"pm_score": 12,
"selected": true,
"text": ".gitignore"
},
{
"answer_id": 343890,
"author": "sf.",
"author_id": 43603,
"author_profile": "https://Sta... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343646",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43603/"
] |
343,652 | <p>I have been working on Flex for last couple of months and as this was the first time I had to actually do Flex I ended up underestimating the project tasks which resulted in a delay. So how does one estimate the project timings when working on a new technology?</p>
| [
{
"answer_id": 343718,
"author": "Galwegian",
"author_id": 3201,
"author_profile": "https://Stackoverflow.com/users/3201",
"pm_score": 0,
"selected": false,
"text": "New Project Time = Project Time * 1.5\n"
},
{
"answer_id": 344144,
"author": "Jeremiah",
"author_id": 3418... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20301/"
] |
343,654 | <p>I am looking to refactor a c# method into a c function in an attempt to gain some speed, and then call the c dll in c# to allow my program to use the functionality.</p>
<p>Currently the c# method takes a list of integers and returns a list of lists of integers. The method calculated the power set of the integers s... | [
{
"answer_id": 343668,
"author": "Smokey Bacon Esq.",
"author_id": 43595,
"author_profile": "https://Stackoverflow.com/users/43595",
"pm_score": 1,
"selected": false,
"text": "list"
},
{
"answer_id": 343683,
"author": "Giovanni Galbo",
"author_id": 4050,
"author_profi... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21197/"
] |
343,667 | <p>I want to determine whether two different child nodes within an XML document are equal or not. Two nodes should be considered equal if they have the same set of attributes and child notes and all child notes are equal, too (i.e. the whole sub tree should be equal).</p>
<p>The input document might be very large (up ... | [
{
"answer_id": 343784,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 2,
"selected": false,
"text": "<w:pPr>"
},
{
"answer_id": 343917,
"author": "Dave R.",
"author_id": 42841,
"author_profile": "https:/... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40347/"
] |
343,669 | <p>Got a quick question. Does anyone know how to let JAXB (marshall) render boolean fields as 1 and 0 instead of printing out "true" and "false"?</p>
| [
{
"answer_id": 344111,
"author": "Luc Touraille",
"author_id": 20984,
"author_profile": "https://Stackoverflow.com/users/20984",
"pm_score": 3,
"selected": false,
"text": "<javaType>"
},
{
"answer_id": 1633006,
"author": "mtpettyp",
"author_id": 98632,
"author_profile... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343669",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20298/"
] |
343,675 | <p>I'm using SVN right now, and I've used CVS and VSS in the past. SVN is the current favourite in my books, but I've been hearing a lot about git. Of the people that have used git, what are the pros and cons from your experience?</p>
| [
{
"answer_id": 343691,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": true,
"text": "git add"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15852/"
] |
343,690 | <p>Is it possible to use Flex 3 component/code inside Flash (cs4) SWF file ?</p>
<p>I know its possible in the opposite direction.</p>
| [
{
"answer_id": 343726,
"author": "hasseg",
"author_id": 4111,
"author_profile": "https://Stackoverflow.com/users/4111",
"pm_score": 1,
"selected": false,
"text": "swc"
},
{
"answer_id": 4345057,
"author": "Tamlyn",
"author_id": 132208,
"author_profile": "https://Stack... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20979/"
] |
343,695 | <p>I need a combobox in an Windows MFC application that has a search feature. It should work so that if you start typing something that matches one or more items in the list, the combobox should drop-down and display those items. Kinda like popular ajax-based search boxes on the web</p>
<p>Do you
- know of any control... | [
{
"answer_id": 343738,
"author": "Treb",
"author_id": 22114,
"author_profile": "https://Stackoverflow.com/users/22114",
"pm_score": 0,
"selected": false,
"text": "CBN_EDITCHANGE"
},
{
"answer_id": 350538,
"author": "Serge Wautier",
"author_id": 12379,
"author_profile"... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37268/"
] |
343,711 | <p>I'm SSHing into a remote server on the command line, and trying to copy a directory onto my local machine with the <code>scp</code> command. However, the remote server returns this "usage" message:</p>
<pre><code>[Stewart:console/ebooks/discostat] jmm% scp -p ./styles/
usage: scp [-1246BCEpqrv] [-c cipher] [-F ssh_... | [
{
"answer_id": 343720,
"author": "Gareth",
"author_id": 31582,
"author_profile": "https://Stackoverflow.com/users/31582",
"pm_score": 4,
"selected": false,
"text": "scp [from] [to]"
},
{
"answer_id": 343723,
"author": "lemnisca",
"author_id": 43463,
"author_profile": ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343711",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
343,717 | <p>I raised a request over at Microsoft Connect regarding the formatting of dates ("<a href="http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=327261" rel="nofollow noreferrer">DateTime Formatting should caluclate the correct suffix for the day</a>"). Basically I wanted to have a formattin... | [
{
"answer_id": 344077,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 1,
"selected": false,
"text": "%x"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20553/"
] |
343,728 | <p>Apache XMLBeans can be used to generate Java classes and interfaces from XML Schema Definition files (XSD). It also generates Enums based on StringEnumAbstractBase and StringEnumAbstractBase.Table to represent domain values. They are handy for entering only valid values. However, I want to get all those values to ge... | [
{
"answer_id": 344064,
"author": "Nick Holt",
"author_id": 41423,
"author_profile": "https://Stackoverflow.com/users/41423",
"pm_score": 3,
"selected": true,
"text": "for (int i = 1; i <= MyEnum.Enum.table.lastInt(); i++) \n{\n System.out.println(MyEnum.Enum.forInt(i));\n}\n"
},
{
... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343728",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24165/"
] |
343,732 | <p>In our app, we currently live with the legacy of a decision to store all engineering data in our database in SI.</p>
<p>I worry that we may run the risk of not having sufficient precision and accuracy in our database or in .NET numeric types. I am also worried that we may see artifacts of floating-point maths (alth... | [
{
"answer_id": 343751,
"author": "Ken Gentle",
"author_id": 8709,
"author_profile": "https://Stackoverflow.com/users/8709",
"pm_score": 4,
"selected": true,
"text": "NUMERIC(p,s)"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5351/"
] |
343,744 | <p>Is it possible to close parent window in Firefox 2.0 using JavaScript. I have a parent page which opens another window, i need to close the parent window after say 10 seconds.
I have tried Firefox tweaks "dom.allow_scripts_to_close_windows", tried delay but nothing seems to work.</p>
<p>Any help will be really appr... | [
{
"answer_id": 343774,
"author": "user37125",
"author_id": 37125,
"author_profile": "https://Stackoverflow.com/users/37125",
"pm_score": 3,
"selected": true,
"text": "opener.close()\n"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21195/"
] |
343,753 | <p>I have a mysql database which as one of the fields contains a html description. This description is not in my control, and is obtained and inserted automatically. An example of one of these descriptions is here:</p>
<p><a href="http://www.nomorepasting.com/getpaste.php?pasteid=22492" rel="nofollow noreferrer">http:... | [
{
"answer_id": 343778,
"author": "OIS",
"author_id": 36175,
"author_profile": "https://Stackoverflow.com/users/36175",
"pm_score": 2,
"selected": false,
"text": "child1.document.write(' . json_encode($row2[\"ARTICLE_DESC\"]) . ');\n"
},
{
"answer_id": 343858,
"author": "Tom H... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1246613/"
] |
343,764 | <p>So I've just recently made the step from ad hoc debugging with <code>dump</code>, <code>print_r</code> and <code>echo</code> to some more sophisticated methods and I'm having a struggle. </p>
<p>I work with Zend Framework, Aptana and Zend Debugger.</p>
<p>At this moment I'm trying to debug a custom controller and ... | [
{
"answer_id": 343906,
"author": "Jay",
"author_id": 41690,
"author_profile": "https://Stackoverflow.com/users/41690",
"pm_score": 1,
"selected": false,
"text": "define('MODE_DEBUG', 1);\n"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343764",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11995/"
] |
343,769 | <p>We use a number of diffrent web services in our company, wiki(moinmoin), bugtracker (internally), requestracker (customer connection), subversion. Is there a way to parse the wikipages so that if I write "... in Bug1234 you could ..." Bug1234 woud be renderd as a link to <code>http://mybugtracker/bug1234</code></p>
| [
{
"answer_id": 1932862,
"author": "meduz",
"author_id": 234547,
"author_profile": "https://Stackoverflow.com/users/234547",
"pm_score": 0,
"selected": false,
"text": "data/intermap.txt"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42580/"
] |
343,790 | <p>I am trying to play the Asterisk system sound from a C# program with</p>
<pre><code>System.Media.SystemSounds.Asterisk.Play();
</code></pre>
<p>but no sound plays. My system does have a sound set up for Asterisk and other programs (not written by me) cause various system sounds to play.</p>
<p>Can anyone suggest... | [
{
"answer_id": 344130,
"author": "ng5000",
"author_id": 36860,
"author_profile": "https://Stackoverflow.com/users/36860",
"pm_score": 1,
"selected": false,
"text": "[DllImport(\"user32.dll\", CharSet=CharSet.Auto, ExactSpelling=true)]\ninternal static extern bool MessageBeep(int type);\n... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1535/"
] |
343,811 | <p>I'm trying to click on a link using jquery. There only appears to be a click event that replicates "onclick" (i.e user input). Is it possible to use jquery to actually click a link?</p>
| [
{
"answer_id": 344186,
"author": "Pim Jager",
"author_id": 35197,
"author_profile": "https://Stackoverflow.com/users/35197",
"pm_score": 6,
"selected": true,
"text": "$(\"a[0]\") \n"
},
{
"answer_id": 350153,
"author": "Andreas Grech",
"author_id": 44084,
"author_prof... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43626/"
] |
343,841 | <p>How to configure Tomcat 5.5 to authenticate against Win2003 Activedirectory(LDAP)</p>
<p>What changes are needed to default tomcat configuration, at least server.xml needs to be changed somehow to have IP of Win2003 server?</p>
| [
{
"answer_id": 356370,
"author": "Jerome Delattre",
"author_id": 27762,
"author_profile": "https://Stackoverflow.com/users/27762",
"pm_score": 3,
"selected": true,
"text": " <Realm\n className=\"org.apache.catalina.realm.JNDIRealm\"\n debug=\"99\"\n connectionURL=... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20979/"
] |
343,852 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/295579/fastest-way-to-determine-if-an-integers-square-root-is-an-integer">Fastest way to determine if an integer's square root is an integer</a> </p>
</blockquote>
<p>What's a way to see if a number is a <a... | [
{
"answer_id": 343862,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 8,
"selected": true,
"text": "bool IsPerfectSquare(long input)\n{\n long closestRoot = (long) Math.Sqrt(input);\n return input == closestRoot * c... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29/"
] |
343,865 | <p>I have a bunch of files with coordinates in UTM form. For each coordinate I have easting, northing and zone. I need to convert this to LatLng for use with Google Map API to show the information in a map.</p>
<p>I have found some online calculators that does this, but no actual code or libraries. <a href="http://tra... | [
{
"answer_id": 344083,
"author": "Staale",
"author_id": 3355,
"author_profile": "https://Stackoverflow.com/users/3355",
"pm_score": 6,
"selected": true,
"text": "import math\n\ndef utmToLatLng(zone, easting, northing, northernHemisphere=True):\n if not northernHemisphere:\n nor... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3355/"
] |
343,866 | <p>More and more applications need different representations of similar objects, e.g., when crossing the wire with web services or when mapping to the database. When you are working with a domain model you probably need one kind of objects in your business layer/domain model (small, lots of behaviour) and another when ... | [
{
"answer_id": 344083,
"author": "Staale",
"author_id": 3355,
"author_profile": "https://Stackoverflow.com/users/3355",
"pm_score": 6,
"selected": true,
"text": "import math\n\ndef utmToLatLng(zone, easting, northing, northernHemisphere=True):\n if not northernHemisphere:\n nor... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
343,878 | <p>Currently I'm doing something like this in markup </p>
<pre><code><input type="text" ONKEYPRESS="InputNumeric(event);" id="txtNumber" />
</code></pre>
<p>But I want to use the jQuery bind method instead for all the obvious reasons.</p>
<pre><code>jQuery(function($)
{
$("#txtNumber").bind("keyup", InputN... | [
{
"answer_id": 343913,
"author": "matthewk",
"author_id": 42905,
"author_profile": "https://Stackoverflow.com/users/42905",
"pm_score": 3,
"selected": true,
"text": "jQuery(function($)\n{\n $(\"#txtNumber\").bind(\"keyup\", function(event) {InputNumeric(event);});\n});\n"
},
{
... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2701/"
] |
343,899 | <p>I have read lots of information about page caching and partial page caching in a MVC application. However, I would like to know how you would cache data.</p>
<p>In my scenario I will be using LINQ to Entities (entity framework). On the first call to GetNames (or whatever the method is) I want to grab the data from ... | [
{
"answer_id": 343935,
"author": "terjetyl",
"author_id": 29519,
"author_profile": "https://Stackoverflow.com/users/29519",
"pm_score": 7,
"selected": true,
"text": "System.Web"
},
{
"answer_id": 349111,
"author": "Hrvoje Hudo",
"author_id": 1407,
"author_profile": "h... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42434/"
] |
343,900 | <p>I have a table with playerhandles, like this:</p>
<pre><code>1 - [N] Laka
2 - [N] James
3 - nor | Brian
4 - nor | John
5 - Player 2
6 - Spectator
7 - [N] Joe
</code></pre>
<p>From there I wanna select all players where the first n-chars match, but I don't know the pattern, only that it's the first n-chars. In the... | [
{
"answer_id": 343982,
"author": "Kieveli",
"author_id": 15852,
"author_profile": "https://Stackoverflow.com/users/15852",
"pm_score": 3,
"selected": true,
"text": "select name from players p1 where exists (\n select 1 from players p2 where \n p2.name like CONCAT( SUBSTRING(p1.name, ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33232/"
] |
343,902 | <p>I have a table in a ORACLE 10g database with a column "<code>kzCode NUMBER(1)</code>".</p>
<p>If I try to map this with Hibernate annotations in JBOSS Server WebApp like this:</p>
<pre><code>@Column(nullable=false)
private Integer kzCode;
</code></pre>
<p>I got an error: </p>
<pre><code>org.hibernate.HibernateEx... | [
{
"answer_id": 343922,
"author": "Paul Croarkin",
"author_id": 18995,
"author_profile": "https://Stackoverflow.com/users/18995",
"pm_score": 0,
"selected": false,
"text": "@Column(nullable=false)\nprivate Boolean kzCode;\n"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
343,921 | <p>I am writing a batch script which I wish to open a file and then change the second line of it. I want to find the string "cat" and replace it with a value that I have SET i.e. %var% . I only want this to happen on the second line (or for the first 3 times). How would you go about doing this?</p>
| [
{
"answer_id": 343955,
"author": "Kieveli",
"author_id": 15852,
"author_profile": "https://Stackoverflow.com/users/15852",
"pm_score": -1,
"selected": false,
"text": "@echo off\nsetlocal enabledelayedexpansion\n\nset file=c:\\file.txt\nset output=output.txt\nset maxlines=5000\n\nset coun... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343921",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
343,946 | <p>I want to change the font I am using in a CEikLabel on S60 device</p>
<p>I believe I can do the following</p>
<pre><code>const CFont* aPlainFont = LatinPlain12();
aLabel->SetFont(aPlainFont);
</code></pre>
<p>where LatinPlain12 is one from this list..</p>
<pre><code>Albi12
Alp13
Alpi13
Albi13
alp17
Alb17b
alb... | [
{
"answer_id": 373970,
"author": "KevinD",
"author_id": 26497,
"author_profile": "https://Stackoverflow.com/users/26497",
"pm_score": 1,
"selected": true,
"text": "const CFont* myFont; \n// Initialize your font\n// ....\nTBool isProportional = (myFont->FontSpecInTwips().iTypeface.Attribu... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343946",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33604/"
] |
343,947 | <p>What communication is going on between Eclipse and my application server (JBoss) when I run the server from within Eclipse in debugging mode? How does this work?</p>
| [
{
"answer_id": 34278857,
"author": "Pritam Banerjee",
"author_id": 1475228,
"author_profile": "https://Stackoverflow.com/users/1475228",
"pm_score": 0,
"selected": false,
"text": " agentlib:libname[=options] format.\n"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343947",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18103/"
] |
343,954 | <p>I've got a service that has a very slow memory leak. If I analyze the .NET CLR Loading counters, I see that the <em>Current Classes Loaded</em> counter is constantly increasing and matches <em>Total Classes Loaded</em> counter at all times. This gives me the impression that the memory leak is related to resources ... | [
{
"answer_id": 343981,
"author": "Andrew Rollings",
"author_id": 40410,
"author_profile": "https://Stackoverflow.com/users/40410",
"pm_score": 2,
"selected": false,
"text": "AppDomain"
},
{
"answer_id": 344265,
"author": "Page",
"author_id": 2657,
"author_profile": "h... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2657/"
] |
343,963 | <p>I need to store large amounts of data on-disk in approximately 1k blocks. I will be accessing these objects in a way that is hard to predict, but where patterns probably exist.</p>
<p>Is there an algorithm or heuristic I can use that will rearrange the objects on disk based on my access patterns to try to maximize... | [
{
"answer_id": 344108,
"author": "Jason Cohen",
"author_id": 4926,
"author_profile": "https://Stackoverflow.com/users/4926",
"pm_score": 2,
"selected": false,
"text": "memcpy()"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343963",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16050/"
] |
343,968 | <p>I have a 1GB file containing pairs of string and long.
What's the best way of reading it into a Dictionary, and how much memory would you say it requires?</p>
<p>File has 62 million rows.
I've managed to read it using 5.5GB of ram.</p>
<p>Say 22 bytes overhead per Dictionary entry, that's 1.5GB.
long is 8 bytes, t... | [
{
"answer_id": 343986,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 2,
"selected": false,
"text": "Dictionary<string,long> dictionary = new Dictionary<string,long>();\nusing (TextReader reader = File.OpenText(filename))... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343968",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19956/"
] |
343,983 | <p>The bossman wants to know how to delete a user in Sharepoint. We've got him convinced that deleting a user is too difficult because of traces of that user through the system, so now he wants to be able to change the username to all Xs or somesuch. I've poked around the DB and found a couple of UserInfo tables, one... | [
{
"answer_id": 344039,
"author": "Nico",
"author_id": 22970,
"author_profile": "https://Stackoverflow.com/users/22970",
"pm_score": 2,
"selected": false,
"text": "stsadm -o migrateuser"
},
{
"answer_id": 344311,
"author": "Alex Angas",
"author_id": 6651,
"author_profi... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343983",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16162/"
] |
343,989 | <p>I'm using Turbo Delphi 2006.</p>
<p>The DLL will be called from within Excel as part of a VBA/DLL combination. </p>
<p>The first part of the problem is trying to find out how to pass to the DLL a reference to the current Excel session. Most other code I've seen was that it launched a separate instance of Excel apa... | [
{
"answer_id": 345452,
"author": "Oliver Giesen",
"author_id": 9784,
"author_profile": "https://Stackoverflow.com/users/9784",
"pm_score": 4,
"selected": true,
"text": "IDTExtensibility2"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343989",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/426/"
] |
343,991 | <p>I use VS6 and ATL with CServiceModule to implement a custom windows service. In case of a fatal error service should shut itself down. Since CServiceModule is available via _Module variable in all files I thought of something like this to cause CServiceModule::Run to stop pumping messages and shut itself down</p>
<... | [
{
"answer_id": 345452,
"author": "Oliver Giesen",
"author_id": 9784,
"author_profile": "https://Stackoverflow.com/users/9784",
"pm_score": 4,
"selected": true,
"text": "IDTExtensibility2"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/343991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/501/"
] |
343,995 | <p>I'm rewriting a PHP web site in ASP.NET MVC. I'd like to maintain the same user base but the passwords are hashed using the PHP crypt() function. I need the same function in .Net so that I can hash a password on login and check it against the hashed password in the user database.</p>
<p>crypt in this case is using ... | [
{
"answer_id": 344023,
"author": "MrKurt",
"author_id": 35296,
"author_profile": "https://Stackoverflow.com/users/35296",
"pm_score": 2,
"selected": false,
"text": "System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(password, format)"
},
{
"answer_id": 344... | 2008/12/05 | [
"https://Stackoverflow.com/questions/343995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43649/"
] |
344,012 | <p><strong>UPDATE:</strong>
Obviously, you'd want to do this using templates or a base class rather than macros. Unfortunately for various reasons I can't use templates, or a base class.</p>
<hr/>
<p>At the moment I am using a macro to define a bunch of fields and methods on various classes, like this:</p>
<pre><cod... | [
{
"answer_id": 344029,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 4,
"selected": true,
"text": "class Example<class T>\n{\n ...class definition...\n};\n"
},
{
"answer_id": 344106,
"author": "epat... | 2008/12/05 | [
"https://Stackoverflow.com/questions/344012",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25457/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.