qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
351,360 | <p>I've got this small question - given a bitmask of weekdays (e.g., <code>Sunday = 0x01, Monday = 0x02, Tuesday = 0x04</code>, etc...) and today's day (in a form of <code>Sunday = 1, Monday = 2, Tuesday = 3</code>, etc...) - what's the most elegant way to find out the next day from today, that's set in the bitmask? By... | [
{
"answer_id": 351387,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 1,
"selected": false,
"text": "// returns t (today) if no weekday is set in the mask.\nint getNextDay(int m, int t) {\n int i, idx;\n ... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20208/"
] |
351,368 | <p>I have an asp page that uses jQuery ajax to load member counts into a bunch of <code>div</code>s after a page is loaded.</p>
<p>It works perfectly well in FireFox, and with clients that have a small number of groups.</p>
<p>For the small number of clients that have many groups (500+), I am getting an error in IE. ... | [
{
"answer_id": 351387,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 1,
"selected": false,
"text": "// returns t (today) if no weekday is set in the mask.\nint getNextDay(int m, int t) {\n int i, idx;\n ... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1311247/"
] |
351,371 | <p>You may have seen JavaScript sliders before:</p>
<p><a href="http://dev.jquery.com/view/tags/ui/1.5b2/demos/ui.slider.html" rel="nofollow noreferrer">http://dev.jquery.com/view/tags/ui/1.5b2/demos/ui.slider.html</a></p>
<p>What I'm envisioning is a circular slider. It would consist of a draggable button at one poi... | [
{
"answer_id": 351384,
"author": "Jimmy",
"author_id": 4435,
"author_profile": "https://Stackoverflow.com/users/4435",
"pm_score": 3,
"selected": true,
"text": "var dx = m.x-c.x;\nvar dy = m.y-c.y;\n\nvar scale = radius/Math.sqrt(dx*dx+dy*dy);\n\nslider.x = dx*scale + c.x;\nslider.y = dy... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351371",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32881/"
] |
351,373 | <p>In the context of creating a custom Eclipse distribution for a development team.</p>
<p>How would I go about building a custom Eclipse distribution containing a specific set of plugins? Would it be difficult to also add a kind of update site to put specific versions of the plug-ins from which the customized eclipse... | [
{
"answer_id": 15806377,
"author": "Paul Verest",
"author_id": 482717,
"author_profile": "https://Stackoverflow.com/users/482717",
"pm_score": 2,
"selected": false,
"text": "<?xml version='1.0' encoding='UTF-8'?>\n<?p2f version='1.0.0'?>\n<p2f version='1.0.0'>\n <ius size='5'>\n <iu ... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39057/"
] |
351,375 | <p>So we've been told that one source of <code>TM Enq</code> contention can be unindexed FK's. My question is which one.</p>
<p>I have an <code>INSERT INTO Table_B</code> that is recording <code>TM Enq Wait</code>.</p>
<p>It contains a <code>PK</code> that is the parent to other tables and it has columns that are <co... | [
{
"answer_id": 351637,
"author": "derobert",
"author_id": 27727,
"author_profile": "https://Stackoverflow.com/users/27727",
"pm_score": 2,
"selected": false,
"text": "SELECT o.something\n FROM oltp_tab o JOIN lookup l ON (o.lookup_no = l.lookup_no)\n WHERE l.lookup_name = ?\n"
}
] | 2008/12/08 | [
"https://Stackoverflow.com/questions/351375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
351,380 | <p>Starting recently, some of my new web pages (XHTML 1.1) are setup to do a regex of the request header <code>Accept</code> and send the right HTTP response headers if the user agent accepts XML (Firefox and Safari do).</p>
<p>IE (or any other browser that doesn't accept it) will just get the plain <code>text/html</c... | [
{
"answer_id": 351411,
"author": "Alohci",
"author_id": 42585,
"author_profile": "https://Stackoverflow.com/users/42585",
"pm_score": 4,
"selected": true,
"text": "application/xhtml+xml"
},
{
"answer_id": 413536,
"author": "Kornel",
"author_id": 27009,
"author_profile... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31671/"
] |
351,409 | <p>How do I append an object (such as a string or number) to an array in JavaScript? </p>
| [
{
"answer_id": 351421,
"author": "jdecuyper",
"author_id": 296,
"author_profile": "https://Stackoverflow.com/users/296",
"pm_score": 13,
"selected": true,
"text": "Array.prototype.push"
},
{
"answer_id": 351444,
"author": "MK_Dev",
"author_id": 39843,
"author_profile"... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8482/"
] |
351,415 | <p>I need to programatically find the users name using C#. Specifically, I want to get the system/network user attached to the current process. I'm writing a web application that uses windows integrated security.</p>
| [
{
"answer_id": 351876,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 5,
"selected": false,
"text": "IPrincipal"
},
{
"answer_id": 28427047,
"author": "Mehdi Bugnard",
"author_id": 1429232,
"author_... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351415",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4491/"
] |
351,443 | <p>The "Application Icon" of my application is wrong.</p>
<p>My application shows in taskbar a different icon than the classic Delphi icon. Instead is shows the icon of one of my VCL's. That specific VCL from which the icon was "stolen" is not used in my application but other VCL's in the same package are used.</p>
<... | [
{
"answer_id": 351914,
"author": "Rob Kennedy",
"author_id": 33732,
"author_profile": "https://Stackoverflow.com/users/33732",
"pm_score": 3,
"selected": false,
"text": "{$R *.RES}"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/351443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
351,456 | <p>The only reliable method that I a have found for using a script to download text from wikipedia is with cURL. So far the only way I have for doing that is to call <code>os.system()</code>. Even though the output appears properly in the python shell I can't seem to the function it to return anything other than the ex... | [
{
"answer_id": 351475,
"author": "Sean",
"author_id": 44133,
"author_profile": "https://Stackoverflow.com/users/44133",
"pm_score": 4,
"selected": true,
"text": "import urllib\nsock = urllib.urlopen(\"http://en.wikipedia.org/wiki/Python_(programming_language)\")\nhtmlsource = sock.read()... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26659/"
] |
351,473 | <pre><code>class Child
{
private override void Check_CheckedChanged(object sender, EventArgs e)
{
if (Check.Checked)
{
this.addName(this.FirstName);
this.disableControls();
}
else
{
this.addAddress(this.address);
//this.ac... | [
{
"answer_id": 351494,
"author": "Bryan Watts",
"author_id": 37815,
"author_profile": "https://Stackoverflow.com/users/37815",
"pm_score": 2,
"selected": false,
"text": "ActivateControls"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/351473",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42564/"
] |
351,479 | <p>Not sure if this is intended behavior or a bug or a wrong function that I'm using, but the problem is that PathCombine() returns a wrong path on a Vista box.</p>
<p>The relative path is (as exported by the WMP to a playlist):</p>
<p><code>..\..\..\Public\Music\Sample Music\Amanda.wma</code></p>
<p>The path it's r... | [
{
"answer_id": 351614,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 2,
"selected": false,
"text": "C:\\Users\\userX\\Music\\Playlists\\playlist.wpl\\..\\..\\..\\Public\\Music\\Sample Music\\Amanda.wma\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/351479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20208/"
] |
351,483 | <p>How do I create a ListBox in ASP.NET MVC with single selection mode?</p>
| [
{
"answer_id": 351579,
"author": "Jeffrey Meyer",
"author_id": 2323,
"author_profile": "https://Stackoverflow.com/users/2323",
"pm_score": 6,
"selected": true,
"text": "<%= Html.DropDownList(\"list1\", \n new Dictionary<string, object> {{\"size\", \"5\"}} ) %>\n"
},
{
"answer_... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31624/"
] |
351,484 | <p>I have an application the will load usercontrols dynamically depending on the user. You will see in the example below that I am casting each user control via switch/case statements. Is there a better way to do this? Reflection? (I must be able to add an event handler Bind in each control.)</p>
<pre><code>override... | [
{
"answer_id": 351505,
"author": "Jeroen Landheer",
"author_id": 44056,
"author_profile": "https://Stackoverflow.com/users/44056",
"pm_score": 1,
"selected": false,
"text": ""
},
{
"answer_id": 351542,
"author": "Andrew Kennan",
"author_id": 22506,
"author_profile": "... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4888/"
] |
351,487 | <p>I am a Delphi novice, but I'm trying to understand the relationship between TApplication and TfrmMain windows using Spy++. It seems that the TfrmMain window is the real window that has proper screen coordinates, but the TApplication window is the one that appears in the Windows taskbar. Also, they don't seem to be r... | [
{
"answer_id": 351504,
"author": "JamesSugrue",
"author_id": 1075,
"author_profile": "https://Stackoverflow.com/users/1075",
"pm_score": 4,
"selected": true,
"text": "program Project1;\nuses\n Forms,\n Unit1 in 'Unit1.pas' {Form1};\n{$R *.RES}\nbegin\n Application.Initialize;\n Appli... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/343/"
] |
351,489 | <p>How can I get a PL/SQL block to output the results of a <code>SELECT</code> statement the same way as if I had done a plain <code>SELECT</code>?</p>
<p>For example how to do a <code>SELECT</code> like:</p>
<pre><code>SELECT foo, bar FROM foobar;
</code></pre>
<p>Hint :</p>
<pre><code>BEGIN
SELECT foo, bar FROM f... | [
{
"answer_id": 351752,
"author": "Sergey Stadnik",
"author_id": 10557,
"author_profile": "https://Stackoverflow.com/users/10557",
"pm_score": 6,
"selected": false,
"text": "DECLARE\n v_foo foobar.foo%TYPE;\n v_bar foobar.bar%TYPE;\nBEGIN\n SELECT foo,bar FROM foobar INTO v_foo, v_b... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351489",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26659/"
] |
351,495 | <p>All the documentation I've found so far is to update keys that are already created:</p>
<pre><code> arr['key'] = val;
</code></pre>
<p>I have a string like this: <code>" name = oscar " </code></p>
<p>And I want to end up with something like this:</p>
<pre><code>{ name: 'whatever' }
</code></pre>
<p>That i... | [
{
"answer_id": 351507,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 8,
"selected": true,
"text": "var a = new Array();\na['name'] = 'oscar';\nalert(a['name']);\n"
},
{
"answer_id": 351538,
"author": "Danny"... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20654/"
] |
351,499 | <p>I need to make a pop-up window for users to log-in to my website from other websites.</p>
<p>I need to use a pop-up window to show the user the address bar so that they know it is a secure login, and not a spoof. For example, if I used a floating iframe, websites could spoof my login window and record the user's l... | [
{
"answer_id": 351513,
"author": "Sean",
"author_id": 44133,
"author_profile": "https://Stackoverflow.com/users/44133",
"pm_score": 3,
"selected": true,
"text": "<script language=\"javascript\" type=\"text/javascript\">\n<!--\nfunction popitup(url) {\n newwindow=window.open(url,'name'... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43005/"
] |
351,519 | <pre><code>typedef union
{
uint ui[4];
} md5hash;
void main(void)
{
int opt;
while ((opt = getopt(argc, argv, "c:t:s:h:")) != -1) {
switch (opt) {
case 'h':
hash = optarg;
break;
default: /* '?' */
exit(EXIT_FAILURE);
}
}
md5hash... | [
{
"answer_id": 351566,
"author": "dreamlax",
"author_id": 10320,
"author_profile": "https://Stackoverflow.com/users/10320",
"pm_score": 3,
"selected": false,
"text": "sscanf"
},
{
"answer_id": 351968,
"author": "Community",
"author_id": -1,
"author_profile": "https://... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
351,520 | <p>Greetings!</p>
<p>I have an XML value that I'd like to use as a boolean value to toggle the visibility of a Panel. I have something like this:</p>
<pre><code><asp:FormView id="MyFormView" runat="server" DataSourceID="MyXmlDataSource">
<ItemTemplate>
<!-- some stuff -->
<as... | [
{
"answer_id": 351529,
"author": "Andrew Rollings",
"author_id": 40410,
"author_profile": "https://Stackoverflow.com/users/40410",
"pm_score": 1,
"selected": false,
"text": "<%#(Convert.ToBoolean(XPath(\"Menu/Show\"))) %>"
},
{
"answer_id": 351568,
"author": "Dan Esparza",
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27870/"
] |
351,522 | <p>basically, I've got my Huffman table as </p>
<pre><code>std::map<std::string, char> ciMap;
</code></pre>
<p>Where string is the bit pattern and char is the value represented by said pattern.
The problem is how do I store that as a header of my compressed file so I can build again the same map when I want to ... | [
{
"answer_id": 351535,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 2,
"selected": false,
"text": "std::map"
},
{
"answer_id": 351548,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15345/"
] |
351,546 | <p>I'm trying to show in the screen a table...</p>
<p>Basically I create a custom UITableViewController with the methods needed for the UITableView delegate and data source which is self since UITableViewController does it for you.</p>
<p>When I put it in the <code>-initWithRootView:</code> controller, and add the na... | [
{
"answer_id": 351535,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 2,
"selected": false,
"text": "std::map"
},
{
"answer_id": 351548,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
351,547 | <p>I've used the Views Theming Wizard to output a template and it gave me the following chunk of code to go in template.php.</p>
<p>I'd prefer to just maintain the one template, so all my functions will be calling the same one, and rather than writing numerous versions of the same function, I'm wondering if there's a ... | [
{
"answer_id": 353285,
"author": "pdemarest",
"author_id": 40332,
"author_profile": "https://Stackoverflow.com/users/40332",
"pm_score": 3,
"selected": true,
"text": "function phptemplate_views_view_list_recent_articles($view, $nodes, $type){\n actual_template_function($view, $n... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16124/"
] |
351,557 | <p>I'm trying to insert a column into an existing DataSet using C#.</p>
<p>As an example I have a DataSet defined as follows:</p>
<pre><code>DataSet ds = new DataSet();
ds.Tables.Add(new DataTable());
ds.Tables[0].Columns.Add("column_1", typeof(string));
ds.Tables[0].Columns.Add("column_2", typeof(int));
ds.Tables[0]... | [
{
"answer_id": 351631,
"author": "lomaxx",
"author_id": 493,
"author_profile": "https://Stackoverflow.com/users/493",
"pm_score": 7,
"selected": true,
"text": "DataSet ds = new DataSet();\nds.Tables.Add(new DataTable());\nds.Tables[0].Columns.Add(\"column_1\", typeof(string));\nds.Tables... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39532/"
] |
351,565 | <h2><strong>Accuracy Vs. Precision</strong></h2>
<p>What I would like to know is whether I should use <strong>System.currentTimeMillis()</strong> or <strong>System.nanoTime()</strong> when updating my object's positions in my game? Their change in movement is directly proportional to the elapsed time since the last c... | [
{
"answer_id": 351571,
"author": "dancavallaro",
"author_id": 42891,
"author_profile": "https://Stackoverflow.com/users/42891",
"pm_score": 9,
"selected": true,
"text": "System.nanoTime()"
},
{
"answer_id": 351572,
"author": "Paul Morel",
"author_id": 1311247,
"author... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2635/"
] |
351,578 | <p>I need to make OK and Cancel buttons in my HTML, and I'd like them to be a fixed width so the two buttons are the same size. For example, like this:</p>
<pre><code><style>
button.ok_cancel {
width: 50px;
background-color: #4274af;
font-size: 9px;
line-height: 12px;
color: #fff;
cursor... | [
{
"answer_id": 354820,
"author": "Ned Batchelder",
"author_id": 14343,
"author_profile": "https://Stackoverflow.com/users/14343",
"pm_score": 3,
"selected": true,
"text": "/* Browser hack! This is for everyone: */\nbutton {\n display: inline;\n cursor: pointer;\n padding: 6px 6p... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14343/"
] |
351,602 | <p>Just curious, did I overlook somewhere in the API to display a chat bubble type image as found in the iPhone's SMS application? There's a few applications out there that use bubbles that look verbatim to the iPhone's and I'm wondering if they're using a native widget or their own image.</p>
<p>This is also seen in ... | [
{
"answer_id": 698871,
"author": "Jab",
"author_id": 29676,
"author_profile": "https://Stackoverflow.com/users/29676",
"pm_score": 5,
"selected": true,
"text": "[UIImage stretchableImageWithLeftCapWidth:15 topCapHeight:13]\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/351602",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40882/"
] |
351,627 | <p>I'm building an iPhone application that talks to a Ruby on Rails backend. The Ruby on Rails application will also service web users. The restful_authentication plugin is an excellent way to provide quick and customizable user authentication. However, I would like users of the iPhone application to have an account cr... | [
{
"answer_id": 2570066,
"author": "Leandro Ardissone",
"author_id": 42565,
"author_profile": "https://Stackoverflow.com/users/42565",
"pm_score": 0,
"selected": false,
"text": "salt = 'afG553Dvbf3'\n\nudid = '1234567890'\npass = Digest::MD5.hexdigest(udid + salt)\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/351627",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44482/"
] |
351,633 | <p>I currently have issues in Webkit(Safari and Chrome) were I try to load dynamically (innerHTML) some html into a div, the html contains css rules (...), after the html gets rendered the style definitions are not loaded (so visually I can tell the styles are not there and also if I search with javascript for them no ... | [
{
"answer_id": 352060,
"author": "I.devries",
"author_id": 6388,
"author_profile": "https://Stackoverflow.com/users/6388",
"pm_score": 4,
"selected": true,
"text": "var link = document.createElement('link');\n\nlink.setAttribute('rel', 'stylesheet');\n\nlink.type = 'text/css';\n\nlink.hr... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
351,635 | <p>Is there anyone already implement memcached for production use in Windows environment?
Because many blogs that I've read, it's not recommended to run memcached in Windows especially for production use, for example <a href="http://latebound.blogspot.com/2008/10/running-memcached-on-windows.html" rel="noreferrer">runn... | [
{
"answer_id": 1112675,
"author": "Nicholas Piasecki",
"author_id": 32187,
"author_profile": "https://Stackoverflow.com/users/32187",
"pm_score": 4,
"selected": false,
"text": "Cache*"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/351635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37509/"
] |
351,640 | <p>What is the proper way to install Hibernate Tools in Eclipse as a plugin?
The <a href="http://www.hibernate.org/255.html" rel="noreferrer" title="Hibernate site">Hibernate site</a> doesn't really give any instructions.</p>
<p>Looking at the Hibernate Tools binary <code>HibernateTools-3.2.4.Beta1-R200810311334.zip</... | [
{
"answer_id": 352429,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 2,
"selected": false,
"text": "[eclipse\\dropins\\HibernateTools-3.2.4.Beta1-R20081031133]"
},
{
"answer_id": 35099192,
"author": "Divyesh Kanzari... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24396/"
] |
351,644 | <p>I'm using ADO.NET dataservices in a Silverlight application and since the silverlight libraries don't support the ToList() call on the IQueryable I thought it might be possible to create an extension method around this called SilverlightToList(). So in this method I'm calling the BeginExecute method on my context as... | [
{
"answer_id": 351817,
"author": "Boyan",
"author_id": 38106,
"author_profile": "https://Stackoverflow.com/users/38106",
"pm_score": 1,
"selected": false,
"text": "context.BeginExecute<T>(currentRequestUri, resultCallback, context);\n\nprivate void resultCallback(IAsyncResult asyncResult... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36086/"
] |
351,656 | <p>I'm curious to know if there is an easy way to mock an IMAP server (a la the <code>imaplib</code> module) in Python, <em>without</em> doing a lot of work.</p>
<p>Is there a pre-existing solution? Ideally I could connect to the existing IMAP server, do a dump, and have the mock server run off the real mailbox/email ... | [
{
"answer_id": 35488764,
"author": "Bruno Thomas",
"author_id": 396155,
"author_profile": "https://Stackoverflow.com/users/396155",
"pm_score": 3,
"selected": false,
"text": "factory = loop.create_server(lambda: ImapProtocol(mailbox_map), 'localhost', 1143)\nserver = loop.run_until_compl... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3594/"
] |
351,657 | <p>By default sqlplus truncates column names to the length of the underlying data type. Many of the column names in our database are prefixed by the table name, and therefore look identical when truncated.</p>
<p>I need to specify select * queries to remote DBAs in a locked down production environment, and drag back s... | [
{
"answer_id": 353335,
"author": "m0j0",
"author_id": 31319,
"author_profile": "https://Stackoverflow.com/users/31319",
"pm_score": 1,
"selected": false,
"text": "ALL_TAB_COLS"
},
{
"answer_id": 354550,
"author": "IK.",
"author_id": 21283,
"author_profile": "https://S... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14749/"
] |
351,661 | <p>Can you store an Array ( that contains another two subarrays one being a string and another another array) into a single MutableArray object?</p>
| [
{
"answer_id": 351673,
"author": "e.James",
"author_id": 33686,
"author_profile": "https://Stackoverflow.com/users/33686",
"pm_score": 0,
"selected": false,
"text": "NSMutableArray * completeArray =\n [NSMutableArray arrayWithArray:\n [[myArray objectAtIndex:0] arrayByAddingObj... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
351,690 | <p>In order to write better code, is it worth to know deeply what the compiler does? </p>
<p>Just how much would be enough? I'm not a bit scrubber, but I was thinking that knowing how the compiler operates would make me a better programmer. Am I wrong? </p>
<p>If so, what resources would you recommend?</p>
| [
{
"answer_id": 352126,
"author": "Norman Ramsey",
"author_id": 41661,
"author_profile": "https://Stackoverflow.com/users/41661",
"pm_score": 2,
"selected": false,
"text": " answer = answer .. strings[i] -- .. is string concatenation\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/351690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12423/"
] |
351,720 | <p>Is it a good idea to share views between different controllers (using the <em>Views/Shared</em> folder)?<br><br> I am creating my first MVC application and it requires some pieces of data that are similar to each other. They "explain" different things (and will therefore be stored in different tables) but they each ... | [
{
"answer_id": 351803,
"author": "Todd Smith",
"author_id": 31624,
"author_profile": "https://Stackoverflow.com/users/31624",
"pm_score": 1,
"selected": false,
"text": "public class MyCustomViewData\n{\n public int Id {get; set;}\n public string Name {get; set;}\n public int Sta... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17248/"
] |
351,732 | <p>How do you usually convert line breaks in a form textbox or input=text element to html line breaks?</p>
<p>Thanks</p>
<p>Edit: Is it always \r\n with all browsers?</p>
| [
{
"answer_id": 351735,
"author": "Shawn",
"author_id": 26,
"author_profile": "https://Stackoverflow.com/users/26",
"pm_score": 2,
"selected": false,
"text": "Replace(vbcrlf, \"<br />\")\n"
},
{
"answer_id": 351747,
"author": "ine",
"author_id": 4965,
"author_profile":... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/676066/"
] |
351,733 | <p>What are some ways to write object-oriented code in C? Especially with regard to polymorphism.</p>
<hr/>
<p>See also this Stack Overflow question <em><a href="https://stackoverflow.com/questions/415452/object-orientation-in-c">Object-orientation in C</a></em>.</p>
| [
{
"answer_id": 351745,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 9,
"selected": false,
"text": "struct"
},
{
"answer_id": 351766,
"author": "Alan Storm",
"author_id": 4668,
"author_profile": "http... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/356/"
] |
351,760 | <p>I would like to create a simple file format/DSL which would allow my users to input data. My system is in python and using python's parser is appealing.
Syntax like this for defining a data element seems quite convenient.</p>
<pre><code>Allocation(Param1 = Val1, Param2 = Val2 )
</code></pre>
<p>However, it does ... | [
{
"answer_id": 351776,
"author": "Harley Holcombe",
"author_id": 1057,
"author_profile": "https://Stackoverflow.com/users/1057",
"pm_score": 1,
"selected": false,
"text": "def Allocation(**kwargs):\n print kwargs\n\nmyargs = {\"Param 1\":Val1, \"Param 2\":Val1}\nAllocation(**myargs)\n... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/52490/"
] |
351,784 | <p>My requirement is to replace a set of words in a given text file with a second set of words, which might be given from the command line or another file. Wanting to use Perl to do this, as the rest of my code is also in Perl.</p>
<p>So, if I have the following:</p>
<pre><code>server name="${server1}" host="abc.com"... | [
{
"answer_id": 351831,
"author": "George Stocker",
"author_id": 16587,
"author_profile": "https://Stackoverflow.com/users/16587",
"pm_score": 0,
"selected": false,
"text": "perl -pie 's/\\{server/myword/g' loginOut.txt > loginOut1.txt\n"
},
{
"answer_id": 351853,
"author": "u... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35416/"
] |
351,797 | <p>I know this maybe a very basic question but I'm having a bit of a mind blank at the moment. Should I be unit testing this class.</p>
<pre><code>public class MapinfoWindowHandle : IWin32Window
{
IntPtr handle;
public MapinfoWindowHandle(IntPtr mapinfoHandle)
{
this.handle = ... | [
{
"answer_id": 351805,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 3,
"selected": true,
"text": " [TestMethod]\n public void ConstructorTest()\n {\n IntPtr handle = new IntPtr(100);\n MapinfoWindowHandle win... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6335/"
] |
351,800 | <p>Is it possible to create an inline delegate in vb.net like you can in c#?</p>
<p>For example, I would like to be able to do something inline like this:</p>
<pre><code>myObjects.RemoveAll(delegate (MyObject m) { return m.X >= 10; });
</code></pre>
<p>only in VB and without having to do something like this</p>
... | [
{
"answer_id": 351820,
"author": "Shawn",
"author_id": 26,
"author_profile": "https://Stackoverflow.com/users/26",
"pm_score": 3,
"selected": false,
"text": "myObjects.RemoveAll(Function(m) m.X >= 10)\n"
},
{
"answer_id": 351825,
"author": "BlackMael",
"author_id": 19377,... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351800",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1632/"
] |
351,801 | <p>I'm trying to get Unicode working properly in rails using MySQL. Now, Rails displays the text correctly, but it shows up as ??? in MySQL. Additionally, I am not able to filter the text.</p>
<p>My MySQL database has been configured with the utf8 character set. My client character is also UTF8. Likewise, rails is... | [
{
"answer_id": 416539,
"author": "sikachu",
"author_id": 52035,
"author_profile": "https://Stackoverflow.com/users/52035",
"pm_score": 2,
"selected": false,
"text": "encoding: utf8"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/351801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
351,806 | <p>I am curious to know where the "Don't Fragment" [DF] Bit of the IP Flags is used. As fragmentation is invisible to higher layers and they don't care too.</p>
<p>I am also looking for an example. </p>
<p>Thanks a lot in advance.</p>
| [
{
"answer_id": 352027,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 4,
"selected": false,
"text": "write()"
},
{
"answer_id": 355530,
"author": "bortzmeyer",
"author_id": 15625,
"author_profile": "https... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38038/"
] |
351,823 | <p>The following is a simplified version of what I'm trying to do, because I'm sure you don't want to wade through an entire set of structs and function prototypes for a particle system.</p>
<pre><code>float const materials[24][4][4] = {{{...}}};
typedef struct EmitterStruct { float *material[4][4]; } Emitter;
typede... | [
{
"answer_id": 351843,
"author": "AlfaZulu",
"author_id": 44060,
"author_profile": "https://Stackoverflow.com/users/44060",
"pm_score": 1,
"selected": false,
"text": "memcpy"
},
{
"answer_id": 351849,
"author": "Community",
"author_id": -1,
"author_profile": "https://... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351823",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
351,840 | <p>I have the following Transact-Sql that I am trying to convert to LINQ ... and struggling. </p>
<pre><code>SELECT * FROM Project
WHERE Project.ProjectId IN (SELECT ProjectId FROM ProjectMember Where MemberId = 'a45bd16d-9be0-421b-b5bf-143d334c8155')
</code></pre>
<p>Any help would be greatly appreciated ... I woul... | [
{
"answer_id": 351859,
"author": "Dave Markle",
"author_id": 24995,
"author_profile": "https://Stackoverflow.com/users/24995",
"pm_score": 3,
"selected": false,
"text": "var projects = \nfrom p in db.Projects\nwhere db.ProjectMembers.Where(m => m.MemberId == \"a45bd16d-9be0-421b-b5bf-143... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1768/"
] |
351,845 | <p>I have a class A and another class that inherits from it, B. I am overriding a function that accepts an object of type A as a parameter, so I have to accept an A. However, I later call functions that only B has, so I want to return false and not proceed if the object passed is not of type B.</p>
<p>What is the best... | [
{
"answer_id": 351852,
"author": "Joshua",
"author_id": 14768,
"author_profile": "https://Stackoverflow.com/users/14768",
"pm_score": 3,
"selected": false,
"text": "dynamic_cast<B*>(pointer)"
},
{
"answer_id": 351865,
"author": "yesraaj",
"author_id": 22076,
"author_p... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351845",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43463/"
] |
351,848 | <p>Ok another WPF question, well I guess this is just general .NET. I have an xml document retreived from a URL.</p>
<p>I want to get multiple values out of the document (weather data, location, some other strings).</p>
<p>When I use the XmlTextReader I can call my method to pull the values out. The first time I pass... | [
{
"answer_id": 351949,
"author": "John Batdorf",
"author_id": 22451,
"author_profile": "https://Stackoverflow.com/users/22451",
"pm_score": 1,
"selected": false,
"text": " System.Xml.XmlTextReader xtr = new System.Xml.XmlTextReader(my xml url);\n System.Xml.XPath.XP... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22451/"
] |
351,903 | <p>I have a GridView that has columns such as:</p>
<pre><code>| A | B C | D E / F |
</code></pre>
<p>I want these to be wrapped in a particular way - that is, I do not want to leave it up to the browser to work out whether to wrap or not depending on the column width. So in the above example I may wa... | [
{
"answer_id": 352986,
"author": "HectorMac",
"author_id": 1400,
"author_profile": "https://Stackoverflow.com/users/1400",
"pm_score": 3,
"selected": false,
"text": "<asp:templatefield>\n <headertemplate>\n D<br />\n E / F\n </headertemplate>\n <itemtemplate>\n ... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351903",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
351,911 | <p>Example:</p>
<pre><code>public class Name {
public string FirstName { get; private set; }
public string LastName { get; private set; }
private Name() { }
public Name(string firstName, string lastName) {
FirstName = firstName;
LastName = lastName;
}
}
</code></pre>
<p>When... | [
{
"answer_id": 351924,
"author": "Strelok",
"author_id": 2788,
"author_profile": "https://Stackoverflow.com/users/2788",
"pm_score": 0,
"selected": false,
"text": "public abstract class BaseDomainObject{\n public BaseDomainObject() { }\n\n private int _id;\n\n public virtual int Id { ... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23217/"
] |
351,915 | <p>I have written a function that gets a given number of random records from a list. Currently I can do something like:</p>
<pre><code>IEnumerable<City> cities = db.Cites.GetRandom(5);
</code></pre>
<p>(where db is my DataContext connecting to a SQL Server DB)</p>
<p>Currently, I have a function like this in ... | [
{
"answer_id": 351922,
"author": "JaredPar",
"author_id": 23283,
"author_profile": "https://Stackoverflow.com/users/23283",
"pm_score": 0,
"selected": false,
"text": "public static IEnumerable<T> GetRandom<T>( this Table<T> table, int count) where T : class {\n ...\n}\n"
},
{
"a... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30529/"
] |
351,919 | <p>I've had a lot of users complain that the little "i" info button is difficult to touch on the iPhone. Ok, simple enough -- I just stuck a big-fat invisible button behind it that you can't miss even with the sloppiest of finger touches and, when you touch it, it does the infoButtonAction.</p>
<p>Thing is, I'd like ... | [
{
"answer_id": 351951,
"author": "Matt Ball",
"author_id": 43120,
"author_profile": "https://Stackoverflow.com/users/43120",
"pm_score": 0,
"selected": false,
"text": "infotap"
},
{
"answer_id": 353245,
"author": "Mike Abdullah",
"author_id": 28768,
"author_profile": ... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351919",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34820/"
] |
351,927 | <p>I just ran into an issue with Python's imaplib and Gmail's authentication mechanism:</p>
<pre><code>>>> import imaplib
>>> imap = imaplib.IMAP4_SSL('imap.gmail.com', 993)
>>> imap.authenticate('bobdole@gmail.com', 'Bob Dole likes your style!')
Traceback (most recent call last):
...
imap... | [
{
"answer_id": 351930,
"author": "cdleary",
"author_id": 3594,
"author_profile": "https://Stackoverflow.com/users/3594",
"pm_score": 0,
"selected": false,
"text": ">>> imap.login('bobdole@gmail.com', 'Bob Dole likes your style!')\n('OK', ['bobdole@gmail.com authenticated (Success)'])\n"
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3594/"
] |
351,932 | <p>How do you associate a <code>-mouseUp:</code> event with the <code>-add:</code> method of a NSArrayController? The <code>-mouseUp:</code> event lives in a different object but is <code>#import</code>'ed and instantiated in the object that holds the array being controlled.</p>
<p>Usually, with an NSButton you comma... | [
{
"answer_id": 351930,
"author": "cdleary",
"author_id": 3594,
"author_profile": "https://Stackoverflow.com/users/3594",
"pm_score": 0,
"selected": false,
"text": ">>> imap.login('bobdole@gmail.com', 'Bob Dole likes your style!')\n('OK', ['bobdole@gmail.com authenticated (Success)'])\n"
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41880/"
] |
351,937 | <p>I'm trying to write a html helper extension that outputs an image tag.
I need to access (within C# code) something like Razor's @Url.Content() helper to get the proper URL for the current context.
How does one do this?</p>
| [
{
"answer_id": 351955,
"author": "Dave K",
"author_id": 19864,
"author_profile": "https://Stackoverflow.com/users/19864",
"pm_score": -1,
"selected": false,
"text": "string fullUrl = HttpContext.Current.Request.Url.AbsoluteUri;\n"
},
{
"answer_id": 353057,
"author": "Tim Scot... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351937",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4541/"
] |
351,954 | <p>Is there a way using the iPhone SDK to get WiFi information? Things like Signal Strength, WiFi Channel and SSID are the main things I'm looking for.</p>
<p>Only interested in Wifi info, not cellular.</p>
| [
{
"answer_id": 412548,
"author": "Gordon Wilson",
"author_id": 23071,
"author_profile": "https://Stackoverflow.com/users/23071",
"pm_score": 5,
"selected": true,
"text": "Apple80211GetInfoCopy"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/351954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1075/"
] |
351,971 | <p>Hi I'm trying to use mono-service2 to run a stock Windows Service Project from visual studio. I'm running this on debian with mono 2.0 and compiling with.</p>
<pre><code>gmcs *.cs -pkg:dotnet
</code></pre>
<p>I try and start with this (I've tried with -d set to the dir with the app and -n,-m set)</p>
<pre><code>m... | [
{
"answer_id": 352051,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 4,
"selected": true,
"text": "libMonoPosixHelper.so"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/351971",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/253/"
] |
351,987 | <p>I'm trying to grab an image from a web site using simpleXML and am getting a PHP error saying that I'm trying to call to a member function <code>xpath()</code> on a non-object.</p>
<p>Below are the lines I'm trying to use to get the image's source tag: </p>
<pre><code>$xpath = '/html/body/div/div/div[5]/div/div/di... | [
{
"answer_id": 352023,
"author": "dancavallaro",
"author_id": 42891,
"author_profile": "https://Stackoverflow.com/users/42891",
"pm_score": 3,
"selected": false,
"text": "$xpath = '/html/body/div/div/div[5]/div/div/div[2]/div/div[2]/img'; \n$html = new DOMDocument();\n@$html->lo... | 2008/12/09 | [
"https://Stackoverflow.com/questions/351987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
352,010 | <p>I have 3 web projects in a Visual studio solution.I want to create a single web setup project which should install all 3 web projects in their virtual directories.So how to create a single web setup project which supports multiple web application installation?</p>
| [
{
"answer_id": 9357940,
"author": "awe",
"author_id": 109392,
"author_profile": "https://Stackoverflow.com/users/109392",
"pm_score": 0,
"selected": false,
"text": "Property"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11039/"
] |
352,032 | <p>I'm just trying to do simple scripting with F#, and Math.PI seems to have 'disappeared'. I've referenced FSharp.PowerPack.dll, but still can't find it.</p>
| [
{
"answer_id": 352040,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": -1,
"selected": false,
"text": "let PI = 3.141592653589\n"
},
{
"answer_id": 352041,
"author": "Community",
"author_id": -1,
"author_prof... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11410/"
] |
352,039 | <p>Please list <strong>one</strong> site which allows Flash/Silverlight access via crossdomain.xml file. Vote for your favorite sites.</p>
<p>The goal is to build an up to date list of sites which can be directly accessed via Flash/Silverlight without a server-side proxy. </p>
| [
{
"answer_id": 7354974,
"author": "puppybits",
"author_id": 304499,
"author_profile": "https://Stackoverflow.com/users/304499",
"pm_score": 1,
"selected": false,
"text": "JSONP.get(\"http://api.twitter.com/statuses/user_timeline.json\", \n \"{screen_name:'puppybits', count:'1'}\",... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5/"
] |
352,055 | <p>What is the best approach in stripping leading and trailing spaces in C?</p>
| [
{
"answer_id": 352071,
"author": "mcjabberz",
"author_id": 30323,
"author_profile": "https://Stackoverflow.com/users/30323",
"pm_score": 1,
"selected": false,
"text": "int i = strlen(s) - 1;\nwhile (isspace(s[i]))\n s[i--] = '\\0';\nwhile (isspace(*s))\n s++;\n"
},
{
"answe... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16139/"
] |
352,059 | <p>do you know any good algorithms that match two strings and then return a percentage in how many percent those two strings match?</p>
<p>And are there some, that work with databases too?</p>
| [
{
"answer_id": 352881,
"author": "Tom",
"author_id": 40620,
"author_profile": "https://Stackoverflow.com/users/40620",
"pm_score": 2,
"selected": false,
"text": "Levenstein(\"copy\", \"cpoy\") == 2\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9535/"
] |
352,076 | <p>This is something that has bugged me for some time. I learnt Haskell before I learnt Python, so I've always been fond of thinking of many computations as a mapping onto a list. This is beautifully expressed by a list comprehension (I'm giving the pythonic version here):</p>
<pre><code>result = [ f(x) for x in list ... | [
{
"answer_id": 352105,
"author": "Darius Bacon",
"author_id": 27024,
"author_profile": "https://Stackoverflow.com/users/27024",
"pm_score": 0,
"selected": false,
"text": "result = [blah(blah(blah(x)))\n for x in list]\n"
},
{
"answer_id": 352121,
"author": "monkut",
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37984/"
] |
352,079 | <p>I'm using the appengine webapp framework (<a href="http://code.google.com/appengine/docs/webapp/" rel="nofollow noreferrer">link</a>). Is it possible to add Django middleware? I can't find any examples. I'm currently trying to get the FirePython middleware to work (<a href="http://github.com/woid/firepython/tree/m... | [
{
"answer_id": 548865,
"author": "zgoda",
"author_id": 12138,
"author_profile": "https://Stackoverflow.com/users/12138",
"pm_score": 0,
"selected": false,
"text": "session"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352079",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37575/"
] |
352,089 | <p>Why isn't there a bit structure in C#?</p>
| [
{
"answer_id": 25684299,
"author": "Konamiman",
"author_id": 4574,
"author_profile": "https://Stackoverflow.com/users/4574",
"pm_score": 5,
"selected": false,
"text": "int"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44527/"
] |
352,098 | <p>Is there a (Unix) shell script to format JSON in human-readable form?</p>
<p>Basically, I want it to transform the following:</p>
<pre class="lang-json prettyprint-override"><code>{ "foo": "lorem", "bar": "ipsum" }
</code></pre>
<p>... into something like this:</p>
<pre class=... | [
{
"answer_id": 352160,
"author": "jfs",
"author_id": 4279,
"author_profile": "https://Stackoverflow.com/users/4279",
"pm_score": 6,
"selected": false,
"text": "$ echo '{ \"foo\": \"lorem\", \"bar\": \"ipsum\" }' \\\n> | python -c'import fileinput, json;\n> print(json.dumps(json.loads(\"\... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352098",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
352,103 | <p>On this page (<a href="http://www.bonniesphere.com/blog/elsewhere/" rel="nofollow noreferrer">http://www.bonniesphere.com/blog/elsewhere/</a>) the "li" items have an image instead of a bullet. But the image is centered vertically, and in multi-line entries it doesn't look good. Can anyone tell me if there is somethi... | [
{
"answer_id": 352106,
"author": "Kablam",
"author_id": 42389,
"author_profile": "https://Stackoverflow.com/users/42389",
"pm_score": 0,
"selected": false,
"text": ".entry ul {list-style-type:none;} \n.entry ul li{padding: 0 0 0 15px;\nbackground: url(img/ol.gif) no-repeat left top cente... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
352,117 | <p>I've been lately trying to learn more and generally test Java's serialization for both work and personal projects and I must say that the more I know about it, the less I like it. This may be caused by misinformation though so that's why I'm asking these two things from you all:</p>
<p><strong>1:</strong> On byte l... | [
{
"answer_id": 366739,
"author": "Tom Hawtin - tackline",
"author_id": 4725,
"author_profile": "https://Stackoverflow.com/users/4725",
"pm_score": 0,
"selected": false,
"text": "implements Serializable"
},
{
"answer_id": 34623934,
"author": "Premraj",
"author_id": 1697099... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44523/"
] |
352,118 | <p>I place using namespace in a view code behind but i can't call any class of this name space in aspx.</p>
<p>In codebehind:</p>
<pre><code>using MVCTest.Controller;
</code></pre>
| [
{
"answer_id": 352138,
"author": "mookid8000",
"author_id": 6560,
"author_profile": "https://Stackoverflow.com/users/6560",
"pm_score": 2,
"selected": false,
"text": "// system.web / compilation / assemblies\n<add assembly=\"Microsoft.Web.Mvc\"/>\n"
},
{
"answer_id": 352142,
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44533/"
] |
352,152 | <p>I was wondering if there is an iterator in the STL that dereferences the object pointed before returning it. This could be very useful when manipulating containers aggregating pointers. Here's an example of what I would like to be able to do:</p>
<pre><code>#include <vector>
#include <iterator>
#include... | [
{
"answer_id": 352162,
"author": "Luc Touraille",
"author_id": 20984,
"author_profile": "https://Stackoverflow.com/users/20984",
"pm_score": 2,
"selected": false,
"text": "#include <iterator>\n\ntemplate <typename T>\nstruct PointedType;\n\ntemplate <typename T>\nstruct PointedType<T*>\n... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352152",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20984/"
] |
352,174 | <pre><code> [SoapRpcMethod(Action = "http://cyberindigo/TempWebService/InsertXML",
RequestNamespace = "http://cyberindigo/TempWebService/Request",
RequestElementName = "InsertXMLRequest",
ResponseNamespace = "http://cyberindigo/TempWebService/Response",
ResponseElementName = "InsertXMLResponse",
U... | [
{
"answer_id": 2109100,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 6,
"selected": false,
"text": "SOAPAction"
},
{
"answer_id": 5745476,
"author": "Ben",
"author_id": 719114,
"author_profile": "https://S... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42070/"
] |
352,176 | <p>The following SQL separates tables according to their relationship. The problem is with the tables that sort under the 3000 series. Tables that are part of foreign keys and that use foreign keys. Anyone got some clever recursive CTE preferably or a stored procedure to do the necessary sorting?? Programs connectiong ... | [
{
"answer_id": 352294,
"author": "ConcernedOfTunbridgeWells",
"author_id": 15401,
"author_profile": "https://Stackoverflow.com/users/15401",
"pm_score": 2,
"selected": false,
"text": "declare @level int -- Current depth\n ,@count int \n\n-- Step 1: Start with tables that ... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13219/"
] |
352,177 | <p>Fun with enums in C#. Take one generic list that is created to store some Enum that you had defined previously and add few items in it. Iterate with foreach or <code>GetEnumerator<T>()</code> but specify some other enum then the original and see what happens. I was expecting InvalidCastException or something l... | [
{
"answer_id": 352196,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 2,
"selected": false,
"text": "ToString()"
},
{
"answer_id": 352210,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29511/"
] |
352,178 | <p>I have a <code>MultipleChoiceField</code> on a form holding car makes. I want to filter my database of cars to the makes that were checked but this causes a problem. How do I get all the <code>Q(make=...)</code> statements in dynamically?</p>
<p>How I start: <code>['value1', 'value2', ...]</code></p>
<p>How I want... | [
{
"answer_id": 352208,
"author": "Ber",
"author_id": 11527,
"author_profile": "https://Stackoverflow.com/users/11527",
"pm_score": 4,
"selected": true,
"text": "Model.objects.filter(make__in=list_of_makes)"
},
{
"answer_id": 352262,
"author": "Oli",
"author_id": 12870,
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12870/"
] |
352,203 | <p>I'm looking for an algorithm to generate permutations of a set in such a way that I could make a lazy list of them in Clojure. i.e. I'd like to iterate over a list of permutations where each permutation is not calculated until I request it, and all of the permutations don't have to be stored in memory at once.</p>
... | [
{
"answer_id": 352226,
"author": "Bogdan Maxim",
"author_id": 23795,
"author_profile": "https://Stackoverflow.com/users/23795",
"pm_score": 2,
"selected": false,
"text": "C#"
},
{
"answer_id": 353248,
"author": "ShreevatsaR",
"author_id": 4958,
"author_profile": "http... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23070/"
] |
352,236 | <p>Is there a way for a Windows application to access another applications data, more specifically a text input field in the GUI, and grab the text there for processing in our own application?</p>
<p>If it is possible, is there a way to "shield" your application to prevent it?</p>
<hr />
<p><strong>EDIT:</str... | [
{
"answer_id": 352246,
"author": "Stefan",
"author_id": 19307,
"author_profile": "https://Stackoverflow.com/users/19307",
"pm_score": 0,
"selected": false,
"text": "Private Declare Function GetWindowText Lib \"user32\" Alias \"GetWindowTextA\" (ByVal hwnd As Long, ByVal lpString As Strin... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40657/"
] |
352,259 | <p>I want to use the standard ADO connection string dialog box in MS Access.
How can I do that?</p>
| [
{
"answer_id": 352751,
"author": "John Mo",
"author_id": 38988,
"author_profile": "https://Stackoverflow.com/users/38988",
"pm_score": 1,
"selected": false,
"text": "Dim dl As MSDASC.DataLinks\nDim cn As ADODB.Connection\n\nSet dl = New MSDASC.DataLinks\nSet cn = New ADODB.Connection\n\n... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
352,311 | <p>I'm using this database where the date colomn is a numeric value instead of a Date value. </p>
<p>Yes, I know I can change that with a mouseclick, but all the applications using that database were made by one of my predecessors (and everyone after him just ignored it and built on). So if I'd change it to Date a lot... | [
{
"answer_id": 352436,
"author": "Fionnuala",
"author_id": 2548,
"author_profile": "https://Stackoverflow.com/users/2548",
"pm_score": 2,
"selected": true,
"text": "Dim rs As DAO.Recordset\n\nSet rs = CurrentDb.OpenRecordset(\"TestTable\")\nrs.AddNew\nrs!NumberDate = Now() 'Value stored... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42389/"
] |
352,321 | <p>I am testing the application in the debug mode under several conditions. Now I'm doing it by writing some of the states and executed functions on the piece of paper and then comparing the scenarios.</p>
<p>Does anyone know if there is any built-in functionality in VS2008 or any additional tool that could record the... | [
{
"answer_id": 352436,
"author": "Fionnuala",
"author_id": 2548,
"author_profile": "https://Stackoverflow.com/users/2548",
"pm_score": 2,
"selected": true,
"text": "Dim rs As DAO.Recordset\n\nSet rs = CurrentDb.OpenRecordset(\"TestTable\")\nrs.AddNew\nrs!NumberDate = Now() 'Value stored... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22996/"
] |
352,334 | <p>I'm using GDOME.pm and in my script I have this line:</p>
<pre><code>my $doc = XML::GDOME->createDocument("","","");
</code></pre>
<p>I can't for the life of me figure out why it's coming out with this error:</p>
<pre><code>NAMESPACE_ERR at /usr/lib/perl5/site_perl/5.6.1/i586-linux/XML/GDOME.pm line 103.
</cod... | [
{
"answer_id": 352567,
"author": "Adam Bellaire",
"author_id": 21632,
"author_profile": "https://Stackoverflow.com/users/21632",
"pm_score": 2,
"selected": true,
"text": "$doc = XML::GDOME->createDocument( $nsURI, $name, $dtd );\n"
},
{
"answer_id": 352571,
"author": "ysth",
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38124/"
] |
352,335 | <p>I am using an open source client to programmatically process incoming emails (on Windows 2003). The only way to prevent receiving previously read emails is to delete them from the server. This is less than ideal. As far as I know, there is no command in Pop3 to set emails as being read. So how do you go about this? ... | [
{
"answer_id": 352347,
"author": "xahtep",
"author_id": 42184,
"author_profile": "https://Stackoverflow.com/users/42184",
"pm_score": 5,
"selected": true,
"text": "UIDL"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27805/"
] |
352,340 | <p>Edit: How to return/serve a file from a python controller (back end) over a web server, with the file_name? as suggested by @JV</p>
| [
{
"answer_id": 352497,
"author": "gimel",
"author_id": 6491,
"author_profile": "https://Stackoverflow.com/users/6491",
"pm_score": 2,
"selected": true,
"text": "from cherrypy.lib.static import serve_file\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2220518/"
] |
352,341 | <p>I often find myself using Integers to represent values in different "spaces". For example...</p>
<pre><code>int arrayIndex;
int usersAge;
int daysToChristmas;
</code></pre>
<p>Ideally, I'd like to have separate classes for each of these types "Index","Years" and "Days", which should prevent me accidentally mixing ... | [
{
"answer_id": 352363,
"author": "Joris Timmermans",
"author_id": 33987,
"author_profile": "https://Stackoverflow.com/users/33987",
"pm_score": 3,
"selected": false,
"text": "template<unsigned i>\nclass t_integer_wrapper\n {\n private:\n int m_value;\n public:\n // Constructors... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352341",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1737/"
] |
352,343 | <p>I'm developing a web app. In it I have a section called categories that every time a user clicks one of the categories an update panel loads the appropriate content. </p>
<p>After the user clicked the category I want to change the browser's address bar url from</p>
<pre><code>www.mysite.com/products
</code></pre>... | [
{
"answer_id": 352387,
"author": "roborourke",
"author_id": 42147,
"author_profile": "https://Stackoverflow.com/users/42147",
"pm_score": 5,
"selected": false,
"text": "window.location.hash = 'category-name'; // address bar would become http://example.com/#category-name\n"
},
{
"... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
352,348 | <p>In answering this question (<a href="https://stackoverflow.com/questions/352317/c-coding-question#352327">https://stackoverflow.com/questions/352317/c-coding-question#352327</a>), it got me wondering...</p>
<p>Is there any danger in regarding a static class as being equivalent to a non-static class instatiation tha... | [
{
"answer_id": 352391,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 2,
"selected": false,
"text": "Comparer<T>.Default"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14357/"
] |
352,350 | <p>This is a question for a WSS/SharePoint guru. </p>
<p>Consider this scenario: I have an ASP.Net web service which links our corporate CRM system and WSS-based intranet together. What I am trying to do is provision a new WSS site collection whenever a new client is added to the CRM system. In order to make this work... | [
{
"answer_id": 354261,
"author": "Nat",
"author_id": 13813,
"author_profile": "https://Stackoverflow.com/users/13813",
"pm_score": 2,
"selected": true,
"text": "Dim clientSiteUrl As String = \"http://myintranet/clients/sampleclient\"\nUsing SPSite = new SPSite(clientSiteUrl) \n webApp... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1052/"
] |
352,354 | <p>I need to match a string holiding html using a regex to pull out all the nested spans, I assume I assume there is a way to do this using a regex but have had no success all morning. </p>
<p>So for a sample input string of </p>
<pre><code><DIV id=c445c9c2-a02e-4cec-b254-c134adfa4192 style="BORDER-RIGHT: #000000 ... | [
{
"answer_id": 352907,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "https://Stackoverflow.com/users/15459",
"pm_score": 0,
"selected": false,
"text": "Pattern p = Pattern.compile(\"(<SPAN id.*?<SPAN id.*?</SPAN></SPAN>)\");\nMatcher m = p.matcher(html);\nwhile (m.find())\n{... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/87783/"
] |
352,365 | <p>What is the difference between the concepts of <strong>"Code Re-entrancy"</strong> and <strong>"Thread Safety"</strong>? As per the link mentioned below, a piece of code can be either of them, both of them or neither of them. </p>
<p><a href="http://encyclopedia.thefreedictionary.com/reentrant+code" rel="noreferrer... | [
{
"answer_id": 352645,
"author": "Steve Jessop",
"author_id": 13005,
"author_profile": "https://Stackoverflow.com/users/13005",
"pm_score": 3,
"selected": false,
"text": "take_global_lock();\nint i = get_global_counter();\ndo_callback(i);\nset_global_counter(i+1);\nrelease_global_lock();... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40981/"
] |
352,389 | <p>We have this set of data that we need to get the average of a column. a <code>select avg(x) from y</code> does the trick. However we need a more accurate figure.</p>
<p>I figured that there must be a way of filtering records that has either too high or too low values(spikes) so that we can exclude them in calculati... | [
{
"answer_id": 352530,
"author": "Jonathan",
"author_id": 6910,
"author_profile": "https://Stackoverflow.com/users/6910",
"pm_score": 3,
"selected": true,
"text": "select name, \n (select top 1 h.run_duration\n from sysjobhistory h\n where h.step_id = 0\n an... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352389",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20300/"
] |
352,408 | <p>A colleague of mine and I have been discussing how to declare variables in a function.</p>
<p>Let's say you have a class called TStrings (using Delphi for the sake of explanation) that has at least one abstract method and a descendant class called TStringList which obviously implements the abstract method, but it i... | [
{
"answer_id": 352454,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 0,
"selected": false,
"text": "procedure TMyClass.MyMethod(const AList: TStrings);\nbegin\nend;\n"
},
{
"answer_id": 352823,
"author": "... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352408",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1264322/"
] |
352,415 | <p>I am reorganizing my source files into a single solution with a single project, due to various reasons:</p>
<ul>
<li>a paranoic configured antivirus software;</li>
<li><a href="http://codebetter.com/blogs/patricksmacchia/archive/2008/12/08/advices-on-partitioning-code-through-net-assemblies.aspx" rel="nofollow nore... | [
{
"answer_id": 352421,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "using System; // Etc\n\nnamespace Company.Project.Foo\n{\n class Bar\n {\n }\n}\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352415",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19756/"
] |
352,420 | <p>I just wanted to know what's the difference between clear() and str("");</p>
<p>For example:</p>
<pre><code>stringstream ss("Stack Overflow");
ss.clear();
ss.str("");
</code></pre>
<p>I wanted to know the underlying technical difference.</p>
| [
{
"answer_id": 352426,
"author": "AlfaZulu",
"author_id": 44060,
"author_profile": "https://Stackoverflow.com/users/44060",
"pm_score": 5,
"selected": true,
"text": "clear()"
},
{
"answer_id": 352443,
"author": "yesraaj",
"author_id": 22076,
"author_profile": "https:/... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38038/"
] |
352,434 | <p>I have a long "binary string" like the output of PHPs pack function.</p>
<p>How can I convert this value to base62 (0-9a-zA-Z)?
The built in maths functions overflow with such long inputs, and BCmath doesn't have a base_convert function, or anything that specific. I would also need a matching "pack base62" function... | [
{
"answer_id": 364626,
"author": "david",
"author_id": 27600,
"author_profile": "https://Stackoverflow.com/users/27600",
"pm_score": 1,
"selected": false,
"text": "base64_encode()\nbase64_decode()\n"
},
{
"answer_id": 1743486,
"author": "Jay Dansand",
"author_id": 198299,... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
352,452 | <p>I have this code </p>
<p><a href="http://www.nomorepasting.com/getpaste.php?pasteid=22580" rel="nofollow noreferrer">http://www.nomorepasting.com/getpaste.php?pasteid=22580</a> </p>
<p>which is part of a small ajax application. I would like to know a better, more efficient way to assign $query, instead of copying ... | [
{
"answer_id": 352483,
"author": "markus",
"author_id": 11995,
"author_profile": "https://Stackoverflow.com/users/11995",
"pm_score": 3,
"selected": true,
"text": "<?php\nsession_start(); //ommit, no session var used\n\n//use braces, always!\n//you may write such statements with the shor... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1246613/"
] |
352,463 | <p>I have a JSON as follows</p>
<pre><code>{
columns : [RULE_ID,COUNTRY_CODE],
RULE_ID : [1,2,3,7,9,101,102,103,104,105,106,4,5,100,30],
COUNTRY_CODE : [US,US,CA,US,FR,GB,GB,UM,AF,AF,AL,CA,US,US,US]
}
</code></pre>
<p>I need to retrive the column names from the columns entry and then use it to search... | [
{
"answer_id": 352533,
"author": "Paolo Bergantino",
"author_id": 16417,
"author_profile": "https://Stackoverflow.com/users/16417",
"pm_score": 4,
"selected": true,
"text": "jQuery.each(data.columns, function(i,column) {\n jQuery.each(data[column], function(i, row) {\n ....\n })... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16488/"
] |
352,467 | <p>I am currently doing the front end for a site with looooads of forms, all styled up and looking pretty in IE, but I've just noticed that in Firefox the file input fields aren't responding to any of my styles, all the other types of input fields are fine. I've checked it in Firebug and its associating the correct sty... | [
{
"answer_id": 352512,
"author": "Samiksha",
"author_id": 29515,
"author_profile": "https://Stackoverflow.com/users/29515",
"pm_score": -1,
"selected": false,
"text": "form.CollateralForm input,\nform.CollateralForm textarea\n{\n width:300px; //for firefox\n #width:200px; //for IE... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31109/"
] |
352,471 | <p>I am working on creating an immutable class.<br>
I have marked all the properties as read-only. </p>
<p>I have a list of items in the class.<br>
Although if the property is read-only the list can be modified. </p>
<p>Exposing the IEnumerable of the list makes it immutable.<br>
I wanted to know what is the basic r... | [
{
"answer_id": 352490,
"author": "Joe",
"author_id": 13087,
"author_profile": "https://Stackoverflow.com/users/13087",
"pm_score": 4,
"selected": false,
"text": "public class MyClass\n{\n public MyClass(..., IList<MyType> items)\n {\n ...\n _myReadOnlyList = new List<... | 2008/12/09 | [
"https://Stackoverflow.com/questions/352471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41968/"
] |
352,472 | <p>I was curiious to know what type of structures you use for your project references?</p>
<p>Where I work the developers have a shared folder called AssemblyCache (\\MACHINENAME\AssemblyCache) which is mapped to an R:\ via GPO in Windows 2008 AD (tied to the Developers AD group).</p>
<p>Our shared components have po... | [
{
"answer_id": 352524,
"author": "Sandeep Datta",
"author_id": 39648,
"author_profile": "https://Stackoverflow.com/users/39648",
"pm_score": 2,
"selected": true,
"text": "subst R: \"C:\\.Net %VERSION%\\Project\\%SOMETHING%\"\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/352472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5791/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.