qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
354,476 | <p>I need to achieve the following when opening an HTML in Excel <code>(Response.contentType="application/vnd.ms-excel")</code> :</p>
<ul>
<li>force Excel to consider content of td cells as numbers</li>
<li>make the above so that any subsequent user-entered formulas work on these cells (when the spreadsheet is opened)... | [
{
"answer_id": 354574,
"author": "scunliffe",
"author_id": 6144,
"author_profile": "https://Stackoverflow.com/users/6144",
"pm_score": 5,
"selected": false,
"text": ".num {\n mso-number-format:General;\n}\n.date {\n mso-number-format:\"Short Date\";\n}\n"
},
{
"answer_id": 1270... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
354,477 | <p>What's the best way, using C# or other .NET language, to determine if a file path string is on the local machine or a remote server?</p>
<p>It's possible to determine if a path string is UNC using the following:</p>
<pre><code>new Uri(path).IsUnc
</code></pre>
<p>That works great for paths that start with C:\ or ... | [
{
"answer_id": 354558,
"author": "tbetts42",
"author_id": 44770,
"author_profile": "https://Stackoverflow.com/users/44770",
"pm_score": 0,
"selected": false,
"text": "Host"
},
{
"answer_id": 354585,
"author": "Eric Rosenberger",
"author_id": 41624,
"author_profile": "... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10039/"
] |
354,490 | <p>As per <a href="http://www.gnu.org/software/emacs/manual/html_node/emacs/File-Names.html" rel="noreferrer">the Emacs docs</a>, every time you open a file, Emacs changes <code>default-directory</code> to the directory containing that file. </p>
<p>Then, if the cursor is in that buffer and you (for example) start SL... | [
{
"answer_id": 354654,
"author": "link0ff",
"author_id": 23952,
"author_profile": "https://Stackoverflow.com/users/23952",
"pm_score": 5,
"selected": true,
"text": "(add-hook 'find-file-hook\n (lambda ()\n (setq default-directory command-line-default-directory)))\n"
... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23070/"
] |
354,526 | <p>I have two files with slight differences. A normal <code>diff</code> will show me the differences between the files. With <code>-c</code> or <code>-u</code> I can add an amount of context to each hunk. What options can I pass to <code>diff</code> to see every unchanged line alongside the changes, and get the diff... | [
{
"answer_id": 354552,
"author": "madlep",
"author_id": 14160,
"author_profile": "https://Stackoverflow.com/users/14160",
"pm_score": 6,
"selected": true,
"text": "* Lorem ipsum dolor sit amet, consectetuer adipiscing elit. * Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4937/"
] |
354,547 | <p>When I'm running a simple Ruby script, what's the easiest way to dump an object's fields to the console? </p>
<p>I'm looking for something similar to PHP's <code>print_r()</code> that will work with arrays as well.</p>
| [
{
"answer_id": 354578,
"author": "Christian Lescuyer",
"author_id": 341,
"author_profile": "https://Stackoverflow.com/users/341",
"pm_score": 10,
"selected": true,
"text": "puts variable.inspect\n"
},
{
"answer_id": 354624,
"author": "dylanfm",
"author_id": 38795,
"au... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/270/"
] |
354,556 | <p>I often want to trigger a certain function just once, but I need to trigger it from within another function that gets repeatedly called. For instance, taking a snapshot of something for later use. I usually do it by setting a global boolean.</p>
<p>I'm wondering whether the way I do it is actually best way? </p>
<... | [
{
"answer_id": 354573,
"author": "Ned Batchelder",
"author_id": 14343,
"author_profile": "https://Stackoverflow.com/users/14343",
"pm_score": 3,
"selected": false,
"text": "doMyFunction"
},
{
"answer_id": 354582,
"author": "Todd Gamblin",
"author_id": 9122,
"author_pr... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10875/"
] |
354,568 | <p>In C#, I'm creating an XML file from a DataTable using dataTable.WriteXml(filePath), and get the following:</p>
<pre><code><?xml version="1.0" encoding="utf-8" ?>
<ExperienceProfiles>
<ExperienceProfile>
<Col1>blah</Col1>
<Col2>4ed397bf-a4d5-4ace-9d44-8c1a5cdb0f34</C... | [
{
"answer_id": 1458913,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "column.ColumnMapping = MappingType.Attribute\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/354568",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33185/"
] |
354,587 | <p><strong>Update</strong> - for those of a facetious frame of mind, you can assume that Aggregate still produces the normal result whatever function is passed to it, including in the case being optimized.</p>
<p>I wrote this program to build a long string of integers from 0 to 19999 separate by commas.</p>
<pre><code>... | [
{
"answer_id": 354594,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 2,
"selected": false,
"text": "namespace MakeAggregateGoFaster\n{\n public static class Extensions\n {\n public static String Aggregate... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27423/"
] |
354,599 | <p>Looking to get a list of all the files (commit comments would be nice too) of a user in cvs. </p>
| [
{
"answer_id": 354611,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 5,
"selected": true,
"text": "cvs log -t -wJellyJoe\n"
},
{
"answer_id": 354618,
"author": "Alex B",
"author_id": 6180,
"author_p... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
354,610 | <p>Can anyone guide me in the correct way to build a colored bubble/circle programmatically?</p>
<p>I can't use images as I need it to be able to be any color depending on user interaction.</p>
<p>My thought was maybe to make a white circle image and then overlay a color on top of it.
However I am not sure if this wo... | [
{
"answer_id": 354635,
"author": "Marc Charbonneau",
"author_id": 35136,
"author_profile": "https://Stackoverflow.com/users/35136",
"pm_score": 4,
"selected": true,
"text": "[myColor set]"
},
{
"answer_id": 354677,
"author": "joshperry",
"author_id": 30587,
"author_pr... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354610",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26728/"
] |
354,613 | <p>How can I convert a bitmap to a byte array in c++ WITHOUT the .net framework?</p>
| [
{
"answer_id": 354621,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 4,
"selected": true,
"text": "GetDIBits"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/354613",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37875/"
] |
354,639 | <p>How do I check the type of a value on runtime?</p>
<p>I'd like to find out where I'm creating doubles.</p>
| [
{
"answer_id": 354855,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "[myObject isKindOfClass: [InterestingClass class]]"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/354639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36182/"
] |
354,640 | <p>Suppose we have <em>n</em> elements, <em>a</em><sub>1</sub>, <em>a</em><sub>2</sub>, ..., <em>a</em><sub>n</sub>, arranged in a circle. That is, <em>a</em><sub>2</sub> is between <em>a</em><sub>1</sub> and <em>a</em><sub>3</sub>, <em>a</em><sub>3</sub> is between <em>a</em><sub>2</sub> and <em>a</em><sub>4</sub>, <e... | [
{
"answer_id": 354701,
"author": "codelogic",
"author_id": 43427,
"author_profile": "https://Stackoverflow.com/users/43427",
"pm_score": 1,
"selected": false,
"text": "#!/usr/bin/python\nimport sys\n\n# thx google \nbstr_pos = lambda n: n>0 and bstr_pos(n>>1)+str(n&1) or \"\"\n\ndef arra... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44511/"
] |
354,650 | <p>I need to keep an NSPathControl updated with the currently selected path in an NSBrowser, but I'm having trouble figuring out a way of getting notifications when the path has changed from the NSBrowser. The ideal way to do this would just to be to observe the path key path in the NSBrowser, but that gives a KVO can ... | [
{
"answer_id": 354682,
"author": "Marc Charbonneau",
"author_id": 35136,
"author_profile": "https://Stackoverflow.com/users/35136",
"pm_score": 0,
"selected": false,
"text": "- (BOOL)browser:(NSBrowser *)sender selectRow:(NSInteger)row inColumn:(NSInteger)column"
},
{
"answer_id"... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1512/"
] |
354,651 | <p>I have a couple of mdb files with the exact table structure. I have to change the primary key of the main table from autonumber to number in all of them, which means I have to:</p>
<ol>
<li>Drop the all the relationships the main table has</li>
<li>Change the main table</li>
<li>Create the relationships again,... ... | [
{
"answer_id": 354954,
"author": "Patrick Cuff",
"author_id": 7903,
"author_profile": "https://Stackoverflow.com/users/7903",
"pm_score": 5,
"selected": true,
"text": "Function PrintRelationships()\n For Each rel In CurrentDb.Relations\n With rel\n Debug.Print \"Name... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354651",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15884/"
] |
354,653 | <p>What is the best way to close a browser window of an AJAX ASP.NET application after the server-side has been executed.</p>
<p>I found this <a href="https://stackoverflow.com/questions/250450/aspnet-ajax-close-window-after-ajax-call">solution</a>, but it seems a little complex for what I want to accomplish. Or is t... | [
{
"answer_id": 354658,
"author": "Strelok",
"author_id": 2788,
"author_profile": "https://Stackoverflow.com/users/2788",
"pm_score": -1,
"selected": false,
"text": "ScriptManager.RegisterStartupScript(...)"
},
{
"answer_id": 3685477,
"author": "hyprsleepy",
"author_id": 2... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26327/"
] |
354,657 | <p><a href="http://api.rubyonrails.com/classes/ActiveSupport/CoreExtensions/Time/Conversions.html" rel="noreferrer">Rails' ActiveSupport module extends the builtin ruby Time class with a number of methods.</a></p>
<p>Notably, there is the <code>to_formatted_s</code> method, which lets you write <code>Time.now.to_forma... | [
{
"answer_id": 1474238,
"author": "Tyler Rick",
"author_id": 47185,
"author_profile": "https://Stackoverflow.com/users/47185",
"pm_score": 6,
"selected": false,
"text": ":db"
},
{
"answer_id": 1475032,
"author": "eremite",
"author_id": 167369,
"author_profile": "https... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/234/"
] |
354,664 | <p>This pretty much has me defeated.</p>
<p>On XP and earlier versions of Windows you could customise Open With filetypes to include java - jar "myjar.jar", but on Vista this functionality seems to have been removed. I can of course create a .bat file to launch my application, but is it possible to make Vista execute ... | [
{
"answer_id": 355011,
"author": "RealHowTo",
"author_id": 25122,
"author_profile": "https://Stackoverflow.com/users/25122",
"pm_score": 6,
"selected": true,
"text": ">assoc .jar\n.jar=jarfile\n"
}
] | 2008/12/09 | [
"https://Stackoverflow.com/questions/354664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1293123/"
] |
354,669 | <p>I have the following attributes in my DB.</p>
<blockquote>
<p>statistic id, devicename, value, timestamp.</p>
</blockquote>
<p>For a given statistic, I want to find the 2 most recent timestamps and corresopnding values for a every unique device.</p>
<p>I am trying stuff like </p>
<p>Trial 1)</p>
<pre><code>se... | [
{
"answer_id": 354696,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 2,
"selected": false,
"text": "SELECT x.statistic, x.devicename, x.value, x.timestamp\nFROM X_STATSVALUE AS x\n LEFT OUTER JOIN X_STATSVALUE AS x2\n... | 2008/12/09 | [
"https://Stackoverflow.com/questions/354669",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
354,680 | <p>I have balls bouncing around and each time they collide their speed vector is reduced by the Coefficient of Restitution.</p>
<p>Right now my balls CoR for my balls is .80 . So after many bounces my balls have "stopped" rolling because their speed has becoming some ridiculously small number. </p>
<p>In what stage ... | [
{
"answer_id": 354758,
"author": "benjismith",
"author_id": 22979,
"author_profile": "https://Stackoverflow.com/users/22979",
"pm_score": 1,
"selected": false,
"text": "void UpdatePosition(Ball b) {\n\n TimeStamp now = Clock.GetTime();\n float secondsSinceLastUpdate = now.TimeSince(b... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2635/"
] |
354,685 | <p>I recognize that there's an obvious pattern in the output to this, I just want to know why lispbox's REPL aborts when I try to run anything > 52. Also, any suggestions on improving the code are more than welcome. ^-^</p>
<pre><code>(defun count-reduced-fractions (n d sum)
(setf g (gcd n d))
(if (equal 1 d)
... | [
{
"answer_id": 354694,
"author": "Kyle Cronin",
"author_id": 658,
"author_profile": "https://Stackoverflow.com/users/658",
"pm_score": 2,
"selected": false,
"text": "* (count-reduced-fractions 53 53 0)\n881\n\n* (count-reduced-fractions 100 100 0)\n3043\n"
},
{
"answer_id": 35470... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
354,691 | <p>What I am trying to do is so simple but I am having a hard time making it work. I saw some posts along the same lines but I still have questions.</p>
<p>I have a MenuItem object called mnuA. All I want is set the icon property programatically in C#. I have tried the following</p>
<p>a) <code>mnuA.Icon = new Bitmap... | [
{
"answer_id": 354754,
"author": "w4g3n3r",
"author_id": 36745,
"author_profile": "https://Stackoverflow.com/users/36745",
"pm_score": 4,
"selected": true,
"text": "Image img = new Image();\nimg.Source = new BitmapImage(new Uri(@\"c:\\icons\\A.png\"));\nmnuA.Icon = img;\n"
}
] | 2008/12/10 | [
"https://Stackoverflow.com/questions/354691",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28029/"
] |
354,695 | <p>I need to use one logical PGM based multicast address in application while enable such application "seamlessly" running across several different geo-locations (i.e. think US/Europe/Australia).</p>
<p>Application is quite throughput (several million biz. messages a day) and latency demanding whith a lot of small but... | [
{
"answer_id": 354754,
"author": "w4g3n3r",
"author_id": 36745,
"author_profile": "https://Stackoverflow.com/users/36745",
"pm_score": 4,
"selected": true,
"text": "Image img = new Image();\nimg.Source = new BitmapImage(new Uri(@\"c:\\icons\\A.png\"));\nmnuA.Icon = img;\n"
}
] | 2008/12/10 | [
"https://Stackoverflow.com/questions/354695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30777/"
] |
354,703 | <p>I am trying to process files one at a time that are stored over a network. Reading the files is fast due to buffering is not the issue. The problem I have is just listing the directories in a folder. I have at least 10k files per folder over many folders.</p>
<p>Performance is super slow since File.list() return... | [
{
"answer_id": 354743,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": "https://Stackoverflow.com/users/20654",
"pm_score": 2,
"selected": false,
"text": "File [] content = new File(\"X:\\\\remote\\\\dir\").listFiles();\n\nfor ( File f : content ) {\n process( f );\n}\n"
... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21838/"
] |
354,718 | <p>How do you detect which form input has focus using JavaScript or jQuery?</p>
<p>From within a function I want to be able to determine which form input has focus. I'd like to be able to do this in straight JavaScript and/or jQuery.</p>
| [
{
"answer_id": 354849,
"author": "Paolo Bergantino",
"author_id": 16417,
"author_profile": "https://Stackoverflow.com/users/16417",
"pm_score": 5,
"selected": true,
"text": "var selectedInput = null;\n$(function() {\n $('input, textarea, select').focus(function() {\n selectedIn... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25991/"
] |
354,723 | <p><strong>Problem:</strong> a table of coordinate lat/lngs. Two rows can potentially have the same coordinate. We want a query that returns a set of rows with unique coordinates (within the returned set). Note that <code>distinct</code> is not usable because I need to return the id column which is, by definition, dist... | [
{
"answer_id": 354959,
"author": "Tom H",
"author_id": 5696608,
"author_profile": "https://Stackoverflow.com/users/5696608",
"pm_score": 3,
"selected": true,
"text": "WITH cte AS\n(\n SELECT\n intID,\n ROW_NUMBER() OVER\n (\n PARTITION BY geoLat... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2942/"
] |
354,724 | <p>Currently I use this reg ex:</p>
<pre><code>"\bI([ ]{1,2})([a-zA-Z]|\d){2,13}\b"
</code></pre>
<p>It was just brought to my attention that the text that I use this against could contain a "<code>\</code>" (backslash). How do I add this to the expression?</p>
| [
{
"answer_id": 354730,
"author": "user44511",
"author_id": 44511,
"author_profile": "https://Stackoverflow.com/users/44511",
"pm_score": 3,
"selected": true,
"text": "|\\\\"
},
{
"answer_id": 354742,
"author": "dreftymac",
"author_id": 42223,
"author_profile": "https:... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38349/"
] |
354,727 | <p>Using the WCF web programming model one can specify an operation contract like so:</p>
<pre><code>[OperationContract]
[WebGet(ResponseFormat = WebMessageFormat.Xml, UriTemplate = "SomeRequest?qs1={qs1}&qs2={qs2}")]
XElement SomeRequest1(string qs1, string qs2);
</code></pre>
<p>Now if we had to make a contract... | [
{
"answer_id": 354823,
"author": "joshperry",
"author_id": 30587,
"author_profile": "https://Stackoverflow.com/users/30587",
"pm_score": 6,
"selected": true,
"text": "[OperationContract]\n[WebGet(ResponseFormat = WebMessageFormat.Xml,\n UriTemplate = \"SomeRequest?qs1={qs1}\")]\nX... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19219/"
] |
354,738 | <p>I am making a small <strong>C#</strong> application and would like to extract a <strong>tag cloud</strong> from a simple plain text. Is there a function that could do that for me?</p>
| [
{
"answer_id": 354759,
"author": "Nathan W",
"author_id": 6335,
"author_profile": "https://Stackoverflow.com/users/6335",
"pm_score": 0,
"selected": false,
"text": "Dim Words = \"Hello World ))))) This is a test Hello World\"\nDim CountTheWords = From str In Words.Split(\" \") _\n ... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19159/"
] |
354,739 | <p>I have noticed a common technique is to place a generic container <em>div</em> in the root of the <em>body</em> tag:</p>
<pre><code><html>
<head>
...
</head>
<body>
<div id="container">
...
</div>
</body>
</html>
</code></pre>
<p>Is ... | [
{
"answer_id": 354752,
"author": "Jonathan Tran",
"author_id": 12887,
"author_profile": "https://Stackoverflow.com/users/12887",
"pm_score": 6,
"selected": false,
"text": "margin-left: auto; margin-right: auto"
},
{
"answer_id": 3065886,
"author": "Quentin",
"author_id": ... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44810/"
] |
354,745 | <p>How can i make my Java Swing GUI Components [Right To Left] for Arabic language from NetBeans Desktop Application?</p>
| [
{
"answer_id": 354816,
"author": "John Gardner",
"author_id": 13687,
"author_profile": "https://Stackoverflow.com/users/13687",
"pm_score": 4,
"selected": true,
"text": "Component.setComponentOrientation( ComponentOrientation.RIGHT_TO_LEFT )\n"
},
{
"answer_id": 356994,
"auth... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354745",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
354,755 | <p>I'm working on a blog application in Django. Naturally, I have models set up such that there are Posts and Comments, and a particular Post may have many Comments; thus, Post is a ForeignKey in the Comments model.</p>
<p>Given a Post object, is there an easy way (ideally, through a method call) to find out how many ... | [
{
"answer_id": 354765,
"author": "Daniel Naab",
"author_id": 32638,
"author_profile": "https://Stackoverflow.com/users/32638",
"pm_score": 4,
"selected": true,
"text": "Comments.objects.filter(post=post).count()\n"
}
] | 2008/12/10 | [
"https://Stackoverflow.com/questions/354755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28804/"
] |
354,763 | <p>I am setting up a very small MySQL database that stores, first name, last name, email and phone number and am struggling to find the 'perfect' datatype for each field. I know there is no such thing as a perfect answer, but there must be some sort of common convention for commonly used fields such as these. For insta... | [
{
"answer_id": 354800,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 3,
"selected": false,
"text": "[field length]"
},
{
"answer_id": 1972154,
"author": "yentsun",
"author_id": 216042,
"author_profile": "ht... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44816/"
] |
354,769 | <p>The (web based) software I am working on needs a way for users to be able to customize an email template.</p>
<p>I'm familiar with TinyMCE et al. web based wysiwyg editors. However they strive to produce valid (x)html markup, with heavy use of style sheets. All of which won't render nicely in email clients (yes, I'... | [
{
"answer_id": 354800,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 3,
"selected": false,
"text": "[field length]"
},
{
"answer_id": 1972154,
"author": "yentsun",
"author_id": 216042,
"author_profile": "ht... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23300/"
] |
354,796 | <p>I am writing Eclipse plugins, and frequently have a situation where a running Job needs to pause for a short while, run something asynchronously on the UI thread, and resume.</p>
<p>So my code usually looks something like:</p>
<pre class="lang-java prettyprint-override"><code>Display display = Display.getDefault... | [
{
"answer_id": 355039,
"author": "SCdF",
"author_id": 1666,
"author_profile": "https://Stackoverflow.com/users/1666",
"pm_score": 0,
"selected": false,
"text": "run()"
},
{
"answer_id": 355090,
"author": "Dave Ray",
"author_id": 40310,
"author_profile": "https://Stack... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23072/"
] |
354,799 | <p>I'm working on a website with a em-based layout (so it can stretch and compress gracefully when users increase or decrease font size). This site has a header that should be displayed across all pages. I have a "header" div in all pages, and the site-wide css file includes the code:</p>
<pre><code>#header
{
wi... | [
{
"answer_id": 355039,
"author": "SCdF",
"author_id": 1666,
"author_profile": "https://Stackoverflow.com/users/1666",
"pm_score": 0,
"selected": false,
"text": "run()"
},
{
"answer_id": 355090,
"author": "Dave Ray",
"author_id": 40310,
"author_profile": "https://Stack... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1615/"
] |
354,811 | <p>I have a ToggleButtonBar with a DataProvider setup like this:</p>
<pre><code> <mx:ToggleButtonBar itemClick="clickHandler(event);" selectedIndex="0">
<mx:dataProvider>
<mx:String>{resourceManager.getString('dashboard','daily')}</mx:String>
<mx:String>{resourceMana... | [
{
"answer_id": 355822,
"author": "Alexandru",
"author_id": 44226,
"author_profile": "https://Stackoverflow.com/users/44226",
"pm_score": 1,
"selected": false,
"text": "[Bindable(\"langChange\")]\npublic function get dataProviderToggleB():ArrayCollection\n{\n var arr :ArrayCollection =... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16534/"
] |
354,835 | <p>If I just want to know if a domain name is reserved; is it sufficient to use this command and see if any domain name servers turn up, in which case it's reserved?</p>
<pre><code>host -t NS example.com
</code></pre>
<p>It's a lot faster than visiting <a href="http://www.internic.net/whois.html" rel="nofollow norefe... | [
{
"answer_id": 354839,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 1,
"selected": false,
"text": "whois stackoverflow.com\n"
},
{
"answer_id": 356546,
"author": "Alnitak",
"author_id": 6782,
"author_... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354835",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
354,837 | <p>Why one would use one of the following packages instead of the other?</p>
<ul>
<li>Java Logging</li>
<li>Commons Logging</li>
<li>Log4j</li>
<li>SLF4j</li>
<li>Logback</li>
</ul>
| [
{
"answer_id": 354868,
"author": "Stephen",
"author_id": 37193,
"author_profile": "https://Stackoverflow.com/users/37193",
"pm_score": 7,
"selected": true,
"text": "logger.debug(\"The entry is {}.\", entry);\n//which expands effectively to\nif (logger.isDebugEnabled()){\n // Note that... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39057/"
] |
354,838 | <p>I want to convert user-submitted date format (mm/dd/yyyy) to a MySQL date format (YYYY-mm-dd). Submission is via a simple PHP form direc tto MySQL database. </p>
| [
{
"answer_id": 354844,
"author": "Paolo Bergantino",
"author_id": 16417,
"author_profile": "https://Stackoverflow.com/users/16417",
"pm_score": 3,
"selected": false,
"text": "$mysql_date = date('Y-m-d H:i:s', strtotime($user_date));\n"
},
{
"answer_id": 14595598,
"author": "J... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
354,840 | <p>I'm developing an application with Adobe Flex and AIR, and I've been banging my head against the wall trying to figure out how to solve a scrolling issue.</p>
<p>The basic structure of my main application window (simplified greatly) is this:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<mx:Window... | [
{
"answer_id": 355898,
"author": "hasseg",
"author_id": 4111,
"author_profile": "https://Stackoverflow.com/users/4111",
"pm_score": 0,
"selected": false,
"text": "measure()"
}
] | 2008/12/10 | [
"https://Stackoverflow.com/questions/354840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22979/"
] |
354,842 | <p>I would like to create my ObjectDataProvider in my C# code behind rather than my XAML.</p>
<p>I was wondering how to change this XAML into equivalent C#. The XAML was generated by Microsoft Expression Blend 2, so the d: namespace can be ignored safely.</p>
<pre><code><ObjectDataProvider x:Key="FooSourceDS" Obje... | [
{
"answer_id": 355898,
"author": "hasseg",
"author_id": 4111,
"author_profile": "https://Stackoverflow.com/users/4111",
"pm_score": 0,
"selected": false,
"text": "measure()"
}
] | 2008/12/10 | [
"https://Stackoverflow.com/questions/354842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36234/"
] |
354,853 | <p>Regex to Find Second Char is Alpha up to 5 Alpha Followed by 1 numeral.</p>
<p>Thanks</p>
| [
{
"answer_id": 354865,
"author": "UnkwnTech",
"author_id": 115,
"author_profile": "https://Stackoverflow.com/users/115",
"pm_score": 0,
"selected": false,
"text": ".\\w{1,5}\\d\n"
},
{
"answer_id": 354878,
"author": "Jonathan Lonowski",
"author_id": 15031,
"author_pro... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38349/"
] |
354,869 | <p>I want to create a C# program to provision Windows Mobile devices. I have found MSDN documentation on a function called <a href="http://msdn.microsoft.com/en-us/library/ms852998.aspx" rel="nofollow noreferrer">DMProcessConfigXML</a>, but no instructions on how to use this function.</p>
<p>How can I use this functio... | [
{
"answer_id": 355397,
"author": "Shane Powell",
"author_id": 23235,
"author_profile": "https://Stackoverflow.com/users/23235",
"pm_score": 1,
"selected": false,
"text": "<wap-provisioningdoc>\n <characteristic type=\"Registry\">\n <characteristic type=\"HKCU\\ControlPanel\\Home\"... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37481/"
] |
354,870 | <p>Is there a command in oracle 9i that displays the foreign keys of a table and also the table that those foreign keys reference?</p>
<p>I was searching, did not find anything but i found an equivalent command that works with MySql which is SHOW CREATE TABLE </p>
<p>Is there an equivalent command for this within ora... | [
{
"answer_id": 354944,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 1,
"selected": false,
"text": "SELECT fk.owner, fk.constraint_name, fk.table_name, fc.column_name,\n pk.owner, pk.constraint_name, pk.table_name, pc... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31274/"
] |
354,875 | <p>I have been working on a Java project for a class for a while now. It is an implementation of a linked list (here called <code>AddressList</code>, containing simple nodes called <code>ListNode</code>). The catch is that everything would have to be done with recursive algorithms. I was able to do everything fine sans... | [
{
"answer_id": 354906,
"author": "Ari Ronen",
"author_id": 34957,
"author_profile": "https://Stackoverflow.com/users/34957",
"pm_score": 5,
"selected": false,
"text": "\n //Takes as parameters a node in a linked list, and p, the previous node in that list\n //returns the head of th... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41200/"
] |
354,883 | <p>The canonical way to return multiple values in languages that support it is often <a href="https://stackoverflow.com/questions/38508/whats-the-best-way-to-return-multiple-values-from-a-function-in-python">tupling</a>.</p>
<h3>Option: Using a tuple</h3>
<p>Consider this trivial example:</p>
<pre><code>def f(x):
y0 ... | [
{
"answer_id": 354892,
"author": "UnkwnTech",
"author_id": 115,
"author_profile": "https://Stackoverflow.com/users/115",
"pm_score": 5,
"selected": false,
"text": "def g(x):\n y0 = x + 1\n y1 = x * 3\n y2 = y0 ** y3\n return {'y0':y0, 'y1':y1 ,'y2':y2 }\n"
},
{
"answer_id": 3... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37984/"
] |
354,886 | <p>I've just finished a six hour debugging session for a weird UI effect where I found that my favorite framework's implementation of an interface function called "getVisibleRegion" disabled some UI feature (and apparently forgot to restore it). </p>
<p>I've filed a bug with the framework, but this made me think about... | [
{
"answer_id": 354921,
"author": "MBCook",
"author_id": 18189,
"author_profile": "https://Stackoverflow.com/users/18189",
"pm_score": 2,
"selected": false,
"text": " MakeMyLifeEasyObject mmleo = new MakeMyLifeEasyObject(x, y, z, default, 12, something);\n\n Object uniqueObjectOne = mml... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23072/"
] |
354,900 | <p>So I'm teaching myself Ruby on Rails, with a PHP background. I've written a sloppy, proof-of-concept PHP application called "<a href="http://rezich.com/storybored" rel="nofollow noreferrer">2NDP.</a>" I want to re-create this in Ruby on Rails (but more basic, more clean, and with a better interface), so I can learn ... | [
{
"answer_id": 355437,
"author": "Hates_",
"author_id": 3410,
"author_profile": "https://Stackoverflow.com/users/3410",
"pm_score": 3,
"selected": true,
"text": "class Pages < ActiveRecord::Base\n has_many :linked_pages\n has_many :pages, :through => :linked_pages\nend\n\nclass LinkedP... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34795/"
] |
354,902 | <p>How do you open a path in explorer by code in c++. I googled and couldn't find any thing but systems commands to do this, however, i dont want it to block or show the console window.</p>
| [
{
"answer_id": 354916,
"author": "berlindev",
"author_id": 44276,
"author_profile": "https://Stackoverflow.com/users/44276",
"pm_score": 2,
"selected": false,
"text": "\nsystem(\"explorer C:\\\\\");\n"
},
{
"answer_id": 354922,
"author": "Community",
"author_id": -1,
... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23339/"
] |
354,909 | <p>Ok this is more of a computer science question, than a question based on a particular language, but is there a difference between a map operation and a foreach operation? Or are they simply different names for the same thing?</p>
| [
{
"answer_id": 354917,
"author": "Henk",
"author_id": 44427,
"author_profile": "https://Stackoverflow.com/users/44427",
"pm_score": 7,
"selected": false,
"text": "map"
},
{
"answer_id": 354923,
"author": "treat your mods well",
"author_id": 20772,
"author_profile": "h... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15124/"
] |
354,927 | <p>I will take the example of the SO site. To go to the list of questions, the url is www.stackoverflow.com/questions. Behind the scene, this goes to a controller (whose name is unknown) and to one of its actions. Let's say that this is <strong>controller=home</strong> and <strong>action=questions</strong>.</p>
<p>How... | [
{
"answer_id": 354917,
"author": "Henk",
"author_id": 44427,
"author_profile": "https://Stackoverflow.com/users/44427",
"pm_score": 7,
"selected": false,
"text": "map"
},
{
"answer_id": 354923,
"author": "treat your mods well",
"author_id": 20772,
"author_profile": "h... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29244/"
] |
354,936 | <p>I get a 2032 stream error from Flash in response to POST requests that return "201 Created" in IE (Firefox works fine). Since Flash doesn't provide access to the HTTP status I can't tell that it has actually succeeded. The request is being made with HTTPService.</p>
<p>Any suggestions? Has anyone else seen this?... | [
{
"answer_id": 404448,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": " class ApplicationController < ActionController::Base\n helper :all # include all helpers, all the time\n include Authentica... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15899/"
] |
354,942 | <p>If I have two objects, one being the list of items, and the other having a property storing the selected item of the other list, is it possible to update the selected item through binding in WPF?</p>
<p>Lets say I have these two data structures:</p>
<pre><code>public class MyDataList
{
public ObservableCollect... | [
{
"answer_id": 355007,
"author": "Jobi Joy",
"author_id": 8091,
"author_profile": "https://Stackoverflow.com/users/8091",
"pm_score": 1,
"selected": false,
"text": " public class MyDataList : INotifyPropertyChanged\n{\n private Guid _choosen;\n\n public ObservableCollection<Guid> D... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354942",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3820/"
] |
354,945 | <p>What would be the most effective way to grab the schema + table name in this scenario:</p>
<p>SELECT [t0].[Id], [t0].[CODE] AS [arg0], [t0].[DESC] AS [arg1]
FROM [SchemaName].[TableName] AS [t0]
WHERE ([t0].[Id] <> @p0)</p>
<p>The outcome needs to be: "SchemaName.TableName" ....</p>
<p>I'm using C#.</p>
<p>Th... | [
{
"answer_id": 355007,
"author": "Jobi Joy",
"author_id": 8091,
"author_profile": "https://Stackoverflow.com/users/8091",
"pm_score": 1,
"selected": false,
"text": " public class MyDataList : INotifyPropertyChanged\n{\n private Guid _choosen;\n\n public ObservableCollection<Guid> D... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
354,962 | <p>I'm using Altera Quartus 2 to do a custom 8 bit processor and it takes forever to compile on my laptop. I'm only using simulations and making my processor in schematic (block diagram) and VHDL. Right now it takes around 10 minutes to compile, which is a pain since I'm more on the debugging phase of the project where... | [
{
"answer_id": 46964300,
"author": "Charles Clayton",
"author_id": 2374028,
"author_profile": "https://Stackoverflow.com/users/2374028",
"pm_score": 3,
"selected": false,
"text": "set_global_assignment -name PHYSICAL_SYNTHESIS_EFFORT FAST\n"
}
] | 2008/12/10 | [
"https://Stackoverflow.com/questions/354962",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3485/"
] |
354,976 | <p>The ActiveScaffold list view has a search form that is loaded via ajax when a user click the search link. I'd prefer to have the form show by default when a user opens a list page.</p>
<p>I've figured out a way to trigger the ajax call when the page loads, but I'm wondering if there's a way to get ActiveScaffold to... | [
{
"answer_id": 2224000,
"author": "Jakub",
"author_id": 230656,
"author_profile": "https://Stackoverflow.com/users/230656",
"pm_score": 0,
"selected": false,
"text": "config.list.always_show_search = true"
}
] | 2008/12/10 | [
"https://Stackoverflow.com/questions/354976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/575/"
] |
354,981 | <p>I'm porting a process which creates a MASSIVE <code>CROSS JOIN</code> of two tables. The resulting table contains 15m records (looks like the process makes a 30m cross join with a 2600 row table and a 12000 row table and then does some grouping which must split it in half). The rows are relatively narrow - just 6 ... | [
{
"answer_id": 355132,
"author": "shahkalpesh",
"author_id": 23574,
"author_profile": "https://Stackoverflow.com/users/23574",
"pm_score": 1,
"selected": false,
"text": "\n SELECT CC.COST_CTR_NUM, GL.ACCOUNT_NO\n ,CC.COST_CTR_NUM AS CA_COSTCENT\n ,GL.ACCOUNT_... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18255/"
] |
354,993 | <p>I have following table structure:</p>
<pre><code>Table: Plant
PlantID: Primary Key
PlantName: String
Table: Party
PartyID: Primary Key
PartyName: String
PlantID: link to Plant table
Table: Customer
PartyID: Primary Key, link to Party
CustomerCode: String
</code></pre>
<p>I'd like to have Customer entity ... | [
{
"answer_id": 355968,
"author": "YeahStu",
"author_id": 1300,
"author_profile": "https://Stackoverflow.com/users/1300",
"pm_score": 3,
"selected": true,
"text": "Customer.Party.PartyName"
},
{
"answer_id": 723556,
"author": "Kris",
"author_id": 14439,
"author_profile... | 2008/12/10 | [
"https://Stackoverflow.com/questions/354993",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44838/"
] |
354,994 | <p>I have my SVN repository hosted somewhere. I want to move to somebody else. How can I create a dump of my repository so I can import it into my new host? This is all I keep seeing: svnadmin dump /path/to/repos > repos.dump</p>
<p>My repository is hosted, so it's not local.</p>
| [
{
"answer_id": 356353,
"author": "Bert Huijben",
"author_id": 2094,
"author_profile": "https://Stackoverflow.com/users/2094",
"pm_score": 3,
"selected": false,
"text": "svnrdump"
}
] | 2008/12/10 | [
"https://Stackoverflow.com/questions/354994",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3047/"
] |
354,998 | <p>I have a MasterPage, with my Usercontrol inside a div.</p>
<p>I can set visible=false to the UserControl and to the containing div, and this works fine.
But the Page_Load of the UserControl is always hit.</p>
<p>Is this by design, or am I missing how to stop page execution going into the Page_Load method of the Us... | [
{
"answer_id": 356353,
"author": "Bert Huijben",
"author_id": 2094,
"author_profile": "https://Stackoverflow.com/users/2094",
"pm_score": 3,
"selected": false,
"text": "svnrdump"
}
] | 2008/12/10 | [
"https://Stackoverflow.com/questions/354998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6268/"
] |
355,015 | <p>I would like to know if there is a jQuery event that I can use to determine when a particular DIV's <code>top</code> property has changed.</p>
<p>For instance, I have invisible content above a DIV. When that content becomes visible, the DIV is shifted down. I would like to capture that event and then use the <code>... | [
{
"answer_id": 355022,
"author": "Strelok",
"author_id": 2788,
"author_profile": "https://Stackoverflow.com/users/2788",
"pm_score": 1,
"selected": false,
"text": "$(document).ready( function (){\n $(\"#mydiv\").bind(\"movestart\", function (){ ...remember start position... });\n $(\"#... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355015",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10589/"
] |
355,019 | <p>I have an object in C# on which I need to execute a method on a regular basis. I would like this method to be executed only when other people are using my object, as soon as people stop using my object I would like this background operation to stop. </p>
<p>So here is a simple example is this (which is broken): </p... | [
{
"answer_id": 355097,
"author": "Excel Kobayashi",
"author_id": 42911,
"author_profile": "https://Stackoverflow.com/users/42911",
"pm_score": 2,
"selected": false,
"text": "class Fish3 : IDisposable\n{\n Thread t;\n private ManualResetEvent terminate = new ManualResetEvent(false);... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17174/"
] |
355,020 | <p>I have a Double which could have a value from around 0.000001 to 1,000,000,000.000</p>
<p>I wish to format this number as a string but conditionally depending on its size. So if it's very small I want to format it with something like:</p>
<pre><code>String.Format("{0:.000000000}", number);
</code></pre>
<p>if it'... | [
{
"answer_id": 355024,
"author": "Andrew Kennan",
"author_id": 22506,
"author_profile": "https://Stackoverflow.com/users/22506",
"pm_score": 2,
"selected": false,
"text": "string.Format(\"{0:#,###,##0.000}\", number);\n"
},
{
"answer_id": 355029,
"author": "tvanfosson",
"... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
355,030 | <p>I'd like to use POSIX semaphores to manage atomic get and put from a file representing a queue. I want the flexibility of having something named in the filesystem, so that completely unrelated processes can share a queue. I think this plan rules out pthreads. The named posix semaphores are great for putting somet... | [
{
"answer_id": 382554,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 0,
"selected": false,
"text": "sem_trywait()"
},
{
"answer_id": 6937221,
"author": "R.. GitHub STOP HELPING ICE",
"author_id": 3... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355030",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41661/"
] |
355,031 | <p>Is that possible? I mean, can both ends of the many to many relationship point to the same table?</p>
| [
{
"answer_id": 355111,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 2,
"selected": true,
"text": "CREATE TABLE Table1 (pkcol1 ... PRIMARY KEY, ...);\nCREATE TABLE Table2 (pkcol2 ... PRIMARY KEY, ...);\nCREATE TAB... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38807/"
] |
355,032 | <p>I am trying to creating an optional association between a couple of tables. I have one table called Invoice. The Invoice table has a FK reference to the Customer table through the CustomerId field. The Invoice table also has a not enforced FK reference to the Project able through the ProjectId field.</p>
<p>Is t... | [
{
"answer_id": 355111,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 2,
"selected": true,
"text": "CREATE TABLE Table1 (pkcol1 ... PRIMARY KEY, ...);\nCREATE TABLE Table2 (pkcol2 ... PRIMARY KEY, ...);\nCREATE TAB... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1768/"
] |
355,038 | <p>I see in richfaces that there is a single slider, wondering if anyone has created a dual slider like in Scriptaculous for it.</p>
<p>Is there any concerns in mixing JSF, Richfaces and Scriptaculous in an application?</p>
| [
{
"answer_id": 357398,
"author": "McDowell",
"author_id": 304,
"author_profile": "https://Stackoverflow.com/users/304",
"pm_score": 3,
"selected": true,
"text": "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n<jsp:root xmlns:jsp=\"http://java.sun.com/JSP/Page\" version=\"2.0\"\n xmln... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8981/"
] |
355,043 | <p>I am trying to pass a dataString to to an ajax call using JQuery. In the call, I construct the get parameters and then send them to the php page on the receiving end. The trouble is that the data string has ampersands in them and the HTML strict validator is chocking on it.</p>
<p>Here is the code:</p>
<pre><cod... | [
{
"answer_id": 355047,
"author": "Marc Novakowski",
"author_id": 27020,
"author_profile": "https://Stackoverflow.com/users/27020",
"pm_score": 6,
"selected": true,
"text": "<script type=\"text/javascript\">\n<![CDATA[\n// content of your Javascript goes here\n]]>\n</script> \n"
},
{
... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4082/"
] |
355,051 | <p>I have a prefix trie. What is the recommended schema for representing this structure in a relational database? I need substring matching to remain efficient.</p>
| [
{
"answer_id": 355064,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 5,
"selected": true,
"text": "CREATE TABLE trie (\n path VARCHAR(<maxdepth>) PRIMARY KEY,\n ...other attributes of a tree node...\n);\n"
},
{
... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
355,060 | <p>I have heard that the Java implementation of Generics is not as good as the C# implementation. In that the syntax looks similar, what is it that is substandard about the Java implementation, or is it a religious point of view?</p>
| [
{
"answer_id": 355885,
"author": "IgorK",
"author_id": 44647,
"author_profile": "https://Stackoverflow.com/users/44647",
"pm_score": 4,
"selected": false,
"text": "Object"
}
] | 2008/12/10 | [
"https://Stackoverflow.com/questions/355060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5302/"
] |
355,062 | <p>If I have a string with a valid math expression such as:</p>
<pre><code>String s = "1 + 2 * 7";
</code></pre>
<p>Is there a built in library/function in .NET that will parse and evaluate that expression for me and return the result? In this case 15.</p>
| [
{
"answer_id": 392347,
"author": "Guy",
"author_id": 1463,
"author_profile": "https://Stackoverflow.com/users/1463",
"pm_score": 5,
"selected": false,
"text": "double result = (double) HtmlPage.Window.Eval(\"15 + 35\");\n"
},
{
"answer_id": 392355,
"author": "user21826",
... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
355,073 | <p>I have a simple vb6 editor type application which has a richtextbox as the editor page. It allows users to key in stuff and the store it into a file which will keep all the text in RTF stored as CDATA in xml.</p>
<p>When you load back the file, it will read it off the xml and load back the rtf. We allow for unicode... | [
{
"answer_id": 392347,
"author": "Guy",
"author_id": 1463,
"author_profile": "https://Stackoverflow.com/users/1463",
"pm_score": 5,
"selected": false,
"text": "double result = (double) HtmlPage.Window.Eval(\"15 + 35\");\n"
},
{
"answer_id": 392355,
"author": "user21826",
... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355073",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38124/"
] |
355,083 | <p>I wanna add server controls by using javascript. The main purpose of why I want is to add controls without any postback and get them in code-behind.</p>
| [
{
"answer_id": 355120,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 2,
"selected": false,
"text": "Request.Form[\"inputName\"]\n"
},
{
"answer_id": 355122,
"author": "cfbarbero",
"author_id": 22... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44852/"
] |
355,084 | <p>I have a <code>ListBox</code> that scrolls images horizontally.</p>
<p>I have the following XAML I used blend to create it. It originally had a x:Key on the <code>Style TaregetType</code> line, MSDN said to remove it, as I was getting errors on that. Now I'm getting this error:</p>
<p><code>Error 3 Operation is... | [
{
"answer_id": 358106,
"author": "Jobi Joy",
"author_id": 8091,
"author_profile": "https://Stackoverflow.com/users/8091",
"pm_score": 5,
"selected": true,
"text": "<ListBox ItemsSource=\"{Binding Source={StaticResource WPFApparelCollection}}\"\n Grid.Row=\"1\" Margin=\"2,26,2,104... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22451/"
] |
355,087 | <p>related to:</p>
<ul>
<li><a href="https://stackoverflow.com/questions/21265/">comparing ieee floats and doubles for equality</a></li>
<li><a href="https://stackoverflow.com/questions/328475/">Should we compare floating point numbers for equality against a <em>relative</em> error</a></li>
<li><a href="https://stacko... | [
{
"answer_id": 355197,
"author": "BCS",
"author_id": 1343,
"author_profile": "https://Stackoverflow.com/users/1343",
"pm_score": 0,
"selected": false,
"text": "bool Near(real a, real b, int count = 5)\n{\n // Returns the number of mantissa bits which are equal in x and y.\n int i =... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355087",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1343/"
] |
355,089 | <p>What is the main difference between <code>StringBuffer</code> and <code>StringBuilder</code>?
Is there any performance issues when deciding on any one of these?</p>
| [
{
"answer_id": 355092,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 12,
"selected": true,
"text": "StringBuffer"
},
{
"answer_id": 355094,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": "htt... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44848/"
] |
355,098 | <p>I have noticed in phpMyAdmin you can click 'optimise' on tables, and it runs:</p>
<pre><code>OPTIMIZE TABLE table_name
</code></pre>
<p>What does this actually do?</p>
<p>Should I have some cron job running daily that runs OPTIMIZE TABLE on my tables?</p>
<p>Thank you</p>
| [
{
"answer_id": 355108,
"author": "Stefan Mai",
"author_id": 13257,
"author_profile": "https://Stackoverflow.com/users/13257",
"pm_score": 4,
"selected": true,
"text": "OPTIMIZE TABLE table_name[,table_name]\n"
}
] | 2008/12/10 | [
"https://Stackoverflow.com/questions/355098",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31671/"
] |
355,099 | <p>I have been able to copy the raw data from an otherwise inaccessible USB drive into a monolithic file of about 250MB. Somewhere in that blob of bytes are about 40 Word documents. </p>
<ol>
<li><p>Where do I find documentation about the internal structure of Word documents such that I can parse the byte-stream, reco... | [
{
"answer_id": 355121,
"author": "Stefan Mai",
"author_id": 13257,
"author_profile": "https://Stackoverflow.com/users/13257",
"pm_score": 4,
"selected": true,
"text": "D0 CF 11 E0 A1 B1 1A E1\n"
}
] | 2008/12/10 | [
"https://Stackoverflow.com/questions/355099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/426/"
] |
355,141 | <p>I am creating a mock database for import export tests (of the algorithm reading and writing complex data structures to our database, not just to test IO operations), and am trying to decide whether to use a DataSet to store the mock tables (by table name) in the faux-database, or Dictionary()</p>
<p>In terms of ret... | [
{
"answer_id": 355493,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": true,
"text": "Dictionary<,>"
}
] | 2008/12/10 | [
"https://Stackoverflow.com/questions/355141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5302/"
] |
355,151 | <p>What kind of practical issues are there concerning sending tons of e-mail from a server? Will the likelihood of that e-mail being received be just the same as if it had been sent from g-mail or a personal e-mail account if I for example just blindly call the mail() function in PHP tens of thousands of times a day? <... | [
{
"answer_id": 355235,
"author": "saschabeaumont",
"author_id": 592,
"author_profile": "https://Stackoverflow.com/users/592",
"pm_score": 1,
"selected": false,
"text": "mail()"
}
] | 2008/12/10 | [
"https://Stackoverflow.com/questions/355151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8005/"
] |
355,165 | <p>In my knowledge, the RESTful WCF still has ".svc" in its URL.</p>
<p>For example, if the service interface is like</p>
<pre><code>[OperationContract]
[WebGet(UriTemplate = "/Value/{value}")]
string GetDataStr(string value);
</code></pre>
<p>The access URI is like "<a href="http://machinename/Service.svc/Value/2" ... | [
{
"answer_id": 355471,
"author": "Darin Dimitrov",
"author_id": 29407,
"author_profile": "https://Stackoverflow.com/users/29407",
"pm_score": 6,
"selected": true,
"text": "public class RestModule : IHttpModule\n{\n public void Dispose() { }\n\n public void Init(HttpApplication app)... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26349/"
] |
355,167 | <p>What is the use of anonymous classes in Java? Can we say that usage of anonymous class is one of the advantages of Java?</p>
| [
{
"answer_id": 355177,
"author": "coobird",
"author_id": 17172,
"author_profile": "https://Stackoverflow.com/users/17172",
"pm_score": 10,
"selected": true,
"text": "button.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n ... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40933/"
] |
355,168 | <p>I am programming an iPhone app, and I need to force it to exit due to certain user actions. After cleaning up memory the app allocated, what's the appropriate method to call to terminate the application?</p>
| [
{
"answer_id": 355173,
"author": "Brett",
"author_id": 37848,
"author_profile": "https://Stackoverflow.com/users/37848",
"pm_score": 9,
"selected": true,
"text": "exit(0)"
},
{
"answer_id": 358241,
"author": "Rob",
"author_id": 386102,
"author_profile": "https://Stack... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21293/"
] |
355,171 | <p>I would like to know how I can refer to a list item object if I had for example the following html list </p>
<pre><code><div id="subdiv_2">
<div id="subdiv_3">
<ul>
<li><a href="">Item1</a></li>
<li><a href="">Item2</a></li>
&l... | [
{
"answer_id": 355188,
"author": "Benry",
"author_id": 28408,
"author_profile": "https://Stackoverflow.com/users/28408",
"pm_score": 3,
"selected": true,
"text": "subdiv_3"
},
{
"answer_id": 355245,
"author": "Supernovah",
"author_id": 36076,
"author_profile": "https:... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36076/"
] |
355,172 | <p>I'm learning about DDD, and have come across the statement that "value-objects" should be immutable. I understand that this means that the objects state should not change after it has been created. This is kind of a new way of thinking for me, but it makes sense in many cases.</p>
<p>Ok, so I start creating immutab... | [
{
"answer_id": 355186,
"author": "Andrew Kennan",
"author_id": 22506,
"author_profile": "https://Stackoverflow.com/users/22506",
"pm_score": 6,
"selected": true,
"text": "public class Entity\n{\n public class Builder\n {\n private int _field1;\n private int _field2;\n pri... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22621/"
] |
355,185 | <p>I am trying to access XMLHTTPRequest.open Method I have even included netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");</p>
<p>but still its not working. </p>
<p>I am using javascript and HTML to access the WebService.</p>
<p>Any Help would be really great</p>
<p>Code</p>
<p><pre><code... | [
{
"answer_id": 355255,
"author": "M.N",
"author_id": 18615,
"author_profile": "https://Stackoverflow.com/users/18615",
"pm_score": 2,
"selected": false,
"text": "/* Function to create an XMLHTTP object for all browsers */\nfunction getXMLHTTPObject(){\n var xmlHttp;\n try{\n ... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42070/"
] |
355,192 | <p>I am doing some TTF work for MOSA (the correlating body between all the C# operating systems). Me and Colin Burn are currently working on getting some TTF code working (less me these days :) - he made a lot of progress).</p>
<p>In any case, the TTF spec allows for an arbitrary amount of control points between the '... | [
{
"answer_id": 355246,
"author": "Spoike",
"author_id": 3713,
"author_profile": "https://Stackoverflow.com/users/3713",
"pm_score": 2,
"selected": false,
"text": "// Quadratic spline, with three given points\n// B(t) = (1-t)^2P(0) + 2*tP(1) + t^2P(2)\n// where T is a real number in the i... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24064/"
] |
355,196 | <p>IIS does not work when I start applications like Skype since it also uses port 80.</p>
<p>Which port can I use to run IIS other than 80? (8080 does not work)</p>
| [
{
"answer_id": 355221,
"author": "netic",
"author_id": 44534,
"author_profile": "https://Stackoverflow.com/users/44534",
"pm_score": 3,
"selected": false,
"text": "netstat"
}
] | 2008/12/10 | [
"https://Stackoverflow.com/questions/355196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38997/"
] |
355,202 | <p>I want to connect and execute one (or sometimes several) SQL statements, and NOT have those replicated to the slaves.</p>
<p>I have no replicate-do or replicate-ignore configs, so I can't <code>use</code> some non-replicated database to send the commands from. And I know about:</p>
<pre><code>set global sql_slave... | [
{
"answer_id": 355268,
"author": "derobert",
"author_id": 27727,
"author_profile": "https://Stackoverflow.com/users/27727",
"pm_score": 5,
"selected": true,
"text": "SET sql_log_bin=0"
},
{
"answer_id": 8055852,
"author": "sambanxxx",
"author_id": 1036300,
"author_pro... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355202",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11044/"
] |
355,212 | <p>After returning to an old Rails project I found none of the destroy/delete links worked and clicking cancel on the confirmation popup would still submit the link.</p>
<p>Example of my code is:</p>
<pre><code><%= link_to 'Delete', admin_user_path(@user), :confirm => 'Are you sure?', :method => :delete %>... | [
{
"answer_id": 16229670,
"author": "Jimmy Dee",
"author_id": 875725,
"author_profile": "https://Stackoverflow.com/users/875725",
"pm_score": 0,
"selected": false,
"text": ";(function($){\n $(function(){\n $('input.destroy').click(function(){\n return confirm($(this).attr('data-c... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355212",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31810/"
] |
355,217 | <p>Notice how the default domain for stackoverflow is <a href="http://stackoverflow.com">http://stackoverflow.com</a> and if you try to goto <a href="http://www.stackoverflow.com">http://www.stackoverflow.com</a> it bounces you to <a href="http://stackoverflow.com">http://stackoverflow.com</a> ?</p>
<p>What is the reas... | [
{
"answer_id": 355238,
"author": "qyb2zm302",
"author_id": 44862,
"author_profile": "https://Stackoverflow.com/users/44862",
"pm_score": 4,
"selected": false,
"text": "www.example.com"
},
{
"answer_id": 355265,
"author": "Greg Hewgill",
"author_id": 893,
"author_profi... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30674/"
] |
355,220 | <p>I have a C project where all code is organized in <code>*.c</code>/<code>*.h</code> file pairs, and I need to define a constant value in one file, which will be however also be used in other files. How should I declare and define this value?</p>
<p>Should it be as <code>static const ...</code> in the <code>*.h</cod... | [
{
"answer_id": 355239,
"author": "AlfaZulu",
"author_id": 44060,
"author_profile": "https://Stackoverflow.com/users/44060",
"pm_score": 0,
"selected": false,
"text": "const"
},
{
"answer_id": 355277,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https:... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35324/"
] |
355,248 | <p>Is there a way to change several textbox's readonly attribute programatically in .net.</p>
| [
{
"answer_id": 355257,
"author": "Tarik",
"author_id": 44852,
"author_profile": "https://Stackoverflow.com/users/44852",
"pm_score": 0,
"selected": false,
"text": "txt.Attributes[\"ReadOnly\"] = \"true\";\n"
},
{
"answer_id": 355259,
"author": "fARcRY",
"author_id": 38498... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355248",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
355,258 | <p>Why must class members declared as <code>const</code> be initialized in the constructor initializer list rather than in the constructor body?</p>
<p>What is the difference between the two?</p>
| [
{
"answer_id": 355292,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": false,
"text": "const"
}
] | 2008/12/10 | [
"https://Stackoverflow.com/questions/355258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38038/"
] |
355,267 | <p>I’ve got several Perl modules installed on my hosting machine in <code>~/perl</code>, how do I add them to Perl module path? Setting <code>PERL5LIB</code> or <code>unshift</code>ing the paths to <code>@INC</code> surely works, but the environment variable does not help when running as a CGI script and the <code>@INC... | [
{
"answer_id": 355293,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 3,
"selected": false,
"text": "use lib \"/path/\" ; \n"
}
] | 2008/12/10 | [
"https://Stackoverflow.com/questions/355267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17279/"
] |
355,299 | <pre>
<code>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Calling a Web Service Using XmlHttpRequest</title>
<script type="text/javascrip... | [
{
"answer_id": 355303,
"author": "Chris",
"author_id": 34942,
"author_profile": "https://Stackoverflow.com/users/34942",
"pm_score": 3,
"selected": false,
"text": "http://www.example.com/page1\n"
},
{
"answer_id": 355360,
"author": "Jonathan Lonowski",
"author_id": 15031,... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355299",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42070/"
] |
355,311 | <p>We have a Perl program to validate XML which is invoked from a Java program. It is not able to write to standard error and hanging in the print location. </p>
<p>Perl is writing to STDERR and a java program is reading the STDERR using getErrorStream() function. But the Perl program is hanging to write to STDERR. I ... | [
{
"answer_id": 355350,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 2,
"selected": false,
"text": "use IO::Handle;\nSTDOUT->autoflush(1);\nSTDERR->autoflush(1);\n"
},
{
"answer_id": 355362,
"author": "Adrian Pronk"... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18657/"
] |
355,312 | <p>Let's say I have a generic pointer in objective-c. This pointer could either be a <code>Class</code> object, or it could be an <i>instance</i> of that class. Is there any way to tell the difference between the two?</p>
<p>Example:</p>
<pre><code>
id pointerA = [someClass class];
id pointerB = [[someClass alloc] in... | [
{
"answer_id": 355361,
"author": "Ashley Clark",
"author_id": 4556,
"author_profile": "https://Stackoverflow.com/users/4556",
"pm_score": 2,
"selected": false,
"text": "BOOL pointer_isClass(id object) {\n return [object respondsToSelector:@selector(instancesRespondToSelector:)];\n}\n"... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33686/"
] |
355,313 | <p>I have a link on my webpage to print the webpage. However, the link is also visible in the printout itself.</p>
<p>Is there javascript or HTML code which would hide the link button when I click the print link?</p>
<p>Example:</p>
<pre class="lang-none prettyprint-override"><code> "Good Evening"
Print (click Here... | [
{
"answer_id": 355335,
"author": "Justin Scott",
"author_id": 44883,
"author_profile": "https://Stackoverflow.com/users/44883",
"pm_score": 4,
"selected": false,
"text": "<div id=\"printOption\">\n <a href=\"javascript:void();\" \n onclick=\"document.getElementById('printOption'... | 2008/12/10 | [
"https://Stackoverflow.com/questions/355313",
"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.