qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
222,161 | <p>What interop signature would you use for the following COM method? I am interested particularly in the final two parameters, and whether to try to use <code>MarshalAs</code> with a <code>SizeParamIndex</code> or not.</p>
<pre><code>HRESULT GetOutputSetting(
DWORD dwOutputNum,
LPCWSTR pszName,
WMT_ATTR_DAT... | [
{
"answer_id": 222259,
"author": "EFrank",
"author_id": 28572,
"author_profile": "https://Stackoverflow.com/users/28572",
"pm_score": 1,
"selected": false,
"text": "byte[] pValue,\nref ushort pcbLength\n"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/222161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7532/"
] |
222,175 | <p>I expected <code>A::~A()</code> to be called in this program, but it isn't:</p>
<pre><code>#include <iostream>
struct A {
~A() { std::cout << "~A()" << std::endl; }
};
void f() {
A a;
throw "spam";
}
int main() { f(); }
</code></pre>
<p>However, if I change last line to </p>
<pre><code>... | [
{
"answer_id": 37164776,
"author": "light_keeper",
"author_id": 1243244,
"author_profile": "https://Stackoverflow.com/users/1243244",
"pm_score": 2,
"selected": false,
"text": "extern \"C\""
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/222175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20310/"
] |
222,187 | <p>What's the best way to determine if the version of the JRE installed on a machine is high enough for the application which the user wants to run? Is there a way of doing it using java-only stuff? I'd like the solution to work on Windows/Linux/MacOSX - if the JRE version is too low a message should be displayed. Curr... | [
{
"answer_id": 222372,
"author": "jim",
"author_id": 27628,
"author_profile": "https://Stackoverflow.com/users/27628",
"pm_score": 1,
"selected": false,
"text": "Properties sProp = java.lang.System.getProperties();\nString sVersion = sProp.getProperty(\"java.version\");\nsVersion = sVers... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7337/"
] |
222,188 | <p>They are specially annoying when I need to upload to the server a web solution.</p>
<p>Is there a way of configuring SVN to create the _svn folders outside my working directory?
If not, what is the best way to deal with them when you need to copy only the code?</p>
<p><strong>Update:</strong> Using "svn export" co... | [
{
"answer_id": 222341,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": false,
"text": "robocopy {source} {dest} /MIR /XD _svn /XD .svn\n"
},
{
"answer_id": 222350,
"author": "jdecuyper",
"... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4264/"
] |
222,195 | <p>I have this piece of code (summarized)...</p>
<pre><code>AnsiString working(AnsiString format,...)
{
va_list argptr;
AnsiString buff;
va_start(argptr, format);
buff.vprintf(format.c_str(), argptr);
va_end(argptr);
return buff;
}
</code></pre>
<p>And, on the basis that pass by reference is... | [
{
"answer_id": 222288,
"author": "Eclipse",
"author_id": 8701,
"author_profile": "https://Stackoverflow.com/users/8701",
"pm_score": 6,
"selected": true,
"text": "va_start(argptr, format); \n argptr = (va_list) (&format+1);\n AnsiString working_ptr(const AnsiString *format,...)\n{\n A... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222195",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1737/"
] |
222,214 | <p>In some of our projects, there's an class hierarchy that adds more parameters as it goes down the chain. At the bottom, some of the classes can have up to 30 parameters, 28 of which are just being passed into the super constructor.</p>
<p>I'll acknowledge that using automated DI through something like Guice would b... | [
{
"answer_id": 222246,
"author": "Michael Myers",
"author_id": 13531,
"author_profile": "https://Stackoverflow.com/users/13531",
"pm_score": 4,
"selected": false,
"text": "MyObject obj = new MyObjectBuilder().setXxx(myXxx)\n .setYyy(myYyy)\n ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28038/"
] |
222,217 | <p>I am currently using...</p>
<pre><code>select Table_Name, Column_name, data_type, is_Nullable
from information_Schema.Columns
</code></pre>
<p>...to determine information about columns in a given database for the purposes of generating a DataAccess Layer.</p>
<p><strong>From where can I retrieve information about... | [
{
"answer_id": 222224,
"author": "Galwegian",
"author_id": 3201,
"author_profile": "https://Stackoverflow.com/users/3201",
"pm_score": 7,
"selected": true,
"text": "SELECT K.TABLE_NAME ,\n K.COLUMN_NAME ,\n K.CONSTRAINT_NAME\nFROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS AS C\n ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11356/"
] |
222,218 | <p>I want to change a flash object enclosed within with jQuery after an onClick event. The code I wrote, essentially:</p>
<pre><code>$(enclosing div).html('');
$(enclosing div).html(<object>My New Object</object>);
</code></pre>
<p>works in Firefox but not in IE. I would appreciate pointers or suggestion... | [
{
"answer_id": 222290,
"author": "samjudson",
"author_id": 1908,
"author_profile": "https://Stackoverflow.com/users/1908",
"pm_score": 1,
"selected": false,
"text": "empty() $('#mydiv').empty();\n replaceWith(content)"
},
{
"answer_id": 223564,
"author": "Josh",
"author_i... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222218",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
222,220 | <p>After using <a href="http://us.php.net/array_unique" rel="noreferrer"><code>array_unique</code></a>, an array without the duplicate values is removed. However, it appears that the keys are also removed, which leaves gaps in an array with numerical indexes (although is fine for an associative array). If I iterate usi... | [
{
"answer_id": 222225,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 6,
"selected": true,
"text": "$foo = array_values($foo);"
},
{
"answer_id": 222747,
"author": "Zak",
"author_id": 2112692,
"author_profi... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
222,245 | <p>Does anyone know a good date parser for different languages/locales. The built-in parser of Java (SimpleDateFormat) is very strict. It should complete missing parts with the current date. </p>
<p>For example </p>
<ul>
<li>if I do not enter the year (only day and month) then the current year should be used. </li>
<... | [
{
"answer_id": 222282,
"author": "Joe Liversedge",
"author_id": 4552,
"author_profile": "https://Stackoverflow.com/users/4552",
"pm_score": 4,
"selected": false,
"text": "parseDate String Date"
},
{
"answer_id": 1268828,
"author": "dfa",
"author_id": 89266,
"author_pr... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12631/"
] |
222,248 | <p>When I run this code:</p>
<pre><code>MIXERLINE MixerLine;
memset( &MixerLine, 0, sizeof(MIXERLINE) );
MixerLine.cbStruct = sizeof(MIXERLINE);
MixerLine.dwComponentType = MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT;
mmResult = mixerGetLineInfo( (HMIXEROBJ)m_dwMixerHandle, &MixerLine, MIXER_GETLINEINFOF_COMPONENTTYPE... | [
{
"answer_id": 226201,
"author": "Tim Farley",
"author_id": 4425,
"author_profile": "https://Stackoverflow.com/users/4425",
"pm_score": 0,
"selected": false,
"text": "MIXERCONTROL_CONTROLTYPE_PAN"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/222248",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17958/"
] |
222,266 | <p>In an Open Source <a href="http://honeypot.net/project/pgdbf" rel="nofollow noreferrer">program I
wrote</a>, I'm reading binary data (written by another program) from a file and outputting ints, doubles,
and other assorted data types. One of the challenges is that it needs to
run on 32-bit and 64-bit machines of bo... | [
{
"answer_id": 222323,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 0,
"selected": false,
"text": "0xff (((wrongend & 0xff00000000000000LL) >> 56)\n ((wrongend >> 56) & 0xff)\n"
},
{
"answer_id": 222384,
"autho... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32538/"
] |
222,304 | <p>I have an ActiveRecord model that I would like to convert to xml, but I do not want all the properties rendered in xml. Is there a parameter I can pass into the render method to keep a property from being rendered in xml? </p>
<p>Below is an example of what I am talking about.</p>
<pre><code>def show
@person = P... | [
{
"answer_id": 222357,
"author": "John Topley",
"author_id": 1450,
"author_profile": "https://Stackoverflow.com/users/1450",
"pm_score": 5,
"selected": true,
"text": ":only :except def show\n @person = Person.find(params[:id])\n respond_to do |format|\n format.xml { render :text => ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/215086/"
] |
222,309 | <p>If you provide <code>0</code> as the <code>dayValue</code> in <code>Date.setFullYear</code> you get the last day of the previous month:</p>
<pre><code>d = new Date(); d.setFullYear(2008, 11, 0); // Sun Nov 30 2008
</code></pre>
<p>There is reference to this behaviour at <a href="http://developer.mozilla.org/en/Co... | [
{
"answer_id": 222329,
"author": "Gad",
"author_id": 25152,
"author_profile": "https://Stackoverflow.com/users/25152",
"pm_score": 6,
"selected": false,
"text": "int_d = new Date(2008, 11+1,1);\nd = new Date(int_d - 1);\n"
},
{
"answer_id": 222439,
"author": "Grant Wagner",
... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20074/"
] |
222,319 | <p>I have a query which is starting to cause some concern in my application. I'm trying to understand this EXPLAIN statement better to understand where indexes are potentially missing:</p>
<pre>
+----+-------------+-------+--------+---------------+------------+---------+-------------------------------+----... | [
{
"answer_id": 225976,
"author": "AJ.",
"author_id": 7211,
"author_profile": "https://Stackoverflow.com/users/7211",
"pm_score": 1,
"selected": false,
"text": "sessions partner_id=1 partner_id, sessions users user_id sessions phones status=1 session_id status sessions phones session_id p... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
222,339 | <p>Is there any performance impact or any kind of issues?
The reason I am doing this is that we are doing some synchronization between two set of DBs with similar tables and we want to avoid duplicate PK errors when synchronizing data.</p>
| [
{
"answer_id": 222351,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 3,
"selected": false,
"text": "(CEIL (MAXVALUE - MINVALUE)) / ABS (INCREMENT)\n"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/222339",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25368/"
] |
222,348 | <p>I have a list of about 600 jobs that I can't delete from the command line because they are attached to changelists. The only way I know how to detach them is via the GUI, but that would take forever. Does anyone know a better (i.e., faster) way?</p>
| [
{
"answer_id": 222657,
"author": "raven",
"author_id": 4228,
"author_profile": "https://Stackoverflow.com/users/4228",
"pm_score": 3,
"selected": true,
"text": "p4 fixes > tmp.txt\n job005519 fixed by change 3177 on 2007/11/06 by raven@raven1 (closed)\njob005552 fixed by change 3320 on 2... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4228/"
] |
222,370 | <p>I'm preparing a class on Visual Basic 2005 targeting Visual Basic 6 programmers migrating to the .NET platform.<br /><br/>
I would like a word of advice about whether to recommend them to always enable <strong>Option Strict</strong> or not.<br /><br/>
I've worked exclusively with C-style programming languages, mostl... | [
{
"answer_id": 222458,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 3,
"selected": false,
"text": "Option Strict Option Strict Option Strict On Option Strict"
},
{
"answer_id": 222478,
"author": "Joel Coe... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26396/"
] |
222,375 | <p>I am having trouble using the attribute XPath Selector in ElementTree, which I should be able to do according to the <a href="http://effbot.org/zone/element-xpath.htm" rel="noreferrer">Documentation</a></p>
<p>Here's some sample code</p>
<p><strong>XML</strong></p>
<pre><code><root>
<target name="1">... | [
{
"answer_id": 16105230,
"author": "Albert",
"author_id": 1812813,
"author_profile": "https://Stackoverflow.com/users/1812813",
"pm_score": 5,
"selected": false,
"text": "//target .//target //... @name key=value target[a] root.findall(\".//target\") root.findall(\".//target/a\") root.fin... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4960/"
] |
222,376 | <p>Using MVC with an observer pattern, if a user action requires polling a device (such as a camera) for data, should the polling be done in the Controller and the result passed off the Model or should a request be sent to the Model and the Model itself performs the polling.</p>
<p>This question is my attempt to recon... | [
{
"answer_id": 16105230,
"author": "Albert",
"author_id": 1812813,
"author_profile": "https://Stackoverflow.com/users/1812813",
"pm_score": 5,
"selected": false,
"text": "//target .//target //... @name key=value target[a] root.findall(\".//target\") root.findall(\".//target/a\") root.fin... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24608/"
] |
222,383 | <p>Is there an open source or public domain framework that can document shell scripts similar to what JavaDoc produces? I don't need to limit this just to a specific flavor of shell script, ideally I would like a generic framework for documenting API or command line type commands on a web page that is easy to extend or... | [
{
"answer_id": 222506,
"author": "Steve",
"author_id": 27893,
"author_profile": "https://Stackoverflow.com/users/27893",
"pm_score": 2,
"selected": false,
"text": ": : <<=cut =cut podtest.sh #!/bin/dash\n\necho This is a plain shell script\necho Followed by POD documentation\n\n: <<=cut\... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14680/"
] |
222,385 | <p>Does anyone know what the character entity for a tab is in xhtml?
(Um if there is one)...</p>
| [
{
"answer_id": 222395,
"author": "mipadi",
"author_id": 28804,
"author_profile": "https://Stackoverflow.com/users/28804",
"pm_score": 3,
"selected": false,
"text": "	"
},
{
"answer_id": 222407,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https:... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222385",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18149/"
] |
222,403 | <p>I have the following interface:</p>
<pre><code>internal interface IRelativeTo<T> where T : IObject
{
T getRelativeTo();
void setRelativeTo(T relativeTo);
}
</code></pre>
<p>and a bunch of classes that (should) implement it, such as:</p>
<pre><code>public class AdminRateShift : IObject, IRelativeTo<A... | [
{
"answer_id": 222423,
"author": "Grzenio",
"author_id": 5363,
"author_profile": "https://Stackoverflow.com/users/5363",
"pm_score": 4,
"selected": false,
"text": "void MyFunction<T>(IRelativeTo<T> sth) where T : IObject\n{}\n"
},
{
"answer_id": 222426,
"author": "Marc Gravel... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222403",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3851/"
] |
222,413 | <p>I have a undirected graph with about 100 nodes and about 200 edges. One node is labelled 'start', one is 'end', and there's about a dozen labelled 'mustpass'.</p>
<p>I need to find the shortest path through this graph that starts at 'start', ends at 'end', <strong>and passes through all of the 'mustpass' nodes (in... | [
{
"answer_id": 228248,
"author": "ShreevatsaR",
"author_id": 4958,
"author_profile": "https://Stackoverflow.com/users/4958",
"pm_score": 7,
"selected": true,
"text": "//Precomputation: Find all pairs shortest paths, e.g. using Floyd-Warshall\nn = number of nodes\nfor i=1 to n: for j=1 to... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30014/"
] |
222,414 | <p>I've got a PHP script that needs to invoke a shell script but doesn't care at all about the output. The shell script makes a number of SOAP calls and is slow to complete, so I don't want to slow down the PHP request while it waits for a reply. In fact, the PHP request should be able to exit without terminating the s... | [
{
"answer_id": 222445,
"author": "warren",
"author_id": 4418,
"author_profile": "https://Stackoverflow.com/users/4418",
"pm_score": 9,
"selected": true,
"text": "& exec \" > /dev/null 2>/dev/null &\"\n stdio > stderr 2> /dev/null \" &> /dev/null &\"\n"
},
{
"answer_id": 223745,
... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1103/"
] |
222,442 | <p>I have a database table on a development server that is now fully populated after I set it running with an import routine for a CSV file containing 1.4 million rows.</p>
<p>I ran the Database Publishing Wizard on the table, and now I have a 286MB SQL script on my local machine. The problem is, I can't figure out h... | [
{
"answer_id": 222451,
"author": "Gulzar Nazim",
"author_id": 4337,
"author_profile": "https://Stackoverflow.com/users/4337",
"pm_score": 7,
"selected": false,
"text": "sqlcmd -S myServer\\instanceName -i C:\\myScript.sql\n"
},
{
"answer_id": 29824540,
"author": "PaloDravecky... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222442",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/192/"
] |
222,450 | <p>I'd like to write Python scripts that drive Visual Studio 2008 and Visual C++ 2008. All the examples I've found so far use <code>win32com.client.Dispatch</code>. This works fine for Excel 2007 and Word 2007 but fails for Visual Studio 2008:</p>
<pre><code>import win32com.client
app1 = win32com.client.Dispatch( 'E... | [
{
"answer_id": 223002,
"author": "Dustin Wyatt",
"author_id": 23972,
"author_profile": "https://Stackoverflow.com/users/23972",
"pm_score": 2,
"selected": false,
"text": "import win32com.client\noAutoItX = win32com.client.Dispatch( \"AutoItX3.Control\" )\n\noAutoItX.Opt(\"WinTitleMatchMo... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10559/"
] |
222,453 | <p>I have a property on a domain object that is declared in a many-to-one element. The basic syntax of this property looks like this:</p>
<pre><code><many-to-one name="propertyName" class="propertyClass" fetch="select" not-found="ignore" lazy="proxy" />
</code></pre>
<p>Now, the idea is to have Hibernate NOT e... | [
{
"answer_id": 838676,
"author": "rudolfson",
"author_id": 60127,
"author_profile": "https://Stackoverflow.com/users/60127",
"pm_score": 0,
"selected": false,
"text": "constrained=\"true\" null <many-to-one name=\"haendler\" column=\"VERK_HAENDLOID\" lazy=\"proxy\" /> constrained=\"true\... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222453",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8026/"
] |
222,455 | <p>Here's some background on what I'm trying to do:</p>
<ol>
<li>Open a serial port from a mobile device to a Bluetooth printer.</li>
<li>Send an EPL/2 form to the Bluetooth printer, so that it understands how to treat the data it is about to receive.</li>
<li>Once the form has been received, send some data to the pri... | [
{
"answer_id": 254011,
"author": "Jason Down",
"author_id": 9732,
"author_profile": "https://Stackoverflow.com/users/9732",
"pm_score": 3,
"selected": false,
"text": "serialPort.Handshake = Handshake.RequestToSendXOnXOff;\nserialPort.WriteTimeout = 10000; // Could use a lower value here.... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9732/"
] |
222,456 | <p>I have a Visual Studio solution with four C# projects in it. I want to step into the code of a supporting project in the solution from my main project, but when I use the "Step into" key, it just skips over the call into that other project. I've set breakpoints in the supporting project, and they're ignored, and I c... | [
{
"answer_id": 29745800,
"author": "Matas Vaitkevicius",
"author_id": 1509764,
"author_profile": "https://Stackoverflow.com/users/1509764",
"pm_score": 2,
"selected": false,
"text": "Release Debug"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/222456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8114/"
] |
222,457 | <p>The .NET standard of prefixing an interface name with an I seems to be becoming widespread and isn't just limited to .NET any more. I have come across a lot of Java code that uses this convention (so it wouldn't surprise me if Java used it before C# did). Also Flex uses it, and so on. The placing of an I at the star... | [
{
"answer_id": 222502,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 3,
"selected": false,
"text": "I I I"
},
{
"answer_id": 414375,
"author": "willcodejavaforfood",
"author_id": 51382,
"author_pro... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7122/"
] |
222,463 | <p><strong>Java</strong> is the key here. I need to be able to delete files but users expect to be able to "undelete" from the recycle bin. As far as I can tell this isn't possible. Anyone know otherwise?</p>
| [
{
"answer_id": 222554,
"author": "John Topley",
"author_id": 1450,
"author_profile": "https://Stackoverflow.com/users/1450",
"pm_score": 6,
"selected": true,
"text": "SHFileOperation FO_DELETE SHFILEOPSTRUCT"
},
{
"answer_id": 44737354,
"author": "Damiano",
"author_id": 4... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5054/"
] |
222,464 | <p>I am developing RoR application that works with legacy database and uses ActiveScaffold plugin for fancy CRUD interface.</p>
<p>However one of the tables of my legacy db has composite primary key. I tried using Composite Keys plugin to handle it, but it seems to have conflicts with ACtiveScaffold: I get the followi... | [
{
"answer_id": 12754707,
"author": "Ryan Barton",
"author_id": 204148,
"author_profile": "https://Stackoverflow.com/users/204148",
"pm_score": 0,
"selected": false,
"text": " class CPKReadonlyModel < ActiveRecord::Base\n set_primary_key :id_one # only half of it, but id overridden be... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/404206/"
] |
222,470 | <p>I have to copy quite a lot of files from one folder to another. Currently I am doing it in this way:</p>
<pre><code>string[] files = Directory.GetFiles(rootFolder, "*.xml");
foreach (string file in files)
{
string otherFile = Path.Combine(otherFolder, Path.GetFileName(file));
File.Copy(file, otherFile);
}
<... | [
{
"answer_id": 222727,
"author": "JFV",
"author_id": 1391,
"author_profile": "https://Stackoverflow.com/users/1391",
"pm_score": 1,
"selected": false,
"text": "fsSource = New FileStream(backupPath, FileMode.OpenOrCreate, FileAccess.Read, FileShare.None, 1024, FileOptions.WriteThrough)\nf... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222470",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5363/"
] |
222,471 | <p>I recently started using Linux as my primary OS. What are the tools that I will need to set up a complete programming environment in Linux for C and C++?</p>
| [
{
"answer_id": 222721,
"author": "mwilliams",
"author_id": 23909,
"author_profile": "https://Stackoverflow.com/users/23909",
"pm_score": 2,
"selected": false,
"text": "sudo apt-get install build-essential\n"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/222471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
222,472 | <p>Hmm. I'm trying to deploy a web service to a new server and there is no ASP.NET tab. I've tried running <code>aspnet_regiis</code> from ASP.NET 2.0 directory but this doesn't seem to work. Any ideas anyone?</p>
| [
{
"answer_id": 222487,
"author": "David Mohundro",
"author_id": 4570,
"author_profile": "https://Stackoverflow.com/users/4570",
"pm_score": 3,
"selected": false,
"text": "aspnet_regiis -u\n aspnet_regiis -i\n"
},
{
"answer_id": 222523,
"author": "mdb",
"author_id": 8562,
... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1116/"
] |
222,511 | <p>These two methods exhibit repetition: </p>
<pre><code>public static Expression<Func<Foo, FooEditDto>> EditDtoSelector()
{
return f => new FooEditDto
{
PropertyA = f.PropertyA,
PropertyB = f.PropertyB,
PropertyC = f.PropertyC,
PropertyD = f.PropertyD,
P... | [
{
"answer_id": 222550,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 2,
"selected": false,
"text": "public static Expression<Func<Foo, FooEditDto>> EditDtoSelector()\n{\n return f => MagicCopier<FooEditDto>.Copy(new {... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222511",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29493/"
] |
222,520 | <p>At the moment my code looks like this:</p>
<pre><code># Assign values for saving to the db
$data = array(
'table_of_contents' => $_POST['table_of_contents'],
'length' => $_POST['length']
);
# Check for fields that may not be set
if ( isset($_POST['lossless_copy']) )
{
$data = array(
'lossle... | [
{
"answer_id": 222633,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 2,
"selected": false,
"text": "foreach ($_POST as $key => $value) {\n $data[$key] = $value;\n}\n $fields = array();\n$table = 'Current_Table';\n\n// we are ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4196/"
] |
222,531 | <p>I have something like the following in an ASP.NET MVC application:</p>
<pre><code>IEnumerable<string> list = GetTheValues();
var selectList = new SelectList(list, "SelectedValue");
</code></pre>
<p>And even thought the selected value is defined, it is not being selected on the view. I have this feeling I'm ... | [
{
"answer_id": 222584,
"author": "Tim Scott",
"author_id": 29493,
"author_profile": "https://Stackoverflow.com/users/29493",
"pm_score": 4,
"selected": false,
"text": "IDictionary<string,string> list = GetTheValues();\nvar selectList = new SelectList(list, \"Key\", \"Value\", \"SelectedV... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222531",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5802/"
] |
222,544 | <p>When Xdebug is installed/enabled, standard PHP errors (when set to display in the browser) are replaced with more informative messages that include stack traces for each. Also, I've noticed that it also seems to improve output in other areas such as the var_dump() function, formatting/color-coding the output to make... | [
{
"answer_id": 5487078,
"author": "raveren",
"author_id": 179104,
"author_profile": "https://Stackoverflow.com/users/179104",
"pm_score": 0,
"selected": false,
"text": "var_dump"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/222544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5291/"
] |
222,551 | <p>To use Google Analytics, you put some JavaScript code in your web page which will make an asynchronous request to Google when the page loads.</p>
<p>From what I have read, this shouldn't block or slow down page load times if you include it directly before the end of your HTML Body. To verify this, I want to make t... | [
{
"answer_id": 222571,
"author": "Liam",
"author_id": 18333,
"author_profile": "https://Stackoverflow.com/users/18333",
"pm_score": 0,
"selected": false,
"text": "window.setTimeout(\"pageTracker._trackPageview()\", 5000);\n"
},
{
"answer_id": 222603,
"author": "Greg",
"au... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16148/"
] |
222,557 | <p>Has anyone here ever used C++'s "placement new"? If so, what for? It looks to me like it would only be useful on memory-mapped hardware.</p>
| [
{
"answer_id": 222577,
"author": "Andreas Magnusson",
"author_id": 5811,
"author_profile": "https://Stackoverflow.com/users/5811",
"pm_score": 3,
"selected": false,
"text": "std::vector<> std::vector<> objects vector<>"
},
{
"answer_id": 222578,
"author": "Brian R. Bondy",
... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12193/"
] |
222,561 | <p>I have a few questions related:</p>
<p>1) Is possible to make my program change filetype association but only when is running? Do you see anything wrong with this behavior?</p>
<p>2) The other option that I'm seeing is to let users decide to open with my application or restore default association ... something lik... | [
{
"answer_id": 222799,
"author": "Franci Penov",
"author_id": 17028,
"author_profile": "https://Stackoverflow.com/users/17028",
"pm_score": 2,
"selected": false,
"text": "HKEY_CLASSES_ROOT HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes HKEY_CURRENT_USER\\SOFTWARE\\Classes"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/222561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4386/"
] |
222,572 | <p>I'm curious as to the best route (more looking towards simplicity, not speed or efficiency) to sort a DropDownList in C#/ASP.NET - I've looked at a few recommendations but they aren't clicking well with me.</p>
<p>Edit: Folks, I do not have control over how the data comes into the DropDownList - I cannot modify t... | [
{
"answer_id": 227944,
"author": "SaaS Developer",
"author_id": 7215,
"author_profile": "https://Stackoverflow.com/users/7215",
"pm_score": 4,
"selected": false,
"text": "List<string> items = GetItemsFromSomewhere();\nitems.Sort((x, y) => string.Compare(x, y));\nDropDownListId.DataSource... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24565/"
] |
222,581 | <p>I'm looking for a simple Python script that can minify CSS as part of a web-site deployment process. (Python is the only scripting language supported on the server and full-blown parsers like <a href="http://cthedot.de/cssutils/" rel="noreferrer">CSS Utils</a> are overkill for this project).</p>
<p>Basically I'd li... | [
{
"answer_id": 223689,
"author": "Borgar",
"author_id": 27388,
"author_profile": "https://Stackoverflow.com/users/27388",
"pm_score": 7,
"selected": true,
"text": "import sys, re\n\nwith open( sys.argv[1] , 'r' ) as f:\n css = f.read()\n\n# remove comments - this will break a lot of h... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7167/"
] |
222,598 | <p>I have a generic list of objects in C#, and wish to clone the list. The items within the list are cloneable, but there doesn't seem to be an option to do <code>list.Clone()</code>.</p>
<p>Is there an easy way around this?</p>
| [
{
"answer_id": 222611,
"author": "Anthony Potts",
"author_id": 22777,
"author_profile": "https://Stackoverflow.com/users/22777",
"pm_score": 7,
"selected": false,
"text": "List<int> oldList = new List<int>( );\n// Populate oldList...\n\nList<int> newList = oldList.GetRange(0, oldList.Cou... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30025/"
] |
222,601 | <p>Why is it that in a C# switch statement, for a variable used in multiple cases, you only declare it in the first case?</p>
<p>For example, the following throws the error "A local variable named 'variable' is already defined in this scope".</p>
<pre><code>switch (Type)
{
case Type.A:
string variable... | [
{
"answer_id": 222617,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": -1,
"selected": false,
"text": "switch (Type)\n{\nstring variable;\n\n case Type.A:\n variable = \"x\";\n break;\n c... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10693/"
] |
222,606 | <p>I need a way to detect mouse/keyboard activity on Linux. Something similar to what any IM program would do. If no activity is detected for, say 5 minutes, it will set your IM status to "I'm not here right now".</p>
<p>Any help towards this is appreciated.</p>
<p>Thanks.</p>
| [
{
"answer_id": 222624,
"author": "Keith Twombley",
"author_id": 23866,
"author_profile": "https://Stackoverflow.com/users/23866",
"pm_score": 2,
"selected": false,
"text": "who -u -H"
},
{
"answer_id": 223026,
"author": "ephemient",
"author_id": 20713,
"author_profile... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222606",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
222,629 | <p>I have this simple regex,</p>
<pre><code>[\d]{1,5}
</code></pre>
<p>that matches any integer between 0 and 99999.</p>
<p>How would I modify it so that it didn't match 0, but matches 01 and 10, etc?</p>
<p>I know there is a way to do an OR like so...</p>
<pre><code>[\d]{1,5}|[^0]{1}
</code></pre>
<p>(doesn't ma... | [
{
"answer_id": 222675,
"author": "Chris Marasti-Georg",
"author_id": 96,
"author_profile": "https://Stackoverflow.com/users/96",
"pm_score": 2,
"selected": false,
"text": "[1-9]\\d{0,4}\n ^0*[1-9]\\d{0,4}$\n"
},
{
"answer_id": 222701,
"author": "Markus Jarderot",
"author_... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222629",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6161/"
] |
222,630 | <p>I'm in the process of making my PHP site Unicode-aware. I'm wondering if anyone has experience with the <code>mbstring.func_overload</code> setting, which replaces the normal string functions (e.g. <code>strlen</code>) with their multi-byte equivalents (<code>mb_strlen</code>). There aren't any comments on the PHP m... | [
{
"answer_id": 222664,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 3,
"selected": true,
"text": "strlen()"
},
{
"answer_id": 8985225,
"author": "gphilip",
"author_id": 397935,
"author_profile": "https://St... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4321/"
] |
222,649 | <p>We are seeing this error in a Winform application. Can anyone help on why you would see this error, and more importantly how to fix it or avoid it from happening.</p>
<pre>
System.ComponentModel.Win32Exception: Error creating window handle.
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
a... | [
{
"answer_id": 9811589,
"author": "xlthim",
"author_id": 1284318,
"author_profile": "https://Stackoverflow.com/users/1284318",
"pm_score": 1,
"selected": false,
"text": "if (_form.Handle.ToInt32() > 0)\n{\n _form.Invoke(method, args);\n}\n"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/222649",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
222,652 | <p>A UITableViewCell comes "pre-built" with a UILabel as its one and only subview after you've init'ed it. I'd <em>really</em> like to change the background color of said label, but no matter what I do the color does not change. The code in question:</p>
<pre><code>UILabel* label = (UILabel*)[cell.contentView.subviews... | [
{
"answer_id": 222685,
"author": "Ben Gottlieb",
"author_id": 6694,
"author_profile": "https://Stackoverflow.com/users/6694",
"pm_score": 4,
"selected": true,
"text": "initWithFrame:reuseIdentifier: UILabel UILabel"
},
{
"answer_id": 223437,
"author": "Kendall Helmstetter Gel... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23498/"
] |
222,655 | <p>If you create a class library that uses things from other assemblies, is it possible to embed those other assemblies inside the class library as some kind of resource?</p>
<p>I.e. instead of having <em>MyAssembly.dll</em>, <em>SomeAssembly1.dll</em> and <em>SomeAssembly2.dll</em> sitting on the file system, those o... | [
{
"answer_id": 222680,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 3,
"selected": false,
"text": "ResourceManager"
},
{
"answer_id": 625115,
"author": "Cheeso",
"author_id": 48082,
"author_profile":... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82/"
] |
222,661 | <p>VB.net web system with a SQL Server 2005 backend. I've got a stored procedure that returns a varchar, and we're finally getting values that won't fit in a varchar(8000).</p>
<p>I've changed the return parameter to a varchar(max), but how do I tell the OleDbParameter.Size Property to accept any amount of text?</p>
... | [
{
"answer_id": 222694,
"author": "Ed Altorfer",
"author_id": 26552,
"author_profile": "https://Stackoverflow.com/users/26552",
"pm_score": 3,
"selected": false,
"text": "SqlParameter p = new SqlParameter(\"@RStr\", SqlDbType.VarChar);\np.Direction = ParameterDirection.Output;\n"
},
{... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19074/"
] |
222,681 | <p>I'm lead to believe that I cannot count on the order of items added to a dictionary for enumeration purposes.</p>
<p><strong>Is there a class (generic if possible) to which items may be added with a key and which can be enumerated in addition order or which can be retrieved by key?</strong></p>
<p>Clarification: I... | [
{
"answer_id": 222695,
"author": "Jeff Yates",
"author_id": 23234,
"author_profile": "https://Stackoverflow.com/users/23234",
"pm_score": 2,
"selected": false,
"text": "List Dictionary SortedDictionary KeyedCollection"
},
{
"answer_id": 222742,
"author": "Marcus Griep",
"... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11356/"
] |
222,688 | <p>In a WinForms UserControl, I would pass data to the main GUI thread by calling this.BeginInvoke() from any of the control's methods. What's the equivalent in a Silverlight UserControl?</p>
<p>In other words, how can I take data provided by an arbitrary worker thread and ensure that it gets processed on the main di... | [
{
"answer_id": 222744,
"author": "Timothy Lee Russell",
"author_id": 12919,
"author_profile": "https://Stackoverflow.com/users/12919",
"pm_score": 4,
"selected": true,
"text": "private void UpdateStatus()\n{\n this.Dispatcher.BeginInvoke( delegate { StatusLabel.Text = \"Updated\"; });\n... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222688",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4540/"
] |
222,716 | <p>I am interested in writing a simplistic navigation application as a pet project. After searching around for free map-data I have settled on the <a href="http://www.census.gov/geo/www/tiger/tgrshp2007/tgrshp2007.html" rel="nofollow noreferrer">US Census Bureau TIGER</a> 2007 Line/Shapefile map data. The data is spl... | [
{
"answer_id": 494602,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 3,
"selected": false,
"text": "x x"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/222716",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2635/"
] |
222,740 | <p>I have an HTML input box</p>
<pre><code><input type="text" id="foo" value="bar">
</code></pre>
<p>I've attached a handler for the '<em>keyup</em>' event, but if I retrieve the current value of the input box during the event handler, I get the value as it was, and not as it will be!</p>
<p>I've tried picking... | [
{
"answer_id": 222767,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 6,
"selected": true,
"text": "function showMe(e) {\n// i am spammy!\n alert(e.value);\n}\n....\n<input type=\"text\" id=\"foo\" value=\"bar\" onkeyup=\"showM... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6521/"
] |
222,752 | <p>I have the following tuple, which contains tuples:</p>
<pre><code>MY_TUPLE = (
('A','Apple'),
('C','Carrot'),
('B','Banana'),
)
</code></pre>
<p>I'd like to sort this tuple based upon the <strong>second</strong> value contained in inner-tuples (i.e., sort Apple, Carrot, Banana rather than A, B, C).</p>... | [
{
"answer_id": 222762,
"author": "Markus Jarderot",
"author_id": 22364,
"author_profile": "https://Stackoverflow.com/users/22364",
"pm_score": 6,
"selected": true,
"text": "from operator import itemgetter\n\nMY_SORTED_TUPLE = tuple(sorted(MY_TUPLE, key=itemgetter(1)))\n itemgetter MY_SOR... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10040/"
] |
222,755 | <p>I am using Java Struts, sending it to user using the following codes</p>
<pre><code>response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition", "attachment;filename=" + fileFullName);
</code></pre>
<p>Firstly I hope that this is the correct place for my question... :) I hope
tha... | [
{
"answer_id": 222800,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 0,
"selected": false,
"text": "Expires: 0 Pragma: cache Cache-Control: private"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/222755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25368/"
] |
222,756 | <p>Background:
I'm working on a silverlight (1.0) application that dynamically builds a map of the United States with icons and text overlayed at specific locations. The map works great in the browser and now I need to get a static (printable and insertable into documents/powerpoints) copy of a displayed map.</p>
<p>O... | [
{
"answer_id": 224492,
"author": "Donnelle",
"author_id": 28074,
"author_profile": "https://Stackoverflow.com/users/28074",
"pm_score": 5,
"selected": true,
"text": "\nprivate void ExportCanvas(int width, int height)\n{\n string path = @\"c:\\temp\\Test.tif\";\n FileStream fs = new... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
222,760 | <p>What's the better way to insert cell comments in excel 2007 files programmatically using c# and .net 3.5?</p>
| [
{
"answer_id": 18343598,
"author": "Daniil Shevelev",
"author_id": 1515058,
"author_profile": "https://Stackoverflow.com/users/1515058",
"pm_score": 2,
"selected": false,
"text": "Excel.Range cell; \ncell.AddComment(\"My comment\");\n"
},
{
"answer_id": 37179261,
"author": "C... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30032/"
] |
222,772 | <p>I wanted to compare the datetime which is in this format "7/20/2008" with the ones in the database which is in format "7/20/2008 7:14:53 AM".</p>
<p>I tried using "like" clause but it did not work beacuse the "like" clause uses only string and the one which I am using is date time format.</p>
<p>Can anyone tell ho... | [
{
"answer_id": 222857,
"author": "Inisheer",
"author_id": 2982,
"author_profile": "https://Stackoverflow.com/users/2982",
"pm_score": 1,
"selected": false,
"text": " // Random Date Collection\n List<DateTime> dateTimes = new List<DateTime>();\n dateTimes.Add(DateTime.Parse(\"7/2... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
222,777 | <p>I am working on a site laid out with <code>div</code>s. I am having trouble with one in particular: the training photo <code>div</code>.</p>
<p>If you go to <a href="http://php.wmsgroup.com/eofd6.org/education.html" rel="nofollow noreferrer">http://php.wmsgroup.com/eofd6.org/education.html</a> you'll see a photo un... | [
{
"answer_id": 222829,
"author": "Rob Allen",
"author_id": 149,
"author_profile": "https://Stackoverflow.com/users/149",
"pm_score": 1,
"selected": false,
"text": "<html>\n<head>\n <style type=\"text/css\">\n #leftColumn {\n width: 30%;\n margin: 0px;\n ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30043/"
] |
222,778 | <p>I have an annoying problem which I might be able to somehow circumvent, but on the other hand would much rather be on top of it and understand what exactly is going on, since it looks like this stuff is really here to stay.</p>
<p>Here's the story: I have a simple OpenGL app which works fine: never a major problem ... | [
{
"answer_id": 222795,
"author": "Reunanen",
"author_id": 19254,
"author_profile": "https://Stackoverflow.com/users/19254",
"pm_score": 0,
"selected": false,
"text": "boost::posix_time::ptime pt = boost::posix_time::microsec_clock::universal_time();\n #include"
},
{
"answer_id": ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222778",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19254/"
] |
222,782 | <p>So I'm in the process of getting GIT sold at work. First thing I need is to convince everyone that GIT is better at what they're already used to doing. We currently use Perforce. Anybody else go through a similar sale? Any good links/advice?</p>
<p>One of the big wins is that we can work with it disconnected from t... | [
{
"answer_id": 223963,
"author": "Aristotle Pagaltzis",
"author_id": 9410,
"author_profile": "https://Stackoverflow.com/users/9410",
"pm_score": 7,
"selected": true,
"text": "git-p4raw git bisect"
},
{
"answer_id": 10138304,
"author": "Svend Hansen",
"author_id": 779130,
... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9401/"
] |
222,783 | <p>What is the simplest way to get: <code>http://www.[Domain].com</code> in asp.net?</p>
<p>There doesn't seem to be one method which can do this, the only way I know is to do some string acrobatics on server variables or Request.Url. Anyone?</p>
| [
{
"answer_id": 222812,
"author": "SaaS Developer",
"author_id": 7215,
"author_profile": "https://Stackoverflow.com/users/7215",
"pm_score": 1,
"selected": false,
"text": "System.Web.UI.Page.Request.Url\n"
},
{
"answer_id": 222822,
"author": "Steven A. Lowe",
"author_id": ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25809/"
] |
222,790 | <p>I have a simple interface:</p>
<pre><code>public interface IVisitorsLogController
{
List<VisitorsLog> GetVisitorsLog();
int GetUniqueSubscribersCount();
int GetVisitorsCount();
string GetVisitorsSummary();
}
</code></pre>
<p>the class VisitorsLogController implements this interface.</p>
<p... | [
{
"answer_id": 222887,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 1,
"selected": false,
"text": "ctl = VisitorsLogController.Instance;\n ctl."
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/222790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30046/"
] |
222,792 | <p>How can <strong><code>REVOKE</code></strong> operations on a table be audited in Oracle? Grants can be audited with...</p>
<pre><code>AUDIT GRANT ON *schema.table*;
</code></pre>
<p>Both grants and revokes on system privileges and rolls can be audited with...</p>
<pre><code>AUDIT SYSTEM GRANT;
</code></pre>
<p>... | [
{
"answer_id": 250665,
"author": "Leigh Riffel",
"author_id": 27010,
"author_profile": "https://Stackoverflow.com/users/27010",
"pm_score": 2,
"selected": true,
"text": "audit_sys_operations true audit_trail db_extended"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/222792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27010/"
] |
222,825 | <p>How do you retain the indentation of numbered lists? I have a page where the numbers are pushed off the page. How can I prevent this?</p>
<pre><code><ol style="padding: 0">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
</code></pre>
| [
{
"answer_id": 222923,
"author": "savetheclocktower",
"author_id": 25720,
"author_profile": "https://Stackoverflow.com/users/25720",
"pm_score": 3,
"selected": true,
"text": "ol { margin-left: 30px; }\n"
},
{
"answer_id": 223112,
"author": "Mike Cornell",
"author_id": 419... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222825",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30043/"
] |
222,826 | <p>I have a canvas inside a scrollview. I attached a keydown event handler to the scrollview. For most keys, the handler gets called. </p>
<p>However, for the arrow keys, the handler does not get called. Instead, the scrollview gets scrolled in the appropriate direction.</p>
<p>I also attached a keyup handler to the ... | [
{
"answer_id": 223323,
"author": "Mike Blandford",
"author_id": 28643,
"author_profile": "https://Stackoverflow.com/users/28643",
"pm_score": 2,
"selected": true,
"text": "scrollView.IsTabStop = false;\n\ninvisibleTextBox.Foreground = new SolidColorBrush(Colors.Transparent);\ninvisibleTe... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28643/"
] |
222,827 | <p>First, I know about this: <a href="https://stackoverflow.com/questions/51217/how-would-you-organize-a-subversion-repository-for-in-house-software-projects">How would you organize a Subversion repository for in house software projects?</a>
Next, the actual question:
My team is restructuring our repository and I'm loo... | [
{
"answer_id": 222952,
"author": "SqlRyan",
"author_id": 8114,
"author_profile": "https://Stackoverflow.com/users/8114",
"pm_score": 2,
"selected": false,
"text": "\\Project1\n \\Development (for active dev - what you've called \"Trunk\", containing everything about a project)\n \\Br... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13163/"
] |
222,833 | <p>I currently use the following command, but it's a little unwieldy to type. What's a shorter alternative?</p>
<pre><code>find . -name '*.txt' -exec grep 'sometext' '{}' \; -print
</code></pre>
<p>Here are my requirements:</p>
<ul>
<li>limit to a file extension (I use SVN and don't want to be searching through all... | [
{
"answer_id": 222854,
"author": "Chris Dodd",
"author_id": 29759,
"author_profile": "https://Stackoverflow.com/users/29759",
"pm_score": 2,
"selected": false,
"text": "#!/bin/bash\n\nset -f # disable pathname expansion\n\npattern=\"-iname *.[chsyl] -o -iname *.[ch]pp -o -iname *.hh -o ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29738/"
] |
222,834 | <p>I want to generate some formatted output of data retrieved from an MS-Access database and stored in a <em>DataTable</em> object/variable, myDataTable. However, some of the fields in myDataTable cotain <em>dbNull</em> data. So, the following VB.net code snippet will give errors if the value of any of the fields <em>l... | [
{
"answer_id": 222849,
"author": "Mitchel Sellers",
"author_id": 13279,
"author_profile": "https://Stackoverflow.com/users/13279",
"pm_score": 8,
"selected": true,
"text": "If NOT IsDbNull(myItem(\"sID\")) AndAlso myItem(\"sID\") = sId Then\n 'Do success\nELSE\n 'Failure\nEnd If\n"
... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4612/"
] |
222,839 | <p>I have a WPF window for editing database information, which is represented using an Entity Framework object. When the user closes the window, I'd like to notice in the Closing event whether the information has changed and show a message box offering to save the changes to the database.</p>
<p>Unfortunately, change... | [
{
"answer_id": 224287,
"author": "Donnelle",
"author_id": 28074,
"author_profile": "https://Stackoverflow.com/users/28074",
"pm_score": 4,
"selected": true,
"text": "\n\nprivate void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)\n{\n ForceDataValidation();\n}\... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222839",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30002/"
] |
222,841 | <p>Is there a more efficient way to convert an HTMLCollection to an Array, other than iterating through the contents of said collection and manually pushing each item into an array?</p>
| [
{
"answer_id": 222847,
"author": "harpo",
"author_id": 4525,
"author_profile": "https://Stackoverflow.com/users/4525",
"pm_score": 11,
"selected": true,
"text": "var arr = Array.prototype.slice.call( htmlCollection )\n var arr = [].slice.call(htmlCollection);\n var arr = Array.from(htmlC... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20/"
] |
222,871 | <p>I have generated linq to sql entites but cannot figure out how to assign null to a nullable column. whenever i try to assign null to it it says "there is no implicit type conversion between int and ". BTW the type of the field is int? and the database column is also nullable.</p>
| [
{
"answer_id": 222905,
"author": "Omer van Kloeten",
"author_id": 4979,
"author_profile": "https://Stackoverflow.com/users/4979",
"pm_score": 0,
"selected": false,
"text": "int? Nullable<int> Value int?"
},
{
"answer_id": 223514,
"author": "Robert Paulson",
"author_id": 1... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16439/"
] |
222,877 | <p>What's the difference between:</p>
<pre><code>class Child(SomeBaseClass):
def __init__(self):
super(Child, self).__init__()
</code></pre>
<p>and:</p>
<pre><code>class Child(SomeBaseClass):
def __init__(self):
SomeBaseClass.__init__(self)
</code></pre>
<p>I've seen <code>super</code> being... | [
{
"answer_id": 222922,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 9,
"selected": true,
"text": "super() super() Child"
},
{
"answer_id": 224020,
"author": "mhawke",
"author_id": 21945,
"author_pr... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222877",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25785/"
] |
222,895 | <p>I like LINQ to SQL, but it seems like the classes it generates are tightly coupled to the database they are stored in, which seems like a Bad Thing. </p>
<p>For example, using ye olde Northwind database, if I create the dbml with the Products table, a <code>Product</code> class is generated. I can use this class in... | [
{
"answer_id": 222919,
"author": "Marcus King",
"author_id": 19840,
"author_profile": "https://Stackoverflow.com/users/19840",
"pm_score": 1,
"selected": false,
"text": "Product Product"
},
{
"answer_id": 229905,
"author": "Zachary Yates",
"author_id": 8360,
"author_p... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/736/"
] |
222,897 | <p>Is it possible to extend LINQ-to-SQL entity-classes with constructor-methods and in the same go; make that entity-class inherit from it's data-context class?--In essence converting the entity-class into a business object.</p>
<p>This is the pattern I am currently using:</p>
<pre><code>namespace Xxx
{
public cl... | [
{
"answer_id": 222935,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 1,
"selected": true,
"text": "namespace Xxx.Entities\n{\n public partial class User : IDisposable\n { DataContext ctx;\n\n public static GetUser... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20946/"
] |
222,916 | <p>I have a multi-threaded C++ app which does 3D rendering with the OpenSceneGraph library. I'm planning to kick off OSG's render loop as a separate thread using boost::threads, passing a data structure containing shared state in to the thread. I'm trying to avoid anything too heavyweight (like mutexes) for synchroniza... | [
{
"answer_id": 222926,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 5,
"selected": true,
"text": "std::atomic<bool> volatile"
},
{
"answer_id": 47869744,
"author": "Tadeusz Kopec for Ukraine",
"author_id"... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3114/"
] |
222,925 | <p>In PHP, I want to read a file into a variable and process the PHP in the file at the same time without using output buffering. Is this possible?</p>
<p>Essentially I want to be able to accomplish this without using <code>ob_start()</code>:</p>
<pre><code><?php
ob_start();
include 'myfile.php';
$xhtml = ob_get_c... | [
{
"answer_id": 223081,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "$data = file_get_contents('http://google.com/');\n"
},
{
"answer_id": 223845,
"author": "Zak",
"author_id": 21... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18986/"
] |
222,956 | <p>When using a UITableViewController, the initWithStyle: method automatically creates the underlying UITableView with - according to the documentation - "the correct dimensions".</p>
<p>My problem is that these "correct dimensions" seem 320x460 (the iPhone's screen size), but I'm pushing this TableView/Controller pai... | [
{
"answer_id": 923390,
"author": "Blago",
"author_id": 113999,
"author_profile": "https://Stackoverflow.com/users/113999",
"pm_score": 3,
"selected": false,
"text": "-(void) loadView {\n [self setView:[[[UIView alloc] initWithFrame:CGRectZero] autorelease]];\n [[self view] setAutor... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23498/"
] |
222,957 | <p>Before I get into the details of this problem, I'd like to make the situation clear. Our web analytics company works as a consultant for large sites, and (other than adding a single SCRIPT tag) we have no control over the pages themselves.</p>
<p>Our existing script installs handlers using "old" way (a fancy versio... | [
{
"answer_id": 222990,
"author": "savetheclocktower",
"author_id": 25720,
"author_profile": "https://Stackoverflow.com/users/25720",
"pm_score": 4,
"selected": true,
"text": "elem.onclick = function() { alert(\"foo\"); };\nelem.addEventListener(\"click\", function() { alert(\"bar\"); }, ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30050/"
] |
222,981 | <p>I cannot correctly position the div <code>form</code> in my layout.</p>
<p>By looking at my div placement and css below, does anyone have an idea what I could be doing wrong?</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class... | [
{
"answer_id": 223015,
"author": "Chris Marasti-Georg",
"author_id": 96,
"author_profile": "https://Stackoverflow.com/users/96",
"pm_score": 3,
"selected": true,
"text": "div div clear:left; #projects #projects #form #projects #form {\n margin-top:-180px;\n}\n#projects {\n border-r... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30043/"
] |
222,988 | <p>My code is in c# asp.net 3.5</p>
<p>In the following code the "Msg" has many words with spaces and characters (eg:Failed to prepare Sync Favorites : Directory does not exist: \STL-FNP-02\ryounes$\Sync\Favorites). This "Msg" is pulled from database to a gridview. I am not able to create hyperlink for this "Msg" in g... | [
{
"answer_id": 223062,
"author": "Marcus King",
"author_id": 19840,
"author_profile": "https://Stackoverflow.com/users/19840",
"pm_score": 3,
"selected": true,
"text": "<asp:TemplateField HeaderText=\"Msg\"> \n <asp:HyperLink runat=\"server\" Text='<%# HttpUtility.UrlEncode(Eval(\"Msg... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222988",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
222,996 | <p>I have the following class which uses BinaryReader internally and implements IDisposable.</p>
<pre>
class DisposableClass : IDisposable
{
private BinaryReader reader;
public DisposableClass(Stream stream)
{
reader = new BinaryReader(stream);
}
protected virtu... | [
{
"answer_id": 223020,
"author": "Jeff Yates",
"author_id": 23234,
"author_profile": "https://Stackoverflow.com/users/23234",
"pm_score": 4,
"selected": true,
"text": "Dispose BinaryReader public void Dispose()\n{\n}\n void IDisposable.Dispose()\n{\n}\n IDisposable IDisposable"
},
{
... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1534/"
] |
222,999 | <p>I created a single page (with code behind .vb) and created Public intFileID As Integer</p>
<p>in the Page load I check for the querystring and assign it if available or set intFileID = 0.</p>
<pre><code>Public intFileID As Integer = 0
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Ha... | [
{
"answer_id": 223006,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": "Page.Session[\"MyPage_FileID\"] = intFileID\n"
},
{
"answer_id": 223048,
"author": "jerhinesmith",
"aut... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3747/"
] |
223,013 | <p>I often need to run reduce (also called foldl / foldr, depending on your contexts) in java to aggregate elements of an Itterable. </p>
<p>Reduce takes a collection/iterable/etc, a function of two parameters, and an optional start value (depending on the implementation details). The function is successively applie... | [
{
"answer_id": 223152,
"author": "luke",
"author_id": 25920,
"author_profile": "https://Stackoverflow.com/users/25920",
"pm_score": 3,
"selected": true,
"text": "public interface Reducer<A, T>\n{\n public A foldIn(A accum, T next);\n}\n public class Reductor<A, T>\n{\n private Redu... | 2008/10/21 | [
"https://Stackoverflow.com/questions/223013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3446/"
] |
223,021 | <p>I'm using the 'using' declaration in C++ to add std::string and std::vector to the local namespace (to save typing unnecessary 'std::'s).</p>
<pre><code>using std::string;
using std::vector;
class Foo { /*...*/ };
</code></pre>
<p>What is the scope on this declaration? If I do this in a header, will it inject th... | [
{
"answer_id": 223036,
"author": "Ates Goral",
"author_id": 23501,
"author_profile": "https://Stackoverflow.com/users/23501",
"pm_score": 2,
"selected": false,
"text": "using using"
},
{
"answer_id": 223047,
"author": "Paige Ruten",
"author_id": 813,
"author_profile":... | 2008/10/21 | [
"https://Stackoverflow.com/questions/223021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13300/"
] |
223,032 | <p><a href="http://en.wikipedia.org/wiki/Tf-idf" rel="noreferrer">TF-IDF (term frequency - inverse document frequency)</a> is a staple of information retrieval. It's not a proper model though, and it seems to break down when new terms are introduced into the corpus. How do people handle it when queries or new documen... | [
{
"answer_id": 404145,
"author": "Trochee",
"author_id": 49890,
"author_profile": "https://Stackoverflow.com/users/49890",
"pm_score": 1,
"selected": false,
"text": "_UNKNOWN_"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/223032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15842/"
] |
223,038 | <p>I have run into a common, yet difficult problem. I do not use Photoshop for image manipulation. Since all my work is web-based, <a href="http://en.wikipedia.org/wiki/GIMP" rel="noreferrer">GIMP</a> does what I need in 99% of the situations. The <em>problem</em> is that I occasionally receive <a href="http://en.wikip... | [
{
"answer_id": 4120484,
"author": "Jj.",
"author_id": 43490,
"author_profile": "https://Stackoverflow.com/users/43490",
"pm_score": 4,
"selected": false,
"text": "convert input.psd -colorspace rgb output.png\n Error loading PSD file: Unsupported color mode: CMYK\n Version: ImageMagick 6.... | 2008/10/21 | [
"https://Stackoverflow.com/questions/223038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16339/"
] |
223,040 | <p>If two users edit the same wiki topic, what methods have been used in wikis (or in similar collaborative editing software) to merge the second user's edits with the first?</p>
<p>I'd like a solution that:</p>
<ul>
<li>doesn't require locking</li>
<li>doesn't lose any additions to the page.</li>
<li>It may add extra ... | [
{
"answer_id": 223577,
"author": "Sam Hasler",
"author_id": 2541,
"author_profile": "https://Stackoverflow.com/users/2541",
"pm_score": 3,
"selected": true,
"text": " # When a topic is edited, the user takes a \"lease\" on that topic.\n # If another user tries to also edit the topic ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/223040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2541/"
] |
223,058 | <p><strong><em>Imagine</em></strong> a base class with many constructors and a virtual method</p>
<pre><code>public class Foo
{
...
public Foo() {...}
public Foo(int i) {...}
...
public virtual void SomethingElse() {...}
...
}
</code></pre>
<p>and now i want to create a descendant class that overrid... | [
{
"answer_id": 223068,
"author": "Jeff Yates",
"author_id": 23234,
"author_profile": "https://Stackoverflow.com/users/23234",
"pm_score": 8,
"selected": true,
"text": "base this null"
},
{
"answer_id": 223072,
"author": "James Curran",
"author_id": 12725,
"author_prof... | 2008/10/21 | [
"https://Stackoverflow.com/questions/223058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
223,063 | <p>I would like to create an application that serves web pages internally and can be run in multiple instances on the same machine. To do so, I would like to create an <code>HttpListener</code> that listens on a port that is:</p>
<ol>
<li>Randomly selected </li>
<li>Currently unused</li>
</ol>
<p>Essentially, what I... | [
{
"answer_id": 223188,
"author": "Snooganz",
"author_id": 28224,
"author_profile": "https://Stackoverflow.com/users/28224",
"pm_score": 4,
"selected": false,
"text": " static List<int> usedPorts = new List<int>();\n static Random r = new Random();\n\n public HttpListener CreateN... | 2008/10/21 | [
"https://Stackoverflow.com/questions/223063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
223,070 | <p>I'm looking for a database of commonly installed Windows software. At minimum I need the name of the software and the executable name, but it'd also be nice to have the publisher and the common installation path, etc. Basically, I'd like to be able to query it to find all the software by Adobe and the associated exe... | [
{
"answer_id": 47118501,
"author": "apk",
"author_id": 5104533,
"author_profile": "https://Stackoverflow.com/users/5104533",
"pm_score": 1,
"selected": false,
"text": "SELECT ?monarch ?monarchLabel ?programming_language ?programming_languageLabel ?operating_system ?operating_systemLabel ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/223070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28926/"
] |
223,085 | <p>I'd like to sprinkle some print statements in my code to show where I am and print important values to a console window.</p>
<p>How do I do that, but then be able to turn it off for the release version?</p>
| [
{
"answer_id": 223091,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 5,
"selected": true,
"text": "System.Diagnostics.Debug.Print()"
},
{
"answer_id": 223183,
"author": "PersistenceOfVision",
"author_id":... | 2008/10/21 | [
"https://Stackoverflow.com/questions/223085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9516/"
] |
223,097 | <p>Say you have a web form with some fields that you want to validate to be only some subset of alphanumeric, a minimum or maximum length etc.</p>
<p>You can validate in the client with javascript, you can post the data back to the server and report back to the user, either via ajax or not. You could have the validati... | [
{
"answer_id": 223288,
"author": "pawel",
"author_id": 4879,
"author_profile": "https://Stackoverflow.com/users/4879",
"pm_score": 2,
"selected": false,
"text": "{ \"fieldName1\" : \"error description\", \n\"fieldName2\" : \"another error description\" };\n"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/223097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1348/"
] |
223,115 | <p>Having difficulty articulating this correlated subquery. I have two tables fictitious tables, foo and bar. foo has two fields of foo_id and total_count. bar has two fields, seconds and id.</p>
<p>I need to aggregate the seconds in bar for each individual id and update the total_count in foo. id is a foreign key in... | [
{
"answer_id": 223154,
"author": "Christoph Schiessl",
"author_id": 20467,
"author_profile": "https://Stackoverflow.com/users/20467",
"pm_score": 0,
"selected": false,
"text": "foo id total_count bar foo_id foo.id seconds total_count foo UPDATE foo AS f1\nSET total_count = (\n SELECT SU... | 2008/10/21 | [
"https://Stackoverflow.com/questions/223115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
223,126 | <p>I'm new to Rails development, and I'm trying to figure out how to use an older version of Rails with Apatana's RadRails IDE. I'm trying to help out a friend who has a site built on older version than the one that automatically gets downloaded by RadRails, and I'm pretty sure the two versions wouldn't be compatible ... | [
{
"answer_id": 226219,
"author": "Otto",
"author_id": 9594,
"author_profile": "https://Stackoverflow.com/users/9594",
"pm_score": 3,
"selected": true,
"text": "rails:freeze:gems rake rails:freeze:gems VERSION=2.1.0\n vendor/rails"
},
{
"answer_id": 261753,
"author": "Communit... | 2008/10/21 | [
"https://Stackoverflow.com/questions/223126",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/767/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.