qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
312,517 | <p>I'm having some trouble with the Google Maps API; I want to determine a LatLong for a certain place (for example, from the name of a city), then focus my map on it. The LatLong part is working, and so is centering the map on that point. However, I cannot figure out how to determine what a good zoomlevel might be whe... | [
{
"answer_id": 774596,
"author": "Simon Gibbs",
"author_id": 13935,
"author_profile": "https://Stackoverflow.com/users/13935",
"pm_score": 1,
"selected": false,
"text": "GMap2.getBoundsZoomLevel(bounds)\n PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>\nPREFIX rdfs: <http://www.w3... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37472/"
] |
312,549 | <p>I have updated to latest Django version 1.0.2 after uninstalling my old Django version.But now when I run django-admin.py I get the following error. How can I resolve this?</p>
<pre><code>Traceback (most recent call last):
File "C:\Python25\Lib\site-packages\django\bin\django-admin.py", line 2, in <module>
... | [
{
"answer_id": 325295,
"author": "Fil",
"author_id": 12218,
"author_profile": "https://Stackoverflow.com/users/12218",
"pm_score": 6,
"selected": true,
"text": "import django ActivePython 2.5.1.1 (ActiveState Software Inc.) based on\nPython 2.5.1 (r251:54863, May 1 2007, 17:47:05) [MSC ... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7965/"
] |
312,551 | <p>I have some XSD-s that define my objects hierarchy. for example math.xsd, base.xsd
while math.xsd is depends on base.xsd. I need to generate classes from those xsd-s.</p>
<p>I've already read about those two tools:
<a href="http://www.bware.biz/CodeXS/CodeXS.asmx" rel="nofollow noreferrer">CodeXS</a> tool and <a ... | [
{
"answer_id": 1314886,
"author": "Leon Breedt",
"author_id": 90079,
"author_profile": "https://Stackoverflow.com/users/90079",
"pm_score": 2,
"selected": false,
"text": "xsd.exe XmlSchema XmlCodeExporter XmlSchemaImporter XmlSchema schema = null; // Load XSD file here\n var schemas =... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10977/"
] |
312,552 | <p>I am looking for a Java open source beautifier or reformatter for SQL that I can use to clean up DDL statements that I am generating with <a href="http://www.openarchitectureware.org" rel="nofollow noreferrer">openArchitectureWare</a>.</p>
<p>Nothing in the answer to "<a href="https://stackoverflow.com/questions/20... | [
{
"answer_id": 559120,
"author": "Robert J. Walker",
"author_id": 4287,
"author_profile": "https://Stackoverflow.com/users/4287",
"pm_score": 7,
"selected": true,
"text": "org.hibernate.jdbc.util.BasicFormatterImpl org.hibernate.engine.jdbc.internal.BasicFormatterImpl org.hibernate.prett... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312552",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1969/"
] |
312,570 | <p>I know that <a href="http://en.wikipedia.org/wiki/Buffer_overflow" rel="nofollow noreferrer">buffer overruns</a> are one potential hazard to using C-style strings (char arrays). If I know my data will fit in my buffer, is it okay to use them anyway? Are there other drawbacks inherent to C-style strings that I need... | [
{
"answer_id": 312736,
"author": "Brian C. Lane",
"author_id": 27461,
"author_profile": "https://Stackoverflow.com/users/27461",
"pm_score": 3,
"selected": false,
"text": "char *fgets(char *s, int size, FILE *stream);"
},
{
"answer_id": 312841,
"author": "Eclipse",
"autho... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312570",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1288/"
] |
312,599 | <p>I am trying to get pylons to debug in Eclipse under Ubuntu.
Specifically. I am not sure what to use for the 'Main Module' on the Run configurations dialog.</p>
<p>(<a href="https://stackoverflow.com/questions/147650/debug-pylons-application-through-eclipse">this</a> is a similar question on stackoverflow, but I thi... | [
{
"answer_id": 314913,
"author": "SystemicPlural",
"author_id": 40080,
"author_profile": "https://Stackoverflow.com/users/40080",
"pm_score": 3,
"selected": true,
"text": "Window>Preferences>Pydev>Interpreter-Python New sudo python setup.py develop Run>Open Debug Dialog Main Module /usr/... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40080/"
] |
312,605 | <p>I'm making a simple form to create polls, therefore I want the possibility to add additional input fields in case the user wants more options in the poll.</p>
<p>I've made Javascript code that adds a new input field to the form, but the dynamically added input fields are not posted when the form is submitted (I use... | [
{
"answer_id": 312620,
"author": "Yona",
"author_id": 40007,
"author_profile": "https://Stackoverflow.com/users/40007",
"pm_score": 2,
"selected": false,
"text": "protected void Page_Load(object sender, EventArgs e)\n{\n foreach (string p in this.Request.Params.Keys) {\n if (p.... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37066/"
] |
312,625 | <p>I am creating a Firefox Extension...what would be the javascript to open a URL in the current tab from a menuitem?</p>
<p>e.g. in my overlay.xul file i have the following line:</p>
<pre><code><menuitem label="Visit homepage" oncommand="window.location='http://www.somepage.com'"/>
</code></pre>
<p>but in fir... | [
{
"answer_id": 312683,
"author": "aryo",
"author_id": 17998,
"author_profile": "https://Stackoverflow.com/users/17998",
"pm_score": 4,
"selected": true,
"text": "<menuitem label=\"Visit homepage\" oncommand=\"content.wrappedJSObject.location='http://www.somepage.com'\"/>\n"
},
{
... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312625",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17998/"
] |
312,626 | <p>I'm coming from Eclipse, working in Visual Studio 2008 Express and just want to highlight code, right-click and comment it out.</p>
<ul>
<li>nothing in right-click</li>
<li>looking in Tools | Options, Toolbars, Commands, can't find a button for it...</li>
</ul>
<p>How do I activate this the comment/uncomment feature... | [
{
"answer_id": 312885,
"author": "shoosh",
"author_id": 9611,
"author_profile": "https://Stackoverflow.com/users/9611",
"pm_score": 2,
"selected": false,
"text": "/ // * /* */"
}
] | 2008/11/23 | [
"https://Stackoverflow.com/questions/312626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4639/"
] |
312,642 | <p>I have to give a general note to some huge Java project for which I have but little visibility and I was wondering if there were any guidelines for determining:</p>
<ul>
<li>what number of classes per package can be considered right, to low, or to high (this project has 3.89 classes per package, which seems a bit t... | [
{
"answer_id": 312870,
"author": "P Arrayah",
"author_id": 33459,
"author_profile": "https://Stackoverflow.com/users/33459",
"pm_score": 1,
"selected": false,
"text": "StringUtil.escapeXMLspecialCharacters(someString) StringUtil.XML.escapeSpecialCharacters(someString) XMLUtil.escapeSpeci... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25152/"
] |
312,648 | <p>I thought that if a c pointer pointing to a char array was incremented then it would point to the next element in that array. But when I tried this I found that I had to increment it twice. Trying the increment using sizeof(char) I found that adding the size of a char was too much so it had to be divided by two. </p... | [
{
"answer_id": 312656,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 2,
"selected": false,
"text": "ptr T* N N * sizeof (*ptr) N * sizeof (T) pi sizeof (pi) char* char pi+=sizeof(char*)/2; pi+=2; pi+=2 char ... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
312,652 | <p>I'm currently in the process of replacing my homebrewn build script by an Ant build script.</p>
<p>Now I need to replace various tokens by the size of a specific file. I know how to get the size in bytes via the <code><length></code> task and store in in a property, but I need the size in kilobytes and megaby... | [
{
"answer_id": 326536,
"author": "fhe",
"author_id": 4445,
"author_profile": "https://Stackoverflow.com/users/4445",
"pm_score": 4,
"selected": true,
"text": "<script> <target name=\"insert-filesize\">\n <length file=\"${afile}\" property=\"fs.length.bytes\" />\n\n <script language... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4445/"
] |
312,672 | <p>While an applet is loading, it displays a white rectangle for a split second. How can we get rid of it?</p>
| [
{
"answer_id": 326536,
"author": "fhe",
"author_id": 4445,
"author_profile": "https://Stackoverflow.com/users/4445",
"pm_score": 4,
"selected": true,
"text": "<script> <target name=\"insert-filesize\">\n <length file=\"${afile}\" property=\"fs.length.bytes\" />\n\n <script language... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312672",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5541/"
] |
312,673 | <pre><code>if __name__=='__main__':
parser = OptionParser()
parser.add_option("-i", "--input_file",
dest="input_filename",
help="Read input from FILE", metavar="FILE")
(options, args) = parser.parse_args()
print options
</code></pre>
<p>result is</p>
<pre><c... | [
{
"answer_id": 312677,
"author": "Charles Duffy",
"author_id": 14122,
"author_profile": "https://Stackoverflow.com/users/14122",
"pm_score": 4,
"selected": true,
"text": "$ python convert.py -i 'video_*'\n -i python convert.py -i video_1 video_2 video_3 video_4 video_5 video_6 -i args op... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312673",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29364/"
] |
312,674 | <p>First off, how do I know if my html file is running on localhost in Xampp?
Is there a tutorial on how to manage files/directories and get that all working under htdocs?
Is there a good tutorial on how to setup includes?</p>
<p>I want to use "includes" in Xampp with my html.
Can I use both html includes AND php incl... | [
{
"answer_id": 11563006,
"author": "jibiel",
"author_id": 535406,
"author_profile": "https://Stackoverflow.com/users/535406",
"pm_score": 2,
"selected": false,
"text": "Options +Includes\n AddType text/html .shtml\nAddOutputFilter INCLUDES .shtml\n XBitHack on\n chmod +x pagename.html\n"... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40091/"
] |
312,695 | <p>WARNING: I have been learning Python for all of 10 minutes so apologies for any stupid questions!</p>
<p>I have written the following code, however I get the following exception: </p>
<blockquote>
<p>Message File
Name Line Position Traceback Node
31
exceptions.TypeE... | [
{
"answer_id": 312698,
"author": "mthurlin",
"author_id": 39991,
"author_profile": "https://Stackoverflow.com/users/39991",
"pm_score": 3,
"selected": false,
"text": "__init__ class Computer:\n\n def __init__(self, compName = \"Computer1\", compIp = \"0.0.0.0\", compScreenSize = 22):\... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1816/"
] |
312,718 | <p>I have quite a few partials in my application, and some of them need to do some jQuery goodness at $(document).ready time.</p>
<p>The problem is, if I put the $(document).ready directly into a script block for the partial, then this gets overridden if another partial does the same thing.</p>
<p>It seems a solution... | [
{
"answer_id": 4260592,
"author": "RayLoveless",
"author_id": 462971,
"author_profile": "https://Stackoverflow.com/users/462971",
"pm_score": 0,
"selected": false,
"text": "<%@ Control Language=\"C#\" Inherits=\"System.Web.Mvc.ViewUserControl<Myapp...SearchResultsViewModel>\" %>\n\n<scri... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40097/"
] |
312,732 | <p>I'm trying to create an algorithm in C# which produces the following output strings:</p>
<pre><code>AAAA
AAAB
AAAC
...and so on...
ZZZX
ZZZY
ZZZZ
</code></pre>
<p>What is the best way to accomplish this?</p>
<pre><code>public static IEnumerable<string> GetWords()
{
//Perform algorithm
yield return w... | [
{
"answer_id": 312739,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 5,
"selected": true,
"text": "public static IEnumerable<String> GetWords()\n{\n for (Char c1 = 'A'; c1 <= 'Z'; c1++)\n {\n for (Char c2... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33431/"
] |
312,735 | <p><strong>(Scroll down to bottom of post to find solution.)</strong></p>
<p>Got a asp.net page which contains a
Datalist. Inside this datalist, there
is a template containing a
dropdownlist and each time the
datalist is filled with an item, a
ItemCreatedCommand is called. The
itemCreatedCommand is responsible for
da... | [
{
"answer_id": 26313942,
"author": "user4132142",
"author_id": 4132142,
"author_profile": "https://Stackoverflow.com/users/4132142",
"pm_score": 0,
"selected": false,
"text": " protected void ddlOnSelectedIndexChanged(object sender, EventArgs e) {\n try {\n ModalPopupExtender... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37280/"
] |
312,749 | <p>I have a container filled with pairs. I want to iterate in it using the STL generic algorithms (in my case it would be inner_product, but consider it as a generic problem).
The algorithm I am using expects iterators first and last. Can I provide special iterators first and last that will iterate not on the pairs but... | [
{
"answer_id": 312764,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 1,
"selected": false,
"text": "reverse_iterator"
},
{
"answer_id": 312766,
"author": "Johannes Schaub - litb",
"author_id": 34509,
... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312749",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/78828/"
] |
312,762 | <p>I have a winforms application that is doing the following:</p>
<p>on each query:</p>
<ol>
<li>Db connect</li>
<li>Db query</li>
<li>Db disconnect</li>
</ol>
<p>as we are trying to avoid having to keep the db connection open. This suffers from performance as we have to connect / disconnect everytime.</p>
<p>What... | [
{
"answer_id": 312771,
"author": "Sören Kuklau",
"author_id": 1600,
"author_profile": "https://Stackoverflow.com/users/1600",
"pm_score": 3,
"selected": true,
"text": "SqlConnection using"
}
] | 2008/11/23 | [
"https://Stackoverflow.com/questions/312762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
312,767 | <p>I am trying to locate an evil plugin that includes a stoneage version of a certain jar file. How do I do that ?</p>
| [
{
"answer_id": 314860,
"author": "Scott Bale",
"author_id": 2495576,
"author_profile": "https://Stackoverflow.com/users/2495576",
"pm_score": -1,
"selected": false,
"text": "mvn dependency:tree"
},
{
"answer_id": 7261442,
"author": "Hugo Duncan",
"author_id": 84439,
"... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23691/"
] |
312,789 | <p>...if there is such a thing. Here's an image of two approachs for structuring DLLs/references in a .NET application: <a href="http://www.experts-exchange.com/images/t80668/compArch.png" rel="nofollow noreferrer">http://www.experts-exchange.com/images/t80668/compArch.png</a>. The app can be a website (it is in this... | [
{
"answer_id": 312827,
"author": "Rob Cooper",
"author_id": 832,
"author_profile": "https://Stackoverflow.com/users/832",
"pm_score": 0,
"selected": false,
"text": "CompName.Web.UI CompName.Data CompName.Common CompName.Web.UI"
}
] | 2008/11/23 | [
"https://Stackoverflow.com/questions/312789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40106/"
] |
312,794 | <p>What is the Python equivalent of the following code in Ruby?</p>
<pre><code>def loop
cont=nil
for i in 1..4
puts i
callcc {|continuation| cont=continuation} if i==2
end
return cont
end
> c=loop
1
2
3
4
> c.call
3
4
</code></pre>
<p>Reference: <a href="http://www-128.ibm.com/developerworks/ja... | [
{
"answer_id": 312801,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "def loop():\n for i in xrange(1,5):\n print i\n if i == 2:\n yield\n\n\nfor i in loop():\n prin... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30289/"
] |
312,796 | <p>I'm trying to integrate a NSURLConnection object with UIProgressView, so I can update the user while a file download is happening in the background.</p>
<p>I created a separate object to download the file in the background, and I'm having problems figuring out how to update the progress property in the UIProgressVi... | [
{
"answer_id": 312879,
"author": "Dave Dribin",
"author_id": 26825,
"author_profile": "https://Stackoverflow.com/users/26825",
"pm_score": 6,
"selected": true,
"text": "filesize expectedContentLength NSURLResponseUnknownLength NSURLResponseUnknownLength #define NSURLResponseUnknownLength... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35478/"
] |
312,810 | <p>I am building an Entity Framework model for a subset of the Pubs database from microsoft. I am only interested and publishers and books, not publishers and employees, but there is a foreign key constraint between the publishers and emoloyees tables. When I remove the employees entity from my model, the model won't v... | [
{
"answer_id": 312879,
"author": "Dave Dribin",
"author_id": 26825,
"author_profile": "https://Stackoverflow.com/users/26825",
"pm_score": 6,
"selected": true,
"text": "filesize expectedContentLength NSURLResponseUnknownLength NSURLResponseUnknownLength #define NSURLResponseUnknownLength... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17715/"
] |
312,846 | <p>I have a very simple model. I want to add a send email routine to on of the methods for the model:</p>
<pre><code>$this->Email->delivery = 'smtp';
$this->Email->template = 'default';
$this->Email->sendAs = 'text';
$this->Email->from = 'email';
$this->Email->to = 'email';
$... | [
{
"answer_id": 313184,
"author": "neilcrookes",
"author_id": 9968,
"author_profile": "https://Stackoverflow.com/users/9968",
"pm_score": 2,
"selected": false,
"text": "var $components = array('Email');\n $this->Email->delivery = ...\n"
},
{
"answer_id": 374092,
"author": "nan... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312846",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43/"
] |
312,858 | <p>My scenario should be simple... the type I want to convert <em>FROM</em> is <em>ALWAYS</em> 'string'. What I want to convert to... could be many things - ints, DateTimes, ... strings, etc.</p>
<p>This would be easy:</p>
<pre><code>string valueToConvertFrom = "123";
int blah = Convert.ToInt32(valueToConvertFrom);
... | [
{
"answer_id": 312884,
"author": "arul",
"author_id": 15409,
"author_profile": "https://Stackoverflow.com/users/15409",
"pm_score": 3,
"selected": false,
"text": "object o = Convert.ChangeType( str, convertToType );\n Type convertToType = ...;\nMethodInfo mi = convertToType.GetMethod(\"P... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11917/"
] |
312,861 | <p>I put together a sample scenario of my issue and I hope its enough for someone to point me in the right direction.</p>
<p>I have two tables</p>
<p>Products</p>
<p><img src="https://i.stack.imgur.com/ktnI0.gif" alt="alt text"></p>
<p>Product Meta</p>
<p><img src="https://i.stack.imgur.com/dBrc0.gif" alt="alt tex... | [
{
"answer_id": 312883,
"author": "GregD",
"author_id": 38317,
"author_profile": "https://Stackoverflow.com/users/38317",
"pm_score": 2,
"selected": false,
"text": "Select a.ProductId\n ,a.Name\n ,(Select c.MetaValue\n From [Product Meta] c\n Where c.ProductId = a.ProductId\n A... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34444/"
] |
312,865 | <p>I'm attempting to learn basic Win32 programming and running into a frustrating problem. I wish to convert a variable (Call it NumClicks) and display it as the application name (as part of a string).
From what I've seen, going from int + some block of text to a char* is problematic, because converting it to the requi... | [
{
"answer_id": 3080957,
"author": "Yevhen",
"author_id": 264292,
"author_profile": "https://Stackoverflow.com/users/264292",
"pm_score": 0,
"selected": false,
"text": "\nint f =55; \nwchar_t buffer[10];\n_itow_s (f, buffer, 10);\nfunc_using_lpcwstr_as_parameter(buffer);\n"
}
] | 2008/11/23 | [
"https://Stackoverflow.com/questions/312865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40115/"
] |
312,877 | <p>Situation: you've got a .swf embedded in an html page, and when you click on something in the .swf, it needs to popup a chromeless window. Normally this would be fairly easy - but consider Safari, which completely disables all 'window.open' functionality while its popup-blocker is enabled (it makes an exception if t... | [
{
"answer_id": 313315,
"author": "Ben Combee",
"author_id": 1323,
"author_profile": "https://Stackoverflow.com/users/1323",
"pm_score": 3,
"selected": true,
"text": "wmode='opaque' wmode='transparent' <div> <div> onclick"
}
] | 2008/11/23 | [
"https://Stackoverflow.com/questions/312877",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14026/"
] |
312,880 | <p>On a more abstract level then <a href="https://stackoverflow.com/questions/299729/javascript-to-flash-communication">a previous question</a>, in my experience there are 3 ways to call a javascript function on an html page from an embedded .swf using AS3: ExternalInterface, fscommand, and navigateToURL.</p>
<p>Let's... | [
{
"answer_id": 318555,
"author": "Brian Hodge",
"author_id": 20628,
"author_profile": "https://Stackoverflow.com/users/20628",
"pm_score": 3,
"selected": false,
"text": "ExternaInterface navigatoToURL fscommand flash.external.ExternalInterface flash.system.fscommand flash.net.navigateToU... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312880",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14026/"
] |
312,881 | <p>How do I actually run a file on localhost?
I know it is working, but how do I run a file on it, and how do I verify that the file is in fact running on localhost?</p>
<p><strong>Server newbie here, additional questions (I have xampp running Apache 2.2):</strong>
From your responses it sounds like I have to type in ... | [
{
"answer_id": 312886,
"author": "markus",
"author_id": 11995,
"author_profile": "https://Stackoverflow.com/users/11995",
"pm_score": 5,
"selected": false,
"text": "http://localhost index.html index.php http://localhost/mytutorial http://localhost/mytutorial\n c:/webservices/apache/www\n... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40091/"
] |
312,895 | <p>Can someone explain in simple terms the "signals and slots" pattern?</p>
| [
{
"answer_id": 312914,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 4,
"selected": false,
"text": "signal buttonPressed(IdType) sendMail(IdType) IdType connect(signal, slot) buttonPressed(IdType) sendMail(I... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/445087/"
] |
312,912 | <p>Given a list of sets:</p>
<ul>
<li>S_1 : [ 1, 2, 3, 4 ]</li>
<li>S_2 : [ 3, 4, 5, 6, 7 ]</li>
<li>S_3 : [ 8, 9, 10, 11 ]</li>
<li>S_4 : [ 1, 8, 12, 13 ]</li>
<li>S_5 : [ 6, 7, 14, 15, 16, 17 ]</li>
</ul>
<p>What the most efficient way to merge all sets that share at least 2 elements? I suppose this is similar to ... | [
{
"answer_id": 313012,
"author": "EvilTeach",
"author_id": 7734,
"author_profile": "https://Stackoverflow.com/users/7734",
"pm_score": 3,
"selected": true,
"text": "Let there be a list of many Sets named (S)\n\nPerform a pass through all elements of S, to determine the range (LOW .. HIGH... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21339/"
] |
312,915 | <p>I've been trying to solve this for weeks...</p>
<p>My Goal is to search my inbox for the following messages:</p>
<pre><code>Hello
Hi
Hey
</code></pre>
<p>Im using three files to do this for me. The first, a .forward file in my $HOME</p>
<pre><code>"|IFS=' '&&exec usr/bin/procmail||exit 75 #username"
</co... | [
{
"answer_id": 312949,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 2,
"selected": false,
"text": "|procmail"
},
{
"answer_id": 332740,
"author": "bmb",
"author_id": 5298,
"author_profile": "https:/... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40120/"
] |
312,922 | <p>I am working on a silverlight app that you need to enter information into a textbox and then just hit enter. Well there is no onclick event, that I could find, so what I did was use the onkeypressup event and check if it was the enter key that was pressed if so do "blah".</p>
<p>It just feels like there is a bette... | [
{
"answer_id": 6662485,
"author": "Dublx",
"author_id": 840465,
"author_profile": "https://Stackoverflow.com/users/840465",
"pm_score": 3,
"selected": false,
"text": " private void MyTextBox_KeyUp(object sender, KeyEventArgs e)\n {\n if (e.Key == Key.Enter) SomeButton_Click(... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23571/"
] |
312,925 | <p>I want to add some <a href="http://en.wikipedia.org/wiki/Ajax_%28programming%29" rel="noreferrer">Ajax</a>-niceness to my Django-coded website. </p>
<p>In my Django code, I use the <code>@login_required</code> decorator from <code>django.contrib.auth.decorators</code> to mark which view requires authentication. The... | [
{
"answer_id": 313015,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 3,
"selected": false,
"text": "LINK_VIA onClick=\"return popup(this, 'arg')\" None <A HREF=\"link\" {{LINK_VIA}}>some text</a> LINK_VIA LINK_VIA {% if %} ... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4172/"
] |
312,936 | <p>I am using C# and Windows Forms. I have a normal progress bar working fine in the program, but now I have another operation where the duration cannot be easily calculated. I would like to display a progress bar but don't know the best way to start/stop the scrolling marquee. I was hoping for something as simple as s... | [
{
"answer_id": 312999,
"author": "Paul Fisher",
"author_id": 39808,
"author_profile": "https://Stackoverflow.com/users/39808",
"pm_score": 8,
"selected": true,
"text": "Marquee myProgressBar.Style = ProgressBarStyle.Marquee;\n MarqueeAnimationSpeed"
},
{
"answer_id": 607481,
... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25946/"
] |
312,957 | <p>Is there a way to use these operators to input and output binary data? The reason I want to do this is that it makes the code readable.
Ex: infile >> filedecrypter >> metadataparser >> audiodecoder >> effects >> soundplayer;</p>
| [
{
"answer_id": 312959,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 3,
"selected": true,
"text": "operator<< operator>> class transformer {\n public:\n virtual std::iostream& transform(std::iostream&)... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13760/"
] |
312,967 | <p>I am trying to fade in a <p> on mouseover and fade out on mouseout:</p>
<pre><code> $("p.follow").mouseover(function(){
$(this).fadeTo("slow", 1.00);
})
$("p.follow").mouseout(function(){
$(this).fadeTo("fast", 0.50);
})
</code></pre>
<p>If you go to ryancoughlin.com and on the right side, if you ... | [
{
"answer_id": 312975,
"author": "Shog9",
"author_id": 811,
"author_profile": "https://Stackoverflow.com/users/811",
"pm_score": 3,
"selected": true,
"text": "$(\"p.follow\").hover(function()\n {\n $(this).stop().fadeTo(\"slow\", 1.00);\n },\n function()\n {\n $(this).s... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
312,983 | <p>I have configured a simple LAMP stack on Debian and I am experiencing some problems with the Apache web server. </p>
<p>Each 3-4 hours the web server is entering a deadlock and all the requests that hit the database block. The server is creating a new child for each request. The number of processes increases very q... | [
{
"answer_id": 313000,
"author": "phihag",
"author_id": 35070,
"author_profile": "https://Stackoverflow.com/users/35070",
"pm_score": 1,
"selected": false,
"text": "/var/log/apache2/*"
}
] | 2008/11/23 | [
"https://Stackoverflow.com/questions/312983",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3885/"
] |
312,989 | <p>I have a HTML with the following content:</p>
<pre><code>... some text ...
<a href="file.aspx?userId=123&section=2">link</a> ... some text ...
... some text ...
<a href="file.aspx?section=5&user=678">link</a> ... some text ...
... some text ...
</code></pre>
<p>I would like to parse... | [
{
"answer_id": 313099,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "\\<a\\s+href\\s*=\\s*[\"'](?<baseUri>.+?)\\?(?:(?<key>.+?)=(?<value>.+?)[&\"'])*\\s*\\>\n"
},
{
"answer_id": 313106,
... | 2008/11/23 | [
"https://Stackoverflow.com/questions/312989",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
313,004 | <p>When working in a big project that requires debugging (like every project) you realize how much people love "printf" before the IDE's built-in debugger. By this I mean</p>
<ul>
<li>Sometimes you need to render variable values to screen (specially for interactive debugging).</li>
<li>Sometimes to log them in a file<... | [
{
"answer_id": 313133,
"author": "bugmagnet",
"author_id": 426,
"author_profile": "https://Stackoverflow.com/users/426",
"pm_score": 0,
"selected": false,
"text": "Debug.Print\n #If <some var set in the project properties>\n'debugging code\n#End If\n Dim Trc as Std.Traces\n Trc.Tracing =... | 2008/11/23 | [
"https://Stackoverflow.com/questions/313004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22609/"
] |
313,006 | <p>Is there something similar to <code>sprintf()</code> in C#?</p>
<p>I would for instance like to convert an integer to a 2-byte byte-array.</p>
<p>Something like:</p>
<pre><code>int number = 17;
byte[] s = sprintf("%2c", number);
</code></pre>
| [
{
"answer_id": 313009,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 5,
"selected": false,
"text": "string s = string.Format(\"{0:00}\", number)\n string byte[] Encoding byte[] raw = Encoding.UTF8.GetBytes(s);\n strin... | 2008/11/23 | [
"https://Stackoverflow.com/questions/313006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23423/"
] |
313,018 | <p>I see APIs in Quartz for drawing lines and circles. But all I want to do is to specify the (x,y) cartesian coordinate to color a pixel a particular value. How do I do that?</p>
| [
{
"answer_id": 313713,
"author": "Jens Ayton",
"author_id": 6443,
"author_profile": "https://Stackoverflow.com/users/6443",
"pm_score": 4,
"selected": false,
"text": "CGBitmapContextCreate() CGImage CGImageCreate()"
},
{
"answer_id": 322463,
"author": "Community",
"author... | 2008/11/23 | [
"https://Stackoverflow.com/questions/313018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
313,030 | <p>I would like to do something like the following but can't seem to get the syntax for the Do method quite right.</p>
<pre><code>var sqr = new _mocks.CreateRenderer<ShapeRenderer>();
Expect.Call(sqr.CanRender(null)).IgnoreArguments().Do(x =>x.GetType() == typeof(Square)).Repeat.Any();
</code></pre>
<p>So ba... | [
{
"answer_id": 313080,
"author": "Cristian Libardo",
"author_id": 16526,
"author_profile": "https://Stackoverflow.com/users/16526",
"pm_score": 3,
"selected": true,
"text": "Expect.Call(sqr.CanRender(null)).IgnoreArguments()\n .Do((Func<Shape, bool>) delegate(Agent x){return x.GetType... | 2008/11/23 | [
"https://Stackoverflow.com/questions/313030",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5056/"
] |
313,036 | <p>Am I doing something wrong or is it not possible to specify a generic class as a constraint to a generic method?</p>
<p>I have been playing around with generics and <a href="http://developer.db4o.com/" rel="nofollow noreferrer">db4o</a> (open source object database) and am writing a test program (see code below) to... | [
{
"answer_id": 313044,
"author": "Brian B.",
"author_id": 21817,
"author_profile": "https://Stackoverflow.com/users/21817",
"pm_score": 3,
"selected": true,
"text": " // ...\n {\n //...\n MyCollection1 collection3 = GetCollectionFromDb<MyCollection1>(Collection1Name);\n... | 2008/11/23 | [
"https://Stackoverflow.com/questions/313036",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2645/"
] |
313,047 | <p>I've been frustrated by this for the entire weekend, plus a day or two, so any help would be significantly appreciated.</p>
<p>I'm trying to write a program that can programmatically go into a SharePoint 2007 doc library, open a file, change the contents of the file, then put the file back. I've gotten all but the ... | [
{
"answer_id": 314236,
"author": "user4531",
"author_id": 4531,
"author_profile": "https://Stackoverflow.com/users/4531",
"pm_score": 3,
"selected": true,
"text": "Stream fs = mySPFile.OpenBinaryStream();\n\nusing (WordprocessingDocument ooxmlDoc = WordprocessingDocument.Open(fs, true))\... | 2008/11/23 | [
"https://Stackoverflow.com/questions/313047",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29227/"
] |
313,049 | <p>This fails with 'X.m is not a function'...</p>
<pre><code>var Y = function () {
this.m = function () {
alert('this is m');
};
};
var X = new function () { };
X.prototype = new Y();
X.m();
</code></pre>
<p>It would certainly work if I skipped the new keyword in the X definition and then instantiat... | [
{
"answer_id": 313056,
"author": "Benry",
"author_id": 28408,
"author_profile": "https://Stackoverflow.com/users/28408",
"pm_score": 2,
"selected": false,
"text": "var X = new function () { };\nalert(X.prototype); // displays \"undefined\" because X is an \n // objec... | 2008/11/23 | [
"https://Stackoverflow.com/questions/313049",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
313,054 | <p>(Django 1.x, Python 2.6.x)</p>
<p>I have models to the tune of:</p>
<pre><code>class Animal(models.Model):
pass
class Cat(Animal):
def __unicode__(self):
return "This is a cat"
class Dog(Animal):
def __unicode__(self):
return "This is a dog"
class AnimalHome(models.Model):
animal = models.Foreig... | [
{
"answer_id": 313105,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 3,
"selected": false,
"text": "class CommonInfo(models.Model):\n name = models.CharField(max_length=100)\n age = models.PositiveIntegerField()\n\n ... | 2008/11/23 | [
"https://Stackoverflow.com/questions/313054",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39396/"
] |
313,070 | <p>Hey having some trouble trying to maintain transparency on a png when i create a thumbnail from it, anyone any experience with this? any help would be great, here's what i am currently doing:</p>
<pre><code>$fileName= "../js/ajaxupload/tees/".$fileName;
list($width, $height) = getimagesize($fileName);
$newwidth =... | [
{
"answer_id": 313103,
"author": "Tom Haigh",
"author_id": 22224,
"author_profile": "https://Stackoverflow.com/users/22224",
"pm_score": 7,
"selected": true,
"text": "$thumb = imagecreatetruecolor($newwidth, $newheight);\nimagealphablending($thumb, false);\nimagesavealpha($thumb, true); ... | 2008/11/23 | [
"https://Stackoverflow.com/questions/313070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40141/"
] |
313,111 | <p>What is the equivalent of <code>/dev/null</code> on Windows?</p>
| [
{
"answer_id": 313115,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 10,
"selected": true,
"text": "NUL type c:\\autoexec.bat > NUL\n $null echo 1 > $null\n"
},
{
"answer_id": 313118,
"author": "strager",
... | 2008/11/23 | [
"https://Stackoverflow.com/questions/313111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40145/"
] |
313,124 | <p>How do I expose the <code>ActualWidth</code> property of one of the components of my user control to users?</p>
<p>I have found plenty of examples of how to expose a normal property by creating a new dependency property and binding, but none on how to expose a read-only property like <code>ActualWidth</code>.</p>
| [
{
"answer_id": 313619,
"author": "ligaz",
"author_id": 6409,
"author_profile": "https://Stackoverflow.com/users/6409",
"pm_score": 0,
"selected": false,
"text": "ActualWidth FrameworkElement"
},
{
"answer_id": 317699,
"author": "Micah",
"author_id": 17744,
"author_pro... | 2008/11/23 | [
"https://Stackoverflow.com/questions/313124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36074/"
] |
313,127 | <p>From the .net 4.0 previews I have read until now there has been lots of talk on how the next .net version will handle and use cpus with multiple cores. We will have additions like plinq that will help us make use of multiple cores. My question is why should I have to bother my mind with handling multiple cores when ... | [
{
"answer_id": 834058,
"author": "gbjbaanb",
"author_id": 13744,
"author_profile": "https://Stackoverflow.com/users/13744",
"pm_score": 0,
"selected": false,
"text": "int main(int argc, char **argv) {\n const int N = 100000;\n int i, a[N];\n\n #pragma omp parallel for\n for (... | 2008/11/23 | [
"https://Stackoverflow.com/questions/313127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29519/"
] |
313,137 | <p>In my specific case, I have two kinds of "messages" that I need to retrive and paginate.</p>
<p>Let's omit the details, and just say that the first kind is in a model called Msg1 and the other is called Msg2</p>
<p>The fields of these two models are completely different, the only fields that are common to the two ... | [
{
"answer_id": 313149,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 2,
"selected": false,
"text": "def merge( qs1, qs2 ):\n iqs1= iter(qs1)\n iqs2= iter(qs2)\n k1= iqs1.next()\n k2= iqs2.next()\n k1_data, k2... | 2008/11/23 | [
"https://Stackoverflow.com/questions/313137",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35364/"
] |
313,139 | <p>Pretty new to css and trying to make the tags on my page smaller on all sides. What are the best settings to modify? Margin doesn't seem to do what I want.</p>
<pre><code>.story .content .tags .tag
{
margin: 10px 5px 10px 5px;
background-color: #99FF33;
font-weight: 500;
color: #330099;
font-sty... | [
{
"answer_id": 313175,
"author": "Vincent Ramdhanie",
"author_id": 27439,
"author_profile": "https://Stackoverflow.com/users/27439",
"pm_score": 1,
"selected": false,
"text": " width:200px;\n height:20px;\n"
},
{
"answer_id": 313234,
"author": "Darko",
"author_id": 32943,... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
313,141 | <p>Why whenever I compile and run the following code in Visual Studio 2008:</p>
<pre><code>double value1 = 10.5;
double value2 = 15.5;
int whole_number = value1 + value2;
Console::WriteLine(whole_number);
</code></pre>
<p>I get an incorrect value of 26 while the answer is 25.</p>
<p>However when I use static casts o... | [
{
"answer_id": 313144,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 4,
"selected": true,
"text": "double value1 = 10.5;\ndouble value2 = 15.5;\nint whole_number = value1 + value2; // int whole_number = 26.0... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/75350/"
] |
313,146 | <p>I'm running into a recurrent problem with git on windows (I'm running MSysGit from package Git-1.6.0.2-preview20080923.exe, i tried as well with Git-1.5.6.1-preview20080701.exe and the results are the same).</p>
<p>It happens very offen that some files are shown as changed when I didn't change them, and in git-gui ... | [
{
"answer_id": 313272,
"author": "Paul",
"author_id": 23356,
"author_profile": "https://Stackoverflow.com/users/23356",
"pm_score": 3,
"selected": false,
"text": "$ git config --global core.autocrlf true\n $ git reset --hard HEAD\n$ git commit -a\n"
}
] | 2008/11/24 | [
"https://Stackoverflow.com/questions/313146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38995/"
] |
313,157 | <p>All the examples I see are for Java SE applications by passing your JAR file at the command line. Can JConsole attach to a WAR or EAR and monitor application performance?</p>
| [
{
"answer_id": 313207,
"author": "Vineet Reynolds",
"author_id": 3916,
"author_profile": "https://Stackoverflow.com/users/3916",
"pm_score": 3,
"selected": true,
"text": ">startup.bat -Dcom.sun.management.jmxremote\n >jconsole\n"
}
] | 2008/11/24 | [
"https://Stackoverflow.com/questions/313157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19875/"
] |
313,176 | <p>I am working on a project using rails 2.1.1. With the new release of 2.2.2 I want to migrate to the new version. Is there anything I need to change to migrate my 2.1.1 controllers, views, and models?</p>
| [
{
"answer_id": 314202,
"author": "mwilliams",
"author_id": 23909,
"author_profile": "https://Stackoverflow.com/users/23909",
"pm_score": 4,
"selected": true,
"text": "rake rails:update\n rake -T\n"
}
] | 2008/11/24 | [
"https://Stackoverflow.com/questions/313176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5004/"
] |
313,178 | <p>Question says it all, I've got a 500,000 line file that gets generated as part of an automated build process on a Windows box and it's riddled with <strong>^M</strong>'s. When it goes out the door it needs to <strong>*nix</strong> friendly, what's the best approach here, is there a handy snippet of code that could d... | [
{
"answer_id": 313196,
"author": "hayalci",
"author_id": 16084,
"author_profile": "https://Stackoverflow.com/users/16084",
"pm_score": 2,
"selected": false,
"text": "tr -d '^M' < infile > outfile\n tr -d '\\r' < infile > outfile\n"
},
{
"answer_id": 313202,
"author": "Federic... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1030/"
] |
313,186 | <p>I know FireBug with YSlow has to be by far my personal favourite. I also use IE developer toolbar when forced to test pages in IE. Is there any other jewels out there hiding??</p>
| [
{
"answer_id": 313225,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 2,
"selected": false,
"text": "defaults write com.apple.Safari IncludeDebugMenu \"YES\"\n"
}
] | 2008/11/24 | [
"https://Stackoverflow.com/questions/313186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6088/"
] |
313,199 | <p>I have an application that has many different types of objects that each persist themselves back to the db. This has worked fine so far without transactions and I'm not looking to go hog wild adding them. But there is an occasional need to start a transaction before a whole collection of the objects start updating t... | [
{
"answer_id": 313278,
"author": "Jason Jackson",
"author_id": 13103,
"author_profile": "https://Stackoverflow.com/users/13103",
"pm_score": 3,
"selected": true,
"text": "using(TransactionScope scope = new TransactionScope())\n{\n SaveObjectOne(); //these are just psuedo-code statements... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313199",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3442/"
] |
313,243 | <p>How to solve "Must be MarshalByRefObject" in a good but multiple-inheritance amputated language like C#?</p>
<p>The problem is very simple, in several cases you just have to inherit from this class (infrastructure requirements).
It does not matter here really, which cases.
So, what do you do if you've already inher... | [
{
"answer_id": 313275,
"author": "Neil Hewitt",
"author_id": 22178,
"author_profile": "https://Stackoverflow.com/users/22178",
"pm_score": 5,
"selected": true,
"text": "public interface IMyType\n{\n string SayHello();\n string BaseTypeMethodIWantToUse();\n}\n\npublic class MyType :... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38325/"
] |
313,253 | <p>I have code like this to move the player in my game left, right, up, and down:</p>
<pre><code>keysSetRepeat(20, 5);
while (lives) {
scanKeys();
if (keysDownRepeat() & (KEY_LEFT | KEY_RIGHT | KEY_UP | KEY_DOWN)) {
u8 new_x = x;
u8 new_y = y;
if (keysDownRepeat() & KEY_LEFT)... | [
{
"answer_id": 313255,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 3,
"selected": true,
"text": "uint32 keysDownRepeat(void) {\n uint32 tmp = keysrepeat;\n\n keysrepeat = 0;\n\n return tmp;\n}\n keysDownRepeat()... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/813/"
] |
313,269 | <p>I'm looking for your best solutions for creating a new message instance based on a pre-defined XSD schema to be used within a Biztalk orchestration.</p>
<p>Extra votes go to answers with clear & efficient examples or answers with quality referenced links.</p>
| [
{
"answer_id": 313280,
"author": "Greg Beech",
"author_id": 13552,
"author_profile": "https://Stackoverflow.com/users/13552",
"pm_score": 1,
"selected": false,
"text": "System.Xml.XmlDocument Load LoadXml"
},
{
"answer_id": 313284,
"author": "David Hall",
"author_id": 266... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3810/"
] |
313,270 | <p>I know I can configure command line arguments in the Run configuration but I want to run a java file multiple times with different command line arguments. It's a pain to change the Run Configuration every time.</p>
<p>Is there a way I can make Eclipse prompt me for command line arguments every time I run the progra... | [
{
"answer_id": 313292,
"author": "Ken Gentle",
"author_id": 8709,
"author_profile": "https://Stackoverflow.com/users/8709",
"pm_score": 8,
"selected": true,
"text": "string_prompt Program Argument Run ${string_prompt}\n file_prompt folder_prompt Variables (x)= Arguments"
},
{
"a... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24424/"
] |
313,281 | <p>I am using the FlexiGrid jQuery plug in and I need to get a JSON object back form my MVC App, simple enough if the FlexiGrid took just the object but I need to add a few items to the response string for it to work properly with FlexiGrid.</p>
<p>So here is a portion of my controller code:</p>
<pre><code>If Request... | [
{
"answer_id": 313285,
"author": "Eric Schoonover",
"author_id": 3957,
"author_profile": "https://Stackoverflow.com/users/3957",
"pm_score": 4,
"selected": false,
"text": "Json() JavaScriptSerializer JsonResult Json() StringBuilder JavaScriptSerializer.Serialize() StringBuilder"
},
{... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34548/"
] |
313,297 | <p>I'm trying to come up with a simple and efficient way to create a smooth surface which intersects a number of given "sample" points.</p>
<p>For any X,Y point on the surface, I identify up to 4 sample points in each of the 4 directions (the next higher and lower points on the X, and then the Y axes). Given this poi... | [
{
"answer_id": 344756,
"author": "Bob Cross",
"author_id": 5812,
"author_profile": "https://Stackoverflow.com/users/5812",
"pm_score": 5,
"selected": true,
"text": "p00 p01 q0 p02 p03\np10 p11 q1 p12 p13\np20 p21 q2 p22 p23\np30 p31 q3 p32 p33\n | 0 1 0 0 | | p[i−... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16050/"
] |
313,306 | <p>In T-SQL, SPACE() function is used to add spaces to a string. For e.g. </p>
<pre><code>@s = 'He' + space(5) + 'llo'
</code></pre>
<p>Output</p>
<pre><code>He llo
</code></pre>
<p>So is there any function in PL/SQL that is equivalent to SPACE()?</p>
<p>Thank you.</p>
| [
{
"answer_id": 313368,
"author": "IK.",
"author_id": 21283,
"author_profile": "https://Stackoverflow.com/users/21283",
"pm_score": 5,
"selected": true,
"text": "select 'He' || rpad(' ',5,' ') || 'llo'\nfrom dual;\n/\n declare\n x varchar2(20);\nbegin\n x:= 'He' || rpad(' ',5,' ') || ... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1602746/"
] |
313,324 | <p>How to declare a static dictionary object inside a static class? I tried</p>
<pre><code>public static class ErrorCode
{
public const IDictionary<string, string> ErrorCodeDic = new Dictionary<string, string>()
{
{ "1", "User name or password problem" }
};
}
</code></pre>
<p>But ... | [
{
"answer_id": 313328,
"author": "Craig",
"author_id": 27294,
"author_profile": "https://Stackoverflow.com/users/27294",
"pm_score": -1,
"selected": false,
"text": "public static class ErrorCode\n{\n public const IDictionary<string , string > m_ErrorCodeDic;\n\n public static Error... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] |
313,332 | <p>How do I use <a href="http://www1.cs.columbia.edu/~lok/csharp/refdocs/System.Xml.XPath/types/XPathNavigator.html#Evaluate(System.String)" rel="nofollow noreferrer">XPathNavigator.Evaluate</a> ( or other methods in XPathNavigator) to obtain the ISBN value for the following xml input?</p>
<pre><code><?xml version=... | [
{
"answer_id": 313328,
"author": "Craig",
"author_id": 27294,
"author_profile": "https://Stackoverflow.com/users/27294",
"pm_score": -1,
"selected": false,
"text": "public static class ErrorCode\n{\n public const IDictionary<string , string > m_ErrorCodeDic;\n\n public static Error... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] |
313,334 | <p>Reporting Services 2000 SP2</p>
<p>I've got a matrix displaying the number of employees </p>
<pre><code> Business1 Business2 Business3
StartBefore99 9 14 4
StartAfter99 30 20 34
</code></pre>
<p>I'd like to display percentages eg</p... | [
{
"answer_id": 313328,
"author": "Craig",
"author_id": 27294,
"author_profile": "https://Stackoverflow.com/users/27294",
"pm_score": -1,
"selected": false,
"text": "public static class ErrorCode\n{\n public const IDictionary<string , string > m_ErrorCodeDic;\n\n public static Error... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26086/"
] |
313,359 | <p>When editing PHP code (I'm not sure if it's specific to that language) and I create a new line in the middle of comma-separated lists that span multiple lines, the indent rules always unindent the line I'm leaving. <a href="http://toogeneric.com/files/indent2.mov" rel="noreferrer">Here's a video of it.</a> This happ... | [
{
"answer_id": 313363,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 2,
"selected": false,
"text": ":set indentexpr=\"\" :help filetype-indent-off"
},
{
"answer_id": 313384,
"author": "Alex Suraci",
"autho... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9743/"
] |
313,374 | <p>hi i forgot the code which in a sample class you have to add so that it runs automatically?</p>
<p>is it wakeup or something?</p>
<p>like so:</p>
<pre><code>class something {
function automaticxxx_something_which_runs when class is created()
{
}
}
$s = new something();
</code></pre>
<p>-what do i create in ... | [
{
"answer_id": 313396,
"author": "Matthewd",
"author_id": 40159,
"author_profile": "https://Stackoverflow.com/users/40159",
"pm_score": 3,
"selected": true,
"text": "class Foobar\n{\n function Foobar()\n {\n echo \"Hello World!\\n\";\n }\n}\n\nnew Foobar()\n class Foobar\... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1345527/"
] |
313,400 | <p>How exactly does <code>NSInvocation</code> work? Is there a good introduction?</p>
<p>I’m specifically having issues understanding how the following code (from <em>Cocoa Programming for Mac OS X, 3rd Edition</em>) works, but then also be able to apply the concepts independently of the tutorial sample. The code:</p>... | [
{
"answer_id": 313455,
"author": "e.James",
"author_id": 33686,
"author_profile": "https://Stackoverflow.com/users/33686",
"pm_score": 9,
"selected": true,
"text": "NSInvocation NSInvocation NSInvocation addObject: [myArray addObject:myString];\n NSInvocation NSInvocation NSMutableArray ... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14048/"
] |
313,410 | <p>Try clicking on the "Print" button on the following page:
(link removed - consensus is that everything was working fine and the problem was my setup)
For debugging purposes, I've replaced a chunk of javascript with a simple alert("test"), and even that isn't showing up in IE7 for me. It works totally fine in Safari... | [
{
"answer_id": 6374103,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "https://Stackoverflow.com/users/15459",
"pm_score": 2,
"selected": false,
"text": "file:// javascript:alert(\"Foo\");"
},
{
"answer_id": 9977448,
"author": "LesFromWalden",
"author_id": 130... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
313,417 | <p>We're writing a records management product for schools and one of the requirements is the ability to manage course schedules. I haven't looked at the code for how we deal with this (I'm on a different project at the moment), but nonetheless I started wondering how best to handle one particular part of this requireme... | [
{
"answer_id": 24174625,
"author": "Nelson Teixeira",
"author_id": 2752520,
"author_profile": "https://Stackoverflow.com/users/2752520",
"pm_score": 6,
"selected": false,
"text": " sun=1, mon=2, tue=4, wed=8, thu=16, fri=32, sat=64. \n select * from courses where (days & 8) > 0\n select ... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313417",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17862/"
] |
313,432 | <p>I'm a C/Python programmer in C++ land working with the STL for the first time.</p>
<p>In Python, extending a list with another list uses the <code>.extend</code> method:</p>
<pre><code>>>> v = [1, 2, 3]
>>> v_prime = [4, 5, 6]
>>> v.extend(v_prime)
>>> print(v)
[1, 2, 3, 4, 5, 6... | [
{
"answer_id": 313444,
"author": "Dmitry Khalatov",
"author_id": 18174,
"author_profile": "https://Stackoverflow.com/users/18174",
"pm_score": 7,
"selected": true,
"text": "// reserve() is optional - just to improve performance\nv.reserve(v.size() + distance(v_prime.begin(),v_prime.end()... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3594/"
] |
313,434 | <p>I am having trouble setting the path to jquery in an mvc app. In my master page I have the script declared and jquery works at the root of my app. When I navigate to a content view page in my app jquery does not get loaded properly. Do I need to set the path in the content page as well or declare the path differentl... | [
{
"answer_id": 313856,
"author": "Simon Steele",
"author_id": 4591,
"author_profile": "https://Stackoverflow.com/users/4591",
"pm_score": 4,
"selected": false,
"text": "<script src=\"<%= Url.Content(\"~/Content/jquery-1.2.6.min.js\") %>\" type=\"text/javascript\"></script>\n"
},
{
... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15059/"
] |
313,442 | <p>I have a website that can be accessed from www.blahblah.com and special.blahblah.com. The www site always works but occasionly I get a 'Content controls have to be top-level controls in a content page or a nested master page that references a master page' error on the special site.</p>
<p>It's exactly the same cod... | [
{
"answer_id": 4300828,
"author": "Daniel Ryan",
"author_id": 515455,
"author_profile": "https://Stackoverflow.com/users/515455",
"pm_score": 2,
"selected": false,
"text": "<//asp:HyperLink>\n"
},
{
"answer_id": 11197442,
"author": "MunsterMan",
"author_id": 1198613,
... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313442",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10102/"
] |
313,446 | <p>Java was initially slow before the JIT but today performance is pretty close to C++. I want to know if someone has done measurable performance comparisons between the two languages? <b>Where does Java fall short when compared to C++?</b> Java provides many productivity gains to developers so they can write applic... | [
{
"answer_id": 3162415,
"author": "J D",
"author_id": 13924,
"author_profile": "https://Stackoverflow.com/users/13924",
"pm_score": 2,
"selected": false,
"text": "Dictionary"
}
] | 2008/11/24 | [
"https://Stackoverflow.com/questions/313446",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
313,462 | <p>I'm moving from Eclipse to Visual Studio .NET and have found all my beloved hotkeys except two:</p>
<ul>
<li>in Eclipse you can press <kbd>ALT</kbd>-<kbd>←</kbd> and <kbd>ALT</kbd>-<kbd>→</kbd> to visit recent changes you have made, something I use frequently to go back to where I was in some other file and then re... | [
{
"answer_id": 313475,
"author": "Charlie",
"author_id": 18529,
"author_profile": "https://Stackoverflow.com/users/18529",
"pm_score": 4,
"selected": false,
"text": "\n Sub CopyLineBelow()\n DTE.ActiveDocument.Selection.Collapse()\n DTE.ActiveDocument.Selection.Copy()\n ... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313462",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4639/"
] |
313,463 | <p>Is there any way to save the state of vim settings with a document?</p>
<p>To clarify: I'm editing a document and I change a bunch of settings. I don't necessarily recall which; and I don't want to use these settings again, except for the current document. I don't want to manually try to remember what I've changed;... | [
{
"answer_id": 313466,
"author": "ypnos",
"author_id": 21974,
"author_profile": "https://Stackoverflow.com/users/21974",
"pm_score": 7,
"selected": false,
"text": "/* ex: set tabstop=8 expandtab: */\n modeline set modeline\n"
},
{
"answer_id": 313544,
"author": "Harley Holcom... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31641/"
] |
313,467 | <p>I am using the rounded corners plugin for jquery and have it working rounding elements in my page. The only issue I have is that the elements appear on the page un-rounded and then round. What do I need to do so that the elements only appear rounded?</p>
<p>I originally put my script tags in the head element but sh... | [
{
"answer_id": 313466,
"author": "ypnos",
"author_id": 21974,
"author_profile": "https://Stackoverflow.com/users/21974",
"pm_score": 7,
"selected": false,
"text": "/* ex: set tabstop=8 expandtab: */\n modeline set modeline\n"
},
{
"answer_id": 313544,
"author": "Harley Holcom... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15059/"
] |
313,478 | <p>What's the best way to get a regular anchor (<code><a href="..."></code>) to submit the form it is embedded in when clicked?</p>
<pre><code><form>
<ul>
<li>
<p>
The link could be <span>embedded <a href="" onclick="?">at any level</... | [
{
"answer_id": 313480,
"author": "ypnos",
"author_id": 21974,
"author_profile": "https://Stackoverflow.com/users/21974",
"pm_score": 5,
"selected": false,
"text": "<input> <button>"
},
{
"answer_id": 313486,
"author": "Vinny Carpenter",
"author_id": 10511,
"author_pro... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
313,483 | <p>I got my Xampp server running and can run my html in subdirectories now, as well (can't have spaces in the subdirectory names).</p>
<p><strong>SSI Includes or PHP Includes:</strong></p>
<p>Xampp says SSI is deactivated. Tried uncommenting the lines for includes, but it doesn't change the deactivation.</p>
<p>How ... | [
{
"answer_id": 313500,
"author": "Powerlord",
"author_id": 15880,
"author_profile": "https://Stackoverflow.com/users/15880",
"pm_score": 1,
"selected": false,
"text": "<!--#include virtual=\"/something/file.html\" --> \n"
},
{
"answer_id": 384685,
"author": "Matt Kantor",
... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40091/"
] |
313,518 | <p>I have run into a bit of a desgin issue with some code that I have been working on:</p>
<p>My code basic looks like this:</p>
<p><strong>Main COM wrapper:</strong></p>
<pre><code>public class MapinfoWrapper
{
public MapinfoWrapper()
{
Publics.InternalMapinfo = new MapinfoWrapper();
}
pub... | [
{
"answer_id": 313617,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": "public class TableInfo\n{\n private IMapinfoWrapper wrapper;\n\n public TableInfo() : this(null) {}\n\n pub... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6335/"
] |
313,538 | <p>We are using shared hosting and the follow features are disabled.</p>
<pre><code>file_uploads = Off
allow_url_fopen = Off
allow_url_include = Off
</code></pre>
<p>We are unable to change hosting and need to figure out some workarounds. The hosting co is also not able/willing to enable these features. </p>
<p>Fo... | [
{
"answer_id": 19554092,
"author": "anoopjohn",
"author_id": 722087,
"author_profile": "https://Stackoverflow.com/users/722087",
"pm_score": 0,
"selected": false,
"text": "function fetch_file($path) {\n $ch = curl_init(\"http://www.example.com/get_file?path=$path&key=security_key\");\... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
313,555 | <p>I'm looking for a small C library to handle utf8 strings.</p>
<p>Specifically, splitting based on unicode delimiters for use with stemming algorithms.</p>
<p>Related posts have suggested:</p>
<p>ICU <a href="http://www.icu-project.org/" rel="noreferrer">http://www.icu-project.org/</a> (I found it too bulky for my... | [
{
"answer_id": 313596,
"author": "Artelius",
"author_id": 31945,
"author_profile": "https://Stackoverflow.com/users/31945",
"pm_score": 4,
"selected": false,
"text": "strstr strcpy strstr"
}
] | 2008/11/24 | [
"https://Stackoverflow.com/questions/313555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40175/"
] |
313,567 | <p>I'm writing an application in PHP 5. I want to delete some rows in a SQLite v2 database file. I'm doing something like this:</p>
<pre><code>$sqliteConnection = new SQLiteDatabase('path/to/db');
$queryString = "DELETE FROM myTable WHERE status='not good'";
$result = $sqliteConnection->query($queryString);
</code>... | [
{
"answer_id": 313574,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 4,
"selected": true,
"text": "sqlite_changes() dbhandle echo 'Number of rows modified: ', sqlite_changes($sqliteConnection);\n echo 'Number of rows modif... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313567",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9394/"
] |
313,575 | <p>We are using OpenLDAP client library to conect to an LDAP server. The problem is that if there is no activity for some time, server (or firewall in the middle) drops TCP connection.</p>
<p>Our current implementation of "keep-alive" just does search for baseDN from time to time - any better ideas ? </p>
| [
{
"answer_id": 335368,
"author": "Dmitry Khalatov",
"author_id": 18174,
"author_profile": "https://Stackoverflow.com/users/18174",
"pm_score": 1,
"selected": true,
"text": "ldap_set_option( ld, LDAP_OPT_RECONNECT, LDAP_OPT_ON );\n"
},
{
"answer_id": 2591876,
"author": "Alin",... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18174/"
] |
313,581 | <p>I have a N-Ary non sorted in any way tree and each node can have 0-N children. Given the data structure below, how can I fill the tree view assuming you have an array of TermNodes and that array is the first level of the TreeView? I have not been able to come up with a recursive way to do this.</p>
<pre><code>class... | [
{
"answer_id": 313602,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 1,
"selected": false,
"text": "public static void BuildTreeView(TreeNodeCollection Parent, List<TermNode> TermNodeList)\n{\n foreach (TermNode n in Term... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11100/"
] |
313,584 | <p>What is the concept of erasure in generics in Java?</p>
| [
{
"answer_id": 313590,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 9,
"selected": true,
"text": "java.lang.Object T T java.lang.Object List<String> List<Date> typeof(T) T.class"
},
{
"answer_id": 313605,
"a... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37626/"
] |
313,611 | <p>Ok, I am new to JQuery, I have a modal that has a asp:Literal control in it. The literal is controled by whatever link is clicked to activate the modal. So, I had hoped it would be as easy as giving the literal value onClick of the link but that's not it. </p>
<p>I'm hoping: the value of the literal is set on the p... | [
{
"answer_id": 313646,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 0,
"selected": false,
"text": "litModal $('.article a, #menu a, #features a').click(function(anchor){\n var val = jQuery(anchor).text(... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4140/"
] |
313,615 | <p>I have a controller that returns either JSON or partial html depending on if the user is logged in. </p>
<p>Is there anyway to tell the difference once the result has been returned??
What is the best way.</p>
<p>Obviously i have different actions to complete if the response is json or if it is the partial html. Wi... | [
{
"answer_id": 313628,
"author": "Jeff Hubbard",
"author_id": 8844,
"author_profile": "https://Stackoverflow.com/users/8844",
"pm_score": 0,
"selected": false,
"text": "application/x-format-json"
},
{
"answer_id": 313631,
"author": "Tomalak",
"author_id": 18771,
"auth... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29376/"
] |
313,622 | <p>Does anyone have a Powershell script to change the credentials used by a Windows service?</p>
| [
{
"answer_id": 313637,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 2,
"selected": false,
"text": "$class=[WMICLASS]'\\\\.\\root\\Microsoft\\SqlServer\\ComputerManagement:SqlService'\n setserviceaccount() # Copyright Buck Wood... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7618/"
] |
313,629 | <p>I am writing a simple memory game using ruby + qt (trying to get away from c++ for while...)<br>
In order to allow a X second timeout to view two open pieces, I need either timers or do the work in a background thread.</p>
<p>What is the simplest way of implementing this without reinventing the wheel?<br>
Ruby thre... | [
{
"answer_id": 558119,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "block=Proc.new{ Thread.pass }\ntimer=Qt::Timer.new(window)\ninvoke=Qt::BlockInvocation.new(timer, block, \"invoke()\")\nQt::Ob... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313629",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
313,639 | <p>I have two UIActionSheets and I am thinking that I will control them with one delegate (the UIViewController that instantiates them). The delegate will capture an actionSheet call and try to figure out which of the two threw the event.</p>
<p>I tried to get the modalView's title to differentiate, but it seems to b... | [
{
"answer_id": 313667,
"author": "Stephen Darlington",
"author_id": 2998,
"author_profile": "https://Stackoverflow.com/users/2998",
"pm_score": 5,
"selected": false,
"text": "UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle ... ];\nactionSheet.tag = 10;\n[actionSheet sho... | 2008/11/24 | [
"https://Stackoverflow.com/questions/313639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.