qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
246,438 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/358874/how-can-i-use-a-carriage-return-in-a-html-tooltip">How can I use a carriage return in a HTML tooltip?</a> </p>
</blockquote>
<p>I'd like to know if it's possible to force a newline to show in the tooltip... | [
{
"answer_id": 246439,
"author": "Ady",
"author_id": 31395,
"author_profile": "https://Stackoverflow.com/users/31395",
"pm_score": 2,
"selected": false,
"text": "<td title=\"lineone\nlinetwo \netc...\">\n"
},
{
"answer_id": 246451,
"author": "RealHowTo",
"author_id": 2512... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15616/"
] |
246,440 | <p>I want to draw spinner controls, such as those found on a NumericUpDown, on a custom component. If I want to draw a drop-down button, I can use ComboBoxRenderer. Is there an equivalent of ComboBoxRenderer for NumericUpDown?</p>
| [
{
"answer_id": 259078,
"author": "Alan",
"author_id": 31223,
"author_profile": "https://Stackoverflow.com/users/31223",
"pm_score": 0,
"selected": false,
"text": "[DllImport(\"uxtheme.dll\", ExactSpelling = true, CharSet = CharSet.Unicode)]\npublic static extern IntPtr OpenThemeData(IntP... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15371/"
] |
246,443 | <p>I am experiencing some strange behavior of embedded audio (wav file) on HTML page.
I've got a page <code>https://server.com/listen-to-sound</code>, and a Wav file embedded in it via <code><EMBED/></code> tag, like this:</p>
<pre><code><embed src='https://server.com/path-to-sound' hidden="true" autostart="t... | [
{
"answer_id": 246729,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "https://Stackoverflow.com/users/15459",
"pm_score": 0,
"selected": false,
"text": "<NOEMBED> <object>"
},
{
"answer_id": 821112,
"author": "Travis",
"author_id": 307338,
"author_profile"... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17707/"
] |
246,445 | <p>I have a <code>char* p</code>, which points to a <code>\0</code>-terminated string. How do I create a C++ <code>string</code> from it in an exception-safe way?</p>
<p>Here is an unsafe version:</p>
<pre><code>string foo()
{
char *p = get_string();
string str( p );
free( p );
return str;
}
</code></pre>
<... | [
{
"answer_id": 246457,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 6,
"selected": true,
"text": "shared_ptr string\nfoo()\n{\n shared_ptr<char> p(get_string(), &free);\n string str(p.get());\n return str;\n}\n sha... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23420/"
] |
246,498 | <p>I'm trying to create a unit test to test the case for when the timezone changes on a machine because it has been incorrectly set and then corrected.</p>
<p>In the test I need to be able to create DateTime objects in a none local time zone to ensure that people running the test can do so successfully irrespective of... | [
{
"answer_id": 246529,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 9,
"selected": true,
"text": "public struct DateTimeWithZone\n{\n private readonly DateTime utcDateTime;\n private readonly TimeZoneInfo timeZone... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42109/"
] |
246,503 | <p>OK, I am trying to generate the rDoc for paperclip, but the rake task is choking on another plugin before it gets to it, so this is out of the question:</p>
<pre><code>rake doc:plugins
</code></pre>
<p>I could go and fix up the broken plugin, but I'm busy and lazy, so I just want to generate the docs for paperclip... | [
{
"answer_id": 246507,
"author": "Codebeef",
"author_id": 12037,
"author_profile": "https://Stackoverflow.com/users/12037",
"pm_score": 4,
"selected": true,
"text": "rake doc:plugins:paperclip\n"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/246503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12037/"
] |
246,518 | <p>I used the owner-drawn strategy on CMyListBox class which derives from CListBox. I only want the DrawItem() method to perform when I insert an item in the listbox. But the method is invoked many times. How can I change to invoke it whenever I need.</p>
| [
{
"answer_id": 246543,
"author": "SmacL",
"author_id": 22564,
"author_profile": "https://Stackoverflow.com/users/22564",
"pm_score": 0,
"selected": false,
"text": "void CMyListBox::DrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct )\n{\n if (!m_DrawingEnabled)\n return;\n}\n"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/246518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26404/"
] |
246,520 | <p>I'm writing a web application which uses windows authentication and I can happily get the user's login name using something like:</p>
<pre><code> string login = User.Identity.Name.ToString();
</code></pre>
<p>But I don't need their login name I want their DisplayName. I've been banging my head for a couple hours n... | [
{
"answer_id": 246655,
"author": "Panos",
"author_id": 8049,
"author_profile": "https://Stackoverflow.com/users/8049",
"pm_score": 3,
"selected": false,
"text": "GetUserProperty(\"<myaccount>\", \"DisplayName\");\n\npublic static string GetUserProperty(string accountName, string property... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31765/"
] |
246,525 | <p>I'm using Python's Imaging Library and I would like to draw some bezier curves.
I guess I could calculate pixel by pixel but I'm hoping there is something simpler.</p>
| [
{
"answer_id": 246628,
"author": "Jasper Bekkers",
"author_id": 31486,
"author_profile": "https://Stackoverflow.com/users/31486",
"pm_score": 5,
"selected": true,
"text": "A B C t P0 = A * t + (1 - t) * B\nP1 = B * t + (1 - t) * C\n Pfinal = P0 * t + (1 - t) * P1\n dt 0 <= t <= 1"
},
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246525",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20498/"
] |
246,540 | <p>This error has been driving me nuts. We have a server running Apache and Tomcat, serving multiple different sites. Normally the server runs fine, but sometimes an error happens where people are served the wrong page - <strong>the page that <em>somebody else</em> requested!</strong></p>
<p>Clues:</p>
<ul>
<li>The ... | [
{
"answer_id": 246566,
"author": "toolkit",
"author_id": 3295,
"author_profile": "https://Stackoverflow.com/users/3295",
"pm_score": 3,
"selected": false,
"text": "public class MyServlet ... {\n private String action;\n\n public void doGet(...) {\n action = request.getParam... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1000/"
] |
246,542 | <p>There was no endpoint listening at http;//localhost:8080/xdxservice/xdsrepository that could accept the message. This is often caused by an incorrect address or SOAP action. </p>
| [
{
"answer_id": 246625,
"author": "ZombieSheep",
"author_id": 377,
"author_profile": "https://Stackoverflow.com/users/377",
"pm_score": 1,
"selected": false,
"text": "http;//localhost:8080/xdxservice/xdsrepository\n http://localhost:8080/xdxservice/xdsrepository\n"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/246542",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
246,559 | <p>I need to copy a set of DLL and PDB files from a set of folders recursively into another folder. I don't want to recreate the folder hierarchy in the target folder.
I want to use built in Windows tools, e.g. DOS commands. </p>
| [
{
"answer_id": 246576,
"author": "Alexander Prokofyev",
"author_id": 11256,
"author_profile": "https://Stackoverflow.com/users/11256",
"pm_score": 8,
"selected": true,
"text": "mkdir targetDir\nfor /r %x in (*.dll, *pdb) do copy \"%x\" targetDir\\\n"
},
{
"answer_id": 5632706,
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32333/"
] |
246,564 | <p>If a variable is declared as <code>static</code> in a function's scope it is only initialized once and retains its value between function calls. What exactly is its lifetime? When do its constructor and destructor get called?</p>
<pre><code>void foo()
{
static string plonk = "When will I die?";
}
</code></pre... | [
{
"answer_id": 246568,
"author": "Motti",
"author_id": 3848,
"author_profile": "https://Stackoverflow.com/users/3848",
"pm_score": 9,
"selected": true,
"text": "static struct emitter {\n string str;\n emitter(const string& s) : str(s) { cout << \"Created \" << str << endl; }\n ~... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246564",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3848/"
] |
246,577 | <p>I am writing an RSS feed (for fun) and was looking at the spec <a href="http://cyber.law.harvard.edu/rss/rss.html" rel="noreferrer">here</a>.</p>
<blockquote>
<p>RSS is a dialect of XML. All RSS files must conform to the XML 1.0 specification, as published on the World Wide Web Consortium (W3C) website.</p>
</blo... | [
{
"answer_id": 251764,
"author": "Dan Esparza",
"author_id": 19020,
"author_profile": "https://Stackoverflow.com/users/19020",
"pm_score": 4,
"selected": false,
"text": "jQuery.getFeed(options);\n jQuery.getFeed({\n url: 'rss.xml',\n success: function(feed) {\n aler... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246577",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3431280/"
] |
246,623 | <p>I want do something like this:</p>
<pre><code>Result = 'MyString' in [string1, string2, string3, string4];
</code></pre>
<p>This can't be used with strings and I don't want to do something like this:</p>
<pre><code>Result = (('MyString' = string1) or ('MyString' = string2));
</code></pre>
<p>Also I think that cr... | [
{
"answer_id": 246660,
"author": "Burkhard",
"author_id": 12860,
"author_profile": "https://Stackoverflow.com/users/12860",
"pm_score": 2,
"selected": false,
"text": "function StringInArray(Value: string; Strings: array of string): Boolean;\nvar I: Integer;\nbegin\n Result := False;\n ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/727/"
] |
246,636 | <p>My WCF Service uses wsHttpBinding and works fine from the client when the service is gerenated by the client using the default options as follows:</p>
<pre><code>RServiceClient R = new RServiceClient();
</code></pre>
<p>However, at some point I'll need to be able to specify the location of the service, presumably ... | [
{
"answer_id": 246694,
"author": "Calanus",
"author_id": 445,
"author_profile": "https://Stackoverflow.com/users/445",
"pm_score": 0,
"selected": false,
"text": "<system.serviceModel>\n <services>\n <service behaviorConfiguration=\"ServiceBehavior\" name=\"RService\">\n<endpoint addr... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246636",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/445/"
] |
246,644 | <p>Here is a simplified version of my database model. I have two tables: "Image", and "HostingProvider" which look like this:</p>
<p><strong>[Image]</strong></p>
<ul>
<li>id</li>
<li>filename</li>
<li>hostingprovider_id</li>
</ul>
<p><strong>[HostingProvider]</strong></p>
<ul>
<li>id</li>
<li>base_url</li>
</ul>
... | [
{
"answer_id": 246769,
"author": "yfeldblum",
"author_id": 12349,
"author_profile": "https://Stackoverflow.com/users/12349",
"pm_score": 0,
"selected": false,
"text": "public class Image {\n public virtual HostingProvider HostingProvider { get; set; } // NHibernate takes care of this\... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13145/"
] |
246,656 | <p>I am trying to match the folder name in a relative path using C#. I am using the expression: <code>"/(.*)?/"</code> and reversing the matching from left to right to right to left.
When I pass <code>"images/gringo/"</code> into the regular expression, it correctly gives me <code>"gringo"</code> in the first group - I... | [
{
"answer_id": 246663,
"author": "Blair Conrad",
"author_id": 1199,
"author_profile": "https://Stackoverflow.com/users/1199",
"pm_score": 4,
"selected": false,
"text": "DirectoryInfo di = new DirectoryInfo(\"images/gringo/\");\nConsole.Out.WriteLine(di.Name);\n"
},
{
"answer_id":... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
246,667 | <p>I have a table in Access 2007 with 11,000 rows and about 20 columns. I want to create a form button that exports the table to an Excel sheet. The code need to be VBA.</p>
<p>Any Ideas?</p>
| [
{
"answer_id": 246663,
"author": "Blair Conrad",
"author_id": 1199,
"author_profile": "https://Stackoverflow.com/users/1199",
"pm_score": 4,
"selected": false,
"text": "DirectoryInfo di = new DirectoryInfo(\"images/gringo/\");\nConsole.Out.WriteLine(di.Name);\n"
},
{
"answer_id":... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
246,671 | <p>Is it possible to import csv data into mysql and automatically create the column names, as in can I create just the table, or must I create the table names as well?</p>
<p>Is it possible to check for duplicate entries upon importing? I have an identifier field, but dont know how to make it so it will not be importe... | [
{
"answer_id": 246695,
"author": "Ken",
"author_id": 20074,
"author_profile": "https://Stackoverflow.com/users/20074",
"pm_score": 2,
"selected": true,
"text": "LOAD DATA [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE 'file_name'\n[REPLACE | IGNORE]\nINTO TABLE tbl_name\n[CHARACTER SET chars... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1246613/"
] |
246,697 | <p>I need to create some windows service which will execute every N period of time.<br>
The question is:<br>
Which timer control should I use: <code>System.Timers.Timer</code> or <code>System.Threading.Timer</code> one? Does it influence on something? </p>
<p>I am asking because I heard many evidences to non correct ... | [
{
"answer_id": 246719,
"author": "Andrew Moore",
"author_id": 26210,
"author_profile": "https://Stackoverflow.com/users/26210",
"pm_score": 8,
"selected": true,
"text": "System.Timers.Timer System.Threading.Timer System.Web.UI.Timer System.Windows.Forms.Timer System.Timers.Timer using Sy... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
246,701 | <p>Why do database guys go on about normalisation? </p>
<p>What is it? How does it help? </p>
<p>Does it apply to anything outside of databases? </p>
| [
{
"answer_id": 246746,
"author": "Chris Cudmore",
"author_id": 18907,
"author_profile": "https://Stackoverflow.com/users/18907",
"pm_score": 3,
"selected": false,
"text": "id, name, address\n214 Mr. Chris 123 Main St.\n317 Mrs. Chris 123 Main St.\n id name familyID\n214 Mr. Chris 27\n31... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7211/"
] |
246,710 | <p>How do I implement the singleton pattern in C#? I want to put my constants and some basic functions in it as I use those everywhere in my project. I want to have them 'Global' and not need to manually bind them every object I create.</p>
| [
{
"answer_id": 246740,
"author": "yfeldblum",
"author_id": 12349,
"author_profile": "https://Stackoverflow.com/users/12349",
"pm_score": 3,
"selected": false,
"text": "Singleton != Global static"
},
{
"answer_id": 246750,
"author": "tvanfosson",
"author_id": 12950,
"a... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246710",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22562/"
] |
246,723 | <p>Which functions are available within Delphi to play a sound-file?</p>
| [
{
"answer_id": 246772,
"author": "Igal Tabachnik",
"author_id": 8205,
"author_profile": "https://Stackoverflow.com/users/8205",
"pm_score": 6,
"selected": true,
"text": "uses MMSystem;\n\nprocedure TForm1.Button1Click(Sender: TObject);\nbegin\n sndPlaySound('C:\\Windows\\Media\\Tada.wav... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32354/"
] |
246,725 | <p>When starting a django application using <code>python manage.py shell</code>, I get an InteractiveConsole shell - I can use tab completion, etc.</p>
<pre><code>Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more in... | [
{
"answer_id": 246779,
"author": "ashchristopher",
"author_id": 22306,
"author_profile": "https://Stackoverflow.com/users/22306",
"pm_score": 9,
"selected": true,
"text": "# ~/.pythonrc\n# enable syntax completion\ntry:\n import readline\nexcept ImportError:\n print(\"Module readli... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22306/"
] |
246,726 | <p>I'm working on a report in SSRS (SQL Server Reporting Services) right now, and I'm having a problem getting a rectanlge I draw on the page in the report designer to grow. Basically, I've got a rectangle drawn, and then I put a text field inside of it. The contents of this text field can be either very short or ver... | [
{
"answer_id": 247114,
"author": "Erick B",
"author_id": 1373,
"author_profile": "https://Stackoverflow.com/users/1373",
"pm_score": 3,
"selected": true,
"text": "CanGrow = TRUE"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/246726",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/146/"
] |
246,760 | <p>In an UML component diagram, how does one tag or identify a component as a database, so that it's easily recognizable? In the old days there was the cylinder symbol for showing database but that's not part of the UML. Same goes for an application server for instance, how would that be shown?</p>
<p>Are stereotypes ... | [
{
"answer_id": 246768,
"author": "Thomas Owens",
"author_id": 572,
"author_profile": "https://Stackoverflow.com/users/572",
"pm_score": 1,
"selected": false,
"text": "<<database>> <<infrastructure>>"
},
{
"answer_id": 246771,
"author": "Ilya Kochetov",
"author_id": 15329,... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
246,762 | <p>I have a Spring Interceptor which attempts to add an HTTP header in the postHandle() method.</p>
<pre><code>public void postHandle(HttpServletRequest req, HttpServletResponse resp,
Object obj1, ModelAndView mv)
throws Exception {
response.setHeader("SomeHeaderSet", "set");
resp... | [
{
"answer_id": 247522,
"author": "DustinB",
"author_id": 7888,
"author_profile": "https://Stackoverflow.com/users/7888",
"pm_score": 2,
"selected": true,
"text": "response.setContentLength() response.setContentLength()"
},
{
"answer_id": 3092988,
"author": "Kristian",
"au... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7888/"
] |
246,766 | <p>I'm using Castle ActiveRecord, but this question applies to NHibernate, too, since a solution that works with NHibernate should work for ActiveRecord. Anyway, what I have is an underlying table structure like this:</p>
<p>TableA -hasMany-> TableB</p>
<p>I have corresponding objects EntityA and EntityB. EntityA h... | [
{
"answer_id": 246988,
"author": "Tim Scott",
"author_id": 29493,
"author_profile": "https://Stackoverflow.com/users/29493",
"pm_score": 0,
"selected": false,
"text": "[Property] public int ParentId { get; set; }\n ParentId"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/246766",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32353/"
] |
246,787 | <p>I'm creating a cms and have not yet settled on the matter of where to store the complete url for a given page in the structure.</p>
<p>Every page have a slug (url friendly name of the page) and every page has a nullable (for top-level pages) parent and children.</p>
<p>Where do I store the complete url (/first-pag... | [
{
"answer_id": 246988,
"author": "Tim Scott",
"author_id": 29493,
"author_profile": "https://Stackoverflow.com/users/29493",
"pm_score": 0,
"selected": false,
"text": "[Property] public int ParentId { get; set; }\n ParentId"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/246787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22092/"
] |
246,791 | <p>I'm consuming a third-party resource (a .dll) in a web service, and my problem is, that invoking this resource (calling a method) is done asynchronous - I need to subscribe to an event, to get the answer for my request. How do I do that in a c# web service?</p>
<p><strong>Update:</strong></p>
<p>With regard to <a ... | [
{
"answer_id": 246892,
"author": "Sunny Milenov",
"author_id": 8220,
"author_profile": "https://Stackoverflow.com/users/8220",
"pm_score": 0,
"selected": false,
"text": "using System;\nusing System.Web.Services;\n\n[WebService(Namespace=\"http://www.contoso.com/\")]\npublic class MyServi... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
246,801 | <p>I have a PHP script that can encode a PNG image to a Base64 string.</p>
<p>I'd like to do the same thing using JavaScript. I know how to open files, but I'm not sure how to do the encoding. I'm not used to working with binary data.</p>
| [
{
"answer_id": 246813,
"author": "Sunny Milenov",
"author_id": 8220,
"author_profile": "https://Stackoverflow.com/users/8220",
"pm_score": 8,
"selected": false,
"text": "/**\n*\n* Base64 encode / decode\n* http://www.webtoolkit.info/\n*\n**/\nvar Base64 = {\n\n // private property\n... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4939/"
] |
246,806 | <p>Is there any method?
My computer is AMD64.</p>
<pre><code>::std::string str;
BOOL loadU(const wchar_t* lpszPathName, int flag = 0);
</code></pre>
<p>When I used: </p>
<pre><code>loadU(&str);
</code></pre>
<p>the VS2005 compiler says:</p>
<pre><code>Error 7 error C2664:: cannot convert parameter 1 from 'std:... | [
{
"answer_id": 246811,
"author": "Matt Dillard",
"author_id": 863,
"author_profile": "https://Stackoverflow.com/users/863",
"pm_score": 7,
"selected": true,
"text": "c_str() wchar_t* std::wstring name( L\"Steve Nash\" );\nconst wchar_t* szName = name.c_str();\n MultiByteToWideChar LPWSTR... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25749/"
] |
246,814 | <p>I have a function called FindSpecificRowValue that takes in a datatable and returns the row number that contains a particular value. If that value isn't found, I want to indicate so to the calling function.</p>
<p>Is the best approach to:</p>
<ol>
<li>Write a function that returns false if not found, true if found... | [
{
"answer_id": 246872,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 5,
"selected": true,
"text": "TryFindSpecificRow\nFindSpecificRow\n public static Boolean TryFindSpecificRow(DataTable table, out Int32 rowNumber)\n... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/335036/"
] |
246,817 | <p>I want to automate SVN adds using NAnt. I want to add to SVN all new files in a given directory. The NAnt script will successfully execute the add command, however it displays the Tortoise SVN add dialog and this is not acceptable because it will execute on a build server running CruiseControl. The build server is r... | [
{
"answer_id": 246833,
"author": "Ben Scheirman",
"author_id": 3381,
"author_profile": "https://Stackoverflow.com/users/3381",
"pm_score": 1,
"selected": false,
"text": "c:\\>svn add ...\n"
},
{
"answer_id": 247688,
"author": "Scott Saad",
"author_id": 4916,
"author_p... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
246,822 | <p>I'm writing a password encryption routine. I've written the below app to illustrate my problem. About 20% of the time, this code works as expected. The rest of the time, the decryption throws a cryptographic exception - "The data is invalid".</p>
<p>I believe the problem is in the encryption portion, because the... | [
{
"answer_id": 247019,
"author": "Joe",
"author_id": 13087,
"author_profile": "https://Stackoverflow.com/users/13087",
"pm_score": 1,
"selected": false,
"text": "Encoding.GetEncoding(28591)\nEncoding.GetEncoding(\"Latin1\")\nEncoding.GetEncoding(\"iso-8859-1\")\n"
},
{
"answer_id... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2610/"
] |
246,841 | <p>We may tag a question with multiple tags in StackOverflow website, I'm wondering how to find out the most related questions with common tags.</p>
<p>Assume we have 100 questions in a database, each question has several tags. Let's say user is browsing a specific question, and we want to make the system to display t... | [
{
"answer_id": 246847,
"author": "Ross",
"author_id": 2025,
"author_profile": "https://Stackoverflow.com/users/2025",
"pm_score": 0,
"selected": false,
"text": "SELECT * FROM `questions` WHERE `tag` LIKE '%tagname%' OR (looped for each tag) LIMIT 5,0\n LIKE"
},
{
"answer_id": 247... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
246,849 | <p>we're currently planning a larger WPF LoB application and i wonder what others think being the best practice for storing lots of UI settings e.g.</p>
<ul>
<li>Expander States</li>
<li>Menu orders</li>
<li>Sizing Properties</li>
<li>etc...</li>
</ul>
<p>i don't like the idea of having dozens of stored values using ... | [
{
"answer_id": 246880,
"author": "thismat",
"author_id": 14045,
"author_profile": "https://Stackoverflow.com/users/14045",
"pm_score": 4,
"selected": false,
"text": "Environment.SpecialFolder.ApplicationData\n"
},
{
"answer_id": 246889,
"author": "Patrick Desjardins",
"au... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20227/"
] |
246,859 | <p>Could somebody give me a brief overview of the differences between HTTP 1.0 and HTTP 1.1? I've spent some time with both of the RFCs, but haven't been able to pull out a lot of difference between them. Wikipedia says this:</p>
<blockquote>
<p><strong>HTTP/1.1 (1997-1999)</strong></p>
<p>Current version; persistent... | [
{
"answer_id": 246897,
"author": "Leandro López",
"author_id": 22695,
"author_profile": "https://Stackoverflow.com/users/22695",
"pm_score": 3,
"selected": false,
"text": "GET POST"
},
{
"answer_id": 247026,
"author": "Brian R. Bondy",
"author_id": 3153,
"author_profi... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2147/"
] |
246,870 | <p>Each of my clients can have many todo items and every todo item has a due date.</p>
<p>What would be the query for discovering the next undone todo item by due date for each file? In the event that a client has more than one todo, the one with the lowest id is the correct one.</p>
<p>Assuming the following minima... | [
{
"answer_id": 246918,
"author": "Mitchel Sellers",
"author_id": 13279,
"author_profile": "https://Stackoverflow.com/users/13279",
"pm_score": -1,
"selected": false,
"text": "SELECT\n C.Id,\n C.Name,\n T.Id\n T.Description,\n T.timestamp_due\nFROM\n{\n SELECT\n c... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2443/"
] |
246,876 | <pre><code>$doba = explode("/", $dob);
$date = date("Y-m-d", mktime(0,0,0, $doba[0], $doba[1], $doba[2]));
</code></pre>
<p>The above code turns any date i pass through into 1999-11-30 and i know it was working yesterday. Date is correct when I echo $doba. Anyone have any ideas?</p>
<p>Cheers</p>
| [
{
"answer_id": 246891,
"author": "Ross",
"author_id": 2025,
"author_profile": "https://Stackoverflow.com/users/2025",
"pm_score": 3,
"selected": true,
"text": "$doba mktime $doba = explode('/', '1991/08/03');\necho(date('Y-m-d', mktime(0,0,0, $doba[1], $doba[2], $doba[0]);\n\n$doba = exp... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31677/"
] |
246,877 | <p>Any links to a good template for a windows service? (looking for C# code)</p>
<p>Something that has the basic functionality that I could extend.</p>
| [
{
"answer_id": 249770,
"author": "KeesDijk",
"author_id": 6434,
"author_profile": "https://Stackoverflow.com/users/6434",
"pm_score": 1,
"selected": false,
"text": "using System;\nusing System.ServiceProcess;\nusing System.Timers;\n\nnamespace WindowsService1\n{\n public partial class... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246877",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
246,884 | <p>I haven´t experience in making setup, but I all ready make mine but now I need help because when I made a new version I want that the user double click the shortcut and it do the update if there are any.</p>
<p>The application is in <code>c#</code>.</p>
<p>Could you help?</p>
| [
{
"answer_id": 246955,
"author": "Dan Walker",
"author_id": 752,
"author_profile": "https://Stackoverflow.com/users/752",
"pm_score": 1,
"selected": false,
"text": " WebClient wc = new WebClient();\n wc.DownloadFile(UrlOfIniContainingLatestVersion, PlacetoSa... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32115/"
] |
246,890 | <p>I recently converted a site from asp to CF. Unfortunately, alot of the old users had the "homepage" bookmarked. www.example.com/homepage.asp</p>
<p>Is there a sort of catch all way I could redirect any traffic from that page to the current index.cfm?</p>
<p>I would normally just delete those files, but the owner... | [
{
"answer_id": 246929,
"author": "Patrick McElhaney",
"author_id": 437,
"author_profile": "https://Stackoverflow.com/users/437",
"pm_score": 4,
"selected": true,
"text": "<%@ Language=VBScript %>\n<%\nResponse.Status=\"301 Moved Permanently\"\nResponse.AddHeader \"Location\", \"/index.cf... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26121/"
] |
246,893 | <p>Is there a .net equivalent to the C++ unexpected()/set_unexpected() functionality?</p>
<hr>
<p><strong>Edit:</strong> Sorry--I omitted some details previously:</p>
<p>Language: C# 2.0</p>
<p>I have some legacy apps that seem to be throwing some unhandled exception somewhere. I just want to put something in pla... | [
{
"answer_id": 11666389,
"author": "Dunc",
"author_id": 188926,
"author_profile": "https://Stackoverflow.com/users/188926",
"pm_score": 0,
"selected": false,
"text": "private delegate long UnhandledExceptionFilter(IntPtr exception);\n\n[DllImport(\"KERNEL32.DLL\", SetLastError = true)]\n... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2820/"
] |
246,905 | <p>I just finished a 2d platformer in C++/Allegro. Its still in an incomplete stage...</p>
<p>I wonder how to go about a peer-review from people who are into game development.
I would like to review my project on grounds of </p>
<ol>
<li>game play</li>
<li>Collision detection</li>
<li>use of OOP</li>
<li>programming ... | [
{
"answer_id": 254242,
"author": "postfuturist",
"author_id": 1892,
"author_profile": "https://Stackoverflow.com/users/1892",
"pm_score": 3,
"selected": true,
"text": "int main () \n{\n game_object gob;\n gob.init_allegro();\n gob.load_assets();\n while(true) {\n gob.h... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8786/"
] |
246,912 | <p>Currently there are 2 pages in a jsp file: one of them displays the data and the second one is used for pagination. The task is to include exactly the same paginator table above the data table. Sorry, couldn't resist to draw it :)</p>
<pre><code>|-----------------------------------------|
| Pag... | [
{
"answer_id": 246975,
"author": "pkaeding",
"author_id": 4257,
"author_profile": "https://Stackoverflow.com/users/4257",
"pm_score": 2,
"selected": false,
"text": "<jsp:include page=\"pagination.jsp\" flush=\"true\" />\n\n<table>...business data...</table>\n\n<jsp:include page=\"paginat... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15187/"
] |
246,919 | <p>What is the best way to implement the page view counter like the ones they have here on the site where each question has a "Views" counter?</p>
<p>Factoring in Performance and Scalability issues.</p>
| [
{
"answer_id": 246980,
"author": "Bob Fanger",
"author_id": 19165,
"author_profile": "https://Stackoverflow.com/users/19165",
"pm_score": 4,
"selected": true,
"text": "UPDATE page_views SET counter = counter + 1 WHERE page_id = x\nif (affected_rows == 0 ) {\n INSERT INTO page_views (pa... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246919",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32372/"
] |
246,930 | <p>I see these two acronyms being thrown around and I was wondering if there are any differences between a GUID and a UUID?</p>
| [
{
"answer_id": 6953207,
"author": "Hoylen",
"author_id": 232064,
"author_profile": "https://Stackoverflow.com/users/232064",
"pm_score": 11,
"selected": true,
"text": "version variant Bits Bytes Name Endianness Endianness\n (GUID) RFC 4122\n\n32 4 Data1 ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/343/"
] |
246,931 | <p>I have two models, Article and Post that both inherit from a base model called ContentBase.</p>
<p>You can leave comments on both Articles and Posts, so I am using a Polymorphic Association between Comments and Article or Post.</p>
<p>However, since both Article and Post inherit from ContentBase, the commentable_t... | [
{
"answer_id": 247617,
"author": "Mike Breen",
"author_id": 22346,
"author_profile": "https://Stackoverflow.com/users/22346",
"pm_score": 3,
"selected": true,
"text": "Module BaseContent\n def self.included(base)\n base.class_eval do\n validates_presence_of :somefield\n... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1396/"
] |
246,961 | <p>I have many articles in a database (with title,text), I'm looking for an algorithm to find the X most similar articles, something like Stack Overflow's "Related Questions" when you ask a question. </p>
<p>I tried googling for this but only found pages about other "similar text" issues, something like comparing ever... | [
{
"answer_id": 42482364,
"author": "DroidOS",
"author_id": 1077485,
"author_profile": "https://Stackoverflow.com/users/1077485",
"pm_score": 1,
"selected": false,
"text": "[and,amd] [and,dan] function wordPairCount(word)\n{\n var i,rslt = [],len = word.length - 1;\n for(i=0;i < len;i++) ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25544/"
] |
246,963 | <p>Say I have a class called PermissionManager which should only exist once for my system and basically fulfills the function of managing various permissions for various actions in my application. Now I have some class in my application which needs to be able to check a certain permission in one of its methods. This cl... | [
{
"answer_id": 247056,
"author": "Eddie Deyo",
"author_id": 9323,
"author_profile": "https://Stackoverflow.com/users/9323",
"pm_score": 3,
"selected": true,
"text": "PermissionManager mManager = null;\npublic PermissionManager Permissions\n{\n if (mManager == null)\n {\n return mMan... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246963",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] |
246,966 | <p>I've found that given a form in a HTML page like this:</p>
<pre><code><form name="form">
<input type="image" name="foo"
src="somewhere.gif" alt="image" value="blah"/>
<input type="text" name="bar" value="blah"/>
</form>
</code></pre>
<p>When accessing the elements via the D... | [
{
"answer_id": 247002,
"author": "Adam Bellaire",
"author_id": 21632,
"author_profile": "https://Stackoverflow.com/users/21632",
"pm_score": 2,
"selected": false,
"text": "elements childNodes document.forms[0].childNodes.length; // equals 5 (2 inputs and 3 text nodes).\ndocument.forms[0]... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
246,969 | <p>I want to do something like this:</p>
<pre><code>const
MyFirstConstArray: array[0..1] of string = ('Hi', 'Foo');
MySecondConstArrayWhichIncludesTheFirstOne: array[0..2] of string =
MyFirstConstArray + ('Bar');
</code></pre>
<p>Basically I want the following result:</p>
<pre><code>MyFirstConstArray ->... | [
{
"answer_id": 247618,
"author": "Francesca",
"author_id": 9842,
"author_profile": "https://Stackoverflow.com/users/9842",
"pm_score": 3,
"selected": true,
"text": "const\n MyConst1 = 'Hi';\n MyConst2 = 'Foo';\n MyConst3 = 'Bar';\n MyFirstConstArray: array[0..1] of string = (MyConst1... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/727/"
] |
246,977 | <p>I recently read that using flexible array members in C was poor software engineering practice. However, that statement was not backed by any argument. Is this an accepted fact?</p>
<p>(<a href="https://en.wikipedia.org/wiki/Flexible_array_member" rel="noreferrer">Flexible array members</a> are a C feature introduce... | [
{
"answer_id": 247038,
"author": "Roddy",
"author_id": 1737,
"author_profile": "https://Stackoverflow.com/users/1737",
"pm_score": 4,
"selected": false,
"text": "struct header\n{\n size_t len;\n unsigned char data[];\n}; \n unsigned char data[0];\n foo = malloc(sizeof(header) + N * s... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
246,981 | <p>Does anyone have any idea what is wrong with this create statement for mysql? </p>
<p>EDIT: now it states the error is near: revised VARCHAR(20), paypal_accept TINYINT, pre_terminat' at line 4</p>
<p>Thanks for the help everyone</p>
<p>Still errors after using sql beautifier though</p>
<pre><code>CREATE TABLE A... | [
{
"answer_id": 246996,
"author": "dove",
"author_id": 30913,
"author_profile": "https://Stackoverflow.com/users/30913",
"pm_score": 3,
"selected": false,
"text": "watch VARCHAR(20), **????** VARCHAR(20), \nauction_type VARCHAR(20),\n"
},
{
"answer_id": 247061,
"author": "Ste... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1246613/"
] |
246,983 | <p>What's the most efficient way of getting the value of the SERIAL column after the INSERT statement? I.e. I am looking for a way to replicate <code>@@IDENTITY</code> or <code>SCOPE_IDENTITY</code> functionality of MS SQL</p>
| [
{
"answer_id": 247159,
"author": "Brian Schmitt",
"author_id": 30492,
"author_profile": "https://Stackoverflow.com/users/30492",
"pm_score": 1,
"selected": false,
"text": "if LOCAL_SQLCA^.sqlcode = 0 then\n/* return serial */\n Result := LOCAL_SQLCA^.sqlerrd[1]\nelse\n/* return error co... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246983",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15329/"
] |
247,006 | <p>I've got a PHP application which needs to grab the contents from another web page, and the web page I'm reading needs a cookie.</p>
<p>I've found info on how to make this call once i have the cookie ( <a href="http://groups.google.com/group/comp.lang.php/msg/4f618114ab15ae2a" rel="nofollow noreferrer">http://groups... | [
{
"answer_id": 247472,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": false,
"text": "<?php\n\n$cr = curl_init('http://remoteServer/login.php?user=xxx&pass=yyy');\ncurl_setopt($cr, CURLOPT_RETURNTRANSFER, true); ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
247,023 | <p>I have a structure like this:</p>
<pre><code><ul>
<li>text1</li>
<li>text2</li>
<li>text3</li>
</ul>
</code></pre>
<p>How do I use javascript or jQuery to get the text as an array?</p>
<pre><code>['text1', 'text2', 'text3']
</code></pre>
<p>My plan after this... | [
{
"answer_id": 247057,
"author": "Shog9",
"author_id": 811,
"author_profile": "https://Stackoverflow.com/users/811",
"pm_score": 8,
"selected": true,
"text": "var optionTexts = [];\n$(\"ul li\").each(function() { optionTexts.push($(this).text()) });\n join() var quotedCSV = '\"' + option... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3757/"
] |
247,025 | <p>It is good practice to use the main method to test a java/.net class?</p>
<p>I've seen it reccommended in some text books, but to me it seems like using a unit testing framework would make more sense...</p>
<p>The main method gives you one point of entry to the class and you can test one aspect of the classes func... | [
{
"answer_id": 248334,
"author": "Motti",
"author_id": 3848,
"author_profile": "https://Stackoverflow.com/users/3848",
"pm_score": 0,
"selected": false,
"text": "Compile with /main to specify the type that contains the entry point."
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/247025",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20400/"
] |
247,045 | <p>Been a while since I've dealt with ASP.NET and this is the first time I've had to deal with master pages. Been following tutorials everything is fine except a problem I'm having with the footer.</p>
<p>The master page has divs for topContent, mainContent and footerContent. In mainContent I have a ContentPlaceHold... | [
{
"answer_id": 247095,
"author": "Schalk Versteeg",
"author_id": 15724,
"author_profile": "https://Stackoverflow.com/users/15724",
"pm_score": 2,
"selected": false,
"text": " <div id=\"mainContent\"style=\"position:relative;\">\n <asp:ContentPlaceHolder id=\"ContentPlaceHolder1\... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15891/"
] |
247,053 | <p>On Linux, feenableexcept and fedisableexcept can be used to control the generation of SIGFPE interrupts on floating point exceptions. How can I do this on Mac OS X Intel?</p>
<p>Inline assembly for enabling floating point interrupts is provided in <a href="http://developer.apple.com/documentation/Performance/Conce... | [
{
"answer_id": 252590,
"author": "Louis Gerbarg",
"author_id": 30506,
"author_profile": "https://Stackoverflow.com/users/30506",
"pm_score": 3,
"selected": false,
"text": "short fpflags = 0x1332 // Default FP flags, change this however you want. \nasm(\"fnclex\");\nasm(\"fldcw _fpflags\"... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16480/"
] |
247,059 | <p>In C# there is the static property <a href="http://msdn.microsoft.com/en-us/library/system.environment.newline.aspx" rel="noreferrer">Environment.Newline</a> that changed depending on the running platform.</p>
<p>Is there anything similar in Java?</p>
| [
{
"answer_id": 247069,
"author": "Tom Lokhorst",
"author_id": 2597,
"author_profile": "https://Stackoverflow.com/users/2597",
"pm_score": 9,
"selected": true,
"text": "System.lineSeparator()\n System.getProperty(\"line.separator\");\n"
},
{
"answer_id": 247597,
"author": "Ala... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20480/"
] |
247,064 | <p>I've recently been lifted out of the .Net world into the Java world and I miss my unit tests.</p>
<p>Using Visual Studio I used NUnit and TestDriven.net to run my unit tests.</p>
<p>What is a comparable system for Java Using Eclipse?</p>
<p>I'm looking specifically for the plugins that will get me going, or a gui... | [
{
"answer_id": 247975,
"author": "Powerlord",
"author_id": 15880,
"author_profile": "https://Stackoverflow.com/users/15880",
"pm_score": 1,
"selected": false,
"text": "@Test\npublic myTest() {\n // Test code here\n}\n @Before @After @BeforeClass @AfterClass @Ignore @Before @BeforeClas... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20400/"
] |
247,066 | <p>I want the most performat way to read and parse a file.</p>
<p>Is it possible to read a file in .NET, but not load the entire file into memory? i.e. just load the file line by line as I parse the content of each row?</p>
<p>Does XmlTextReader load the entire file into memory or does it stream the file into memory... | [
{
"answer_id": 247107,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 3,
"selected": false,
"text": "string line;\n\n// Read the file and display it line by line.\nSystem.IO.StreamReader file = \n new System.IO.StreamReade... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
247,086 | <p>I know that one of the defining principles of Test driven development is that you write your Unit tests first and then write code to pass those unit tests, but is it necessary to do it this way?</p>
<p>I've found that I often don't know what I am testing until I've written it, mainly because the past couple of proj... | [
{
"answer_id": 247119,
"author": "Jonke",
"author_id": 15638,
"author_profile": "https://Stackoverflow.com/users/15638",
"pm_score": 2,
"selected": false,
"text": "picker = Pick.new\nitem=picker.pick('a')\nassert item\n class Pick\n def pick(something)\n return nil\n end\nend\n"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/247086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20400/"
] |
247,090 | <p>I'm familiar with the issue behind ORA-01775: looping chain of synonyms, but is there any trick to debugging it, or do I just have to "create or replace" my way out of it? </p>
<p>Is there a way to query the schema or whatever to find out what the current definition of a public synonym is? </p>
<p>Even more awes... | [
{
"answer_id": 247180,
"author": "Justin Cave",
"author_id": 10397,
"author_profile": "https://Stackoverflow.com/users/10397",
"pm_score": 5,
"selected": false,
"text": "DBA_SYNONYMS SELECT table_owner, table_name, db_link\n FROM dba_synonyms \n WHERE owner = 'PUBLIC'\n AND syn... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/549/"
] |
247,093 | <p>I want to change the registry values on the pocketPC. I ran the following code:</p>
<pre><code>if(enabled)
{
dwData = 120;
}
if(RegSetValueEx(HKEY_LOCAL_MACHINE, _T("System\\CurrentControlSet\\Control\\Power\\Timeouts\\BattSuspendTimeout"), 0, REG_DWORD, (LPBYTE)&dwData, sizeof(DWORD)))
{
return FALSE;
... | [
{
"answer_id": 248604,
"author": "Shane Powell",
"author_id": 23235,
"author_profile": "https://Stackoverflow.com/users/23235",
"pm_score": 4,
"selected": true,
"text": "HKEY key;\nif(ERROR_SUCCESS == RegOpenKeyEx(HKEY_LOCAL_MACHINE, \"System\\\\CurrentControlSet\\\\Control\\\\Power\\\\T... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22996/"
] |
247,106 | <p>Looking at this loop that copies one c-string to another:</p>
<pre><code>void strcpyr(char *s, char *t)
{
while(*s++=*t++)// Why does this work?
;
}
</code></pre>
<p>Why do we not check for the '\0' character in the while loop, like this?</p>
<pre><code>while((*s++=*r++)!='\0')..
</code></pre>
<p>How... | [
{
"answer_id": 247122,
"author": "Blair Conrad",
"author_id": 1199,
"author_profile": "https://Stackoverflow.com/users/1199",
"pm_score": 2,
"selected": false,
"text": "'\\0' t *s++=*t++ s '\\0' false 0 '\\0' c != '\\0' c"
},
{
"answer_id": 247126,
"author": "Adam Davis",
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247106",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
247,110 | <p>I'm getting started on building a REST API for a project I'm working on, and it led me to do a little research as to the best way to build an API using RoR. I find out pretty quickly that by default, models are open to the world and can be called via URL by simply putting a ".xml" at the end of the URL and passing a... | [
{
"answer_id": 247162,
"author": "jonnii",
"author_id": 4590,
"author_profile": "https://Stackoverflow.com/users/4590",
"pm_score": 2,
"selected": false,
"text": " class Model < ActiveRecord::Base \n attr_accessible nil \n end\n"
},
{
"answer_id": 248101,
"author"... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23458/"
] |
247,123 | <p>I am writing a C# console application that takes a binary file, rips it apart, analyzes it, and stores the data into a database. </p>
<p>We want to use BizTalk to orchestrate watching when a new binary file is placed in a directory and calling my application with the file name/names to be parsed. </p>
<p>Can Biz... | [
{
"answer_id": 248503,
"author": "David Hall",
"author_id": 2660,
"author_profile": "https://Stackoverflow.com/users/2660",
"pm_score": 3,
"selected": true,
"text": "System.Diagnostics.Process.Start(@\"C:\\yourPath\\yourExecutable.exe\") System.Diagnostics"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/247123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1048/"
] |
247,128 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/153152/resizing-an-iframe-based-on-content">Resizing an iframe based on content</a> </p>
</blockquote>
<p>I'm loading an iFrame and want the parent to automatically change the height based upon the height of th... | [
{
"answer_id": 247160,
"author": "Oli",
"author_id": 12870,
"author_profile": "https://Stackoverflow.com/users/12870",
"pm_score": 5,
"selected": false,
"text": "scrollHeight offsetHeight function setHeight() {\n parent.document.getElementById('the-iframe-id').style.height = document[... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5123/"
] |
247,135 | <p>I use <a href="http://xpath.alephzarro.com/" rel="noreferrer">XPather Browser</a> to check my XPATH expressions on an HTML page.</p>
<p>My end goal is to use these expressions in Selenium for the testing of my user interfaces.</p>
<p>I got an HTML file with a content similar to this:</p>
<pre>
<tr>
<td... | [
{
"answer_id": 247158,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": " nbsp"
},
{
"answer_id": 247368,
"author": "James Sulak",
"author_id": 207,
"author_profile": "https... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247135",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16927/"
] |
247,143 | <p>FORTRAN provides several functions to convert a double precision number to an integral value. The method used for truncation/rounding differs. I am converting complex scientific algorithms which use these.</p>
<p>According to FORTRAN documentation:<br>
<b>aint(x)</b> returns the integral value between x and 0, ne... | [
{
"answer_id": 247171,
"author": "Jeff Yates",
"author_id": 23234,
"author_profile": "https://Stackoverflow.com/users/23234",
"pm_score": 3,
"selected": true,
"text": "nint anint Math.Round MidpointRounding.AwayFromZero aint double int"
},
{
"answer_id": 247185,
"author": "Jo... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10722/"
] |
247,149 | <pre><code><?php
/**
* My codebase is littered with the same conditionals over and over
* again. I'm trying to refactor using inheritance and the Factory
* pattern and I've had some success but I'm now stuck.
*
* I'm stuck because I want to derive a new class from the one
* returned by the Factory. But I can... | [
{
"answer_id": 249602,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 0,
"selected": false,
"text": "class LayoutView {\n protected View $subview; //Potentially an array of views\n public function prepare() {\n ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
247,152 | <p>I have an app that is failing on the install. The vendor says I probably have ini_set() disabled. How can I check this?</p>
| [
{
"answer_id": 247224,
"author": "Noah Goodrich",
"author_id": 20178,
"author_profile": "https://Stackoverflow.com/users/20178",
"pm_score": 0,
"selected": false,
"text": "<?php\n if(ini_set('error_reporting', 'ALL') === false)\n {\n // Perform failure handling logic\n ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247152",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
247,156 | <p>I'm having a disagreement with someone over how best to implement a simple method that takes an array of integers, and returns the highest integer (using C# 2.0).</p>
<p>Below are the two implementations - I have my own opinion of which is better, and why, but I'd appreciate any impartial opinions.</p>
<p><strong>... | [
{
"answer_id": 247176,
"author": "SharePoint Newbie",
"author_id": 21586,
"author_profile": "https://Stackoverflow.com/users/21586",
"pm_score": 3,
"selected": false,
"text": "O(N LogN) O(N)"
},
{
"answer_id": 247201,
"author": "JacquesB",
"author_id": 7488,
"author_p... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247156",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
247,161 | <p>How can I transform a <code>String</code> value into an <code>InputStreamReader</code>?</p>
| [
{
"answer_id": 247184,
"author": "Guido",
"author_id": 12388,
"author_profile": "https://Stackoverflow.com/users/12388",
"pm_score": 9,
"selected": true,
"text": "InputStream is = new ByteArrayInputStream( myString.getBytes( charset ) );\n InputStreamReader reader = new InputStreamReader... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4038/"
] |
247,167 | <p>Looking for a bit of regex help.
I'd like to design an expression that matches a string with "<em>foo</em>" OR "<em>bar</em>", but not both "<em>foo</em>" AND "<em>bar</em>"</p>
<p>If I do something like...</p>
<pre><code>/((foo)|(bar))/
</code></pre>
<p>It'll match "<em>foobar</em>". Not what I'm looking for. So... | [
{
"answer_id": 247177,
"author": "Ed Guiness",
"author_id": 4200,
"author_profile": "https://Stackoverflow.com/users/4200",
"pm_score": 4,
"selected": true,
"text": "(/foo/ and not /bar/) || (/bar/ and not /foo/)\n"
},
{
"answer_id": 247202,
"author": "Robert K",
"author_... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26001/"
] |
247,174 | <p>I'm working on a project that contains Thomas Brothers Map page and grid numbers. Is there a way to programatically convert from this map page to a latitude & longitude?</p>
<p>An Example would be for the intersection of the US101 & I405 freeways.</p>
<p>ThomasBrothers: 561-3G (page-grid)</p>
| [
{
"answer_id": 1371593,
"author": "chovy",
"author_id": 33522,
"author_profile": "https://Stackoverflow.com/users/33522",
"pm_score": 0,
"selected": false,
"text": "<Area>\"El Cajon\"</Area>\n<ThomasBrothers>\"1297 5E\"</ThomasBrothers>\n<TBXY>\"6481390:1827008\"</TBXY>\n"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/247174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25007/"
] |
247,204 | <p>We use Telerik's RadEditor for our content management system's WYSIWYG editor. We need the find & replace functionality that is in the WYSIWYG editor to also be in the HTML editor. The editor is pretty customizable, anyone know if there is a way to enable this or hack it in?</p>
| [
{
"answer_id": 247238,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 0,
"selected": false,
"text": "... \n<telerik:EditorSeparator />\n<telerik:editortool name=\"FindAndReplace\" />\n<telerik:editortool name=\"TableWizard\... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1208/"
] |
247,209 | <p>As JavaScript frameworks like jQuery make client side web applications richer and more functional, I've started to notice one problem...</p>
<p><strong>How in the world do you keep this organized?</strong></p>
<ul>
<li>Put all your handlers in one spot and write functions for all the events?</li>
<li>Create functi... | [
{
"answer_id": 247256,
"author": "Aron Rotteveel",
"author_id": 11568,
"author_profile": "https://Stackoverflow.com/users/11568",
"pm_score": 0,
"selected": false,
"text": "Behaviour.register({ \n 'a.delete-post': function(element) {\n element.observe('click', function(event) {... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247209",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17091/"
] |
247,228 | <p>How can I run a stored procedure from a CL program? RUNSQLSTM requires a source member, but I just want to build a command so users can pass in variables easily, so this won't work.</p>
| [
{
"answer_id": 251921,
"author": "Paul Morgan",
"author_id": 16322,
"author_profile": "https://Stackoverflow.com/users/16322",
"pm_score": 3,
"selected": false,
"text": "QZDFMDB2 CALL PGM(QZDFMDB2) PARM('CALL PROCEDURE (''XYZ'', ''ABC'')')\n DCL VAR(&CALL) TYPE(*CHAR) LEN(200) \n\n ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247228",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
247,234 | <p>A quick search gives me <a href="http://www.tawbaware.com/wc.htm" rel="noreferrer">tawbaware wc</a>, but it does not accept stdout as input stream, meaning I can not use pipe within a <em>DOS</em> session.</p>
<p><em>Note:</em> </p>
<p>I can not install cygwin or use powershell (which would have allowed a '<code>|... | [
{
"answer_id": 4354472,
"author": "Dan S.",
"author_id": 399441,
"author_profile": "https://Stackoverflow.com/users/399441",
"pm_score": 3,
"selected": false,
"text": "find /c /v \"~any string that will never occur~\"\n"
},
{
"answer_id": 4820378,
"author": "jeff drake",
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6309/"
] |
247,241 | <p>What's the point in the standard pattern for event delegates in .net? I.e. the EventHandler predefined delegate? Why not just choose the most appropriate signature for the requirement?</p>
<p>Edit: And furthermore, is it necessary to slavishly follow Microsoft's example in all cases?</p>
| [
{
"answer_id": 247279,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 3,
"selected": true,
"text": "sender args"
},
{
"answer_id": 247477,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247241",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3856/"
] |
247,245 | <p>I have not had to mess with mailto links much. However I now need to add a link in the body of a mailto if it is possible. </p>
<p>Is there a way to add a link or to change the email opened to an html email vs a text email?</p>
<p>Something like:</p>
<pre><code><a href="mailto:test@test.test?body=The message... | [
{
"answer_id": 247395,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 8,
"selected": true,
"text": "body text/plain"
},
{
"answer_id": 247794,
"author": "scunliffe",
"author_id": 6144,
"author_profile": "h... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13341/"
] |
247,247 | <p>It seems like there is a lot of overhead involved in rapidly opening and closing sqlconnections. Should I persist a connection (one, per client, per database), or continue declaring a new sqlconnection object whenever I need one, and making sure I clean up after myself?</p>
<p>What have you done? What worked well a... | [
{
"answer_id": 247805,
"author": "Ian Boyd",
"author_id": 12597,
"author_profile": "https://Stackoverflow.com/users/12597",
"pm_score": 0,
"selected": false,
"text": "DbConnection conn = Database.GetConnection();\ntry\n{\n //do stuff with the connetion\n ...\n}\nfinally\n{\n Databa... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15769/"
] |
247,252 | <p>One of the "best practice" is accessing data via stored procedures. I understand why is this scenario good.
My motivation is split database and application logic ( the tables can me changed, if the behaviour of stored procedures are same ), defence for SQL injection ( users can not execute "select * from some_tables... | [
{
"answer_id": 247440,
"author": "Mauro",
"author_id": 2208,
"author_profile": "https://Stackoverflow.com/users/2208",
"pm_score": 2,
"selected": false,
"text": "Create sp_ProductSelect\n(\n @ProductID int = null,\n @IDProductType int = null,\n @ProductName varchar(50) = null,\n @Product... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20382/"
] |
247,257 | <p>I am admin on a forum.
Earlier we had phpbb 2.0 and i made a bot that could write to the forum.
Now, we have upgraded the forum to phpbb 3.0, but i can't get my bot to write to the forum anymore.</p>
<p>I have looked for a solution, but now i am out of ideas.
So it would have been great if anyone have a suggestion... | [
{
"answer_id": 247281,
"author": "Philip Morton",
"author_id": 21709,
"author_profile": "https://Stackoverflow.com/users/21709",
"pm_score": 2,
"selected": false,
"text": "input select"
},
{
"answer_id": 2472276,
"author": "Andrew Moore",
"author_id": 26210,
"author_p... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247257",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24872/"
] |
247,269 | <p>If I invoke a method which does something illegal, the debugger will stop at the line of code, in that method, which threw the exception</p>
<p>If I use reflection to call a method via Invoke and that method throws an exception, the debugger stops on line where the method was called via reflection and not in the f... | [
{
"answer_id": 247289,
"author": "TcKs",
"author_id": 20382,
"author_profile": "https://Stackoverflow.com/users/20382",
"pm_score": 1,
"selected": false,
"text": "public class MyClass {\n private string GetSomeText() { return DateTime.Now.ToString(); }\n}\n delegate string DlgGetSomeT... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
247,284 | <p>I have a form I am submitting using jQuery's ajaxSubmit function from the Forms plugin. I'm trying to add a form name/value pair to the form data just before submission occurs. My plan is to modify the form data in the beforeSubmit event handler.</p>
<p>Given a function that looks like:</p>
<pre><code>function han... | [
{
"answer_id": 247776,
"author": "Brian Vallelunga",
"author_id": 2656,
"author_profile": "https://Stackoverflow.com/users/2656",
"pm_score": 5,
"selected": true,
"text": "function handleActionFormBeforeSubmit(formData, form, options) {\n\n // Add a name/value pair indicating this is ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2656/"
] |
247,304 | <p>I'm not sure how password hashing works (will be implementing it later), but need to create database schema now.</p>
<p>I'm thinking of limiting passwords to 4-20 characters, but as I understand after encrypting hash string will be of different length.</p>
<p>So, how to store these passwords in the database?</p>
| [
{
"answer_id": 247348,
"author": "Noah Goodrich",
"author_id": 20178,
"author_profile": "https://Stackoverflow.com/users/20178",
"pm_score": 4,
"selected": false,
"text": "CHAR SHA1"
},
{
"answer_id": 247379,
"author": "yfeldblum",
"author_id": 12349,
"author_profile"... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28098/"
] |
247,305 | <p>I am using the jQuery tableSorter plugin on a page.</p>
<p>Unfortunatley, the table that is being sorted is dynamically modified, and when I sort after adding an element, the element disappears, restoring the table to the state that it was in when the tableSorter was created.</p>
<p>Is there any way that i can fo... | [
{
"answer_id": 247319,
"author": "Josh",
"author_id": 2204759,
"author_profile": "https://Stackoverflow.com/users/2204759",
"pm_score": 6,
"selected": true,
"text": "$(table).trigger(\"update\")\n"
},
{
"answer_id": 11052245,
"author": "Devaroop",
"author_id": 909297,
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32392/"
] |
247,313 | <p>If I had a phone number like this </p>
<pre><code>string phone = "6365555796";
</code></pre>
<p>Which I store with only numeric characters in my database <strong>(as a string)</strong>, is it possible to output the number like this: </p>
<pre><code>"636-555-5796"
</code></pre>
<p>Similar to how I could if I we... | [
{
"answer_id": 247332,
"author": "Stu Mackellar",
"author_id": 28591,
"author_profile": "https://Stackoverflow.com/users/28591",
"pm_score": 1,
"selected": false,
"text": "string phoneText = \"6365555796\";\nlong phoneNum = long.Parse(phoneText);\nstring output = phoneNum.ToString(\"000-... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/392/"
] |
247,317 | <p>I am trying to use MS access to connect to a Oracle database.
I keep on getting the following error message:</p>
<p>ORA-12154: TSN- could not resolve the connect identifier secified</p>
<p>The Oracle Drivers OracleClient10g can verify that the database server exists.</p>
<p>I have a section in my tsnnames.ora fil... | [
{
"answer_id": 247459,
"author": "DCookie",
"author_id": 8670,
"author_profile": "https://Stackoverflow.com/users/8670",
"pm_score": 0,
"selected": false,
"text": "(SID_DESC =\n (GLOBAL_DBNAME = THESERVICE)\n (ORACLE_HOME = d:\\oracle\\10.2.0_DB)\n (SID_NAME = SID1)\n (SID_DESC =\n (... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26883/"
] |
247,318 | <p>Calling addChild with an empty string as the value (or even with whitespace) seems to cause a redundant SimpleXml node to be added inside the node instead of adding just the node with no value.</p>
<p>Here's a quick demo of what happens:</p>
<pre><code>[description] => !4jh5jh1uio4jh5ij14j34io5j!
</code></pre>
... | [
{
"answer_id": 258352,
"author": "joelhardi",
"author_id": 11438,
"author_profile": "https://Stackoverflow.com/users/11438",
"pm_score": 1,
"selected": false,
"text": "$xml = new SimpleXMLElement('<xml></xml>');\n$xml->addChild('node','value');\nprint_r($xml);\n\n$xml = new SimpleXMLElem... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247318",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32300/"
] |
247,329 | <p>Unfortunately on my project, we generate a lot of the HTML code in JavaScript like this:</p>
<pre><code>var html = new StringBuffer();
html.append("<td class=\"gr-my-deals\"><a href=\"").append(deal.url).append("\" target=\"_blank\">").append(deal.description).append("</a></td>");
</code></p... | [
{
"answer_id": 247383,
"author": "rp.",
"author_id": 2536,
"author_profile": "https://Stackoverflow.com/users/2536",
"pm_score": 2,
"selected": false,
"text": "function stringFormat( str ) {\n\n for( i = 0; i < arguments.length; i++ ) {\n var r = new RegExp( '\\\\{' + ( i ) + '... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247329",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2648/"
] |
247,331 | <p>I'm using jQuery validate on a form I am building and it is working great. What I want to do is when something is invalid to have the text field change colors and the error message to be white. I figured the following CSS would work:</p>
<pre><code>label .error {color: white; font-weight: bold;}
input .error {backg... | [
{
"answer_id": 247343,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 5,
"selected": true,
"text": "label.error {color: white; font-weight: bold;}\ninput.error {background-color: pink; border: 1px dashed red; color: white}\... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247331",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/204/"
] |
247,350 | <p>There's a lot of questions on here regarding various niche build needs (.NET, continuous integration, etc) but, of course, my niche need is different.</p>
<p>Rather than asking a very specific question right now, I'd like a survey of available build tools (such as make, ant, etc) so I can ask a follow up question m... | [
{
"answer_id": 790667,
"author": "Will Robertson",
"author_id": 4161,
"author_profile": "https://Stackoverflow.com/users/4161",
"pm_score": 2,
"selected": false,
"text": ":-)"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/247350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2915/"
] |
247,369 | <p>I am attempting to allow my web designers to use the metadata we have about database fields in the asp.net pages they are creating. The most obvious one is as follows:</p>
<pre><code><asp:TextBox runat="server" id="txTextBox" MaxLength="<Value From Metadata here>" ... />
</code></pre>
<p>All the requir... | [
{
"answer_id": 247390,
"author": "Marcus King",
"author_id": 19840,
"author_profile": "https://Stackoverflow.com/users/19840",
"pm_score": 0,
"selected": false,
"text": "<asp:TextBox runat=\"server\" id=\"txTextBox\" MaxLength=\"<%=Constants.SomeValue%>\" />\n"
},
{
"answer_id": ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/247369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31128/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.