qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
262,510 | <p>Is there a way to search Microsoft Visual SourceSafe 6.0d for all files tagged with a specific label?</p>
| [
{
"answer_id": 334423,
"author": "AJ.",
"author_id": 7211,
"author_profile": "https://Stackoverflow.com/users/7211",
"pm_score": 0,
"selected": false,
"text": "ss get -V\"my label\" $\\myproject -R \n my label myproject"
},
{
"answer_id": 714770,
"author": "another average jo... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2831/"
] |
262,527 | <p>I need to programmatically enable READ COMMITTED SNAPSHOT in SQL Server. How can I do that?</p>
| [
{
"answer_id": 262541,
"author": "João Vieira",
"author_id": 2267,
"author_profile": "https://Stackoverflow.com/users/2267",
"pm_score": 4,
"selected": true,
"text": "ALTER DATABASE [dbname] SET READ_COMMITTED_SNAPSHOT ON WITH ROLLBACK AFTER 20 SECONDS \n"
},
{
"answer_id": 27851... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2267/"
] |
262,534 | <p>I want to use the same functionality available when a Panel.AutoScroll is true, but with the scrollbars invisible.</p>
<p>To do so I need to know how can I scroll to left/right up/down using functions in my code.</p>
| [
{
"answer_id": 263590,
"author": "bobwienholt",
"author_id": 24257,
"author_profile": "https://Stackoverflow.com/users/24257",
"pm_score": 4,
"selected": false,
"text": "c.HorizontalScroll.Value += 100;\nc.VerticalScroll.Value = c.VerticalScroll.Maximum;\n"
},
{
"answer_id": 4198... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10833/"
] |
262,535 | <p>In C# some of default name space such as System.Collections are listed without typing in using blah. In visual basic, they are not imports for you. Is there a way to force vb to auto imports some of default name space or VB work differently than C#?</p>
| [
{
"answer_id": 262570,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 3,
"selected": true,
"text": "System System. IO If IO.File.Exists(MyFile) Then ....\n System.IO File.Exists() System.IO.File.Exists()"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/262535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28647/"
] |
262,537 | <p>I recently inherited a VBA macro that needs to have validation logic added to it. I need to be able to determine if any characters in a text based cell are non ASCII characters (i.e. have a binary value > 0x7F). The cells may contain some carriage control values (particularly linefeeds) that need to be retained (s... | [
{
"answer_id": 263736,
"author": "dbb",
"author_id": 25675,
"author_profile": "https://Stackoverflow.com/users/25675",
"pm_score": 2,
"selected": false,
"text": "Function IsTooHigh(c As String) As Boolean\n\nDim RegEx As Object\nSet RegEx = CreateObject(\"vbscript.regexp\")\nWith RegEx\n... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19853/"
] |
262,538 | <p>At <a href="http://java.sun.com/javase/downloads/index.jsp" rel="nofollow noreferrer">Java SE Downloads</a> I may for example download:</p>
<ul>
<li>Java SE Runtime Environment (JRE) 6 Update 10</li>
<li>Java SE Development Kit (JDK) 6 Update 10</li>
</ul>
<p>But I can't find any source code for update 10. If I cl... | [
{
"answer_id": 263736,
"author": "dbb",
"author_id": 25675,
"author_profile": "https://Stackoverflow.com/users/25675",
"pm_score": 2,
"selected": false,
"text": "Function IsTooHigh(c As String) As Boolean\n\nDim RegEx As Object\nSet RegEx = CreateObject(\"vbscript.regexp\")\nWith RegEx\n... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
262,547 | <p>I'm currently working on someone else's database where the primary keys are generated via a lookup table which contains a list of table names and the last primary key used. A stored procedure increments this value and checks it is unique before returning it to the calling 'insert' SP.</p>
<p>What are the benefits f... | [
{
"answer_id": 262587,
"author": "shyam",
"author_id": 7616,
"author_profile": "https://Stackoverflow.com/users/7616",
"pm_score": 1,
"selected": false,
"text": "sequences"
},
{
"answer_id": 494451,
"author": "Alex",
"author_id": 42707,
"author_profile": "https://Stac... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14072/"
] |
262,555 | <p>You can define a number in various ways in C#,</p>
<pre><code>1F // a float with the value 1
1L // a long with the value 1
1D // a double with the value 1
</code></pre>
<p>personally I'm looking for which would a <code>short</code>, however to make the question a better reference for people, what are all the other... | [
{
"answer_id": 262589,
"author": "Gulzar Nazim",
"author_id": 4337,
"author_profile": "https://Stackoverflow.com/users/4337",
"pm_score": 2,
"selected": false,
"text": "decimal mon = 1m;\n string curr = String.Format(\"{0:C}\", mon); //output $1.00\n"
},
{
"answer_id": 262679,
... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1610/"
] |
262,573 | <p>Is there a way for me to loop over a Javascript Object's built-in properties?</p>
<p>for...in gets me close to where I want to go, but "A for...in loop does not iterate over built-in properties."</p>
| [
{
"answer_id": 262911,
"author": "Diodeus - James MacFarlane",
"author_id": 12579,
"author_profile": "https://Stackoverflow.com/users/12579",
"pm_score": -1,
"selected": false,
"text": "<style>\n.tree {\n margin-left:5px;\n}\n</style>\n<div id='out'></div>\n<script type=\"text/javascr... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262573",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
262,579 | <p>I have a simple POJO web service published with Axis2 on Tomcat5.5
I try to consume it with ATL C++ client and it fails. Doing the same with a C# client works.
The problem is that ATL client sends soap body which looks like </p>
<pre><code><soap:Body>< xmlns="http://fa.test.com/xsd"></></soap:... | [
{
"answer_id": 274833,
"author": "Sunlight",
"author_id": 33650,
"author_profile": "https://Stackoverflow.com/users/33650",
"pm_score": 2,
"selected": false,
"text": "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
262,593 | <pre><code> $('input[type=checkbox]').unbind().click(function(e){
$(this).attr('checked', true)
return false;
});
</code></pre>
<p>I NEED to return false because I have an event on its parent and I don't want to trigger that.
It just WON'T check that checkbox.</p>
| [
{
"answer_id": 262766,
"author": "eyelidlessness",
"author_id": 17964,
"author_profile": "https://Stackoverflow.com/users/17964",
"pm_score": 3,
"selected": true,
"text": "$('input[type=checkbox]').unbind().click(function(e){\n e.stopPropagation();\n});\n .unbind()"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/262593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23810/"
] |
262,597 | <p>I'm new to Linux and have inherited keeping our single linux server running. It's our SVN server so it's relatively important.</p>
<p>Turns out the guy who maintained it before me had a cron task to email him when there are too many svnserve processes running, as they seem to be left dangling instead of terminating... | [
{
"answer_id": 262683,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 0,
"selected": false,
"text": "ps h -u csvuser -o pid,lstart | grep 'May 29' | sed 's/^ \\+//' | \ncut -d ' ' -f 1 | xargs -n 1 kill\n 16324 Thu Ma... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262597",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9861/"
] |
262,603 | <p>See question above.</p>
| [
{
"answer_id": 262622,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 5,
"selected": false,
"text": "ikvmc myjar.jar\n"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/262603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
262,614 | <p>As part of my overall development practices review I'm looking at how best to streamline and automate our ASP.net web development practices.</p>
<p>At the moment, our process goes something like this:</p>
<ol>
<li>Designer builds frontend as static HTML/CSS on a network share. This gets tweaked until signed off. (... | [
{
"answer_id": 293740,
"author": "tommym",
"author_id": 37607,
"author_profile": "https://Stackoverflow.com/users/37607",
"pm_score": 1,
"selected": false,
"text": "dirname(____FILE____)"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/262614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22837/"
] |
262,616 | <p>I use div tags to define areas within my web pages. I set all the obvious things like background, size, padding, etc. But it is all very square.</p>
<p>How can I use <strong>only</strong> CSS to round the corners?</p>
| [
{
"answer_id": 262716,
"author": "Brian Schmitt",
"author_id": 30492,
"author_profile": "https://Stackoverflow.com/users/30492",
"pm_score": 3,
"selected": false,
"text": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<html>\n <head>\n <style>\n .b1f,... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13930/"
] |
262,618 | <p>I currently have 2 <code>BufferedReader</code>s initialized on the same text file. When I'm done reading the text file with the first <code>BufferedReader</code>, I use the second one to make another pass through the file from the top. Multiple passes through the same file are necessary.</p>
<p>I know about <code>r... | [
{
"answer_id": 262631,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": true,
"text": "BufferedReader"
},
{
"answer_id": 262718,
"author": "Ryan P",
"author_id": 1539,
"author_profile": "h... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
262,620 | <p>This has got to be something I just missed, but how do I add a tool tip to a label?</p>
<p>I saw something on the web about handling the mouse hover event, but how would I even handle it in code?</p>
| [
{
"answer_id": 262641,
"author": "cfeduke",
"author_id": 5645,
"author_profile": "https://Stackoverflow.com/users/5645",
"pm_score": 3,
"selected": false,
"text": "System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();\nToolTip1.SetToolTip(this.textBox1, \"Hello\");\... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21828/"
] |
262,636 | <p>I'm trying to implement the "Writing Information to UserData" section of <a href="http://www.asp.net/LEARN/security/tutorial-03-cs.aspx" rel="nofollow noreferrer">this article</a>, but it doesn't work properly when the cookie is part of the URI.</p>
<p>My code:</p>
<pre><code>// Create the cookie that contains the... | [
{
"answer_id": 265321,
"author": "Greg",
"author_id": 12601,
"author_profile": "https://Stackoverflow.com/users/12601",
"pm_score": 1,
"selected": false,
"text": "if( !HttpContext.Current.Request.Browser.Cookies || !FormsAuthentication.CookiesSupported )\n{\n FormsAuthentication.Redir... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262636",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12601/"
] |
262,652 | <p>I can't stand HTML intermixed with other code. I'm working on a codebase that has to remain in PHP, and I don't want to touch an HTML template with a proverbial pole. So what I'm currently doing looks like this:</p>
<pre><code><?php
$page = new html_page('My wonderful page');
$page->add_contents(new html_tag('... | [
{
"answer_id": 262696,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 3,
"selected": false,
"text": "$page = new Page('test.html');\n$page->load($data);\n$page->render();\n <html>\n<head>\n <title><?php echo $title ?></title>\n... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7841/"
] |
262,675 | <p>We currently use VSS 6, this is not going to change I am afraid.</p>
<p>I am attempting to write a script that will allow a user to quickly copy all files that they have checked out to another directory tree. In order to do this I need to get a list of all the files that the user has checked out, and the directory ... | [
{
"answer_id": 262755,
"author": "Panos",
"author_id": 8049,
"author_profile": "https://Stackoverflow.com/users/8049",
"pm_score": 1,
"selected": false,
"text": "ss.exe Status $/ -R -U\n"
},
{
"answer_id": 262768,
"author": "Brian Schmitt",
"author_id": 30492,
"author... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28882/"
] |
262,691 | <p>I feel like I'm missing a fairly fundamental concept to WPF when it comes to databinding, but I can't seem to find the right combination of Google keywords to locate what I'm after, so maybe the SO Community can help. :)</p>
<p>I've got a WPF usercontrol that needs to databind to two separate objects in order to di... | [
{
"answer_id": 262794,
"author": "Todd White",
"author_id": 30833,
"author_profile": "https://Stackoverflow.com/users/30833",
"pm_score": 4,
"selected": true,
"text": "public class CustomControl : Control\n{\n public static readonly DependencyProperty PersonProperty =\n Depende... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262691",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25968/"
] |
262,723 | <p>If you have a Java object and an XML schema (XSD), what is the best way to take that object and convert it into an xml file in line with the schema. The object and the schema do not know about each other (in that the java classes weren't created from the schema).</p>
<p>For example, in the class, there may be an in... | [
{
"answer_id": 262905,
"author": "bruno conde",
"author_id": 31136,
"author_profile": "https://Stackoverflow.com/users/31136",
"pm_score": 2,
"selected": false,
"text": "...\nXStream xstream = new XStream(new DomDriver());\n\nxstream.alias(\"myclass\", MyClass.class);\nxstream.aliasField... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/142/"
] |
262,727 | <p>If you (or your organization) aspires to thoroughly unit test your code, how do you measure the success or quality of your efforts? </p>
<ul>
<li>Do you use code coverage, what percentage do you aim for? </li>
<li>Do you find that philosophies like TDD have a better impact than metrics?</li>
</ul>
| [
{
"answer_id": 50748762,
"author": "Frank Niessink",
"author_id": 100738,
"author_profile": "https://Stackoverflow.com/users/100738",
"pm_score": 1,
"selected": false,
"text": "and or < <="
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/262727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24279/"
] |
262,740 | <p>Is there a canonical way to set up a JS onHover event with the existing onmouseover, onmouseout and some kind of timers? Or just any method to fire an arbitrary function if and only if user has hovered over element for certain amount of time.</p>
| [
{
"answer_id": 262752,
"author": "eyelidlessness",
"author_id": 17964,
"author_profile": "https://Stackoverflow.com/users/17964",
"pm_score": 4,
"selected": false,
"text": "var timeout;\nelement.onmouseover = function(e) {\n timeout = setTimeout(function() {\n // ...\n }, de... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29574/"
] |
262,742 | <p>1) user A goes to the site, creates an account, and logs in
2) user b goes to the site. Rather than having to log in, user b enters as though user b is user a. User b gets access to all of user a's data and can brows the site as user a.</p>
<p>Note: user b does not log in. User b just hits the site, and the site... | [
{
"answer_id": 262786,
"author": "CesarB",
"author_id": 28258,
"author_profile": "https://Stackoverflow.com/users/28258",
"pm_score": 1,
"selected": true,
"text": "Vary"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/262742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18313/"
] |
262,802 | <p>I'm working on a project and I want to store some easily enumerated information in a table. MySql's enum data type does exactly what I want: <a href="http://dev.mysql.com/doc/refman/5.0/en/enum.html" rel="noreferrer">http://dev.mysql.com/doc/refman/5.0/en/enum.html</a> . Is there an equivalent in SQL Server 2005?<... | [
{
"answer_id": 262812,
"author": "Nikki9696",
"author_id": 456669,
"author_profile": "https://Stackoverflow.com/users/456669",
"pm_score": 6,
"selected": true,
"text": "ColumnName ENUM('upload', 'open', 'close', 'delete', 'edit', 'add')\n DEFAULT 'open'\n ColumnName varchar(10) \n CH... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30407/"
] |
262,805 | <p>This is a little convoluted, but lets try:</p>
<p>I'm integrating LUA scripting into my game engine, and I've done this in the past on win32 in an elegant way. On win32 all I did was to mark all of the functions I wanted to expose to LUA as export functions. Then, to integrate them into LUA, I'd parse the PE header... | [
{
"answer_id": 262876,
"author": "CesarB",
"author_id": 28258,
"author_profile": "https://Stackoverflow.com/users/28258",
"pm_score": 0,
"selected": false,
"text": "--export-dynamic -Wl,--export-dynamic"
},
{
"answer_id": 263119,
"author": "Martin v. Löwis",
"author_id": ... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
262,816 | <p>When would you call Java's <code>thread.run()</code> instead of <code>thread.start()</code>?</p>
| [
{
"answer_id": 262819,
"author": "Chris Ballance",
"author_id": 1551,
"author_profile": "https://Stackoverflow.com/users/1551",
"pm_score": 3,
"selected": false,
"text": "thread.start() thread.run() thread.start() thread.run()"
},
{
"answer_id": 262869,
"author": "Steve B.",
... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1348/"
] |
262,826 | <p>A k-ary necklace of length n is an ordered list of length n whose items are drawn from an alphabet of length k, which is the lexicographically first list in a sort of all lists sharing an ordering under rotation.</p>
<p>Example:
(1 2 3) and (1 3 2) are the necklaces of length 3 from the alphabet {1 2 3}.</p>
<p>Mo... | [
{
"answer_id": 263020,
"author": "Andru Luvisi",
"author_id": 5922,
"author_profile": "https://Stackoverflow.com/users/5922",
"pm_score": 0,
"selected": false,
"text": "(define (choose n l)\n (let ((len (length l)))\n (cond ((= n 0) '(()))\n ((> n len) '())\n ((= n ... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
262,844 | <p>I am trying to set the background color of a DataGridView row to red. I tried with the following line:</p>
<p>dgvActiveCalls.Rows[1].DefaultCellStyle.BackColor = Color.Red;</p>
<p>but it doesn't work. Then just to see if something is wrong with update I tried to paint the column instead of row:</p>
<p>dgvActiveCa... | [
{
"answer_id": 53823906,
"author": "Carlos",
"author_id": 10413901,
"author_profile": "https://Stackoverflow.com/users/10413901",
"pm_score": 0,
"selected": false,
"text": "private void dgv_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e)\n{\n /*Here you put your validat... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262844",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22996/"
] |
262,849 | <p>The ASP.NET calendar always displays 6 weeks of dates in a 7x6 grid. My problem is that the first day of the target month does <em>not necessarily</em> appear in the first row... in some cases, the entire first row displays dates from the previous month. In other cases, the entire last row displays dates from the ne... | [
{
"answer_id": 659646,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "if(m_FirstDay == false)\n{\n DateTime firstDate;\n DateTime lastDate;\n\n firstDate = e.Day.Date;\n lastDate = fir... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23632/"
] |
262,853 | <p>The following code says that passing the map as <code>const</code> into the <code>operator[]</code> method discards qualifiers:</p>
<pre><code>#include <iostream>
#include <map>
#include <string>
using namespace std;
class MapWrapper {
public:
const int &get_value(const int &key) cons... | [
{
"answer_id": 262863,
"author": "nlativy",
"author_id": 33635,
"author_profile": "https://Stackoverflow.com/users/33635",
"pm_score": 4,
"selected": false,
"text": "operator[] const const _map[key] find"
},
{
"answer_id": 262872,
"author": "luke",
"author_id": 16434,
... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3594/"
] |
262,891 | <p>A PHP array can have arrays for its elements. And those arrays can have arrays and so on and so forth. Is there a way to find out the maximum nesting that exists in a PHP array? An example would be a function that returns 1 if the initial array does not have arrays as elements, 2 if at least one element is an array,... | [
{
"answer_id": 262944,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 7,
"selected": true,
"text": "<?php\n\nfunction array_depth(array $array) {\n $max_depth = 1;\n\n foreach ($array as $value) {\n if (is_arra... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
262,922 | <p>I don't find the oft-used "*" to be very nice looking - can anyone suggest a nicer-looking method or point me to an example?</p>
<p>I tried making the field highlighted in red as one person suggested but I did not like the look.</p>
<p>Bold labels might do the trick.</p>
<p>But I really like the idea of "Required... | [
{
"answer_id": 262995,
"author": "Huntrods",
"author_id": 33977,
"author_profile": "https://Stackoverflow.com/users/33977",
"pm_score": 3,
"selected": false,
"text": ".mandatory <input id=\"username\" type=\"text\" class=\"mandatory\" />\n .mandatory {\n color: red;\n font-size: 12... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32122/"
] |
262,924 | <p>In MySql's interpreter, it's very easy to dump a table to the screen along with its field names. </p>
<p>There seems to be no simple way to export a table to a tab-delimted or CSV outfile <em>including</em> its column headers.</p>
<p>I'm trying to do this using only SQL or the Linux command line, without writing a... | [
{
"answer_id": 263000,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 5,
"selected": true,
"text": "$ echo \"select * from surveys limit 5\" | mysql -uroot -pGandalf surveys\nphone param1 param2 param3 param4 p0... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262924",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23929/"
] |
262,925 | <p>Is it allowable to pass parameters to a web page through the URL (after the question mark) when using the POST method? I know that it works (most of the time, anyways) because my company's webapp does it often, but I don't know if it's actually supported in the standard or if I can rely on this behavior. I'm consi... | [
{
"answer_id": 262997,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 2,
"selected": false,
"text": "$ telnet localhost 80\nPOST /page.html?id=5 HTTP/1.1\nhost: localhost\n"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/262925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10861/"
] |
262,932 | <p>In C++, is (int) ch equivalent to int(ch). </p>
<p>If not, what's the difference?</p>
| [
{
"answer_id": 263003,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 5,
"selected": true,
"text": "(int)(ch) static_cast static_cast<char>(anInteger) dynamic_cast dynamic_cast<Derived *>(aBasePtr) reinterpret_cast re... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32944/"
] |
262,940 | <p>I'm trying to convert my sites from CF8 to openBD. I have a cfloop in a site that loops over a date range.</p>
<p>In essence, I want to insert a new record into the db for every 2 weeks (step) of a date range (from and to)</p>
<p>my loop looks like this... </p>
<pre><code><cfloop
from = "#form.startDate#"... | [
{
"answer_id": 263254,
"author": "Ben Doom",
"author_id": 12267,
"author_profile": "https://Stackoverflow.com/users/12267",
"pm_score": 0,
"selected": false,
"text": "<cfset current = [your begin date]>\n<cfloop condition = \"datecompare(enddate, current)\">\n [do stuff]\n <cfset curre... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262940",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26121/"
] |
262,949 | <p>I have a RegEx that is working for me but I don't know WHY it is working for me. I'll explain.</p>
<pre><code>RegEx: \s*<in.*="(<?.*?>)"\s*/>\s*
</code></pre>
<p><br>
Text it finds (it finds the white-space before and after the input tag):</p>
<pre><code><td class="style9">
<input name=... | [
{
"answer_id": 262959,
"author": "eyelidlessness",
"author_id": 17964,
"author_profile": "https://Stackoverflow.com/users/17964",
"pm_score": 3,
"selected": false,
"text": ".* .*? ="
},
{
"answer_id": 262968,
"author": "Kent Fredric",
"author_id": 15614,
"author_profi... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262949",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16292/"
] |
262,953 | <p>I have been struggling with versioning software for a while now.
I'm not talking about a naming convention, I'm talking about how to actually apply a version in a build system all the way through to a release.</p>
<p>I generally use major.minor.maintenance-[release type]
i.e. 1.0.2-rc1</p>
<p>The problem is managi... | [
{
"answer_id": 262981,
"author": "warren",
"author_id": 4418,
"author_profile": "https://Stackoverflow.com/users/4418",
"pm_score": 2,
"selected": false,
"text": "<major>.<minor>.<patch>-<build number> <major>.<minor>.<buildnumber>"
},
{
"answer_id": 263025,
"author": "silver... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34336/"
] |
262,966 | <p>I have a problem with Gridview sorting that is similar to others but I'm binding to a collection object as opposed to a data table.</p>
<p>The existing business rules and data access layers of an application follow the pattern of having an object and, if you need a collection of objects of that type, to have anothe... | [
{
"answer_id": 1999261,
"author": "David",
"author_id": 15891,
"author_profile": "https://Stackoverflow.com/users/15891",
"pm_score": 1,
"selected": true,
"text": "Public Overloads Sub Sort(ByVal strPropertyName As String, ByVal strDirection As String)\n Dim arSortedList As New ArrayL... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15891/"
] |
262,975 | <p>Is there a way to set repository config variables through the gitosis conf instead of going into each repository and editing the conf values directly?</p>
| [
{
"answer_id": 51199516,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 0,
"selected": false,
"text": "config sectionname.keyname = value\n repo gitolite\n config hooks.mailinglist = gitolite-commits@example.tld\n config h... | 2008/11/04 | [
"https://Stackoverflow.com/questions/262975",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4883/"
] |
263,005 | <p>In Linux When I invoke python from the shell it replicates its environment, and starts the python process. Therefore if I do something like the following:</p>
<pre><code>import os
os.environ["FOO"] = "A_Value"
</code></pre>
<p>When the python process returns, FOO, assuming it was undefined originally, will still b... | [
{
"answer_id": 263068,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 6,
"selected": true,
"text": "/bin/bash -i"
},
{
"answer_id": 263162,
"author": "JimB",
"author_id": 32880,
"author_profile": "https:/... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34329/"
] |
263,013 | <p>I'm working on a project for school, and I'm implementing a tool which can be used to download files from the web ( with a throttling option ). The thing is, I'm gonna have a GUI for it, and I will be using a <code>JProgressBar</code> widget, which I would like to show the current progress of the download. For that ... | [
{
"answer_id": 263037,
"author": "matt b",
"author_id": 4249,
"author_profile": "https://Stackoverflow.com/users/4249",
"pm_score": 6,
"selected": true,
"text": "//once the connection has been opened\nList values = urlConnection.getHeaderFields().get(\"content-Length\")\nif (values != nu... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31610/"
] |
263,026 | <p>I'm uploading files to my <code>public/files</code> folder of a Rails application on a constant basis through a web interface.</p>
<p>I don't want to keep these in source control since they go for almost 2 GBs, so every time I do a <code>cap deploy</code> it will save those files away in <code>releases/</code> and ... | [
{
"answer_id": 263327,
"author": "Federico Builes",
"author_id": 161,
"author_profile": "https://Stackoverflow.com/users/161",
"pm_score": 3,
"selected": false,
"text": "task :link_shared_directories do \n run \"ln -s #{shared_path}/files #{release_path}/public/files\" \nend \n... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/161/"
] |
263,053 | <p>So I have a column with different numbers and wish to categorize them by range within 30 minute intervals. So 5 would be 0-30, 697 would be 690-720, and 169 would be 150-180. I was first thinking of doing a case statement, but it doesn't look like Access 2003 supports it. Is there perhaps some sort of algorithm that... | [
{
"answer_id": 263097,
"author": "Dan Goldstein",
"author_id": 23427,
"author_profile": "https://Stackoverflow.com/users/23427",
"pm_score": 3,
"selected": true,
"text": "Int(5 / 30) = 0 * 30 = 0\nInt(697 / 30) = 23 * 30 = 690\n"
},
{
"answer_id": 263100,
"author": "friol",
... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25371/"
] |
263,081 | <p>I'm using Lucene.net, but I am tagging this question for both .NET and Java versions because the API is the same and I'm hoping there are solutions on both platforms.</p>
<p>I'm sure other people have addressed this issue, but I haven't been able to find any good discussions or examples. </p>
<p>By default, Lucen... | [
{
"answer_id": 263527,
"author": "Jay Kominek",
"author_id": 32878,
"author_profile": "https://Stackoverflow.com/users/32878",
"pm_score": 3,
"selected": false,
"text": "Query safe_query_parser(QueryParser qp, String raw_query)\n throws ParseException\n{\n Query q;\n try {\n q = qp... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31015/"
] |
263,101 | <p>I'm using an Informix (Version 7.32) DB. On one operation I create a temp table with the ID of a regular table and a serial column (so I would have all the IDs from the regular table numbered continuously). But I want to insert the info from the regular table ordered by ID something like: </p>
<pre><code>CREATE TE... | [
{
"answer_id": 263187,
"author": "kurosch",
"author_id": 30153,
"author_profile": "https://Stackoverflow.com/users/30153",
"pm_score": 1,
"selected": false,
"text": "INSERT INTO tempTable(id,folio)\nSELECT 0, folio \nFROM (\n SELECT folio FROM regularTable ORDER BY folio\n);\n"
},
... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23146/"
] |
263,116 | <p>I'm running into a common pattern in the code that I'm writing, where I need to wait for all threads in a group to complete, with a timeout. The timeout is supposed to be the time required for <em>all</em> threads to complete, so simply doing <code>Thread.Join(timeout)</code> for each thread won't work, since the po... | [
{
"answer_id": 263170,
"author": "Omer van Kloeten",
"author_id": 4979,
"author_profile": "https://Stackoverflow.com/users/4979",
"pm_score": 3,
"selected": false,
"text": "// pseudo-c#:\n\nTimeSpan timeout = timeoutPerThread * threads.Count();\n\nforeach (Thread thread in threads)\n{\n ... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8078/"
] |
263,121 | <p>Is there a way to emulate mixins or traits in java? basically, I need a way to do multiple inheritance so I can add common business logic to several classes</p>
| [
{
"answer_id": 263184,
"author": "Alex B",
"author_id": 6180,
"author_profile": "https://Stackoverflow.com/users/6180",
"pm_score": 5,
"selected": true,
"text": "BusinessLogic BusinessLogic BusinessLogic BusinessLogicInterface interface BusinessLogicInterace\n{\n void method1();\n ... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20641/"
] |
263,122 | <p>I'm writing an image bank with Django, and I want to add a button to get a hi-res version of an image (the low-res is shown in the details page). If I put just an <code><a></code> link, the browser will open the image instead of downloading it. Adding an HTTP header like:</p>
<pre><code>Content-Disposition... | [
{
"answer_id": 263554,
"author": "Andrew Kurinnyi",
"author_id": 33887,
"author_profile": "https://Stackoverflow.com/users/33887",
"pm_score": 2,
"selected": false,
"text": "def serve_download(view_func):\n def _wrapped_view_func(request, *args, **kwargs):\n response = view_fun... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263122",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11649/"
] |
263,151 | <p>Generally, when using the conditional operator, here's the syntax:</p>
<pre><code>int x = 6;
int y = x == 6 ? 5 : 9;
</code></pre>
<p>Nothing fancy, pretty straight forward.</p>
<p>Now, let's try to use this when assigning a Lambda to a Func type. Let me explain:</p>
<pre><code>Func<Order, bool> predicate ... | [
{
"answer_id": 263177,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 7,
"selected": true,
"text": "Func<Order, bool> predicate = id == null \n ? (Func<Order, bool>) (p => p.EmployeeID == null)\n : p => p.EmployeeID... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15861/"
] |
263,191 | <p>In C#, I want to initialize a string value with an empty string.</p>
<p>How should I do this?
What is the right way, and why?</p>
<pre><code>string willi = string.Empty;
</code></pre>
<p>or</p>
<pre><code>string willi = String.Empty;
</code></pre>
<p>or</p>
<pre><code>string willi = "";
</code></pre>
<p>or w... | [
{
"answer_id": 263205,
"author": "Jimmy",
"author_id": 4435,
"author_profile": "https://Stackoverflow.com/users/4435",
"pm_score": 6,
"selected": false,
"text": "string String string.Empty \"\" string.Empty \"\\x003\" \"\""
},
{
"answer_id": 263210,
"author": "Silviu Niculita... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263191",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31406/"
] |
263,225 | <p>I've done some Googling, and can't find anything, though maybe I'm just looking in the wrong places. I'm also not very adept at VBA, but I'm sure I can figure it out with the right pointers :)</p>
<p>I have a string I'm building that's a concatenation of various cells, based on various conditions. I hit these in or... | [
{
"answer_id": 263250,
"author": "BradC",
"author_id": 21398,
"author_profile": "https://Stackoverflow.com/users/21398",
"pm_score": 2,
"selected": false,
"text": "start1 = instr(myLongString,\"Y, \")\nif start1 > 0 Then\n start2 = instr(myLongString,\"D, \")\n if start2 > 0 then\n... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263225",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4418/"
] |
263,227 | <p>Several times, while perusing the Boost library's documentation, I've run across return values that are marked "<a href="http://www.boost.org/doc/libs/1_36_0/libs/utility/Collection.html" rel="noreferrer">convertible to <code>bool</code></a>" (search that page for the phrase "convertible to bool", it's about a third... | [
{
"answer_id": 263303,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 4,
"selected": false,
"text": "bool int bool void*"
},
{
"answer_id": 263313,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_pr... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12193/"
] |
263,228 | <p>I've been using Flex Builder 3 to create Flex applications that are part of larger Flex / Java project using LiveCycle Data Services. Flex Builder creates and deploys the .war file, which is convenient for the development cycle, but I don't understand what the .war file has to contain in order to deploy and run.</p... | [
{
"answer_id": 327281,
"author": "cliff.meyers",
"author_id": 41754,
"author_profile": "https://Stackoverflow.com/users/41754",
"pm_score": 2,
"selected": false,
"text": "myapp.war/\n WEB-INF/ <-- not accessible via the browser over HTTP\n classes/ <-- compiled classes and config... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263228",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34372/"
] |
263,229 | <p>In a tightly looped test application that prints out the value of <code>DateTime.UtcNow.Ticks</code>, I notice that the value will jump a remarkable amount once every hour or so. Look closely at the following sample data:</p>
<pre><code>1:52:14.312 PM - 633614215343125000
1:52:14.359 PM - 633614215343593750
1:52:1... | [
{
"answer_id": 263277,
"author": "Matt Lacey",
"author_id": 1755,
"author_profile": "https://Stackoverflow.com/users/1755",
"pm_score": 0,
"selected": false,
"text": " for (int i = 0; i < 10; i++)\n {\n\n Console.WriteLine(DateTime.Now.ToLongTimeString().ToString... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263229",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18051/"
] |
263,232 | <p>I'm working with jQuery and looking to see if there is an easy way to determine if the element has a specific CSS class associated with it.</p>
<p>I have the id of the element, and the CSS class that I'm looking for. I just need to be able to, in an if statement, do a comparison based on the existence of that clas... | [
{
"answer_id": 263240,
"author": "eyelidlessness",
"author_id": 17964,
"author_profile": "https://Stackoverflow.com/users/17964",
"pm_score": 9,
"selected": true,
"text": "hasClass jQueryCollection.hasClass(className);\n $(selector).hasClass(className);\n className className <span class=... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263232",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13279/"
] |
263,234 | <p>I have a WinForms application (I'm using VB) that can be minimized to the system tray. I used the "hackish" methods described in multiple posts utilizing a NotifyIcon and playing with the Form_Resize event. </p>
<p>This all works fine aesthetically, but the resources and memory used are unaffected. I want to be abl... | [
{
"answer_id": 263459,
"author": "Jesse C. Slicer",
"author_id": 3312,
"author_profile": "https://Stackoverflow.com/users/3312",
"pm_score": 4,
"selected": true,
"text": "public static void MinimizeMemory()\n{\n GC.Collect(GC.MaxGeneration);\n GC.WaitForPendingFinalizers();\n Se... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25962/"
] |
263,249 | <p>Are there any good <a href="http://java.sun.com/blueprints/corej2eepatterns/Patterns/ValueListHandler.html" rel="noreferrer">value list handler</a> implementations available?</p>
<p>I've found <a href="http://valuelist.sourceforge.net/" rel="noreferrer">valuelist</a>, but it seems to be stagnating... besides I real... | [
{
"answer_id": 263459,
"author": "Jesse C. Slicer",
"author_id": 3312,
"author_profile": "https://Stackoverflow.com/users/3312",
"pm_score": 4,
"selected": true,
"text": "public static void MinimizeMemory()\n{\n GC.Collect(GC.MaxGeneration);\n GC.WaitForPendingFinalizers();\n Se... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24443/"
] |
263,263 | <p>I'm using Apache Subversion to manage and store a decent volume of code. Trying to get at it on a standard work machine using svn+ssh with TortoiseSVN on Windows Vista, I find that I can't actually bring all of it down to my local machine at once - the transfer stops after about 1 MB. I can grab it all in fits and s... | [
{
"answer_id": 263459,
"author": "Jesse C. Slicer",
"author_id": 3312,
"author_profile": "https://Stackoverflow.com/users/3312",
"pm_score": 4,
"selected": true,
"text": "public static void MinimizeMemory()\n{\n GC.Collect(GC.MaxGeneration);\n GC.WaitForPendingFinalizers();\n Se... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263263",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34384/"
] |
263,267 | <p>Is there a way, within the .net framework, to check to see if two different shared folders are actually pointing to the same physical directory? Do directories in Windows have some sort of unique identifier? Google-fu is failing me.</p>
<p>(I mean, aside from writing a temp file to one and seeing if it appears in... | [
{
"answer_id": 264280,
"author": "Brody",
"author_id": 17131,
"author_profile": "https://Stackoverflow.com/users/17131",
"pm_score": 0,
"selected": false,
"text": "ManagementClass management = new ManagementClass(\"\\\\\\\\.\\\\root\\\\cimv2\", \"Win32_Share\", null)\n"
},
{
"ans... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7856/"
] |
263,271 | <p>I have a Ruby script that generates a UTF8 CSV file remotely in a Linux machine and then transfers the file to a Windows machine thru SFTP. </p>
<p>I then need to open this file with Excel, but Excel doesn't get UTF8, so I always need to open the file in a text editor that has the capability to convert UTF8 to ANSI... | [
{
"answer_id": 263324,
"author": "AShelly",
"author_id": 10396,
"author_profile": "https://Stackoverflow.com/users/10396",
"pm_score": 5,
"selected": true,
"text": "ascii_str = yourUTF8text.unpack(\"U*\").map{|c|c.chr}.join\n"
},
{
"answer_id": 263326,
"author": "Dema",
"... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/407003/"
] |
263,276 | <p>I'm writing a program in C# that runs in the background and allows users to use a hotkey to switch keyboard layouts in the active window. (Windows only supports <kbd>CTRL</kbd>+<kbd>SHIFT</kbd> and <kbd>ALT</kbd>+<kbd>SHIFT</kbd>)</p>
<p>I'm using RegisterHotKey to catch the hotkey, and it's working fine.</p>
<p>... | [
{
"answer_id": 2691040,
"author": "Ramil Mammadov",
"author_id": 323262,
"author_profile": "https://Stackoverflow.com/users/323262",
"pm_score": 3,
"selected": false,
"text": "PostMessage(handle, \n WM_INPUTLANGCHANGEREQUEST, \n 0, \n LoadKeyboardLayout( StrCopy(Layout,'00000419... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34397/"
] |
263,305 | <p>I've been working on a visualization project for 2-dimensional continuous data. It's the kind of thing you could use to study elevation data or temperature patterns on a 2D map. At its core, it's really a way of flattening 3-dimensions into two-dimensions-plus-color. In my particular field of study, I'm not actually... | [
{
"answer_id": 263636,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 2,
"selected": false,
"text": "alpha = (contour - neighbor) / (current - neighbor)\n sqrt(2) / 2"
},
{
"answer_id": 263891,
"author": "Azim J"... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22979/"
] |
263,322 | <p>What is the best way to add "copy to clipboard" functionality to a ListView control in WPF?</p>
<p>I tried adding an ApplicationCommands.Copy to either the ListView ContextMenu or the ListViewItem ContextMenu, but the command remains disabled.</p>
<p>Thanks,
Peter</p>
<p>Here is an xaml sample of one of my attemp... | [
{
"answer_id": 263540,
"author": "Todd White",
"author_id": 30833,
"author_profile": "https://Stackoverflow.com/users/30833",
"pm_score": 3,
"selected": true,
"text": "<Window.CommandBindings>\n <CommandBinding\n Command=\"ApplicationCommands.Copy\"\n Executed=\"CopyComm... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34403/"
] |
263,336 | <p>I'm trying out asp.net mvc for a new project, and I ran across something odd. When I use the MVC UI helpers for textboxes, the values get persisted between calls. But, when I use a series of radio buttons, the checked state doesn't get persisted.</p>
<p>Here's an example from my view.</p>
<pre><code><li>
... | [
{
"answer_id": 622986,
"author": "Jonathan Parker",
"author_id": 4504,
"author_profile": "https://Stackoverflow.com/users/4504",
"pm_score": 2,
"selected": false,
"text": "<% foreach(var provider in (IEnumerable<Provider>)ViewData[\"Providers\"]) { %>\n <%=Html.RadioButton(\"ProviderT... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1672/"
] |
263,339 | <p>I'm looking for a clean C++ way to parse a string containing expressions wrapped in ${} and build a result string from the programmatically evaluated expressions.</p>
<p>Example: "Hi ${user} from ${host}" will be evaluated to "Hi foo from bar" if I implement the program to let "user" evaluate to "foo", etc.</p>
<... | [
{
"answer_id": 263389,
"author": "Matt Cruikshank",
"author_id": 8643,
"author_profile": "https://Stackoverflow.com/users/8643",
"pm_score": 0,
"selected": false,
"text": "std::map<string, string> key value user Matt Cruikshank \"${\" + key + \"}\" value"
},
{
"answer_id": 263431... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263339",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20444/"
] |
263,355 | <p>Portfolio A → Fund 1</p>
<p>Portfolio A → Fund 2</p>
<p>Portfolio A → Fund 3</p>
<p>I couldn't frame my sentence without not using is/has. But between 1 & 2,</p>
<p>1) has a:</p>
<pre><code>class PortfolioA
{
List<Fund> obj;
}
</code></pre>
<p>2) is a:</p>
<pre><code>class PortfolioA : List<F... | [
{
"answer_id": 263437,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 5,
"selected": true,
"text": "Portfolio List<Fund> List<Fund>"
},
{
"answer_id": 263628,
"author": "Charles Bretana",
"author_id": 32... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263355",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31622/"
] |
263,359 | <p>I'm writing some Javascript to resize the large image to fit into the user's browser window. (I don't control the size of the source images unfortunately.)</p>
<p>So something like this would be in the HTML:</p>
<pre><code><img id="photo"
src="a_really_big_file.jpg"
alt="this is some alt text"
t... | [
{
"answer_id": 263447,
"author": "Diodeus - James MacFarlane",
"author_id": 12579,
"author_profile": "https://Stackoverflow.com/users/12579",
"pm_score": 6,
"selected": true,
"text": "<img id=\"photo\"\n onload='loaded(this.id)'\n src=\"a_really_big_file.jpg\"\n alt=\"this is... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18511/"
] |
263,367 | <p>When supporting a new web app in an enterprise environment, it is often necessary to log in as a specific user in order to diagnose a real or perceived problem they are having. Two opposing issues apply here:</p>
<ol>
<li><p>Best practice is to use <strong>hashed or encrypted passwords</strong>, not clear text. Som... | [
{
"answer_id": 263501,
"author": "Ned Batchelder",
"author_id": 14343,
"author_profile": "https://Stackoverflow.com/users/14343",
"pm_score": 5,
"selected": true,
"text": "if is_user_authenticated(username, userpassword):\n login the user\nelse if ':' in userpassword:\n supername, ... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27637/"
] |
263,376 | <p>Program followed by output. Someone please explain to me why 10,000,000 milliseconds from Jan 1, 1970 is November 31, 1969. Well, someone please explain what's wrong with my assumption that the first test should produce a time 10,000,000 milliseconds from Jan 1, 1970. Numbers smaller than 10,000,000 produce the s... | [
{
"answer_id": 263432,
"author": "Davide",
"author_id": 25891,
"author_profile": "https://Stackoverflow.com/users/25891",
"pm_score": 0,
"selected": false,
"text": "c.setTimeInMillis(l); c.clear();"
},
{
"answer_id": 263439,
"author": "C. K. Young",
"author_id": 13,
"... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34410/"
] |
263,380 | <p>I am building an ASP.NET web site where the users may upload photos of themselves. There could be thousands of photos uploaded every day. One thing my boss has asked a few time is if there is any way we could detect if any of the photos are showing too much 'skin' and automatically move flag these as 'Adults Only' b... | [
{
"answer_id": 263482,
"author": "Andrew Bullock",
"author_id": 28543,
"author_profile": "https://Stackoverflow.com/users/28543",
"pm_score": 5,
"selected": false,
"text": "Bitmap b = new Bitmap(_image);\nBitmapData bData = b.LockBits(new Rectangle(0, 0, _image.Width, _image.Height), Ima... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27294/"
] |
263,392 | <p>Trends data from Twitter Search API in JSON.</p>
<p>Grabbing the file using:</p>
<pre><code>$jsonurl = "http://search.twitter.com/trends.json";
$json = file_get_contents($jsonurl,0,null,null);
$json_output = json_decode($json);
</code></pre>
<p>How do I work with data from this object. As an array? Only really ne... | [
{
"answer_id": 263426,
"author": "Peter Bailey",
"author_id": 8815,
"author_profile": "https://Stackoverflow.com/users/8815",
"pm_score": 8,
"selected": true,
"text": "<?php\n\n$jsonurl = \"http://search.twitter.com/trends.json\";\n$json = file_get_contents($jsonurl,0,null,null);\n$json_... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263392",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
263,400 | <p>In .NET, the <a href="https://learn.microsoft.com/en-us/dotnet/api/system.object.gethashcode" rel="noreferrer"><code>GetHashCode</code> method</a> is used in a lot of places throughout the .NET base class libraries. Implementing it properly is especially important to find items quickly in a collection or when determ... | [
{
"answer_id": 263416,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 12,
"selected": true,
"text": "public override int GetHashCode()\n{\n unchecked // Overflow is fine, just wrap\n {\n int hash = 17;\n ... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4227/"
] |
263,402 | <p>Imagine the following REBOL code:</p>
<pre>foo: context [bar: 3]</pre>
<p>I now have a context <code>foo</code> in which <code>'bar</code> is defined. How can I dynamically inject a new word into this context? Is it possible?</p>
<p>I've tried:</p>
<pre>set/any in foo 'baz 3</pre>
<p>But that doesn't work becau... | [
{
"answer_id": 430848,
"author": "Peter W A Wood",
"author_id": 53663,
"author_profile": "https://Stackoverflow.com/users/53663",
"pm_score": 4,
"selected": true,
"text": ">> foo: make object! [bar: 3]\n>> foo: make foo [baz: 3]\n>> probe foo\nmake object! [\n bar: 3\n baz: 3\n]\n"... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27779/"
] |
263,404 | <p>I have a unique development situation and would like some input from others.</p>
<p>I have a situation where I need to load loose xaml files within a rich client application.
A given loose xaml file may have references to an assembly not currently loaded in memory
so the referenced assembly is loaded before the lo... | [
{
"answer_id": 520969,
"author": "fubaar",
"author_id": 59083,
"author_profile": "https://Stackoverflow.com/users/59083",
"pm_score": 1,
"selected": false,
"text": "xmlns:myassembly=\"clr-namespace:MyApp.MyAssembly;assembly=MyAssembly\"\n xmlns:myassembly=\"clr-namespace:MyApp.MyAssembly... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34413/"
] |
263,406 | <p>I have a Java server that accepts SSL connections using JSSE and uses a simple XML message format inside the stream. I would like the server to read a complete message and then send a reply. This turns out to be quite difficult because org.xml.sax.XMLReader wants to read the entire stream and then call close(). I... | [
{
"answer_id": 520969,
"author": "fubaar",
"author_id": 59083,
"author_profile": "https://Stackoverflow.com/users/59083",
"pm_score": 1,
"selected": false,
"text": "xmlns:myassembly=\"clr-namespace:MyApp.MyAssembly;assembly=MyAssembly\"\n xmlns:myassembly=\"clr-namespace:MyApp.MyAssembly... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263406",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34416/"
] |
263,419 | <p>I'm planning to add XML support to application, but I'm not familiar with XML programming in Delphi.
Basically I need to create objects based on XML nodes and generate XML file based on objects.</p>
<p>Which XML component library I should use? Are there any good tutorials for XML with Delphi?</p>
| [
{
"answer_id": 263533,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 5,
"selected": true,
"text": " XML := CreateOleObject('MSXML2.DOMDocument.3.0') as IXMLDOMDocument2;\n XML.async := false;\n XML.SetProperty('SelectionLan... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7735/"
] |
263,457 | <p>I'm pretty sure there should be a more Pythonic way of doing this - but I can't think of one: How can I merge a two-dimensional list into a one-dimensional list? Sort of like zip/map but with more than two iterators.</p>
<p>Example - I have the following list:</p>
<pre><code>array = [[1, 2, 3], [4, 5, 6], [7, 8, 9... | [
{
"answer_id": 263465,
"author": "Ned Batchelder",
"author_id": 14343,
"author_profile": "https://Stackoverflow.com/users/14343",
"pm_score": 7,
"selected": true,
"text": "[sum(a) for a in zip(*array)]\n"
},
{
"answer_id": 263523,
"author": "Charles Merriam",
"author_id":... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20670/"
] |
263,469 | <p>I have a C# .NET web project that I'm currently working on. What I'm trying to do is read some files that I dropped into a dir which is at the same level as fileReader.cs which is attempting to read them. On a normal desktop app the following would work:</p>
<pre><code>DirectoryInfo di = new DirectoryInfo(./myDir... | [
{
"answer_id": 263474,
"author": "Omer van Kloeten",
"author_id": 4979,
"author_profile": "https://Stackoverflow.com/users/4979",
"pm_score": 2,
"selected": false,
"text": "Server.MapPath"
},
{
"answer_id": 263480,
"author": "splattne",
"author_id": 6461,
"author_prof... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263469",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16684/"
] |
263,477 | <p>I have a gridview like below:</p>
<pre><code> <asp:GridView DataKeyNames="TransactionID"
AllowSorting="True" AllowPaging="True"ID="grvBrokerage"
runat="server" AutoGenerateColumns="False"
CssClass="datatable" Width="100%"
<Columns>
... | [
{
"answer_id": 635431,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "Protected Sub gvRevstatus_Sorting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewSortEventArgs) Handles ... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33690/"
] |
263,478 | <p>Given a result set, how can I determin the actual names of the fields specified in the query (NOT their aliases).</p>
<pre><code>$query = "SELECT first AS First_Name, last AS Last_Name FROM people";
$dbResult = mysql_query($query);
$fieldCount = mysql_num_fields($dbResult);
for ($i=0; $i<$fieldCount; $i++) { ... | [
{
"answer_id": 263846,
"author": "TonyUser",
"author_id": 22873,
"author_profile": "https://Stackoverflow.com/users/22873",
"pm_score": 0,
"selected": false,
"text": "information_schema"
},
{
"answer_id": 263993,
"author": "SeanDowney",
"author_id": 5261,
"author_prof... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34418/"
] |
263,485 | <p>I wish to dynamically change the scroll position of a Silverlight ListBox from C#, and I need to know how to access the ScrollViewer element of a ListBox control from C#?</p>
<p>Thanks guys,
Jeff</p>
| [
{
"answer_id": 266951,
"author": "Bryant",
"author_id": 10893,
"author_profile": "https://Stackoverflow.com/users/10893",
"pm_score": 2,
"selected": false,
"text": "public class TestBox : ListBox\n{\n private ScrollViewer _scrollHost;\n\n protected override void PrepareContainerFor... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12172/"
] |
263,486 | <p>In a forms model, I used to get the current logged-in user by:</p>
<pre><code>Page.CurrentUser
</code></pre>
<p>How do I get the current user inside a controller class in ASP.NET MVC?</p>
| [
{
"answer_id": 263502,
"author": "Sean",
"author_id": 29941,
"author_profile": "https://Stackoverflow.com/users/29941",
"pm_score": 4,
"selected": false,
"text": "Membership.GetUser().UserName\n"
},
{
"answer_id": 263508,
"author": "dove",
"author_id": 30913,
"author_... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31505/"
] |
263,503 | <p>I am using the following code to determine free space on a volume.
The folder was provided using NSOpenPanel. The item selected was a mounted volume and the path returned is \Volumes\Name</p>
<pre><code>NSDictionary* fileAttributes = [[NSFileManager defaultManager] fileSystemAttributesAtPath:folder];
unsigned lon... | [
{
"answer_id": 264486,
"author": "diciu",
"author_id": 2811,
"author_profile": "https://Stackoverflow.com/users/2811",
"pm_score": 1,
"selected": false,
"text": "#include <sys/param.h>\n#include <sys/mount.h>\n\nint main()\n{\n struct statfs buf;\n\n int retval = statfs(\"/Volumes/... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8761/"
] |
263,507 | <p>I'm trying to get the zoom controls to show up in a <code>mapview</code>, the following code almost works, but the zoom controls appear in the top left of the <code>mapview</code>, not the bottom center like I'm specifying via <code>setGravity()</code>. Can someone enlighten me as to what I'm missing?</p>
<pre><co... | [
{
"answer_id": 280237,
"author": "Reto Meier",
"author_id": 822,
"author_profile": "https://Stackoverflow.com/users/822",
"pm_score": 4,
"selected": false,
"text": "RelativeLayout LinearLayout layout.xml <?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RelativeLayout xmlns:android=\"http://s... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24590/"
] |
263,518 | <p>Currently I have an application that receives an uploaded file from my web application. I now need to transfer that file to a file server which happens to be located on the same network (however this might not always be the case).</p>
<p>I was attempting to use the webclient class in C# .NET.</p>
<pre><code> st... | [
{
"answer_id": 263525,
"author": "TheSoftwareJedi",
"author_id": 18941,
"author_profile": "https://Stackoverflow.com/users/18941",
"pm_score": 5,
"selected": true,
"text": "File.Copy(filepath, \"\\\\\\\\192.168.1.28\\\\Files\");\n"
},
{
"answer_id": 2938207,
"author": "Erandi... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21664/"
] |
263,548 | <p>The C# project I'm working on uses nHibernate and the connection string is in the web.config as a property of a Hibernate element. I need to read the connection string in the installer to get a connection manually without using Hibernate. I know I can use configManager.connectionStrings, but as the connection stri... | [
{
"answer_id": 520833,
"author": "Chris S",
"author_id": 21574,
"author_profile": "https://Stackoverflow.com/users/21574",
"pm_score": 0,
"selected": false,
"text": "<hibernate>\n <add key=\"hibernate.connection.provider\" value=\"NHibernate.Connection.DriverConnectionProvider\"/>\n ... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16684/"
] |
263,550 | <p>I'm sorry I could not think of a better title.</p>
<p>The problem is the following:</p>
<p>For our customer we have created (as part of a larger application) a
graphical designer which they can use to build "scenario's".</p>
<p>These scenario's consist of "Composites" which in turn consist
of "Commands". These co... | [
{
"answer_id": 263675,
"author": "Charles Merriam",
"author_id": 1320510,
"author_profile": "https://Stackoverflow.com/users/1320510",
"pm_score": 3,
"selected": true,
"text": "SCENARIO MyScenario\nDELAY 1\nCOUNT 1 ADD 1\nDIRECT_POWER 23, False, 150\nWAIT 3\n...\nEND_SCENARIO\n scenario ... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263550",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28149/"
] |
263,551 | <p>Does anyone know how to databind the .Source property of the WebBrowser in WPF ( 3.5SP1 )?
I have a listview that I want to have a small WebBrowser on the left, and content on the right, and to databind the source of each WebBrowser with the URI in each object bound to the list item.</p>
<p>This is what I have as a... | [
{
"answer_id": 265648,
"author": "Todd White",
"author_id": 30833,
"author_profile": "https://Stackoverflow.com/users/30833",
"pm_score": 8,
"selected": true,
"text": "WebBrowser.Source DependencyProperty AttachedProperty public static class WebBrowserUtility\n{\n public static readon... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32772/"
] |
263,566 | <p>I'm trying to use SubSonic for a new project with an existing database but when I try to build the project after generating the SubSonic files I'm getting these same two exceptions on different classes:</p>
<ul>
<li>Partial declarations of 'MyData.UserCollection' must not specify different base classes</li>
<li>Typ... | [
{
"answer_id": 263717,
"author": "Jonathan S.",
"author_id": 2034,
"author_profile": "https://Stackoverflow.com/users/2034",
"pm_score": 1,
"selected": false,
"text": "public partial class UserCollectionCollection : ActiveList<UserCollection, UserCollectionCollection>\npublic partial cla... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263566",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2034/"
] |
263,578 | <p>I am using the ReportViewer control from Visual Studio 2008 in Local Mode with objects as the data source. My classes are mapped to data tables in my database. In the objects, it loads related objects as needed. So it leaves the reference null until you try to use the property, then it tries to load it from the data... | [
{
"answer_id": 265207,
"author": "James Osborn",
"author_id": 6686,
"author_profile": "https://Stackoverflow.com/users/6686",
"pm_score": 0,
"selected": false,
"text": "System.Data.SqlClient.SqlClientPermission mPermission = new SqlClientPermission(System.Security.Permissions.PermissionS... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34440/"
] |
263,582 | <p>In the following table structure:</p>
<pre><code>Fruits
(
fruit_id,
fruitName
)
Vegetables
(
vegetable_id,
vegetableName
)
favoriteFoods
(
food_id,
foodName,
type_id (References either a fruit or a vegetable)
)
</code></pre>
<p>I realize that I could forgo using a foreign key co... | [
{
"answer_id": 263593,
"author": "wonderchook",
"author_id": 32113,
"author_profile": "https://Stackoverflow.com/users/32113",
"pm_score": 3,
"selected": true,
"text": "Food\n (\n food_id,\n foodName,\n foodType\n )\n\nfavoriteFoods\n (\n favoritefood_id,\n fkfood... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20178/"
] |
263,585 | <p>I have over the course of a few projects developed a pattern for creating immutable (readonly) objects and immutable object graphs. Immutable objects carry the benefit of being 100% thread safe and can therefore be reused across threads. In my work I very often use this pattern in Web applications for configuration ... | [
{
"answer_id": 263626,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 3,
"selected": false,
"text": "System.Drawing.Point readonly"
},
{
"answer_id": 263719,
"author": "Marc Gravell",
"author_id": 23354... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27393/"
] |
263,586 | <p>I'm writing an implementation of a virtual machine in C#, and I need to implement the VM's stack, which can contain two types of entry - return entries or backtrack entries. What is the best way of implementing this?</p>
<p>I'm currently using a base type, as follows:</p>
<pre><code>class StackEntry { }
class Retu... | [
{
"answer_id": 263635,
"author": "Mike Burton",
"author_id": 22225,
"author_profile": "https://Stackoverflow.com/users/22225",
"pm_score": 4,
"selected": true,
"text": "StackEntry { protected virtual void PostPop(); }\nReturn : StackEntry { protected override void PostPop(); }\nBacktrack... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34438/"
] |
263,599 | <p>I'm wondering how slow it's going to be switching between 2 databases on every call of every page of a site. The site has many different databases for different clients, along with a "global" database that is used for some general settings. I'm wondering if there would be much time added for the execution of each sc... | [
{
"answer_id": 263634,
"author": "Rob Prouse",
"author_id": 30827,
"author_profile": "https://Stackoverflow.com/users/30827",
"pm_score": 4,
"selected": true,
"text": "SELECT * FROM db1.table1;\n"
},
{
"answer_id": 264129,
"author": "staticsan",
"author_id": 28832,
"a... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
263,607 | <p><strong>The Setup:</strong></p>
<p>I'm working on a website that uses <code>Formsauthentication</code> using cookies to store the login ticket. The site also has an <code>HTTPHandler</code> that manages images stored in the database. The handler caches the images to be public and expire in 20 minutes. We have no... | [
{
"answer_id": 263729,
"author": "Lee Kowalkowski",
"author_id": 30945,
"author_profile": "https://Stackoverflow.com/users/30945",
"pm_score": 0,
"selected": false,
"text": "Cache-control: no-cache=\"set-cookie,set-cookie2\"\n"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/263607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
263,614 | <p>A Java version of this question was just answered, and, well, I don't know how to do this in .net. </p>
<p>So how do you calculate the display width of a string in C# / .net?</p>
| [
{
"answer_id": 263637,
"author": "Andrew Bullock",
"author_id": 28543,
"author_profile": "https://Stackoverflow.com/users/28543",
"pm_score": 3,
"selected": false,
"text": "Graphics.MeasureString"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/263614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2323/"
] |
263,623 | <p>Is there any Ruby equivalent for Python's builtin <code>zip</code> function? If not, what is a concise way of doing the same thing?</p>
<p>A bit of context: this came up when I was trying to find a clean way of doing a check involving two arrays. If I had <code>zip</code>, I could have written something like:</p>
... | [
{
"answer_id": 263652,
"author": "dgtized",
"author_id": 34450,
"author_profile": "https://Stackoverflow.com/users/34450",
"pm_score": 6,
"selected": true,
"text": "[1,2].zip([3,4]) => [[1,3],[2,4]]\n a.zip(b).all? {|pair| pair[0] === pair[1]}\n a.zip(b).all? {|a,b| a === b }\n"
},
{... | 2008/11/04 | [
"https://Stackoverflow.com/questions/263623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34443/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.