qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
305,519 | <p>In an impersonation scenario related to Sharepoint I need to execute some code in a separate process (the process will run in the context of a certain user). I do not want to launch a separate application, basically I want to do a "run as" on just a method.</p>
| [
{
"answer_id": 305558,
"author": "Gunnar Steinn",
"author_id": 33468,
"author_profile": "https://Stackoverflow.com/users/33468",
"pm_score": 2,
"selected": false,
"text": "...\nWrapperImpersonationContext context = new WrapperImpersonationContext(domain, username, password);\ncontext.Ent... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1360/"
] |
305,523 | <p>I am writing a QT application and I need to embed a terminal (we say,xterm) within a QDialog, like some KDE application (see kdevelop/kate/...).</p>
<p>I've been trying with:
- QX11EmbedContainer placed into the QLayout of my QDialog
- QProcess for the program I want to excecute</p>
<p>I expect the QProcess runn... | [
{
"answer_id": 307752,
"author": "David Dibben",
"author_id": 5022,
"author_profile": "https://Stackoverflow.com/users/5022",
"pm_score": 0,
"selected": false,
"text": " QProcess process(&container);\n QString executable(app.arguments()[1]);\n QStringList arguments;\n arguments << \"-int... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39339/"
] |
305,527 | <p>I cannot figure out a way to disable a container AND its children in Swing. Is Swing really missing this basic feature?</p>
<p>If I do setEnabled(false) on a container, its children are still enabled.</p>
<p>My GUI structure is pretty complex, and doing a traversion of all elements below the container is not an op... | [
{
"answer_id": 305551,
"author": "Michael Myers",
"author_id": 13531,
"author_profile": "https://Stackoverflow.com/users/13531",
"pm_score": 4,
"selected": false,
"text": "JXLayer.setLocked(true)"
},
{
"answer_id": 2214729,
"author": "Dylan",
"author_id": 267889,
"aut... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15932/"
] |
305,529 | <p>Greetings to all! This is my first question here on stackoverflow. I have a WPF application that I am writing for the fellow developers in my department, and there are a couple of settings that I need to check for at startup and update if they are not set (one is the location of an executable on the users computer... | [
{
"answer_id": 305547,
"author": "Dillie-O",
"author_id": 71,
"author_profile": "https://Stackoverflow.com/users/71",
"pm_score": 6,
"selected": true,
"text": "Configuration oConfig = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);\noConfig.AppSettings.Settings[\"... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39337/"
] |
305,536 | <pre><code>// A Mutex allows threads mutually exclusive access to a resource.
//-----------------------------------------------------------------------
class Mutex
{
private:
CRITICAL_SECTION m_mutex;
public:
Mutex() { InitializeCriticalSection(&m_mutex); }
~Mutex() { DeleteCriticalSection(&m_mut... | [
{
"answer_id": 305704,
"author": "Tim Lesher",
"author_id": 14942,
"author_profile": "https://Stackoverflow.com/users/14942",
"pm_score": 3,
"selected": false,
"text": "struct Customer {\n char * name;\n};\n\nextern void greetCustomer(Customer* c);\n\nclass CheckoutLine {\n private:\... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7599/"
] |
305,538 | <p>I'm working on a webserver that I didn't totally set up and I'm trying to figure out which parts of a web page are being sent encrypted and which aren't. Firefox tells me that parts of the page are encrypted, but I want to know what, specifically, is encrypted.</p>
| [
{
"answer_id": 7691014,
"author": "Professor Falken",
"author_id": 888986,
"author_profile": "https://Stackoverflow.com/users/888986",
"pm_score": 4,
"selected": false,
"text": "Response Headers \nServer nginx/0.8.54\nDate Fri, 07 Oct 2011 17:35:16 GMT\nContent-Type text/html\nCo... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8092/"
] |
305,552 | <p>Need to locate the following pattern:</p>
<p>The letter I followed by a space then three alpha numerics followed by a space</p>
<p>"I ALN "
"I H21 "
"I 31M "</p>
<p>these items are also followed by a lat/lon that is trapped by this expression:</p>
<p>Dim regex As New Regex("\d{6} \d{7}")</p>
<p>Can the expressi... | [
{
"answer_id": 305560,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 1,
"selected": false,
"text": "I ([a-zA-Z\\d]{3} \\d{6} \\d{7})\n"
},
{
"answer_id": 305573,
"author": "shelfoo",
"author_id": 3444,
... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305552",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38349/"
] |
305,554 | <p>Assume I have a function like this:</p>
<pre><code>MyClass &MyFunction(void)
{
static MyClass *ptr = 0;
if (ptr == 0)
ptr = new MyClass;
return MyClass;
}
</code></pre>
<p>The question is at program exit time, will the ptr variable ever become invalid (i.e. the contents of that ptr are cleaned up by ... | [
{
"answer_id": 305569,
"author": "e.James",
"author_id": 33686,
"author_profile": "https://Stackoverflow.com/users/33686",
"pm_score": 2,
"selected": false,
"text": "MyClass"
},
{
"answer_id": 306018,
"author": "Martin York",
"author_id": 14065,
"author_profile": "htt... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7587/"
] |
305,555 | <p>How to get the last selected item in a .Net Forms multiselect ListBox? Apparently if I select an item in the listbox and then select another 10 the selected item is the first one.</p>
<p>I would like to obtain the last element that I selected/deselected.</p>
| [
{
"answer_id": 305597,
"author": "flesh",
"author_id": 27805,
"author_profile": "https://Stackoverflow.com/users/27805",
"pm_score": 3,
"selected": false,
"text": "ListItem i = list.SelectedItems[list.SelectedItems.Length-1];\n"
},
{
"answer_id": 305601,
"author": "Tomalak",
... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18631/"
] |
305,568 | <p>Excuting the line of SQL:</p>
<pre><code>SELECT *
INTO assignment_20081120
FROM assignment ;
</code></pre>
<p>against a database in oracle to back up a table called assignment gives me the following ORACLE error:
ORA-00905: Missing keyword</p>
| [
{
"answer_id": 305584,
"author": "Justin Cave",
"author_id": 10397,
"author_profile": "https://Stackoverflow.com/users/10397",
"pm_score": 5,
"selected": false,
"text": "ASSIGNMENT ASSIGNMENT_20081120 ASSIGNMENT%ROWTYPE CREATE TABLE assignment_20081120\nAS\nSELECT *\n FROM assignment\n"... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305568",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
305,574 | <p>This question follows on from <a href="https://stackoverflow.com/questions/299114/can-i-search-for-php-class-members-and-methods-with-vim-star-search">this vim search question</a></p>
<p>I have a setting in my .vimrc which excludes $ as a valid part of a word:</p>
<pre><code>set iskeyword-=$
</code></pre>
<p>This... | [
{
"answer_id": 305627,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 4,
"selected": true,
"text": "set isk-=$ $VIMRUNTIME\\filetype.vim vimrc au FileType php set isk-=$\n vimrc"
},
{
"answer_id": 305820,
"... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20074/"
] |
305,579 | <p>In your practice, how do you effectively track and manage technical debt? </p>
<p>Is there a specific metric, like <a href="http://jamesshore.com/Blog/An-Approximate-Measure-of-Technical-Debt.html" rel="nofollow noreferrer">SLOC</a>, that you use?</p>
<p>How do you visually display your results to stakeholders a... | [
{
"answer_id": 310809,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 1,
"selected": false,
"text": "@todo @todo @todo"
}
] | 2008/11/20 | [
"https://Stackoverflow.com/questions/305579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
305,591 | <p>This seems like something simple, but I can't seem to figure it out! I'm trying to get 2-way data-binding to work on an ASP.net page with a check box as one of the columns. How do I get the updated values (from check boxes) back from the gridview ?????</p>
<p>Here is my data type:</p>
<pre><code>[Serializable]
pub... | [
{
"answer_id": 305617,
"author": "MysticSlayer",
"author_id": 28139,
"author_profile": "https://Stackoverflow.com/users/28139",
"pm_score": 2,
"selected": false,
"text": " if (chkBx != null && chkBx.Checked)\n {\n /// put your code here\n }\n }\n"
},... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305591",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5208/"
] |
305,605 | <p>I'm writing a simple .bat file and I've run into some weird behavior. There are a couple places where I have to do a simple if/else, but the code inside the blocks don't seem to be working correctly.</p>
<p>Here's a simple case that demonstrates the error:</p>
<pre><code>@echo off
set MODE=FOOBAR
if "%~1"=="" (... | [
{
"answer_id": 305640,
"author": "user33675",
"author_id": 33675,
"author_profile": "https://Stackoverflow.com/users/33675",
"pm_score": 6,
"selected": true,
"text": " set VAR=before\n if \"%VAR%\" == \"before\" (\n set VAR=after\n if \"%VAR%\" == \"after\" @echo If you see this,... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1409/"
] |
305,611 | <p>Does anyone know of any C container libraries? I am looking for something which gives standard implementations of linked lists, arrays, hash tables etc, much in the same way as the C++ STL does. Key concerns are:</p>
<ol>
<li>Client code should be able to create containers for multiple different data types without ... | [
{
"answer_id": 902923,
"author": "user105991",
"author_id": 105991,
"author_profile": "https://Stackoverflow.com/users/105991",
"pm_score": 2,
"selected": false,
"text": "#include \"queue.h\""
},
{
"answer_id": 902960,
"author": "Lear",
"author_id": 80223,
"author_pro... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23435/"
] |
305,615 | <p>When measuring network latency (time ack received - time msg sent) in any protocol over TCP, what timer would you recommend to use and why? What resolution does it have? What are other advantages/disadvantages?</p>
<p>Optional: how does it work?</p>
<p>Optional: what timer would you NOT use and why?</p>
<p>I'm lo... | [
{
"answer_id": 306101,
"author": "grieve",
"author_id": 34329,
"author_profile": "https://Stackoverflow.com/users/34329",
"pm_score": 4,
"selected": true,
"text": "#include <sys/time.h>\n\nint main()\n{\n timespec ts;\n // clock_gettime(CLOCK_MONOTONIC, &ts); // Works on FreeBSD\n ... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22724/"
] |
305,637 | <p>I need to signal a running application (Windows service) when certain things happen in SQL Server (2005). Is there a possibility to send a message from a trigger to an external application on the same system?</p>
| [
{
"answer_id": 305660,
"author": "vfilby",
"author_id": 24279,
"author_profile": "https://Stackoverflow.com/users/24279",
"pm_score": 1,
"selected": false,
"text": "CREATE PROC shutdown10\nAS\nEXEC xp_cmdshell 'net send /domain:SQL_USERS ''SQL Server shutting down \n in 10 minutes. No ... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
305,647 | <p>My application caches some data on disk. Because the cache may be large, it should not be stored on a network drive. It should persist between invocations of the application. I have a mechanism for the user to choose a location, but would like the default to be sensible and "the right thing" for the platform.</p>... | [
{
"answer_id": 305662,
"author": "Tim Pietzcker",
"author_id": 20670,
"author_profile": "https://Stackoverflow.com/users/20670",
"pm_score": 1,
"selected": false,
"text": "tempfile tempfile.mkstemp() tempfile"
},
{
"answer_id": 305763,
"author": "Tim Pietzcker",
"author_i... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305647",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17498/"
] |
305,651 | <p>I've seen this syntax a couple times now, and it's beginning to worry me,</p>
<p>For example:</p>
<pre><code>iCalendar iCal = new iCalendar();
Event evt = iCal.Create<Event>();
</code></pre>
| [
{
"answer_id": 305655,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": false,
"text": "public T Create<T>()\n List<Event> list = new List<Event>();\n Create public T Copy<T>(T original)\n Copy(someEvent);\n ... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305651",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31765/"
] |
305,665 | <p>Using C# and the .Net framework 2.0. I have an MDI application and need to handle dragover/dragdrop events. I have a list docked to the left on my application and would like to be able to drag an item from the list and drop it in the MDI client area and have the correct MDI child for the item open. I can't seem to f... | [
{
"answer_id": 4013546,
"author": "Shlomi Loubaton",
"author_id": 428831,
"author_profile": "https://Stackoverflow.com/users/428831",
"pm_score": 0,
"selected": false,
"text": "...\nusing System.Linq;\n...\n\npublic partial class Form1 : Form\n{\n MdiClient mdi_client;\n public For... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33724/"
] |
305,673 | <p>Essentially, I have to get a flat file into a database. The flat files come in with the first two characters on each line indicating which type of record it is.</p>
<p>Do I create a class for each record type with properties matching the fields in the record? Should I just use arrays?</p>
<p>I want to load the d... | [
{
"answer_id": 305692,
"author": "kͩeͣmͮpͥ ͩ",
"author_id": 26479,
"author_profile": "https://Stackoverflow.com/users/26479",
"pm_score": 2,
"selected": true,
"text": "record.ClientReference\n record[0]\n"
},
{
"answer_id": 305741,
"author": "Steve B.",
"author_id": 19479... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305673",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/681/"
] |
305,688 | <p>I'm pretty sure the answer to this is no. I know that I can write</p>
<blockquote>
<p>if lcase(strFoo) = lcase(request.querystring("x")) then...</p>
</blockquote>
<p>or use inStr, but I just want to check there isn't some undocumented setting buried in the registry or somewhere that makes the content of VBScript... | [
{
"answer_id": 305753,
"author": "EBGreen",
"author_id": 1358,
"author_profile": "https://Stackoverflow.com/users/1358",
"pm_score": 3,
"selected": false,
"text": "Dim dicList : Set dicList = CreateObject(\"Scripting.Dictionary\")\nDim strTest\n\ndicList.CompareMode = 0 ' Binary ie case ... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305688",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21203/"
] |
305,690 | <p>I am working on a tool where I need to convert string values to their proper object types. E.g. convert a string like <code>"2008-11-20T16:33:21Z"</code> to a <code>DateTime</code> value. Numeric values like <code>"42"</code> and <code>"42.42"</code> must be converted to an <code>Int32</code> value and a <code>Doubl... | [
{
"answer_id": 305703,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": true,
"text": "switch TypeConverter DateTime foo = new DateTime(2008, 11, 20);\n TypeConverter converter = TypeDescrip... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27393/"
] |
305,780 | <p>I am porting some queries from Access to T-SQL and those who wrote the queries used the Avg aggregate function on datetime columns. This is not supported in T-SQL and I can understand why - it doesn't make sense. What is getting averaged?</p>
<p>So I was about to start reverse engineering what Access does when it... | [
{
"answer_id": 305869,
"author": "Scott Ivey",
"author_id": 36297,
"author_profile": "https://Stackoverflow.com/users/36297",
"pm_score": 3,
"selected": true,
"text": "select AverageDate = cast(avg(cast(MyDateColumn as decimal(20, 10))) as datetime)\nfrom MyTable\n"
},
{
"answ... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22355/"
] |
305,787 | <p>I have a series of Eclipse projects containing a number of plugins and features that are checked into CVS. I now need to run an automated build of these plugins. Ideally I'd like to do it without having to hardcode large numbers of Eclipse library locations by hand, which has been the problem with the automatically ... | [
{
"answer_id": 305813,
"author": "mendicant",
"author_id": 1800,
"author_profile": "https://Stackoverflow.com/users/1800",
"pm_score": 1,
"selected": false,
"text": "<property file=\"eclipse.libraries.properties\" />\n"
}
] | 2008/11/20 | [
"https://Stackoverflow.com/questions/305787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39368/"
] |
305,797 | <p>The program that I am currently assigned to has a requirement that I copy the contents of a table to a backup table, prior to the real processing.</p>
<p>During code review, a coworker pointed out that</p>
<pre><code>INSERT INTO BACKUP_TABLE
SELECT *
FROM PRIMARY_TABLE
</code></pre>
<p>is unduly risky, as it is p... | [
{
"answer_id": 305812,
"author": "gx.",
"author_id": 21580,
"author_profile": "https://Stackoverflow.com/users/21580",
"pm_score": 0,
"selected": false,
"text": "CREATE TABLE secondary_table AS SELECT * FROM primary_table;\n CREATE TABLE secondary_table AS SELECT * FROM primary_table LIM... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7734/"
] |
305,805 | <p>I am developing some school grading software and decided to use Github to host the project. After building some code on my Ubuntu box I pushed it to Github and then cloned it down to my MacBook Pro. After editing the code on the MBP I pushed it back to Github. The next morning I tried to update my repo on the Ubunt... | [
{
"answer_id": 307742,
"author": "webmat",
"author_id": 6349,
"author_profile": "https://Stackoverflow.com/users/6349",
"pm_score": 4,
"selected": true,
"text": "git pull git pull # GitHub gives you that instruction, you've already done that\n# git remote add origin git@github.com:user_n... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21512/"
] |
305,817 | <p>I want to be able to read from an unsorted source text file (one record in each line), and insert the line/record into a destination text file by specifying the line number where it should be inserted.</p>
<p>Where to insert the line/record into the destination file will be determined by comparing the incoming line... | [
{
"answer_id": 306003,
"author": "warren",
"author_id": 4418,
"author_profile": "https://Stackoverflow.com/users/4418",
"pm_score": 1,
"selected": false,
"text": "sort cat <file> | sort -k 2,2 > <file2> ; mv <file2> <file>\n cat <file> | sort -k 2,2 > <file>\n"
}
] | 2008/11/20 | [
"https://Stackoverflow.com/questions/305817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39360/"
] |
305,835 | <p>I'm trying to understand the differences between Assembly.Load and Assembly.ReflectionOnlyLoad.</p>
<p>In the code below I am attempting to find all of the objects in a given assembly that inherit from a given interface:</p>
<pre><code>var myTypes = new List<Type>();
var assembly = Assembly.Load("MyProject.... | [
{
"answer_id": 306096,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 6,
"selected": true,
"text": "LoaderExceptions AppDomain.ReflectionOnlyAssemblyResolve"
},
{
"answer_id": 306293,
"author": "C. Dragon 76... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305835",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29662/"
] |
305,843 | <p>I have a unit test that works fine locally but when uploaded to TeamCity build server fails with "The process cannot access the file because it is being used by another process."</p>
<ol>
<li>Before I do anything in the Test
I check in the setup if the file
exists and if so try to delete it.
This fails with the sa... | [
{
"answer_id": 305847,
"author": "Mark",
"author_id": 37923,
"author_profile": "https://Stackoverflow.com/users/37923",
"pm_score": 2,
"selected": false,
"text": "Find Handle or DLL"
}
] | 2008/11/20 | [
"https://Stackoverflow.com/questions/305843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11802/"
] |
305,849 | <p>I usually, almost without thinking anymore, use forward declarations so that I won't have to include headers. Something along this example:</p>
<pre><code>//-----------------------
// foo.h
//-----------------------
class foo
{
foo();
~foo();
};
//-----------------------
// bar.h
//-----------------------
... | [
{
"answer_id": 305862,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 0,
"selected": false,
"text": "// bar.h\nclass foo;\n\nclass bar {\n foo& foo_;\n\npublic:\n bar();\n ~bar();\n};\n\n// bar.cc\nbar::bar() : foo_(... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7891/"
] |
305,856 | <p>I have a project where multiple developers are using a copy of the same windows Virtual PC image (W2K3 SE SP2). Because our solution is tied to the machine-name (less than ideal, i know) all of the developers have the same machine name.</p>
<p>We use a VPN to connect to a remote system, upon connection we get the ... | [
{
"answer_id": 305862,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 0,
"selected": false,
"text": "// bar.h\nclass foo;\n\nclass bar {\n foo& foo_;\n\npublic:\n bar();\n ~bar();\n};\n\n// bar.cc\nbar::bar() : foo_(... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30809/"
] |
305,860 | <p>What do you think is the best way to implement an interactive grid similar to a Sudoku board for a native iPhone application? I did not see an object to fill this need in the SDK.</p>
<p>Should I make a custom control for an individual cell, then initialize as many of them as I need in a grid form?</p>
<p><a href... | [
{
"answer_id": 306149,
"author": "Svante",
"author_id": 31615,
"author_profile": "https://Stackoverflow.com/users/31615",
"pm_score": 0,
"selected": false,
"text": "hidden"
},
{
"answer_id": 306152,
"author": "e.James",
"author_id": 33686,
"author_profile": "https://S... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39365/"
] |
305,870 | <p>I am attempting to write a Windows Service in C#. I need to find the path to a certain file, which is stored in an environment variable. In a regular C# console application, I can achieve that with the following line:</p>
<pre><code>string t = System.Environment.GetEnvironmentVariable("TIP_HOME");
</code></pre>
... | [
{
"answer_id": 306090,
"author": "Brian",
"author_id": 39373,
"author_profile": "https://Stackoverflow.com/users/39373",
"pm_score": 1,
"selected": false,
"text": "foreach(DictionaryEntry de in Environment.GetEnvironmentVariables(tgt))\n{\n key = (string)de.Key;\n value = (string... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39373/"
] |
305,880 | <p>I've got what I think is a simple question. I've seen examples both ways. The question is - "why can't I place my annotations on the field?". Let me give you an example....</p>
<pre><code>@Entity
@Table(name="widget")
public class Widget {
private Integer id;
@Id
@GeneratedValue(strategy=GenerationType.AUTO)... | [
{
"answer_id": 305902,
"author": "Jonathan",
"author_id": 28209,
"author_profile": "https://Stackoverflow.com/users/28209",
"pm_score": 0,
"selected": false,
"text": "@Entity\n@Table(name=\"widget\")\npublic class Widget {\n @Id\n @GeneratedValue(strategy=GenerationType.AUTO)\n\n ... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305880",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39374/"
] |
305,886 | <p>For a new project I have to import the pre-existing data from MySql.</p>
<p>In <a href="http://www.connectionstrings.com/?carrier=mysql" rel="noreferrer">this site</a> I have found many options, some including the installation of drivers. What is the fastest & easiest way to do it?</p>
<p>Update: this would be... | [
{
"answer_id": 6423238,
"author": "Abdul HaSeeB",
"author_id": 808157,
"author_profile": "https://Stackoverflow.com/users/808157",
"pm_score": 3,
"selected": false,
"text": "-- Create Link Server\n\nEXEC master.dbo.sp_addlinkedserver \n@server = N'MYSQL', \n@srvproduct=N'MySQL', \n@provi... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4264/"
] |
305,894 | <p>I am trying to update an old JavaScript function used to detect support for AJAX (i.e. the XmlHttpRequest object). I've looked online (including SO) and found various solutions but I'm not sure which is the most efficient for simply detecting support.</p>
<p>The current function is:</p>
<pre><code> function IsS... | [
{
"answer_id": 305926,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "https://Stackoverflow.com/users/15459",
"pm_score": 1,
"selected": false,
"text": "function CreateXMLHttpRequest()\n{\n // Firefox and others\n try { return new XMLHttpRequest(); } catch (e) {}\n // Inte... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12124/"
] |
305,905 | <p>What's the best way to kill a process and all its child processes from a Perl script? It should run at least under Linux and Solaris, and not require installation of any additional packages.</p>
<p>My guess would be to get a list of all processes and their parents by parsing files in /proc or by parsing the output ... | [
{
"answer_id": 305919,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 3,
"selected": false,
"text": "kill -$signum, $pgid;\n $signum $pgid perlfunc SIGTERM kill 'TERM', -$pgid;\n"
}
] | 2008/11/20 | [
"https://Stackoverflow.com/questions/305905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2148773/"
] |
305,911 | <p>Lets say you have a property like:</p>
<pre><code>Person person1;
public Person Captin{
get{
return person1;
}
set{
person1 = value;
}
}
public void SomeFunction(){
Captin.name = "Hook"
}
</code></pre>
<p>In this case if you set the name on the property we know that the new n... | [
{
"answer_id": 305942,
"author": "JSC",
"author_id": 37311,
"author_profile": "https://Stackoverflow.com/users/37311",
"pm_score": 2,
"selected": false,
"text": "public void SomeFunction() {\n Person p = Captin;\n p.name = \"Hook\";\n Captin = p;\n}\n"
},
{
"answer_id": 115... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4491/"
] |
305,915 | <p>I have a form containing a web browser control. This browser control will load some HTML from disk and display it. I want to be able to have a button in the HTML access C# code in my form. </p>
<p>For example, a button in the HTML might call the Close() method on the form.</p>
<p>Target platform: C# and Windows Fo... | [
{
"answer_id": 305974,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": " private void MyMethod()\n {\n // do something\n }\n\n private void webBrowser1_Navigating(object sender, W... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/636/"
] |
305,924 | <p>I have a function that takes another function as a parameter. If the function is a member of a class, I need to find the name of that class. E.g.</p>
<pre><code>def analyser(testFunc):
print testFunc.__name__, 'belongs to the class, ...
</code></pre>
<p>I thought </p>
<pre><code>testFunc.__class__
</code></... | [
{
"answer_id": 305948,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 3,
"selected": false,
"text": "testFunc.__self__.__class__\n testFunc.__objclass__\n Python 2.5.2 (r252:60911, Jul 31 2008, 17:31:22) \n[GCC 4.2.3 (Ubuntu ... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305924",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11677/"
] |
305,937 | <p>I am creating a C# WinForms application. I would like to have a Custom Form Border. And I want to create a black custom window (with border and controls) like that of Adobe Lightroom. For example -
<a href="https://i.stack.imgur.com/VNDFM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VNDFM.jpg" ... | [
{
"answer_id": 12511904,
"author": "Nikita",
"author_id": 1611550,
"author_profile": "https://Stackoverflow.com/users/1611550",
"pm_score": 2,
"selected": false,
"text": " #region Кастомизированное поведение - рамки, активность и т.д.\n private bool isCurrentlyActive = false;\n ... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305937",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/636/"
] |
305,991 | <p>I'm under the impression that the Dot '.' (wild card) character is dangerous to use. Is my fear unfounded? Thanks</p>
| [
{
"answer_id": 306104,
"author": "Claudiu",
"author_id": 15055,
"author_profile": "https://Stackoverflow.com/users/15055",
"pm_score": 0,
"selected": false,
"text": ".* .*<one>.*<two>.*<three>.*</three>.*</two>.*</one>.*\n"
},
{
"answer_id": 306154,
"author": "Brian",
"au... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
305,994 | <p>I searched all over this site and the web for a good and <strong>simple</strong> example of autocomplete using jQuery and ASP.NET. I wanted to expose the data used by autocomplete with a webservice (and will probably do that next). In the meantime, I got this working, but it seems a little hacky...</p>
<p>In my pag... | [
{
"answer_id": 306037,
"author": "bdukes",
"author_id": 2688,
"author_profile": "https://Stackoverflow.com/users/2688",
"pm_score": 6,
"selected": true,
"text": "<script type=\"text/javascript\">\n $(document).ready(function(){\n $(\"#txtSearch\").autocomplete('autocompletetagdata.... | 2008/11/20 | [
"https://Stackoverflow.com/questions/305994",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38787/"
] |
306,012 | <p>There is an actual running Java ServerPages (JSP) application within a *NIX box which I somewhat administer with kind of good permissions. The idea is to create a new but dead simple JSP page to control some Korn Shell scripts I've got running there. So the goal is to make some sort of HTML form that will be writing... | [
{
"answer_id": 306083,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 3,
"selected": true,
"text": "File flag = new File(\"/path/scriptStatus.off\");\nString message;\nif (flag.delete())\n message = \"Script enabled.\";\nel... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306012",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6992/"
] |
306,013 | <p>My form does not go to recipient when submitted! I changed the file mail.tpl.txt to direct to my own email address as a test and I got the email just fine.</p>
<p>Client has checked junk mail folder as well and he is just not getting information.</p>
<p>Below is the form code, followed by the code from mail.tpl.tx... | [
{
"answer_id": 1077429,
"author": "Basher",
"author_id": 132187,
"author_profile": "https://Stackoverflow.com/users/132187",
"pm_score": 1,
"selected": false,
"text": "From: \"{name}\" {phone} <{email}> <{message}> \n From: \"{name} {phone}\" <{email}>\n"
}
] | 2008/11/20 | [
"https://Stackoverflow.com/questions/306013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30043/"
] |
306,017 | <p>I realize that far is compiler specific, but my expectation is that the placement of the far specifier should make sense to those who really understand pointers.</p>
<p>So, I have two applications that share the processor's entire memory space.</p>
<p>App A needs to call function foo that exists in app B.</p>
<p>... | [
{
"answer_id": 306067,
"author": "Skizz",
"author_id": 1898,
"author_profile": "https://Stackoverflow.com/users/1898",
"pm_score": 3,
"selected": false,
"text": "__far"
},
{
"answer_id": 306321,
"author": "Paul Nathan",
"author_id": 26227,
"author_profile": "https://S... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2915/"
] |
306,062 | <p>I need a CSS selector that can find the 2nd div of 2 that has the same class. I've looked at <code>nth-child()</code> but it's not what I want since I can't see a way to further clarify what class I want. These 2 divs will be siblings in the document if that helps.</p>
<p>My HTML looks something like this:</p>
<pr... | [
{
"answer_id": 306087,
"author": "geocar",
"author_id": 37507,
"author_profile": "https://Stackoverflow.com/users/37507",
"pm_score": 6,
"selected": false,
"text": ".bar:nth-child(2)\n"
},
{
"answer_id": 306127,
"author": "Seamus",
"author_id": 30443,
"author_profile"... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12094/"
] |
306,065 | <p>Currently i have a NotInheritable class in App_Code that hold some variables that need to be access thur-out the application but i don't think it's a good way to manage global variables. </p>
| [
{
"answer_id": 306197,
"author": "Bruno Shine",
"author_id": 28294,
"author_profile": "https://Stackoverflow.com/users/28294",
"pm_score": 0,
"selected": false,
"text": "Settings.Default.PortalName"
}
] | 2008/11/20 | [
"https://Stackoverflow.com/questions/306065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28647/"
] |
306,075 | <p>Is there a cookie automatically placed on the user's machine? Or is it somehow associated with the requester's IP address? Or maybe in the ViewState? Elementary question, I know, but I've had a hard time finding an answer.</p>
| [
{
"answer_id": 306084,
"author": "kͩeͣmͮpͥ ͩ",
"author_id": 26479,
"author_profile": "https://Stackoverflow.com/users/26479",
"pm_score": 1,
"selected": false,
"text": "ASP.NET_SessionId ASP.NET_SessionId=kxt1dee1laeuq445pyzjvv55; path=/; domain=localhost; HttpOnly\n"
}
] | 2008/11/20 | [
"https://Stackoverflow.com/questions/306075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/767/"
] |
306,080 | <p>After following the advice in <a href="https://stackoverflow.com/questions/302560/wix-custom-actions-with-wixuiminimal">this question</a> successfully, I added a couple additional lines of code for another custom action. This one is intended to call regsvr32 on the copy of capicom which I've tried to put in the use... | [
{
"answer_id": 306409,
"author": "CheGueVerra",
"author_id": 17787,
"author_profile": "https://Stackoverflow.com/users/17787",
"pm_score": 0,
"selected": false,
"text": "heat file [Path\\Capicom.dll] -template:product -out capicom.wxs\n <ComponentGroup Id=\"capicom\">\n <ComponentRef Id... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18192/"
] |
306,097 | <p>We determined in a <a href="https://stackoverflow.com/questions/303810/variable-dynamic-option-lists-in-html-select-using-ie">previous question</a> that many features of HTML SELECTs are not supported in IE. Is there an alternative widget that you would recommend from your experience that meets the following requir... | [
{
"answer_id": 306125,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 3,
"selected": true,
"text": "<optgroup label=\"--\"></optgroup>\n"
}
] | 2008/11/20 | [
"https://Stackoverflow.com/questions/306097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26671/"
] |
306,130 | <p>I am trying to write a decorator to do logging:</p>
<pre><code>def logger(myFunc):
def new(*args, **keyargs):
print 'Entering %s.%s' % (myFunc.im_class.__name__, myFunc.__name__)
return myFunc(*args, **keyargs)
return new
class C(object):
@logger
def f():
pass
C().f()
</co... | [
{
"answer_id": 306196,
"author": "Claudiu",
"author_id": 15055,
"author_profile": "https://Stackoverflow.com/users/15055",
"pm_score": 3,
"selected": false,
"text": "def logger(myFunc):\n def new(*args, **keyargs):\n print 'Entering %s.%s' % (myFunc.im_class.__name__, myFunc.__... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11677/"
] |
306,132 | <p>I have a site made with php which uses server side sessions throughout the site.<br>
In fact, it's a site with a user login which depends on session variables and if there were a problem with <em>all</em> session variables, no pages would load at all. </p>
<p>On the site, there's an iframe that holds a feed of lit... | [
{
"answer_id": 310288,
"author": "seans",
"author_id": 39385,
"author_profile": "https://Stackoverflow.com/users/39385",
"pm_score": 3,
"selected": true,
"text": "<img src= \"\" >"
},
{
"answer_id": 2146737,
"author": "dotcolor",
"author_id": 260047,
"author_profile"... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39385/"
] |
306,136 | <p>I know I could do this with closures (<code>var self = this</code>) if object was a function:</p>
<pre><code><a href="#" id="x">click here</a>
<script type="text/javascript">
var object = {
y : 1,
handle_click : function (e) {
alert('h... | [
{
"answer_id": 306151,
"author": "Jason Bunting",
"author_id": 1790,
"author_profile": "https://Stackoverflow.com/users/1790",
"pm_score": 2,
"selected": false,
"text": "var object = { \n y : 1, \n handle_click : function (e) {\n alert('handling click');\n\n //want to access y he... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
306,139 | <p>I have a groovy script that needs a library in a jar. How do I add that to the classpath? I want the script to be executable so I'm using <code>#!/usr/bin/env groovy</code> at the top of my script. </p>
| [
{
"answer_id": 306168,
"author": "Eric Wendelin",
"author_id": 25066,
"author_profile": "https://Stackoverflow.com/users/25066",
"pm_score": 6,
"selected": true,
"text": "this.getClass().classLoader.rootLoader.addURL(new File(\"file.jar\").toURL())\n"
},
{
"answer_id": 8945888,
... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14481/"
] |
306,144 | <p>I am having trouble deleting orphan nodes using JPA with the following mapping</p>
<pre><code>@OneToMany (cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "owner")
private List<Bikes> bikes;
</code></pre>
<p>I am having the issue of the orphaned roles hanging around the database.</p>
<p>I can ... | [
{
"answer_id": 307203,
"author": "Varun Mehta",
"author_id": 31537,
"author_profile": "https://Stackoverflow.com/users/31537",
"pm_score": 8,
"selected": true,
"text": "CascadeType.DELETE_ORPHAN CascadeType.ALL @OneToMany(mappedBy=\"foo\", orphanRemoval=true)\n"
},
{
"answer_id":... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3050/"
] |
306,169 | <p>In our web applications, we seperate our Data Access Layers out into their own projects.</p>
<p>This creates some problems related to settings. </p>
<p>Because the DAL will eventually need to be consumed from perhaps more than one application, web.config does not seem like a good place to keep the connection strin... | [
{
"answer_id": 306309,
"author": "Chris",
"author_id": 34942,
"author_profile": "https://Stackoverflow.com/users/34942",
"pm_score": 2,
"selected": false,
"text": "string connString = ConfigurationManager\n .ConnectionStrings[\"myConnString\"]\n .ConnectionString;\n"
}
] | 2008/11/20 | [
"https://Stackoverflow.com/questions/306169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16082/"
] |
306,176 | <p>I am following a VB tutorial to do some <a href="http://blogs.msdn.com/bethmassi/archive/2008/04/25/querying-html-with-linq-to-xml.aspx" rel="nofollow noreferrer">HTML manipulation using LINQ</a> </p>
<p>It has the following construct</p>
<pre><code>Imports <xmlns="http://www.w3.org/1999/xhtml">
</code></pre... | [
{
"answer_id": 306216,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 3,
"selected": true,
"text": "XML Literals"
}
] | 2008/11/20 | [
"https://Stackoverflow.com/questions/306176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5552/"
] |
306,191 | <p>I have a list of error codes I need to reference, kinda like this:</p>
<pre><code>Code / Error Message
A01 = whatever error
U01 = another error
U02 = yet another error type
</code></pre>
<p>I get the Code returned to me via a web service call and I need to display or get the readable error. So I need a func... | [
{
"answer_id": 306201,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 4,
"selected": true,
"text": "// Initialize this once, and store it in the ASP.NET Cache.\nDictionary<String,String> errorCodes = new Dictionary<String,Str... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306191",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34548/"
] |
306,233 | <p>I have several deployment projects. In order to deploy an application, I need to do several tasks, one of them is to change each deployment project's product version and product code.</p>
<p>I can't find a way to programmatically change them.</p>
<p>Since it's a Deployment project (which finally produces an execut... | [
{
"answer_id": 398093,
"author": "TheCodeMonk",
"author_id": 28956,
"author_profile": "https://Stackoverflow.com/users/28956",
"pm_score": 5,
"selected": true,
"text": "static void Main(string[] args) \n{\n string setupFileName = @\"<Replace the path to vdproj file>\"; \n StreamRea... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30339/"
] |
306,252 | <p>This is one of the minor CSS problems that plague me constantly.</p>
<p>How do folks around Stack Overflow vertically align <em><strong><code>checkboxes</code></strong></em> and their <em><strong><code>labels</code></strong></em> consistently <strong>cross-browser</strong>?</p>
<p>Whenever I align them correctly in ... | [
{
"answer_id": 306266,
"author": "digitalsanctum",
"author_id": 22436,
"author_profile": "https://Stackoverflow.com/users/22436",
"pm_score": 7,
"selected": false,
"text": "vertical-align: middle <form>\n <div>\n <input id=\"blah\" type=\"checkbox\"><label for=\"blah\">Label te... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38666/"
] |
306,271 | <p>I'd like some advice on designing a REST API which will allow clients to add/remove large numbers of objects to a collection efficiently.</p>
<p>Via the API, clients need to be able to add items to the collection and remove items from it, as well as manipulating existing items. In many cases the client will want to... | [
{
"answer_id": 340161,
"author": "Joachim Sauer",
"author_id": 40342,
"author_profile": "https://Stackoverflow.com/users/40342",
"pm_score": 0,
"selected": false,
"text": "If-Unmodified-Since"
},
{
"answer_id": 59979381,
"author": "Shyam",
"author_id": 4527664,
"autho... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20011/"
] |
306,272 | <p>Say I have a class with a private dispatch table. </p>
<pre><code>$this->dispatch = array(
1 => $this->someFunction,
2 => $this->anotherFunction
);
</code></pre>
<p>If I then call </p>
<pre><code>$this->dispatch[1]();
</code></pre>
<p>I get an error that the method is not a string. When... | [
{
"answer_id": 306302,
"author": "Allain Lalonde",
"author_id": 2443,
"author_profile": "https://Stackoverflow.com/users/2443",
"pm_score": 4,
"selected": true,
"text": "$this->dispatch = array('somemethod', 'anothermethod');\n $method = $this->dispatch[1];\n$this->$method();\n"
},
{... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1797/"
] |
306,284 | <p>So, I have a pair of typeclasses that I'll be using a lot together, and I want to avoid specifying both each time. Basically, instead of putting</p>
<pre><code>:: (Ord a, Fractional a, Ord b, Fractional b, ... Ord z, Fractional z) =>
</code></pre>
<p>at the beginning of all my type specifications, I'd rather p... | [
{
"answer_id": 1077908,
"author": "ephemient",
"author_id": 20713,
"author_profile": "https://Stackoverflow.com/users/20713",
"pm_score": 3,
"selected": false,
"text": "Use -XFlexibleInstances {-# LANGUAGE FlexibleInstances #-}\n {-# LANGUAGE FlexibleInstances, UndecidableInstances #-}\n... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9859/"
] |
306,288 | <p>I've been trying to create a custom control that works exactly like the Panel control except surrounded by a few divs and such to create a rounded box look. I haven't been able to find a decent example of how to do this. </p>
<p>I need to be able to place text and controls inside the control and access it directly ... | [
{
"answer_id": 306299,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 5,
"selected": true,
"text": "INamingContainer public class RoundedCornersPanel : System.Web.UI.WebControls.Panel\n{\n public override RenderBeginTag (H... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18234/"
] |
306,291 | <p>Is there a 4 byte unsigned int data type in MS SQL Server?</p>
<p>Am I forced to use a bigint?</p>
| [
{
"answer_id": 306300,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 4,
"selected": true,
"text": "int 2^31-1"
}
] | 2008/11/20 | [
"https://Stackoverflow.com/questions/306291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
306,305 | <p>I am trying to do positioning in JavaScript. I am using a cumulative position function based on the <a href="http://www.quirksmode.org/js/findpos.html" rel="noreferrer" title="Find position">classic quirksmode function</a> that sums <code>offsetTop</code> and <code>offsetLeft</code> for each <code>offsetParent</cod... | [
{
"answer_id": 3313095,
"author": "Norman",
"author_id": 302971,
"author_profile": "https://Stackoverflow.com/users/302971",
"pm_score": 0,
"selected": false,
"text": "<div id=\"parent\">\n <div id=\"element1\">some stuff</div>\n <div id=\"element2\" style=\"display: none\">some hidden... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3078/"
] |
306,313 | <p>Why does the following behave unexpectedly in Python?</p>
<pre><code>>>> a = 256
>>> b = 256
>>> a is b
True # This is an expected result
>>> a = 257
>>> b = 257
>>> a is b
False # What happened here? Why is this False?
>>> 257 is 257... | [
{
"answer_id": 306347,
"author": "Amit",
"author_id": 29120,
"author_profile": "https://Stackoverflow.com/users/29120",
"pm_score": 4,
"selected": false,
"text": "id In [1]: id(255)\nOut[1]: 146349024\n\nIn [2]: id(255)\nOut[2]: 146349024\n\nIn [3]: id(257)\nOut[3]: 146802752\n\nIn [4]: ... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/893/"
] |
306,316 | <p>I am trying to write a C++ program that takes the following inputs from the user to construct rectangles (between 2 and 5): height, width, x-pos, y-pos. All of these rectangles will exist parallel to the x and the y axis, that is all of their edges will have slopes of 0 or infinity.</p>
<p>I've tried to implement w... | [
{
"answer_id": 306332,
"author": "Charles Bretana",
"author_id": 32632,
"author_profile": "https://Stackoverflow.com/users/32632",
"pm_score": 11,
"selected": true,
"text": "if (RectA.Left < RectB.Right && RectA.Right > RectB.Left &&\n RectA.Top > RectB.Bottom && RectA.Bottom < RectB... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/135/"
] |
306,381 | <p>How do you create a custom control (not an ASCX control) and, more importantly, use it in your project? I'd prefer not to create a separate project for it or compile it as a DLL</p>
| [
{
"answer_id": 306388,
"author": "Bruno Shine",
"author_id": 28294,
"author_profile": "https://Stackoverflow.com/users/28294",
"pm_score": 1,
"selected": false,
"text": "<%@ Register Assembly=\"NAME_OF_THE_ASSEMBLY\" Namespace=\"NAMESPACE_OF_THE_CUSTOM_CONTROL\" TagPrefix=\"cc1\" %>\n <c... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18234/"
] |
306,387 | <p>Delegates look like such a powerful language feature, but I've yet to find an opportunity to use them in anger (apart from in DALs I must say).</p>
<p>How often do you use them, and under what circumstances do you find them most useful? </p>
| [
{
"answer_id": 306394,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 3,
"selected": false,
"text": "public delegate void MyDelegate(object sender, EventArgs e, string otherParameterIWant);\n//...Inside the class... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38522/"
] |
306,400 | <p>How do I retrieve an item at random from the following list?</p>
<pre><code>foo = ['a', 'b', 'c', 'd', 'e']
</code></pre>
| [
{
"answer_id": 306417,
"author": "Pēteris Caune",
"author_id": 5821,
"author_profile": "https://Stackoverflow.com/users/5821",
"pm_score": 13,
"selected": true,
"text": "random.choice() import random\n\nfoo = ['a', 'b', 'c', 'd', 'e']\nprint(random.choice(foo))\n secrets.choice() import ... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4872/"
] |
306,410 | <p>I have a following object model:</p>
<pre>
- Book
-- Chapter 1
--- Page 1
---- Image 1
---- Image 2
---- Text 1
--- Page 2
...
</pre>
<p>Resources are way down at the page level. But, I need to know the full path to resources, from the resources' point of view. </p>
<p>One way, is to have resources be aware of... | [
{
"answer_id": 306448,
"author": "Zachary Yates",
"author_id": 8360,
"author_profile": "https://Stackoverflow.com/users/8360",
"pm_score": 3,
"selected": false,
"text": "class TreeNode {\n public TreeNode Parent { get; set; }\n public List<TreeNode> Children { get; set; }\n}\n\nclass Boo... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38753/"
] |
306,433 | <p>I have a fairly huge database with a master table with a single column GUID (custom GUID like algorithm) as primary key and 8 child tables that have foreign key relationships with this GUID column. All the tables have approximately 3-8 million records. None of these tables have any BLOB/CLOB/TEXT or any other fancy ... | [
{
"answer_id": 310611,
"author": "George Eadon",
"author_id": 30530,
"author_profile": "https://Stackoverflow.com/users/30530",
"pm_score": 0,
"selected": false,
"text": "CREATE TABLE AS SELECT"
}
] | 2008/11/20 | [
"https://Stackoverflow.com/questions/306433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7616/"
] |
306,439 | <p>I have this Trigger in Postgresql that I can't just get to work (does nothing). For understanding, there's how I defined it:</p>
<pre><code>CREATE TABLE documents (
...
modification_time timestamp with time zone DEFAULT now()
);
CREATE FUNCTION documents_update_mod_time() RETURNS trigger
AS $$
begin
... | [
{
"answer_id": 306509,
"author": "Kev",
"author_id": 16777,
"author_profile": "https://Stackoverflow.com/users/16777",
"pm_score": 2,
"selected": false,
"text": "ALTER TABLE documents\n ALTER COLUMN modification_time SET DEFAULT clock_timestamp();\n"
},
{
"answer_id": 312866,
... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306439",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35189/"
] |
306,443 | <p>In designing a fluid layout, how do you use borders without ruining the layout.</p>
<p>More specifically, I have a HTML widget which consists of five divs. I would like the five divs to take up all the room in the containing element. I would also like to have a 1px border around each.</p>
<p>I tried:
.box { floa... | [
{
"answer_id": 306472,
"author": "One Crayon",
"author_id": 38666,
"author_profile": "https://Stackoverflow.com/users/38666",
"pm_score": 2,
"selected": false,
"text": "width: 100% <div class=\"one\">\n <div class=\"two\">\n <div class=\"three\">\n etc.\n </div>\n... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
306,452 | <p>Let's say I need to implement domain model for StackOverflow. </p>
<p>If I am doing ORM, how can I define (and map) property for fetching "last comments" and other "last" things?
It looks to me like this should be reflected in the domain model.</p>
<p>Sometimes I might need "all comments" though...</p>
| [
{
"answer_id": 306472,
"author": "One Crayon",
"author_id": 38666,
"author_profile": "https://Stackoverflow.com/users/38666",
"pm_score": 2,
"selected": false,
"text": "width: 100% <div class=\"one\">\n <div class=\"two\">\n <div class=\"three\">\n etc.\n </div>\n... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38325/"
] |
306,459 | <p>Is there a clever way to determine which field is causing 'string or binary data would be truncated' with LINQ.</p>
<p>I've always ended up doing it manually by stepping through a debugger, but with a batch using 'SubmitChanges' I have to change my code to inserting a single row to find the culprit in a batch of ro... | [
{
"answer_id": 306540,
"author": "DJ.",
"author_id": 10492,
"author_profile": "https://Stackoverflow.com/users/10492",
"pm_score": -1,
"selected": false,
"text": "Record # 9999\nCaused \"string or binary data would be truncated\" error\nField1: \"Data\" Length: 55\nField2: 9999\netc.\n"
... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16940/"
] |
306,462 | <p>I'm using <a href="http://www.codeproject.com/KB/cs/lotusnoteintegrator.aspx" rel="nofollow noreferrer">Interop.Domino.dll</a> to retrieve E-mails from a Lotus "Database" (Term used loosely). I'm having some difficulty in retrieving certain fields and wonder how to do this properly. I've been using <code>NotesDocume... | [
{
"answer_id": 306624,
"author": "tsilb",
"author_id": 11112,
"author_profile": "https://Stackoverflow.com/users/11112",
"pm_score": 3,
"selected": true,
"text": "Object[] ni = (Object[])nDoc.Items;\nstring names_values = \"\";\nfor (int x = 0; x < ni.Length; x++)\n{\nNotesItem item = (N... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306462",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11112/"
] |
306,463 | <p>Is there any performance gain using a CTE over a derived table?</p>
| [
{
"answer_id": 306624,
"author": "tsilb",
"author_id": 11112,
"author_profile": "https://Stackoverflow.com/users/11112",
"pm_score": 3,
"selected": true,
"text": "Object[] ni = (Object[])nDoc.Items;\nstring names_values = \"\";\nfor (int x = 0; x < ni.Length; x++)\n{\nNotesItem item = (N... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/343291/"
] |
306,466 | <p>I'm writing a script to display the 10 most recently "active" WordPress blog posts (i.e. those with the most recent comments). Problem is, the list has a lot of duplicates. I'd like to weed out the duplicates. Is there an easy way to do this by changing the MySQL query (like IGNORE, WHERE) or some other means? Here... | [
{
"answer_id": 307002,
"author": "55skidoo",
"author_id": 34964,
"author_profile": "https://Stackoverflow.com/users/34964",
"pm_score": 0,
"selected": false,
"text": " if ( !$comments = wp_cache_get( 'recent_comments', 'widget' ) ) {\n $comments = $wpdb->get_results(\"SELECT commen... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34964/"
] |
306,475 | <p>In SharePoint MOSS 2007, I have created a custom content type that I will be applying to a document library. One of the required fields is "Incoming Date" and another is the "Due Date". </p>
<p>The Due Date is always 10 working days from the Incoming Date. The Incoming Date is when the mail room received the let... | [
{
"answer_id": 620739,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "C_Wknd =IF(TEXT(WEEKDAY([Complaint Created On]),\"ddd\")=\"Mon\",11,13)\n\nC_NYDay =IF(AND([Complaint Created On]<=DATE(2009,... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24229/"
] |
306,477 | <p>I am using the MFC class <code>CSocket</code>. Nothing complicated - open a connection to a server and send a short message. The code works fine when I link with MFC in a DLL. However, the call to <code>CSocket::Create()</code> crashes when I link to MFC in a static library.</p>
<p>I would like to use MFC in a s... | [
{
"answer_id": 14278279,
"author": "user1969975",
"author_id": 1969975,
"author_profile": "https://Stackoverflow.com/users/1969975",
"pm_score": 2,
"selected": false,
"text": " void SocketThreadInit()\n {\n #ifndef _AFXDLL\n #define _AFX_SOCK_THREAD_STATE AFX_MODULE_THREAD_STATE\... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16582/"
] |
306,482 | <p>I have the following command which will loop over all the subdirectories in a specific location and output the full path:</p>
<pre><code>for /d %i in ("E:\Test\*") do echo %i
</code></pre>
<p>Will give me:</p>
<pre><code>E:\Test\One
E:\Test\Two
</code></pre>
<p>But how do I get both the full path, and just the d... | [
{
"answer_id": 306507,
"author": "Craig Lebakken",
"author_id": 33130,
"author_profile": "https://Stackoverflow.com/users/33130",
"pm_score": 3,
"selected": true,
"text": "%~fI - expands %I to a fully qualified path name\n%~nI - expands %I to a file name only\n for /d %i in... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39428/"
] |
306,497 | <p>I would like to be a PHP/MySQL programmer </p>
<p>What are the technologies that I must know?</p>
<p>Like:</p>
<ol>
<li>Frameworks</li>
<li>IDEs</li>
<li>Template Engines</li>
<li>Ajax and CSS Frameworks</li>
</ol>
<p>Please tell me the minimum requirements that I must know, and tell me your favourite things in ... | [
{
"answer_id": 306657,
"author": "Kornel",
"author_id": 27009,
"author_profile": "https://Stackoverflow.com/users/27009",
"pm_score": 2,
"selected": false,
"text": "echo $some_variable_that_seems_innocent htmlspecialchars() addslashes() json_encode() rawurlencode() escapeshellargs()"
}... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22634/"
] |
306,504 | <p>I'm creating a multi-part web form in ASP.NET that uses Panels for the different steps, making only the Panel for the current step visible. On Step 1, I have a drop-down list that uses a Javascript function to reconfigure some of the fields in the same Panel via "onchange". Obviously, since the client-side script i... | [
{
"answer_id": 306657,
"author": "Kornel",
"author_id": 27009,
"author_profile": "https://Stackoverflow.com/users/27009",
"pm_score": 2,
"selected": false,
"text": "echo $some_variable_that_seems_innocent htmlspecialchars() addslashes() json_encode() rawurlencode() escapeshellargs()"
}... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22761/"
] |
306,527 | <p>I have a bit of code that looks like this:</p>
<pre><code>text = reg.Replace(text, new MatchEvaluator(MatchEvalStuff));
</code></pre>
<p>I need to pass in a 2nd parameter like this:</p>
<pre><code>text = reg.Replace(text, new MatchEvaluator(MatchEvalStuff, otherData));
</code></pre>
<p>Is this possible, and what... | [
{
"answer_id": 306564,
"author": "Daniel Plaisted",
"author_id": 1509,
"author_profile": "https://Stackoverflow.com/users/1509",
"pm_score": 5,
"selected": false,
"text": "text = reg.Replace(text, match => MatchEvalStuff(match, otherData));\n"
},
{
"answer_id": 306629,
"autho... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/343/"
] |
306,531 | <p>I have written a KornShell (ksh) script that sets an array the following way:</p>
<pre><code>set -A fruits Apple Orange Banana Strawberry
</code></pre>
<p>but when I am trying to run it from within cron, it raises the following error:</p>
<pre><code>Your "cron" job on myhost
/myScript.sh
produced the following o... | [
{
"answer_id": 306673,
"author": "Nano Taboada",
"author_id": 6992,
"author_profile": "https://Stackoverflow.com/users/6992",
"pm_score": 2,
"selected": true,
"text": "0,5,10,15,20,25,30,35,40,45,50,55 * * * * cd /path/to/script && ksh ./myScript.sh\n"
},
{
"answer_id": 306879,
... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306531",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6992/"
] |
306,533 | <p>How do you get a list of files within a directory so each can be processed?</p>
| [
{
"answer_id": 306542,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 6,
"selected": true,
"text": "boost::filesystem"
},
{
"answer_id": 306917,
"author": "Chris Kloberdanz",
"author_id": 2871... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/370/"
] |
306,541 | <p>I've had this problem many times before, and I've never had a solution I felt good about. </p>
<p>Let's say I have a Transaction base class and two derived classes AdjustmentTransaction and IssueTransaction.</p>
<p>I have a list of transactions in the UI, and each transaction is of the concrete type AdjustmentTran... | [
{
"answer_id": 306565,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 2,
"selected": true,
"text": "Dictionary <Type,Type> typeMapper = new Dictionary<Type,Type>();\ntypeMapper.Add(typeof(AdjustTransaction), typeof(AdjustTran... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3285/"
] |
306,545 | <p>With WinForms, I can use <code>Control.Scale</code> to scale a control larger. When I do that, all child controls are repositioned and scaled correctly, but font size remains the same.</p>
<p>Is there an easy way to force font to scale up/down, or is the only way to manually update font for all controls when contr... | [
{
"answer_id": 306768,
"author": "Hans Passant",
"author_id": 17034,
"author_profile": "https://Stackoverflow.com/users/17034",
"pm_score": 2,
"selected": false,
"text": " public partial class Form1 : Form {\n float mDesignSize;\n int mIncrement;\n public Form1() {\n Initi... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19124/"
] |
306,551 | <p>I am in a Windows Desktop application and I have a data stream and a mime type in the database. Is there a better way than writing it to a temp folder and launching the default editor for it?</p>
<p>If I have to use the temp folder how can I get the file extension from the MIME type in a C# Windows Desktop applicat... | [
{
"answer_id": 306597,
"author": "activout.se",
"author_id": 20444,
"author_profile": "https://Stackoverflow.com/users/20444",
"pm_score": 3,
"selected": true,
"text": "HKEY_CLASSES_ROOT\\MIME\\Database\\Content Type file"
}
] | 2008/11/20 | [
"https://Stackoverflow.com/questions/306551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30099/"
] |
306,559 | <p>I'm trying to figure out how to write this function:</p>
<pre><code>template <typename Bound>
Bound::result_type callFromAnyList(Bound b, list<any> p)
{
}
</code></pre>
<p>Then, if I had some function:</p>
<pre><code>double myFunc(string s, int i)
{
return -3.0;
}
</code></pre>
<p>I could call it... | [
{
"answer_id": 306691,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 2,
"selected": true,
"text": "template<typename>\nstruct return_of;\n\ntemplate<typename R>\nstruct return_of<R(*)()> {\n typedef R typ... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8643/"
] |
306,572 | <p>I recently started building a console version of a web application. I copied my custom sections from my web.config. to my app.config. When I go to get config information i get this error:</p>
<p>An error occurred creating the configuration section handler for x/y: Could not load type 'x' from assembly 'System.Confi... | [
{
"answer_id": 306575,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 3,
"selected": true,
"text": "<configSection>\n <section\n name=\"YOUR_CLASS_NAME_HERE\"\n type=\"YOUR.NAMESPACE.CLASSNAME,... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3208/"
] |
306,573 | <p>Is it possible to have a file belong to multiple subpackages? For example:</p>
<pre><code>/**
* Name
*
* Desc
*
* @package Core
* @subpackage Sub1
* @subpackage Sub2
*/
</code></pre>
<p>Thanks!</p>
| [
{
"answer_id": 11404615,
"author": "E Brent Nelson",
"author_id": 1513307,
"author_profile": "https://Stackoverflow.com/users/1513307",
"pm_score": 2,
"selected": false,
"text": "* @package popcap\\system\\cache\n"
}
] | 2008/11/20 | [
"https://Stackoverflow.com/questions/306573",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/538/"
] |
306,579 | <p>I would like to be able to Serialize a DateTime with a specific Time Zone that is not the server, nor is it client time. Basically, any time zone.
Is it possible to override the DateTime serialization, in .Net2.0 webservices?</p>
<p>I compile an xmlschema using xsd.exe, so I made an attempt using XmlSchemaImporter... | [
{
"answer_id": 7140219,
"author": "Thomas Levesque",
"author_id": 98713,
"author_profile": "https://Stackoverflow.com/users/98713",
"pm_score": 2,
"selected": false,
"text": "DateTimeOffset // Don't serialize this one\n[System.Xml.Serialization.XmlIgnore]\npublic System.DateTimeOffset me... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36627/"
] |
306,583 | <p>I have a layout similar to this:</p>
<pre><code><div id="..."><img src="..."></div>
</code></pre>
<p>and would like to use a jQuery selector to select the child <code>img</code> inside the <code>div</code> on click.</p>
<p>To get the <code>div</code>, I've got this selector:</p>
<pre><code>$(th... | [
{
"answer_id": 306608,
"author": "Maxam",
"author_id": 15310,
"author_profile": "https://Stackoverflow.com/users/15310",
"pm_score": 5,
"selected": false,
"text": "$(this).children()[0]\n"
},
{
"answer_id": 306632,
"author": "Adam",
"author_id": 36324,
"author_profile... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306583",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16974/"
] |
306,591 | <p>I'm trying to get the contents from another file with <code>file_get_contents</code> (don't ask why).<br />
I have two files: <em>test1.php</em> and <em>test2.php</em>. <em>test1.php</em> returns a string, bases on the user that is logged in.</p>
<p><em>test2.php</em> tries to get the contents of <em>test1.php</em> ... | [
{
"answer_id": 308060,
"author": "Alan Storm",
"author_id": 4668,
"author_profile": "https://Stackoverflow.com/users/4668",
"pm_score": 6,
"selected": true,
"text": "$opts = array('http' => array('header'=> 'Cookie: ' . $_SERVER['HTTP_COOKIE'].\"\\r\\n\"));\n$context = stream_context_cre... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306591",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20261/"
] |
306,596 | <p>I am trying to deserialize a stream but I always get this error "End of Stream encountered before parsing was completed"?</p>
<p>Here is the code:</p>
<pre><code> //Some code here
BinaryFormatter b = new BinaryFormatter();
return (myObject)b.Deserialize(s);//s---> is a Stream object that ... | [
{
"answer_id": 306598,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 7,
"selected": true,
"text": " BinaryFormatter b = new BinaryFormatter();\n s.Position = 0;\n return (YourObjectType)b.De... | 2008/11/20 | [
"https://Stackoverflow.com/questions/306596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14441/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.