qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
247,412 | <p>I'm trying to log users out when the user's session timeout happens. Logging users out - in my case - requires modifying the user's "online" status in a database.<br>
I was thinking that I might be able to use the observer pattern to make something that would monitor the state of the user session and trigger a call... | [
{
"answer_id": 247687,
"author": "Kibbee",
"author_id": 1862,
"author_profile": "https://Stackoverflow.com/users/1862",
"pm_score": 2,
"selected": false,
"text": "SELECT * FROM Users WHERE LoggedIn=1 AND LastAccess > DATEADD(Minute,-20.GETDATE())\n"
},
{
"answer_id": 7735305,
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247412",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
247,413 | <p>Here's my binding source object: </p>
<pre><code>Public Class MyListObject
Private _mylist As New ObservableCollection(Of String)
Private _selectedName As String
Public Sub New(ByVal nameList As List(Of String), ByVal defaultName As String)
For Each name In nameList
_mylist.Add(na... | [
{
"answer_id": 247482,
"author": "Aaron Fischer",
"author_id": 5618,
"author_profile": "https://Stackoverflow.com/users/5618",
"pm_score": 6,
"selected": true,
"text": "SelectedValue SelectedValue SelectedItem SelectedValue"
},
{
"answer_id": 1262778,
"author": "Mikeb",
"... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/132931/"
] |
247,416 | <p>I'm using several variants of the Validator controls (RequiredFieldValidator, CompareValidator, etc) and am using the CssClass property of the validator. I can see (via Firebug) that the class is being applied, but the validator control itself is adding a style element to it, namely color: red. But I don't want th... | [
{
"answer_id": 247453,
"author": "Keltex",
"author_id": 28260,
"author_profile": "https://Stackoverflow.com/users/28260",
"pm_score": 5,
"selected": true,
"text": ".validator\n{\n color: blue !important;\n}\n"
},
{
"answer_id": 14277151,
"author": "Rich",
"author_id": ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247416",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/232/"
] |
247,422 | <p>I've got a Excel VSTO 2005 application I need to debug, I've tried attaching to the process EXCEL.EXE in Visual Studio 2005 to no avail.</p>
<p>Does anyone know what to do in order to debug managed code running in a VSTO Excel Application?</p>
| [
{
"answer_id": 247436,
"author": "Josh",
"author_id": 5233,
"author_profile": "https://Stackoverflow.com/users/5233",
"pm_score": 4,
"selected": true,
"text": "Debugger.Launch();\n"
},
{
"answer_id": 3148119,
"author": "AMissico",
"author_id": 163921,
"author_profile"... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247422",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18818/"
] |
247,430 | <p>Is there a better way to implement copy construcor for matlab for a handle derived class other than adding a constructor with one input and explicitly copying its properties?</p>
<pre><code>obj.property1 = from.property1;
obj.property2 = from.property2;
</code></pre>
<p>etc.</p>
<p>Thanks,
Dani</p>
| [
{
"answer_id": 248091,
"author": "Mr Fooz",
"author_id": 25050,
"author_profile": "https://Stackoverflow.com/users/25050",
"pm_score": 4,
"selected": true,
"text": "classdef Foo < handle\n properties\n a = 1;\n end\n methods\n function F=Foo(rhs)\n if nargin==0\n % d... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28772/"
] |
247,433 | <p>How exactly can one implement a Log off function when using ASP.NET Forms Authentication on an intranet application?</p>
<p>How will this work if I am an administrator and want to log in "as someone else" into the application?</p>
<p>Please share your ideas</p>
| [
{
"answer_id": 247441,
"author": "Ben Scheirman",
"author_id": 3381,
"author_profile": "https://Stackoverflow.com/users/3381",
"pm_score": 4,
"selected": true,
"text": "FormsAuthentication.SignOut();"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/247433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13370/"
] |
247,446 | <p>I have created a setup project using Visual Studio 2008. After the application is finished installing, I would like to have it start up immediately. Any thoughts on how this can be done?</p>
| [
{
"answer_id": 9024424,
"author": "bendytree",
"author_id": 193896,
"author_profile": "https://Stackoverflow.com/users/193896",
"pm_score": 3,
"selected": false,
"text": "MyApp.Application MyApp.Installer MyApp.Application Add New Item... Installer Class View Code Commit public override ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247446",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/324/"
] |
247,455 | <p>I'm in the process of writing a piece of code that connects to a server spawns a bunch of threads using that connection and does a bunch of "stuff".</p>
<p>There are certain instances where the connection fails and I need to stop everything and start from scratch with a new object.</p>
<p>I wanted to clean up afte... | [
{
"answer_id": 247507,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 2,
"selected": false,
"text": "interrupt stop"
},
{
"answer_id": 12133570,
"author": "Arun Edwin",
"author_id": 1626305,
"author_pr... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20400/"
] |
247,471 | <p>I'm trying to build a shared library (DLL) on Windows, using MSVC 6 (retro!) and I have a peculiar link issue I need to resolve. My shared library must access some global state, controlled by the loading application.</p>
<p>Broadly, what I have is this:</p>
<p>application.c:</p>
<pre><code>static int g_private_v... | [
{
"answer_id": 247588,
"author": "Peter Olsson",
"author_id": 2703,
"author_profile": "https://Stackoverflow.com/users/2703",
"pm_score": 1,
"selected": false,
"text": "__declspec(dllexport) int __stdcall shared_library_method(void)\n{\n\n\n}\n"
},
{
"answer_id": 247669,
"aut... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23309/"
] |
247,474 | <p>A path in Perforce contains files a.txt and b.txt. I'll refer to the main path as mainline.</p>
<p>I've create a branch (called initialbranch) from there which contains just a.txt. I make lots of changes to a.txt, and am very happy with it. However, it's not yet ready for submitting back to mainline. I can easily i... | [
{
"answer_id": 247566,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 3,
"selected": true,
"text": "initialbranch/a.txt secondbranch/a.txt\nmainline/b.txt secondbranch/b.txt\n"
},
{
"answer_id": 247665,
"author":... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20972/"
] |
247,479 | <p>Does anyone know of a script that can select all text references to URLs and automatically replace them with anchor tags pointing to those locations?</p>
<pre><code>For example:
http://www.google.com
would automatically turn into
<a href="http://www.google.com">http://www.google.com</a>
</code></pre... | [
{
"answer_id": 247558,
"author": "Pistos",
"author_id": 28558,
"author_profile": "https://Stackoverflow.com/users/28558",
"pm_score": 2,
"selected": false,
"text": "while line = gets\n puts line.gsub( /(^|[^\"'])(http\\S+)/, \"\\\\1<a href='\\\\2'>\\\\2</a>\" )\nend\n"
},
{
"ans... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4481/"
] |
247,483 | <p>I need to do an <a href="http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods" rel="noreferrer">HTTP GET</a> request in JavaScript. What's the best way to do that?</p>
<p>I need to do this in a Mac OS X dashcode widget.</p>
| [
{
"answer_id": 247498,
"author": "rp.",
"author_id": 2536,
"author_profile": "https://Stackoverflow.com/users/2536",
"pm_score": 6,
"selected": false,
"text": "var xmlHttp = null;\n\nfunction GetCustomerInfo()\n{\n var CustomerNumber = document.getElementById( \"TextBoxCustomerNumber\... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26948/"
] |
247,486 | <p>I'm loading data into a DataSet from an XML file using the ReadXml method. This results in two tables with the same name. One of the tables has a namespace and the other doesn't. I'm trying to reference the table with the namespace. Can anyone tell me how to do this?</p>
<pre><code> Dim reader As XmlTextReade... | [
{
"answer_id": 247498,
"author": "rp.",
"author_id": 2536,
"author_profile": "https://Stackoverflow.com/users/2536",
"pm_score": 6,
"selected": false,
"text": "var xmlHttp = null;\n\nfunction GetCustomerInfo()\n{\n var CustomerNumber = document.getElementById( \"TextBoxCustomerNumber\... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28327/"
] |
247,530 | <p>I've an image that is wrapped in an anchor tag that, through jQuery, triggers an action somewhere else on the page. When I click on the image, two tiny 1px by 1px boxes show up in the upper and lower left corners of the image.</p>
<p>My CSS styles explicitly state no borders for images: <code>a,img { border: 0; }<... | [
{
"answer_id": 247498,
"author": "rp.",
"author_id": 2536,
"author_profile": "https://Stackoverflow.com/users/2536",
"pm_score": 6,
"selected": false,
"text": "var xmlHttp = null;\n\nfunction GetCustomerInfo()\n{\n var CustomerNumber = document.getElementById( \"TextBoxCustomerNumber\... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247530",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32154/"
] |
247,538 | <p>I was looking through the plans for C++0x and came upon <code>std::initializer_list</code> for implementing initializer lists in user classes. This class could not be implemented in C++
without using itself, or else using some "compiler magic". If it could, it wouldn't be needed since whatever technique you used t... | [
{
"answer_id": 247614,
"author": "Daniel Spiewak",
"author_id": 9815,
"author_profile": "https://Stackoverflow.com/users/9815",
"pm_score": 0,
"selected": false,
"text": "Object"
},
{
"answer_id": 248891,
"author": "Max Lybbert",
"author_id": 10593,
"author_profile": ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8701/"
] |
247,541 | <p>I've editing this original question as I think I've narrowed down the problem...</p>
<p>I have one view in my site that will not let me put $document.ready within a masterpage contentplaceholder. I've stripped this page to the bare bones and the only thing that is special about it is it has a custom route in global... | [
{
"answer_id": 247554,
"author": "Ben Scheirman",
"author_id": 3381,
"author_profile": "https://Stackoverflow.com/users/3381",
"pm_score": 2,
"selected": false,
"text": "$(document).ready(function() { alert('loaded'); });\n $().ready(function() { alert('loaded'); });\n$(function() { aler... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5463/"
] |
247,546 | <p>I'm sending an email using the dotnet framework. Here is the template that I'm using to create the message:</p>
<pre><code>Date of Hire: %HireDate%
Annual Salary: %AnnualIncome%
Reason for Request: %ReasonForRequest%
Name of Voluntary Employee: %FirstName% %LastName%
Total Coverage Applied For: %EECoverageAmount%... | [
{
"answer_id": 247939,
"author": "Alex B",
"author_id": 6180,
"author_profile": "https://Stackoverflow.com/users/6180",
"pm_score": 8,
"selected": true,
"text": "Date of Hire: %HireDate%\nAnnual Salary: %AnnualIncome%\nReason for Request: %ReasonForRequest%\n\nName of Voluntary Employee:... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21155/"
] |
247,550 | <p>I have a blank test app created in VS 2005 as ASP.NET application. <a href="http://msdn.microsoft.com/en-us/library/ms998351.aspx" rel="nofollow noreferrer">MSDN says</a> that </p>
<blockquote>
<p>By default, ASP.NET does not use impersonation, and your code runs using the ASP.NET application's process identity.<... | [
{
"answer_id": 247582,
"author": "Rob Stevenson-Leggett",
"author_id": 4950,
"author_profile": "https://Stackoverflow.com/users/4950",
"pm_score": 1,
"selected": false,
"text": "// Declare the logon types as constants\nconst long LOGON32_LOGON_INTERACTIVE = 2;\nconst long LOGON32_LOGON_N... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247550",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/578/"
] |
247,571 | <p>I'm trying filter the child collection of an aggregate root when loading it with Nhibernate. Load a Customer with all their Orders that have been shipped. Is this possible?</p>
| [
{
"answer_id": 248184,
"author": "Tim Scott",
"author_id": 29493,
"author_profile": "https://Stackoverflow.com/users/29493",
"pm_score": 2,
"selected": false,
"text": "<bag name=\"shippedOrders\" ... where=\"Status == 'Shipped'\" >\n <key column=\"CustomerId\" />\n <one-to-many class... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
247,573 | <p>When a web form is submitted and takes the user to another page, it is quite often the case that the user will click the Back button in order to submit the form again (the form is an advanced search in my case.)</p>
<p>How can I reliably preserve the form options selected by the user when they click Back (so they d... | [
{
"answer_id": 247630,
"author": "Pistos",
"author_id": 28558,
"author_profile": "https://Stackoverflow.com/users/28558",
"pm_score": 0,
"selected": false,
"text": "$( document ).ready( function() {\n $.getJSON(\n \"/getformdata.php\",\n function( data ) {\n $.each( data.item... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247573",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24106/"
] |
247,596 | <p>svg is an xml based graphics and you can add JavaScripts to it. I have tried to access to the script functions defined in a svg. The script in my svg is something like this:</p>
<pre><code><svg ... onload="RunScript(evt);"...>
<script type="text/javascript">
...
function RunScript(loadEvent) {
// Get ... | [
{
"answer_id": 247811,
"author": "pdc",
"author_id": 8925,
"author_profile": "https://Stackoverflow.com/users/8925",
"pm_score": 3,
"selected": true,
"text": "iframe"
},
{
"answer_id": 3510064,
"author": "Ms2ger",
"author_id": 33466,
"author_profile": "https://Stackov... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/62776/"
] |
247,607 | <p>I'm trying to use xcodebuild and OCUnit with my Continuous Integration server (<a href="http://www.jetbrains.com/teamcity/" rel="noreferrer">TeamCity</a>). </p>
<p>JetBrains offers test observer implementations for boost::test and CppUnit that format test output in a way that TeamCity can interpret. I need to do ... | [
{
"answer_id": 6149887,
"author": "Johannes Rudolph",
"author_id": 125407,
"author_profile": "https://Stackoverflow.com/users/125407",
"pm_score": 2,
"selected": false,
"text": "+(void)initialize\n{\n [[NSUserDefaults standardUserDefaults] setValue:@\"TeamCityAdapter\" forKey:@\"SenTe... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20480/"
] |
247,621 | <p>What are the correct version numbers for C#? What came out when? Why can't I find any answers about <strong><em>C# 3.5</em></strong>?</p>
<p>This question is primarily to aid those who are searching for an answer using an incorrect version number, e.g. <strong><em>C# 3.5</em></strong>. The hope is that anyone faili... | [
{
"answer_id": 247623,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 13,
"selected": true,
"text": "Dispose IEnumerator IDisposable var dynamic await catch finally Add out unmanaged ref stackalloc fixed fixed == != new ?... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247621",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22656/"
] |
247,626 | <p>How can I set cron to run certain commands every one and a half hours?</p>
| [
{
"answer_id": 247640,
"author": "vfilby",
"author_id": 24279,
"author_profile": "https://Stackoverflow.com/users/24279",
"pm_score": 4,
"selected": false,
"text": "0 0,3,6,9,12,15,18,21 * * * <commands>\n30 1,4,7,10,13,16,19,22 * * * <commands>\n"
},
{
"answer_id": 247643,
"... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25368/"
] |
247,636 | <p>SSIS 2005/2008 does fuzzy lookups and groupings. Is there a feature that does the same in T-SQL?</p>
| [
{
"answer_id": 247653,
"author": "Ian Boyd",
"author_id": 12597,
"author_profile": "https://Stackoverflow.com/users/12597",
"pm_score": 3,
"selected": false,
"text": "SELECT * \nFROM Customers\nWHERE SOUNDEX(Lastname) = SOUNDEX('Stonehouse')\nAND SOUNDEX(Firstname) = SOUNDEX('Scott')\n"
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247636",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2342/"
] |
247,639 | <p>I have seen a codebase recently that I fear is violating alignment constraints. I've scrubbed it to produce a minimal example, given below. Briefly, the players are:</p>
<ul>
<li><p><em>Pool</em>. This is a class which allocates memory efficiently, for some definition of 'efficient'. <em>Pool</em> is guaranteed to ... | [
{
"answer_id": 248826,
"author": "fizzer",
"author_id": 18167,
"author_profile": "https://Stackoverflow.com/users/18167",
"pm_score": 0,
"selected": false,
"text": "member_list_store_d"
},
{
"answer_id": 248860,
"author": "PiNoYBoY82",
"author_id": 13646,
"author_prof... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3778/"
] |
247,656 | <p>What are the current best practices in the Rails world for displaying a calendar month view with event items bound to the days in the month (like in Backpack or Google Calendar, for example)?</p>
<p>I don't need anything like fancy stuff like drag and drop support. I'm just looking for code to let me get a list of... | [
{
"answer_id": 496101,
"author": "user60683",
"author_id": 60683,
"author_profile": "https://Stackoverflow.com/users/60683",
"pm_score": 3,
"selected": false,
"text": " <% calendar_for(@tasks, :year => @year, :month => @month) do |t| %>\n <%= t.head('mon', 'tue', 'wed', 'thu', 'fri',... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30632/"
] |
247,666 | <p>I need to use C# programatically to append several preexisting <code>docx</code> files into a single, long <code>docx</code> file - including special markups like bullets and images. Header and footer information will be stripped out, so those won't be around to cause any problems.</p>
<p>I can find plenty of info... | [
{
"answer_id": 248249,
"author": "Terence Lewis",
"author_id": 32539,
"author_profile": "https://Stackoverflow.com/users/32539",
"pm_score": 2,
"selected": false,
"text": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\n\nusing Microsoft.Office.I... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32471/"
] |
247,668 | <p>I'm trying to access the command line and execute a command, and then return the output to my aspx page. A good example would be running dir on page load of an aspx page and returning the output via Response.Write(). I have tried using the code below. When I try debugging this it runs but never finishes loading and ... | [
{
"answer_id": 247699,
"author": "configurator",
"author_id": 9536,
"author_profile": "https://Stackoverflow.com/users/9536",
"pm_score": 4,
"selected": true,
"text": " si.StartInfo.Arguments = \"dir\";\n si.StartInfo.Arguments = \"/c dir\";\n"
},
{
"answer_id": 24... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32474/"
] |
247,678 | <p>I have a Perl application that parses MediaWiki SQL tables and displays data from multiple wiki pages. I need to be able to re-create the absolute image path to display the images, eg: <code>.../f/fc/Herbs.jpg/300px-Herbs.jpg</code> </p>
<p>From MediaWiki Manual:</p>
<blockquote>
<p>Image_Authorisation: "the [im... | [
{
"answer_id": 248086,
"author": "JDrago",
"author_id": 29060,
"author_profile": "https://Stackoverflow.com/users/29060",
"pm_score": 3,
"selected": true,
"text": "use Digest::MD5 'md5_hex';\nmy $sig = md5_hex( $file->id );\n my $path = '/usr/local/media';\nmap { mkdir($path, 0666); $pat... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32477/"
] |
247,691 | <p>Seems like rel-license only applies to pages not to specific elements... anyone spotted usage for page elements in the wild?</p>
| [
{
"answer_id": 285720,
"author": "Anirvan",
"author_id": 31100,
"author_profile": "https://Stackoverflow.com/users/31100",
"pm_score": 1,
"selected": false,
"text": "rel-license rel-license"
},
{
"answer_id": 582905,
"author": "Scott",
"author_id": 6126,
"author_profi... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247691",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23652/"
] |
247,703 | <p>Is there a (standardized) way to get the name of the current method using c++? </p>
<p>Using GNU GCC you can do this by using the macro <code>__FUNCTION__</code> and <code>__PRETTY_FUNCTION__</code> (surrounded by 2 underscores), however, this is of course non portable. Is there a way to do this in standard c++ or ... | [
{
"answer_id": 247721,
"author": "Michael Burr",
"author_id": 12711,
"author_profile": "https://Stackoverflow.com/users/12711",
"pm_score": 6,
"selected": true,
"text": "__func__ __func__ static const char __func__[] = \"function-name\";\n function-name"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/247703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23163/"
] |
247,706 | <p>In Bash I'm executing a command and putting the result in a variable like this:</p>
<pre>export var=`svn ls`</pre>
<p>But if SVN fails for some reason--say it returns a non-zero error code--export still returns status code 0. How do I detect if the executed command fails?</p>
| [
{
"answer_id": 247751,
"author": "ephemient",
"author_id": 20713,
"author_profile": "https://Stackoverflow.com/users/20713",
"pm_score": 4,
"selected": true,
"text": "var=`svn ls`\nif [[ $? == 0 ]]\nthen\n export var\nelse\n unset var\nfi\n $? svn ls var=`svn ls` && export ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/79/"
] |
247,708 | <p>While the built-in analytics of MOSS2007 are nice to have - they are inadequate at the same time. Any ideas where I can look for a more comprehensive package? Am I missing something?</p>
<p>Thanks,
Carl</p>
| [
{
"answer_id": 247751,
"author": "ephemient",
"author_id": 20713,
"author_profile": "https://Stackoverflow.com/users/20713",
"pm_score": 4,
"selected": true,
"text": "var=`svn ls`\nif [[ $? == 0 ]]\nthen\n export var\nelse\n unset var\nfi\n $? svn ls var=`svn ls` && export ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32480/"
] |
247,718 | <p>I am calling a SQL proc that has 3 OUTPUT params. After the call to the proc one of the params does not return a value when the other two do. Profiler shows that all 3 values are being returned.</p>
<p>The params are declared as follows in the proc...</p>
<pre><code>@UsrVariableID INT OUTPUT,
@OrganisationName NVA... | [
{
"answer_id": 247755,
"author": "Ady",
"author_id": 31395,
"author_profile": "https://Stackoverflow.com/users/31395",
"pm_score": 2,
"selected": false,
"text": "cm.Parameters.Add[\"@OrganisationName\", SqlDbType.NVarChar, 256].Direction = ParameterDirection.Output\ncm.Parameters[\"@Orga... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1127460/"
] |
247,724 | <p>I am creating a Python script where it does a bunch of tasks and one of those tasks is to launch and open an instance of Excel. What is the ideal way of accomplishing that in my script?</p>
| [
{
"answer_id": 247740,
"author": "warren",
"author_id": 4418,
"author_profile": "https://Stackoverflow.com/users/4418",
"pm_score": 3,
"selected": false,
"text": "os.system(\"start excel.exe <path/to/file>\")\n start <filename>"
},
{
"answer_id": 247761,
"author": "crftr",
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4872/"
] |
247,738 | <p>If you have an STL vector which has been resized, is it safe to take the address of element 0 and assume the rest of the vector will follow in memory?</p>
<p>e.g.</p>
<pre><code>vector<char> vc(100);
// do some stuff with vc
vc.resize(200);
char* p = &vc[0];
// do stuff with *p
</code></pre>
| [
{
"answer_id": 247762,
"author": "Frederik Slijkerman",
"author_id": 12416,
"author_profile": "https://Stackoverflow.com/users/12416",
"pm_score": 2,
"selected": false,
"text": "std::vector &myVector.front();\n"
},
{
"answer_id": 247902,
"author": "Michael Burr",
"author_... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4086/"
] |
247,743 | <p>I already know: "Don't use css expressions!" My question is not about whether I should be using an expression or if there is an alternative; my question is simply: <strong>Can I get a css expression to only be evaluated in versions of IE prior to version 7 without using conditional comments?</strong></p>
<p>I occa... | [
{
"answer_id": 247763,
"author": "Diodeus - James MacFarlane",
"author_id": 12579,
"author_profile": "https://Stackoverflow.com/users/12579",
"pm_score": 1,
"selected": false,
"text": ".ie6 .myClass {}\n.ie7 .myClass {}\n.ie .myClass{}\n"
},
{
"answer_id": 247855,
"author": "... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247743",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5628/"
] |
247,745 | <p>I know that <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>B</kbd> launches a solution build, but I would like a shortcut that just builds the current project. Is a custom shortcut my only option?</p>
<p><strong>Edit:</strong> Looks like a custom shortcut is my only option as <kbd>Shift</kbd> + <kbd>F6</kbd> does not wo... | [
{
"answer_id": 22646603,
"author": "Darien Pardinas",
"author_id": 1416294,
"author_profile": "https://Stackoverflow.com/users/1416294",
"pm_score": 6,
"selected": false,
"text": "Alt + B, B -> Build Solution\nAlt + B, R -> Rebuild Solution\nAlt + B, U -> Build current project\nAlt + B, ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247745",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/327/"
] |
247,768 | <p>I am using JSF frontend for a page where an image is uploaded or deleted. Clicking on the upload or delete button causes a postback and the page to reload with the updated status. This however, resets the scroll position of the page. How should I go about retaining the scrollback of this page on the postback actions... | [
{
"answer_id": 3717736,
"author": "Fede",
"author_id": 318583,
"author_profile": "https://Stackoverflow.com/users/318583",
"pm_score": 1,
"selected": false,
"text": "<f:view> \n <h:form>\n <h:commandLink actionListener=\"#{bean.method}\">\n <h:outputText value=\"S... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
247,770 | <p>I want to detect whether module has changed. Now, using inotify is simple, you just need to know the directory you want to get notifications from.</p>
<p>How do I retrieve a module's path in python?</p>
| [
{
"answer_id": 248066,
"author": "Cheery",
"author_id": 21711,
"author_profile": "https://Stackoverflow.com/users/21711",
"pm_score": 5,
"selected": false,
"text": "__file__ os.path.dirname(__file__)\n"
},
{
"answer_id": 248862,
"author": "orestis",
"author_id": 32617,
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21711/"
] |
247,772 | <pre><code>a:3:{i:0;i:4;i:1;i:3;i:2;i:2;}
</code></pre>
<p>Am I right to say that this is an array of size 3 where the key value pairs are <code>0->4</code>, <code>1->3</code>, and <code>2->2</code>?</p>
<p>If so, I find this representation awfully confusing. At first, I thought it was a listing of values (o... | [
{
"answer_id": 247788,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 3,
"selected": false,
"text": "array(4, 3, 2) a i"
},
{
"answer_id": 247804,
"author": "Stefan Gehrig",
"author_id": 11354,
"author_prof... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
247,779 | <p>I have essentially a survey that is shown, and people answer questions a lot like a test,
and there are different paths, it is pretty easy so far, but i wanted to make it more dynamic, so that i can have a generic rule that is for the test with all the paths, to make the evaluator easier to work with currently i ju... | [
{
"answer_id": 248058,
"author": "Robert Rossney",
"author_id": 19403,
"author_profile": "https://Stackoverflow.com/users/19403",
"pm_score": 0,
"selected": false,
"text": "true false question choice choice <rule id=\"1\">\n <question id=\"123\" answer=\"true\" />\n <question id=\"12... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5111/"
] |
247,800 | <p>I don't think this is possible, but if is then I need it :)</p>
<p>I have a auto-generated proxy file from the wsdl.exe command line tool by Visual Studio 2008.</p>
<p>The proxy output is partial classes. I want to override the default constructor that is generated. I would rather not modify the code since it is a... | [
{
"answer_id": 247808,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": -1,
"selected": false,
"text": "public partial class MyWebService : System.Web.Services.Protocols.SoapHttpClientProtocol \n{\n public override MyW... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247800",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4481/"
] |
247,807 | <p>I have this doubt, I've searched the web and the answers seem to be diversified. Is it better to use mysql_pconnect over mysql_connect when connecting to a database via PHP? I read that pconnect scales much better, but on the other hand, being a persistent connection... having 10 000 connections at the same time, al... | [
{
"answer_id": 247944,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 6,
"selected": true,
"text": "LAST_INSERT_ID()"
},
{
"answer_id": 21674339,
"author": "Phoenix",
"author_id": 3269543,
"author_pr... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28388/"
] |
247,818 | <p>Multimap essentially has groups of data sorted by the key. I want a method by which I could access these individual groups and get their aggregate values.
For example, in a <code>std::multimap< string, int ></code> I store </p>
<pre><code>{"Group1", 1},
{"Group1", 2},
{"Group1", 3},
{"Group2", 10},
{"Gro... | [
{
"answer_id": 247852,
"author": "Mark Ransom",
"author_id": 5987,
"author_profile": "https://Stackoverflow.com/users/5987",
"pm_score": 4,
"selected": false,
"text": "multimap::equal_range begin()"
},
{
"answer_id": 247859,
"author": "Greg Rogers",
"author_id": 5963,
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247818",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32492/"
] |
247,819 | <p>I have an application built in Flex Builder 3. It has a fair amount of mxml and as3 code which uses some other custom compenents. I have looked at the documentation on building components which shows how to make a simple mxml or action script component that extends something like a combobox, but I'm lost as to how... | [
{
"answer_id": 248376,
"author": "mmattax",
"author_id": 1638,
"author_profile": "https://Stackoverflow.com/users/1638",
"pm_score": 3,
"selected": true,
"text": "\n//Foo.mxml\n<mx:Appliction xmlns:mx=\"http://www.adobe.com/2006/mxml\">\n <mx:Label text = \"foo\" />\n</mx:Appliction>\... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247819",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
247,833 | <p>I have a Visual Basic .NET program which needs to open and close an Excel spreadsheet. Opening and reading the spreadsheet work fine, but trying to close the Excel 2007 application causes it to hang. It seems to close, but if you look in the task manager the application is still running. The code that I'm using t... | [
{
"answer_id": 247841,
"author": "Eric Ness",
"author_id": 18891,
"author_profile": "https://Stackoverflow.com/users/18891",
"pm_score": 0,
"selected": false,
"text": "GC.Collect()\nGC.WaitForPendingFinalizers()\n\nwbkData.Close(SaveChanges:=False)\nSystem.Runtime.InteropServices.Marshal... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18891/"
] |
247,834 | <p>The scriptaculous wiki has a demo (<a href="http://github.com/madrobby/scriptaculous/wikis/effect-slidedown" rel="nofollow noreferrer">http://github.com/madrobby/scriptaculous/wikis/effect-slidedown</a>) that shows the SlideDown effect in use. However I need to have the same link to slide down if a certain DIV is hi... | [
{
"answer_id": 247845,
"author": "Diodeus - James MacFarlane",
"author_id": 12579,
"author_profile": "https://Stackoverflow.com/users/12579",
"pm_score": 1,
"selected": false,
"text": "function slideMe(myDiv) {\n\n if(Element.visible(myDiv)) {\n //slide up\n\n }\n\n else {\n\... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32495/"
] |
247,837 | <p>I found a while ago (and I want to confirm again) that if you declare a class level variable, you should not call its constructor until the class constructor or load has been called. The reason was performance - but are there other reasons to do or not do this? Are there exceptions to this rule?</p>
<p><strong>ie... | [
{
"answer_id": 248803,
"author": "charles bretana",
"author_id": 32561,
"author_profile": "https://Stackoverflow.com/users/32561",
"pm_score": 2,
"selected": false,
"text": " public SomeClass(PersonObject person) \n\n { \n per = person; \n } \n"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/247837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26685/"
] |
247,856 | <pre><code>List<String> nameList = new List<String>();
DropDownList ddl = new DropDownList();
</code></pre>
<p>List is populated here, then sorted:</p>
<pre><code>nameList.Sort();
</code></pre>
<p>Now I need to drop it into the dropdownlist, which is where I'm having issues (using foreach):</p>
<pre><co... | [
{
"answer_id": 247865,
"author": "Marcus King",
"author_id": 19840,
"author_profile": "https://Stackoverflow.com/users/19840",
"pm_score": 5,
"selected": false,
"text": "DropDownList ddl = new DropDownList();\nddl.DataSource = nameList;\nddl.DataBind();\n"
},
{
"answer_id": 24786... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24565/"
] |
247,857 | <p>I'm trying to think of a naming convention that accurately conveys what's going on within a class I'm designing. On a secondary note, I'm trying to decide between two almost-equivalent user APIs.</p>
<p>Here's the situation:</p>
<p>I'm building a scientific application, where one of the central data structures has... | [
{
"answer_id": 247891,
"author": "jonnii",
"author_id": 4590,
"author_profile": "https://Stackoverflow.com/users/4590",
"pm_score": 2,
"selected": false,
"text": "IInterpolator interpolator = field.GetInterpolator();\nMeasurement measurement = Interpolator.InterpolateAt(...);\n"
},
{... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22979/"
] |
247,858 | <p>In T-SQL, you can do this:</p>
<pre><code>SELECT ProductId, COALESCE(Price, 0)
FROM Products
</code></pre>
<p>How do you do the same thing in Access SQL? I see examples for doing it with Nz in VBA, but I'm looking for the SQL equivalent.</p>
<p>Thanks.</p>
| [
{
"answer_id": 247869,
"author": "pipTheGeek",
"author_id": 28552,
"author_profile": "https://Stackoverflow.com/users/28552",
"pm_score": 6,
"selected": true,
"text": "Nz Nz ISNULL COALESCE"
},
{
"answer_id": 247872,
"author": "Codewerks",
"author_id": 17729,
"author_... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1753/"
] |
247,873 | <p>Am I correct to say the difference between a signed and unsigned integer is:</p>
<ol>
<li>Unsigned can hold a larger positive value and no negative value.</li>
<li>Unsigned uses the leading bit as a part of the value, while the signed version uses the left-most-bit to identify if the number is positive or negative.<... | [
{
"answer_id": 301285,
"author": "Artelius",
"author_id": 31945,
"author_profile": "https://Stackoverflow.com/users/31945",
"pm_score": 7,
"selected": false,
"text": "ADD SUB JAE"
},
{
"answer_id": 4903173,
"author": "Matthew",
"author_id": 19343,
"author_profile": "h... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
247,875 | <p>When is memory allocated in the .NET compact framework? If there is a difference between value and reference types, please detail. Documentation or steps to confirm are appreciated.</p>
<p>In particular, consider this scenario...</p>
<pre><code>private MyClass item; // here?
public void MyMethod()
{
item = n... | [
{
"answer_id": 247898,
"author": "Nicholas Mancuso",
"author_id": 8945,
"author_profile": "https://Stackoverflow.com/users/8945",
"pm_score": 4,
"selected": true,
"text": "private MyClass item; // here?\n public void MyMethod()\n{\n item = new MyClass(); // or here?\n}\n"
},
{
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3619/"
] |
247,888 | <p>We've got VisualSVN Server set up as our Subversion server on Windows, and we use Ankhsvn + TortoiseSVN as clients on our workstations.</p>
<p>How can you configure the server to require commit messages to be non-empty?</p>
| [
{
"answer_id": 247916,
"author": "Jason Jackson",
"author_id": 13103,
"author_profile": "https://Stackoverflow.com/users/13103",
"pm_score": 6,
"selected": true,
"text": "VisualSVNServerHooks.exe check-logmessage VisualSVNServerHooks.exe start-commit pre-commit post-commit pre-revprop-ch... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247888",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3279/"
] |
247,901 | <p>We have a production SQL Server 2005 database server with the production version of our application's database on it. I would like to be able to copy down the data contents of the production database to a development server for testing.</p>
<p>Several sites (and Microsoft's forums) suggest using the Backup/Restore... | [
{
"answer_id": 248078,
"author": "Richard Harrison",
"author_id": 19624,
"author_profile": "https://Stackoverflow.com/users/19624",
"pm_score": 2,
"selected": false,
"text": "DELETE FROM devserv.dbo.tablename;\nSET identity_insert [devserv.dbo.tablename] ON;\nINSERT into devserv.dbo.tabl... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247901",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21973/"
] |
247,909 | <p>I have a lot of constants that are somehow related, at some point I need to pair them, something like this:</p>
<pre><code>const
key1 = '1';
key2 = '2';
key3 = '3';
value1 = 'a';
value2 = 'b';
value3 = 'c';
</code></pre>
<p>I want to avoid doing:</p>
<pre><code>if MyValue = key1 then Result := value1... | [
{
"answer_id": 247935,
"author": "Jozz",
"author_id": 12351,
"author_profile": "https://Stackoverflow.com/users/12351",
"pm_score": 4,
"selected": true,
"text": "MyStringList.Values[Key1] := Value1;\n"
},
{
"answer_id": 255070,
"author": "Jim McKeeth",
"author_id": 255,
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/727/"
] |
247,918 | <p>I have two combos; provinces and cities.
I would like to change cities value when the province combo value changes. Here is my code</p>
<pre><code><div class="cities form">
<?php
$v = $ajax->remoteFunction(array('url' => '/cities/','update' => 'divcity'));
print $form-> input('Province.... | [
{
"answer_id": 282684,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "<?php\n// In the view\n$v = $ajax->remoteFunction(array('url' => '/cities/list','update' => 'divcity'));\nprint $form-> input(... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
247,922 | <p>I have the following code in my Django application:</p>
<pre><code>if 'book' in authorForm.changed_data:
#Do something here...
</code></pre>
<p>I realize Django can tell me which values have changed in my form by utilizing the "changed_data" list object, but I'd like to know the new values of the fields that ha... | [
{
"answer_id": 248200,
"author": "Alex Koshelev",
"author_id": 19772,
"author_profile": "https://Stackoverflow.com/users/19772",
"pm_score": 2,
"selected": false,
"text": "if authorForm.is_valid() and 'book' in authorForm.changed_data:\n new_value = authorForm.cleaned_data['book']\n"
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10040/"
] |
247,928 | <p>I have a PHP client that requests an XML file over HTTP (i.e. loads an XML file via URL). As of now, the XML file is only several KB in size. A problem I can foresee is that the XML becomes several MBs or Gbs in size. I know that this is a huge question and that there are probably a myriad of solutions, but What ... | [
{
"answer_id": 247942,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 0,
"selected": false,
"text": "post_max_size upload_max_filesize"
},
{
"answer_id": 248765,
"author": "Community",
"author_id": -1,
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24059/"
] |
247,929 | <p>I have to connect my rails app in a legacy Postgre database. It uses schemas so in a SQL its is common to use something like </p>
<pre><code>SELECT * FROM "Financial".budget
</code></pre>
<p>I want to write a Budget model but I don't know how to set the table name in this case. I've tried the following:</p>
<ul>
... | [
{
"answer_id": 248788,
"author": "Hates_",
"author_id": 3410,
"author_profile": "https://Stackoverflow.com/users/3410",
"pm_score": 0,
"selected": false,
"text": "set_table_name \"Financial.budget\"\n"
},
{
"answer_id": 251151,
"author": "Patryk Kordylewski",
"author_id":... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247929",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19224/"
] |
247,936 | <p>Lately I've been in the habit of assigning integer values to constants and simply using the constant name as a means of identifying its purpose. However, in some cases this has resulted in the need to write a function like typeToString($const) when a string representation is needed. Obviously this is inefficient and... | [
{
"answer_id": 247945,
"author": "Jasper Bekkers",
"author_id": 31486,
"author_profile": "https://Stackoverflow.com/users/31486",
"pm_score": 0,
"selected": false,
"text": "$foo = new Foo('guest');"
},
{
"answer_id": 247963,
"author": "Greg",
"author_id": 24181,
"auth... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5291/"
] |
247,946 | <p>I have a .NET UserControl (FFX 3.5). This control contains several child Controls - a Panel, a couple Labels, a couple TextBoxes, and yet another custom Control. I want to handle a right click anywhere on the base Control - so a right click on any child control (or child of a child in the case of the Panel). I'd ... | [
{
"answer_id": 248017,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 6,
"selected": true,
"text": "void initControlsRecursive(ControlCollection coll)\n { \n foreach (Control c in coll) \n { \n c.MouseClick... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247946",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13154/"
] |
247,948 | <p>Is there a better way than the following to check to see if a string is nil OR has a length of 0 in Ruby?</p>
<pre class="lang-ruby prettyprint-override"><code>if !my_string || my_string.length == 0
return true
else
return false
end
</code></pre>
<p>In C# there's the handy</p>
<pre class="lang-csharp prettypr... | [
{
"answer_id": 247971,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 2,
"selected": false,
"text": "nil? if a_variable.nil?\n # the variable has a nil value\nend\n empty? if a_string.empty?\n # the string is empty\n}... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/650/"
] |
247,954 | <p>I have a Tab Control with multiple Tab Pages. I want to be able to fade the tabs back and forth. I don't see an opacity option on the Tab Controls. Is there a way to cause a fade effect when I switch from one Tab Page to another?</p>
| [
{
"answer_id": 257037,
"author": "Kevin W Lee",
"author_id": 26474,
"author_profile": "https://Stackoverflow.com/users/26474",
"pm_score": -1,
"selected": false,
"text": "<meta http-equiv=\"Page-Enter\" content=\"blendTrans(Duration=0)\">\n<meta http-equiv=\"Page-Exit\" content=\"blendTr... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19802/"
] |
247,961 | <p>Exception: Failed to compare two elements in the array.</p>
<pre><code>private void assignNames(DropDownList ddl, Hashtable names)
{
List<ListItem> nameList = new List<ListItem>();
if (ddl != null)
{
ddl.ClearSelection();
ddl.Items.Add(new ListItem("Select Author"));
... | [
{
"answer_id": 247983,
"author": "Marcus King",
"author_id": 19840,
"author_profile": "https://Stackoverflow.com/users/19840",
"pm_score": 1,
"selected": false,
"text": "List<string> auhtorNames;\nauthorNames.Sort();\nddl.DataSource = authorNames;\nddl.DataBind();\n"
},
{
"answer... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24565/"
] |
247,977 | <p>I have this in some WSDL:</p>
<pre><code><element name="startDate" type="xsd:dateTime"/>
<element name="endDate" type="xsd:dateTime"/>
</code></pre>
<p>Which results in the following text in the SOAP envelope:</p>
<pre><code><startDate>2008-10-29T12:01:05<... | [
{
"answer_id": 248099,
"author": "Dan Finucane",
"author_id": 30026,
"author_profile": "https://Stackoverflow.com/users/30026",
"pm_score": 1,
"selected": false,
"text": "DateTime startDate = DateTime.Now;\nstring startDateString = System.Xml.XmlConvert.ToString(startDate);\n DateTime st... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3275/"
] |
247,991 | <p>I would like to display a Drupal view without the page template that normally surrounds it - I want just the plain HTML content of the view's nodes.</p>
<p>This view would be included in another, non-Drupal site.</p>
<p>I expect to have to do this with a number of views, so a solution that lets me set these up rap... | [
{
"answer_id": 248044,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 1,
"selected": false,
"text": "// page.tpl.php\n<div id=\"page\"><?php print $content ?></div>\n theme_registry_alter() function modulejustforalteration_theme... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1902010/"
] |
248,011 | <p><code>pre</code> tags are super-useful for code blocks in HTML and for debugging output while writing scripts, but how do I make the text word-wrap instead of printing out one long line?</p>
| [
{
"answer_id": 248013,
"author": "adambox",
"author_id": 2462,
"author_profile": "https://Stackoverflow.com/users/2462",
"pm_score": 11,
"selected": true,
"text": "pre {\n white-space: pre-wrap; /* Since CSS 2.1 */\n white-space: -moz-pre-wrap; /* Mozilla, since 1999 */\n ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2462/"
] |
248,014 | <p>We have always had languages that were preferable to be used in a particular scenario. For a quick prototype development, VB6 was an obvious choice. VB6 was chosen in projects that had a simple desktop user interface and standard and un-complicated database interaction requirements. If you wanted to develop a device... | [
{
"answer_id": 248510,
"author": "OwenP",
"author_id": 2547,
"author_profile": "https://Stackoverflow.com/users/2547",
"pm_score": 0,
"selected": false,
"text": "CLSCompliant"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/248014",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1065163/"
] |
248,018 | <p>I have a GIF image that has an alpha set, and when my site loads in Firefox 3.0, it acts transparently on the parts of the image that should. However, when I try to load the GIF image in IE7, it comes back as a solid block. Actually, it is like the color from the image bled into the transparent area.</p>
<p>Do an... | [
{
"answer_id": 248042,
"author": "StingyJack",
"author_id": 16391,
"author_profile": "https://Stackoverflow.com/users/16391",
"pm_score": 1,
"selected": false,
"text": "opacity: 7;\nfilter: alpha(Opacity=7);\n"
},
{
"answer_id": 248093,
"author": "torial",
"author_id": 13... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13990/"
] |
248,031 | <p>Hi I'm trying to get some practice with Linked Lists.</p>
<p>I Defined an Object class called <code>Student</code>:</p>
<pre><code>public class Student
{
protected string Student_Name;
protected int Student_ID;
protected int Student_Mark;
protected char Student_Grade;
public Stud... | [
{
"answer_id": 248105,
"author": "Scott Langham",
"author_id": 11898,
"author_profile": "https://Stackoverflow.com/users/11898",
"pm_score": 2,
"selected": false,
"text": "public class S_LinkedList {\n\n protected S_Node header = null;\n\n protected S_Node tail = null;\n\n publi... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31512/"
] |
248,046 | <p>Oracle is giving me an error (ORA-00907: missing right parenthesis) when I run this query:</p>
<pre><code>select *
from reason_for_appointment
where reason_for_appointment_id in
(
select reason_for_appointment_id
from appointment_reason
where appointment_id = 11
order by appointment_reason_id
... | [
{
"answer_id": 248935,
"author": "darreljnz",
"author_id": 10538,
"author_profile": "https://Stackoverflow.com/users/10538",
"pm_score": 1,
"selected": false,
"text": "select reason_for_appointment.*\nfrom reason_for_appointment rfa, appointment_reason ar\nwhere rfa.reason_for_appointmen... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248046",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/549/"
] |
248,052 | <p>I'm checking for existing of a row in in_fmd, and the ISBN I look up can be the ISBN parameter, or another ISBN in a cross-number table that may or may not have a row.</p>
<pre><code>select count(*)
from in_fmd i
where (description='GN')
and ( i.isbn in
(
select bwi_isbn from bw_isbn where orig_isbn... | [
{
"answer_id": 248071,
"author": "Cade Roux",
"author_id": 18255,
"author_profile": "https://Stackoverflow.com/users/18255",
"pm_score": 3,
"selected": true,
"text": "UNION ALL select count(*)\nfrom in_fmd i\nwhere (description='GN')\n and (\n i.isbn in (\n select bw... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8454/"
] |
248,067 | <p>The only method provided by the DNN framework to get a module by ID also required a tab ID. What can I do if I don't <em>have</em> a tab ID?</p>
| [
{
"answer_id": 248068,
"author": "bdukes",
"author_id": 2688,
"author_profile": "https://Stackoverflow.com/users/2688",
"pm_score": 4,
"selected": true,
"text": "new ModuleController().GetModule(moduleId, DotNetNuke.Common.Utilities.Null.NullInteger)\n"
},
{
"answer_id": 256004,
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2688/"
] |
248,072 | <p>Evil or not evil?</p>
<pre><code>public static void Raise(this EventHandler handler, object sender, EventArgs args)
{
if (handler != null)
{
handler(sender, args);
}
}
// Usage:
MyButtonClicked.Raise(this, EventArgs.Empty);
// This works too! Evil?
EventHandler handler = null;
handler.Raise(this, E... | [
{
"answer_id": 248103,
"author": "jonnii",
"author_id": 4590,
"author_profile": "https://Stackoverflow.com/users/4590",
"pm_score": 4,
"selected": false,
"text": "public event EventHandler<EventArgs> OnClicked = delegate { };\n"
},
{
"answer_id": 248110,
"author": "Greg D",
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248072",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/536/"
] |
248,102 | <p>By default, I think my vimrc setttings enable the auto-wrapping. However, sometimes, I would like to see text lines are not wrapped. Is there any command I toggle the text line wrapping enabled and disabled? This would avoid me to exit and to change settings.</p>
| [
{
"answer_id": 248116,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 4,
"selected": true,
"text": ":set nowrap\n linebreak"
},
{
"answer_id": 248125,
"author": "m0j0",
"author_id": 31319,
"author_profi... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/62776/"
] |
248,104 | <p>I don't use Eclipse as an IDE, and have no interest in doing so. However, I do like its source-level debugging.</p>
<p>Is there any way I can use it to debug a C++ Linux app without going through the ritual of creating a project? (In effect, can I just use it like a frontend to gdb?)</p>
<p>If not, what are the ... | [
{
"answer_id": 32523752,
"author": "user5325398",
"author_id": 5325398,
"author_profile": "https://Stackoverflow.com/users/5325398",
"pm_score": 0,
"selected": false,
"text": "Path Mapping:Project source and click on apply and then ok"
},
{
"answer_id": 35152931,
"author": "... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248104",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1175/"
] |
248,112 | <p>I need to invoke a c# application within my c# control, as I do not feel like rewriting the application as a control. </p>
<p>I am able to launch the application using System.Diagnostics.Process.Start.</p>
<p>Now how do I call the methods in my application from/via the c# control as this is where I invoked the app... | [
{
"answer_id": 248630,
"author": "Harry Tsai",
"author_id": 31954,
"author_profile": "https://Stackoverflow.com/users/31954",
"pm_score": 0,
"selected": false,
"text": "string fileName = \"MainApp.exe\";\nstring className = \"Program\";\nstring methodName = \"Main\";\nstring[] args = {\"... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
248,141 | <p>I have a block of product images we received from a customer. Each product image is a picture of something and it was taken with a white background. I would like to crop all the surrounding parts of the image but leave only the product in the middle. Is this possible?</p>
<p>As an example: [<a href="http://www.5... | [
{
"answer_id": 248205,
"author": "Bevan",
"author_id": 30280,
"author_profile": "https://Stackoverflow.com/users/30280",
"pm_score": 4,
"selected": true,
"text": "Bitmap.GetPixel() Bitmap.LockBits() unsafe { }"
},
{
"answer_id": 248220,
"author": "Claudiu",
"author_id": 1... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6158/"
] |
248,149 | <p><code>Connection.close()</code> may throw <code>SqlException</code>, but I have always assumed that it is safe to ignore any such exceptions (and I have never seen code that does not ignore them). </p>
<p>Normally I would write:</p>
<pre><code> try{
connection.close();
}catch(Exception e) {}
</code></pre>
<p... | [
{
"answer_id": 248167,
"author": "Bill K",
"author_id": 12943,
"author_profile": "https://Stackoverflow.com/users/12943",
"pm_score": 4,
"selected": false,
"text": "try {\n Thread.sleep(1000);\ncatch (InterruptedException e) {\n // I really don't care if this sleep is interrupted!\... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7918/"
] |
248,161 | <p>I got curious by <a href="http://dotnet.kapenilattex.com/?p=93" rel="nofollow noreferrer">Jon Limjap's interview mishap</a> and started to look for efficient ways to do palindrome detection. I checked the <a href="https://stackoverflow.com/questions/228518/palindrome-golf">palindrome golf</a> answers and it seems to... | [
{
"answer_id": 248189,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 2,
"selected": false,
"text": "i [i*n/2, (i+1)*N/2) [L-(i+1)*N/2, L-i*N/2)"
},
{
"answer_id": 248214,
"author": "Claudiu",
"author_... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5190/"
] |
248,181 | <p>I've never used any kind of source control before although I understand the concept. What I am confused about (and perhaps just not aware) is what benefit do I achieve and/or why would I want to configure Subversion and Apache? Do I need to configure it with Apache to be able to access my repositories from other com... | [
{
"answer_id": 248201,
"author": "PW.",
"author_id": 927,
"author_profile": "https://Stackoverflow.com/users/927",
"pm_score": 1,
"selected": false,
"text": "svnserve"
},
{
"answer_id": 248204,
"author": "swilliams",
"author_id": 736,
"author_profile": "https://Stacko... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1444511/"
] |
248,186 | <p>I'm working on a service that needs to detect user states for all user(s) logged on to a single machine. Specifically, I want to check to see whether or not the screen saver is active and whether or not their session is locked.</p>
<p>This code will run under a system-level service, and has no visible UI, so that m... | [
{
"answer_id": 733960,
"author": "Dan Ports",
"author_id": 88885,
"author_profile": "https://Stackoverflow.com/users/88885",
"pm_score": 2,
"selected": false,
"text": "using Cassia;\n\nforeach (ITerminalServicesSession session in new TerminalServicesManager().GetSessions())\n{\n if ((... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32536/"
] |
248,219 | <p>i know how to import an sql file via the cli:</p>
<pre><code>mysql -u USER -p DBNAME < dump.sql
</code></pre>
<p>but that's if the dump.sql file is local. how could i use a file on a remote server?</p>
| [
{
"answer_id": 248329,
"author": "joelhardi",
"author_id": 11438,
"author_profile": "https://Stackoverflow.com/users/11438",
"pm_score": 6,
"selected": true,
"text": "ssh remote.com \"mysqldump remotedb\" | mysql localdb\n .my.cnf -u -p -h ssh remote.com \"mysqldump -u remoteuser -p'remo... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18285/"
] |
248,222 | <p>What's better practice when defining several methods that return the same shape of data with different filters? Explicit method names or overloaded methods?</p>
<p>For example. If I have some Products and I'm pulling from a database</p>
<p>explicit way:</p>
<pre><code>public List<Product> GetProduct(int pro... | [
{
"answer_id": 248237,
"author": "ema",
"author_id": 19520,
"author_profile": "https://Stackoverflow.com/users/19520",
"pm_score": 2,
"selected": false,
"text": "public List<Product> GetProducts(Query query)\n"
},
{
"answer_id": 248267,
"author": "JTew",
"author_id": 2537... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26931/"
] |
248,224 | <p>I downloaded the free CodeRush Xpress version to try it. Is there a way to change the colors it uses for it's highlighting and line drawing? ie the matching braces. I have a dark color scheme and my monitor I have VS on must suck because I can't see the lines. Yet on the LCD I can. Is there a way to change the ... | [
{
"answer_id": 862842,
"author": "Christian",
"author_id": 54193,
"author_profile": "https://Stackoverflow.com/users/54193",
"pm_score": 4,
"selected": true,
"text": "Alt+Ctrl+Shift+O [HKEY_LOCAL_MACHINE\\SOFTWARE\\Developer Express\\CodeRush for VS\\9.2]\n \"HideMenu\"=dword:00000000... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7024/"
] |
248,227 | <p>I have an XML file, and I want to find nodes that have duplicate CDATA. Are there any tools that exist that can help me do this?</p>
<p>I'd be fine with a tool that does this generally for text documents.</p>
| [
{
"answer_id": 473563,
"author": "bortzmeyer",
"author_id": 15625,
"author_profile": "https://Stackoverflow.com/users/15625",
"pm_score": 2,
"selected": false,
"text": "import xml.etree.ElementTree as ElementTree\nimport sys\n\ndef print_elem(element):\n return \"<%s>\" % element.tag\... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/245644/"
] |
248,243 | <p>A library using off_t as a parameter for one function (seek). Library and application are compiled differently, one with large file support switched off, the other with large file support. This situation results in strange runtime errors, because both interpret off_t differently. How can the library check at runtime... | [
{
"answer_id": 248309,
"author": "Andrew Johnson",
"author_id": 5109,
"author_profile": "https://Stackoverflow.com/users/5109",
"pm_score": 2,
"selected": false,
"text": "size_t lib_get_off_t_size (void)\n{\n return (sizeof(off_t));\n}\n if (lib_get_off_t_size() != sizeof(off_t) {\n ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21005/"
] |
248,246 | <p>Do any queries exist that require RIGHT JOIN, or can they always be re-written with LEFT JOIN?</p>
<p>And more specifically, how do you re-write this one without the right join (and I guess implicitly without any subqueries or other fanciness):</p>
<p><pre><code>
SELECT *
FROM t1
LEFT JOIN t2 ON t1.k2 = t2.k2
RIGH... | [
{
"answer_id": 248253,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 5,
"selected": false,
"text": "SELECT * /* example: don't care what's returned */\nFROM LargeTable L\nLEFT JOIN MediumTable M ON M.L_ID=L.ID\nLEFT JO... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248246",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12861/"
] |
248,254 | <p>I want to be able to see how many lines were added to a file since the last quering without reading the whole file again.</p>
<p>Something like :</p>
<pre><code>ptail my_file | fgrep "[ERROR]" | wc -l
</code></pre>
<p>A solution in simple Perl would be prefered, since I don't have an easy access to a compiler.</... | [
{
"answer_id": 248253,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 5,
"selected": false,
"text": "SELECT * /* example: don't care what's returned */\nFROM LargeTable L\nLEFT JOIN MediumTable M ON M.L_ID=L.ID\nLEFT JO... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24760/"
] |
248,263 | <p>I have a helper class that is just a bunch of static methods and would like to subclass the helper class. Some behavior is unique depending on the subclass so I would like to call a virtual method from the base class, but since all the methods are static I can't create a plain virtual method (need object reference ... | [
{
"answer_id": 248276,
"author": "Chris Marasti-Georg",
"author_id": 96,
"author_profile": "https://Stackoverflow.com/users/96",
"pm_score": 6,
"selected": true,
"text": "HelperClass.HelperMethod(); HelperClass"
},
{
"answer_id": 248348,
"author": "Alan",
"author_id": 312... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248263",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/327/"
] |
248,273 | <p>Given a date range, I need to know how many Mondays (or Tuesdays, Wednesdays, etc) are in that range.</p>
<p>I am currently working in C#.</p>
| [
{
"answer_id": 248356,
"author": "Codewerks",
"author_id": 17729,
"author_profile": "https://Stackoverflow.com/users/17729",
"pm_score": 5,
"selected": false,
"text": "DateTime[] dates = { new DateTime(2008,10,6), new DateTime(2008,10,7)}; //etc....\n\nvar mondays = dates.Where(d => d.Da... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32552/"
] |
248,297 | <p>Suppose <code>xmlNode</code> is a XML DOM node, how do you get its XML system independently? </p>
<p>For IE, it is <code>xmlNode.xml;</code></p>
<p>For Netscape, it is <code>new XMLSerializer().serializeToString(xmlNode)</code>. </p>
<p>In jQuery, is there any built-in method I can leverage?</p>
| [
{
"answer_id": 312146,
"author": "strager",
"author_id": 39992,
"author_profile": "https://Stackoverflow.com/users/39992",
"pm_score": 0,
"selected": false,
"text": "$(xmlNode).html();\n"
},
{
"answer_id": 623982,
"author": "acrosman",
"author_id": 24215,
"author_prof... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
248,312 | <p>Two table:</p>
<pre><code>StoreInfo:
UserId uniqueidentifier
StoreNo nvarchar
UserName nvarchar
Password nvarchar
UserInfo:
UserId uniqueidentifier
UserName nvarchar
Password nvarchar
</code></pre>
<p>the UserId on StoreInfo is currently null. How do i update StoreInfo's UserId with UserInfo's UserId based on Sto... | [
{
"answer_id": 248323,
"author": "Philip Kelley",
"author_id": 7491,
"author_profile": "https://Stackoverflow.com/users/7491",
"pm_score": 0,
"selected": false,
"text": "UPDATE StoreInfo\n set UserId = ui.UserId\n from StoreInfo si\n inner join UserInfo ui\n on ui.UserName = si.UserNa... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28647/"
] |
248,315 | <p>I have a simple Flex application that is a panel with a repeater inside of it; albeit a little simplified, it is like such:</p>
<pre>
<code>
<mx:Panel id="pnl">
<mx:Repeater id="rp">
<mx:Label text = "foo" />
</mx:Repeater>
</mx:Panel>
</code>
</pre>
<p>I am then embedding this Flex ap... | [
{
"answer_id": 264222,
"author": "fenomas",
"author_id": 10651,
"author_profile": "https://Stackoverflow.com/users/10651",
"pm_score": 0,
"selected": false,
"text": "DIV DIV"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/248315",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1638/"
] |
248,320 | <p>I have some HTML that looks like this:</p>
<pre><code><ul class="faq">
<li class="open">
<a class="question" href="">This is my question?</a>
<p>Of course you can, it will be awesome. </p>
</li>
</ul>
</code></pre>
<p>Using CSS I'm setting the... | [
{
"answer_id": 248331,
"author": "Ben Scheirman",
"author_id": 3381,
"author_profile": "https://Stackoverflow.com/users/3381",
"pm_score": 4,
"selected": false,
"text": "$(this).next(\"p\").css(\"...\")\n"
},
{
"answer_id": 248335,
"author": "swilliams",
"author_id": 736,... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4106/"
] |
248,332 | <p>I have this large C++ project that I need to build on a platform that does not have a parallel make (like make -j on Linux). The server has 6 CPU's and I want to do a parallel build manually. </p>
<p>I can generate a task list like this for about 300 object files. I use the Makefile for the dependency checks and in... | [
{
"answer_id": 248365,
"author": "warren",
"author_id": 4418,
"author_profile": "https://Stackoverflow.com/users/4418",
"pm_score": -1,
"selected": false,
"text": "make -f Makefile obj1.o &\nmake -f Makefile obj2.o &\n...\nmake -f Makefile objn.o &\n &&"
},
{
"answer_id": 248447,... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7743/"
] |
248,340 | <p>I have some configuration values for an asp.net web app. They will be maintained by a system admin once the system goes live. Should I store these values in the database or in a config file? Is there a best practice for this sort of thing?</p>
| [
{
"answer_id": 599139,
"author": "Protagonist",
"author_id": 460006,
"author_profile": "https://Stackoverflow.com/users/460006",
"pm_score": 0,
"selected": false,
"text": ".ini Setting"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/248340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24908/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.