qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
244,531 | <p>I need to search a string and replace all occurrences of <code>%FirstName%</code> and <code>%PolicyAmount%</code> with a value pulled from a database. The problem is the capitalization of FirstName varies. That prevents me from using the <code>String.Replace()</code> method. I've seen web pages on the subject that s... | [
{
"answer_id": 244539,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 0,
"selected": false,
"text": "Regex.Replace(strInput, strToken.Replace(\"$\", \"[$]\"), strReplaceWith, RegexOptions.IgnoreCase);\n"
},
{
"a... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244531",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21155/"
] |
244,569 | <p>I'm sure this is a relatively simple question, and there must be a good sensible rails way of doing it, but I'm not sure what it is.</p>
<p>Basically I'm adding books to a database, and I want to store the Author in a separate table. So I have a table called authors which is referenced by the table books.</p>
<p>I... | [
{
"answer_id": 244595,
"author": "Micah",
"author_id": 19964,
"author_profile": "https://Stackoverflow.com/users/19964",
"pm_score": 3,
"selected": false,
"text": "@author = Author.find_or_create_by_name(params[:author_name])\n@book = Book.new(params[:book])\n@book.author = @author\n@boo... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1912/"
] |
244,588 | <p>I was kind of scratching my head at this a week ago, and now with a little bit more Cocoa experience under my belt I feel like I have an inkling as to what might be going on. </p>
<p>I'm making an application that is driven by a UINavigationController. In the AppDelegate, I create an instance of this class, using "... | [
{
"answer_id": 244661,
"author": "Louis Gerbarg",
"author_id": 30506,
"author_profile": "https://Stackoverflow.com/users/30506",
"pm_score": 2,
"selected": false,
"text": "myModalViewController.logicalParent = self; //page1Controller\n[self presentModalViewController:myModalViewControlle... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244588",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/543/"
] |
244,591 | <p>This is baffling me, maybe somebody can shine the light of education on my ignorance. This is in a C# windows app. I am accessing the contents of a listbox from a thread. When I try to access it like this<pre><code>prgAll.Maximum = lbFolders.SelectedItems.Count;</code></pre>
I get the error. However, here is the... | [
{
"answer_id": 244604,
"author": "arul",
"author_id": 15409,
"author_profile": "https://Stackoverflow.com/users/15409",
"pm_score": 4,
"selected": true,
"text": "prgAll.Maximum = lbFolders.SelectedItems.Count;\n"
},
{
"answer_id": 244613,
"author": "Jon B",
"author_id": 2... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244591",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19038/"
] |
244,601 | <p>I have YAML data that looks sort of like this, but ~150k of it:</p>
<pre><code>---
all:
foo: 1025
bar:
baz: 37628
quux:
a: 179
b: 7
</code></pre>
<p>...or the same thing in JSON:</p>
<pre><code>{"all":{"bar":{"baz":"37628","quux":{"a":"179","b":"7"}},"foo":"1025"}}
</code></pre>
<p>I want... | [
{
"answer_id": 245117,
"author": "user32225",
"author_id": 32225,
"author_profile": "https://Stackoverflow.com/users/32225",
"pm_score": 1,
"selected": false,
"text": "{label:\"all\", children[\n {label:\"bar\", children:[\n {label:\"baz: 37628\"},\n {label:\"quux\", chi... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31100/"
] |
244,620 | <p>I'm looking at the output from spring being loaded up by tomcat and there's something very strange...Everything is duplicated. What would cause this? Whatever it is, it's causing my application to run in odd ways.</p>
<p><strong>Additional Info:</strong></p>
<p>The application is a web app. All the spring inform... | [
{
"answer_id": 2668390,
"author": "khotyn",
"author_id": 227994,
"author_profile": "https://Stackoverflow.com/users/227994",
"pm_score": 0,
"selected": false,
"text": "<category name=\"org.springframework\">\n <level value=\"INFO\"></level>\n <appender-ref ref=\"basicAppender\" />\... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17337/"
] |
244,631 | <p>I've got several developers about to start working on the front end of a jquery-based web application. How can we structure the application so that multiple developers can work on the ui at the same time. The end result for the user will just be one web "page", but I don't all of the client development to occur in o... | [
{
"answer_id": 711564,
"author": "eduncan911",
"author_id": 56693,
"author_profile": "https://Stackoverflow.com/users/56693",
"pm_score": 0,
"selected": false,
"text": " /products/532\n /products/showproduct.jsp?productid=532\n/products/showproduct.java (code behind)\n /Controllers/Pr... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32177/"
] |
244,639 | <p>I have a medium size Java file. Everytime I make a change to one of my files, BuildTable.java, Git reports it as a massive change, even if is only a line or two. BuildTable.java is about 200 lines and the change in this commit only changed a single line.</p>
<p>git-diff ouputs this:</p>
<pre><code>--- a/src/BuildT... | [
{
"answer_id": 244782,
"author": "David Schmitt",
"author_id": 4918,
"author_profile": "https://Stackoverflow.com/users/4918",
"pm_score": 2,
"selected": false,
"text": "core.autocrlf core.safecrlf git-config CR LF recode LF"
},
{
"answer_id": 251383,
"author": "Paul Wicks",
... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/85/"
] |
244,640 | <p>I am having difficulty refreshing windows forms controls that are using a BindingSource object. We have a CAB/MVP/SCSF client that I (actually “we” since it is a team effort) are developing that will interact with WCF services running on a remote server. (This is our first attempt at this, so we are in a learning m... | [
{
"answer_id": 244983,
"author": "Alan",
"author_id": 31223,
"author_profile": "https://Stackoverflow.com/users/31223",
"pm_score": 0,
"selected": false,
"text": "bindsrcContract.DataSource = typeof(System.Data.DataSet);\nbindsrcContract.DataSource = _ds;\n"
},
{
"answer_id": 248... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
244,646 | <p>I'm looking for the equivalent in Qt to <code>GetTickCount()</code></p>
<p>Something that will allow me to measure the time it takes for a segment of code to run as in:</p>
<pre><code>uint start = GetTickCount();
// do something..
uint timeItTook = GetTickCount() - start;
</code></pre>
<p>any suggestions?</p>
| [
{
"answer_id": 244676,
"author": "Dusty Campbell",
"author_id": 2174,
"author_profile": "https://Stackoverflow.com/users/2174",
"pm_score": 8,
"selected": true,
"text": "QTime QTime myTimer;\nmyTimer.start();\n// do something..\nint nMilliseconds = myTimer.elapsed();\n"
},
{
"ans... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244646",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9611/"
] |
244,663 | <p>Sign. My tsql kungfu sucks. I have a fee that is of type small money. When I exported as SQL from MS Access the column that represents the fee was stored as text, for example $3.28 was stored as "00000328". When I imported this into MS SQLServer I changed the data type to smallmoney, but it was stored as 328. How do... | [
{
"answer_id": 244745,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 1,
"selected": false,
"text": "update table\nset fee = fee / 100.0\n"
}
] | 2008/10/28 | [
"https://Stackoverflow.com/questions/244663",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28647/"
] |
244,665 | <p>This is the css for setting the color for h1 text that is linked:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>.nav-left h1 a,
a:visited {
color: #055830;
}</co... | [
{
"answer_id": 244670,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 4,
"selected": true,
"text": ".nav-left h1 a:visited{\n color:#055830;\n}\n"
},
{
"answer_id": 244681,
"author": "Community",
"au... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26130/"
] |
244,671 | <p>I'm looking for an UPDATE statement where it will update a single duplicate row only and remain the rest (duplicate rows) intact
as is, using ROWID or something else or other elements to utilize in Oracle SQL or PL/SQL?</p>
<p>Here is an example duptest table to work with:</p>
<pre><code>CREATE TABLE duptest (ID ... | [
{
"answer_id": 244757,
"author": "Brian Schmitt",
"author_id": 30492,
"author_profile": "https://Stackoverflow.com/users/30492",
"pm_score": 4,
"selected": false,
"text": "update duptest \nset nonid = 'c'\nWHERE ROWID IN (SELECT MIN (ROWID)\n FROM duptest \... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
244,677 | <p>Can it be known in general whether or not placing a case within a for loop will result in bad assembly. I'm interested mainly in Delphi, but this is an interesting programming question, both in terms of style and performance. </p>
<p>Here are my codez!</p>
<pre>
case ResultList.CompareType of
TextCompareType:
... | [
{
"answer_id": 244687,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 3,
"selected": true,
"text": "TComparer = class \nprotected\n function Compare(const AItem1, AItem2: TItem): Boolean; virtual; abstract;\npublic\n ... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1765/"
] |
244,680 | <p>Can someone explain what this means?</p>
<pre><code>int (*data[2])[2];
</code></pre>
| [
{
"answer_id": 244692,
"author": "Brian R. Bondy",
"author_id": 3153,
"author_profile": "https://Stackoverflow.com/users/3153",
"pm_score": 7,
"selected": true,
"text": "double (*elephant)[20];\n int *(*crocodile)[15];\n int (*data[2])[5];\n int (*data[2])[5];\nint x1[5];\ndata[0] = &x1;... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32185/"
] |
244,695 | <p>The structures of my Git repositories look like this:</p>
<pre><code>A-B-C-D-E-F # master branch in separate repo1
A-B-C-D-E-G-H # master branch in separate repo2
</code></pre>
<p>A-H are simple commits. As you can see the repositories are related (repo2 is a fork of repo1). I'm trying to combine these two repos... | [
{
"answer_id": 245240,
"author": "Peter Burns",
"author_id": 101,
"author_profile": "https://Stackoverflow.com/users/101",
"pm_score": 7,
"selected": true,
"text": "git remote add <name> /path/to/other/repo/.git\ngit fetch <name>\ngit branch <name> <name>/master #optional\n"
}
] | 2008/10/28 | [
"https://Stackoverflow.com/questions/244695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20467/"
] |
244,699 | <p>Does <code>YUI</code> have selector methods like jQuery?</p>
<p>e.g. get me all div's that are <code>children</code> of <code><table></code> that have links in them?</p>
| [
{
"answer_id": 244818,
"author": "Anirvan",
"author_id": 31100,
"author_profile": "https://Stackoverflow.com/users/31100",
"pm_score": 3,
"selected": false,
"text": "Y.all('.foo').set('title', 'Go!').removeClass('off');\n"
}
] | 2008/10/28 | [
"https://Stackoverflow.com/questions/244699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
244,715 | <p>I'm debating the best way to propagate fairly complex permissions from the server to an AJAX application, and I'm not sure the best approach to take.</p>
<p>Essentially, I want my permissions to be defined so I can request a whole set of permissions in one shot, and adjust the UI as appropriate (the UI changes can ... | [
{
"answer_id": 244948,
"author": "CMPalmer",
"author_id": 14894,
"author_profile": "https://Stackoverflow.com/users/14894",
"pm_score": 3,
"selected": true,
"text": "0x00000001 //edit permission\n0x00000002 //create new thing permission\n0x00000004 //delete things permission\n0x00000008 ... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25330/"
] |
244,720 | <p>Because I need to display a <a href="http://codeflow.org/ubuntu.png" rel="nofollow noreferrer">huge number of labels</a> that <a href="http://www.youtube.com/watch?v=A_ah-SE-cNY" rel="nofollow noreferrer">move independently</a>, I need to render a label in <a href="http://pyglet.org" rel="nofollow noreferrer">pyglet... | [
{
"answer_id": 246962,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 0,
"selected": false,
"text": "glTexEnv()"
},
{
"answer_id": 405855,
"author": "Joseph Garvin",
"author_id": 50385,
"author_profile": ... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19435/"
] |
244,752 | <p>I want to setup a CRON that runs a PHP script that in turn moves XML file (holding non-sensitive information) from one server to another. </p>
<p>I have been given the proper username/password, and want to use SFTP protocol. The jobs will run daily. There is the potential that one server is Linux and the other is W... | [
{
"answer_id": 244771,
"author": "wprl",
"author_id": 17847,
"author_profile": "https://Stackoverflow.com/users/17847",
"pm_score": 3,
"selected": false,
"text": "<?php\n $output = shell_exec('scp file1.txt dvader@deathstar.com:somedir');\n echo \"<pre>$output</pre>\";\n?>\n"
},
... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
244,755 | <p>I am currently publishing code behind .aspx in SharePoint. I can automatically publish the .dll to the bin folder of the virtual directory, but I cannot figure out how to push the .aspx pages and images to the server without manually using SharePoint Designer.</p>
<p>Where does the folder exist?</p>
<p>Or do I nee... | [
{
"answer_id": 244771,
"author": "wprl",
"author_id": 17847,
"author_profile": "https://Stackoverflow.com/users/17847",
"pm_score": 3,
"selected": false,
"text": "<?php\n $output = shell_exec('scp file1.txt dvader@deathstar.com:somedir');\n echo \"<pre>$output</pre>\";\n?>\n"
},
... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3149/"
] |
244,758 | <p>So this might be really simple, but I haven't been able to find any examples to learn off of yet, so please bear with me. ;) </p>
<p>Here's basically what I want to do:</p>
<pre><code><div>Lots of content! Lots of content! Lots of content! ...</div>
....
$("div").html("Itsy-bitsy bit of content!");
... | [
{
"answer_id": 244847,
"author": "lucas",
"author_id": 31172,
"author_profile": "https://Stackoverflow.com/users/31172",
"pm_score": 3,
"selected": false,
"text": "$(\".testLink\").click(function(event) {\n event.preventDefault();\n $(\".testDiv\").hide(400,function(event) {\n ... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32154/"
] |
244,772 | <p>I'm creating a series of builders to clean up the syntax which creates domain classes for my mocks as part of improving our overall unit tests. My builders essentially populate a domain class (such as a <code>Schedule</code>) with some values determined by invoking the appropriate <code>WithXXX</code> and chaining ... | [
{
"answer_id": 9244978,
"author": "dvdvorle",
"author_id": 481635,
"author_profile": "https://Stackoverflow.com/users/481635",
"pm_score": 2,
"selected": false,
"text": "abstract BLDR This { get; } public abstract class BaseBuilder<T, BLDR> where BLDR : BaseBuilder<T, BLDR>\n ... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5645/"
] |
244,777 | <p>Can I use comments inside a <a href="https://en.wikipedia.org/wiki/JSON" rel="noreferrer">JSON</a> file? If so, how?</p>
| [
{
"answer_id": 244858,
"author": "Eli",
"author_id": 27580,
"author_profile": "https://Stackoverflow.com/users/27580",
"pm_score": 14,
"selected": true,
"text": "\"_comment\" {\n \"_comment\": \"comment text goes here...\",\n \"glossary\": {\n \"title\": \"example glossary\",\n ... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4105/"
] |
244,779 | <p>I have the following <code>before_filter</code>:</p>
<pre><code> def find_current_membership
respond_to do |wants|
wants.html { @current_membership = @group.memberships.for(@current_user) }
wants.rss {}
wants.js { @current_membership = @group.memberships.for(@current_user) }
end
end
... | [
{
"answer_id": 244831,
"author": "jonnii",
"author_id": 4590,
"author_profile": "https://Stackoverflow.com/users/4590",
"pm_score": 2,
"selected": false,
"text": "before_filter :only => :find_current_membership do |c|\n load_current_membership if not request.format.rss?\nend\n"
},
... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14895/"
] |
244,807 | <p>I have a c# site which makes use of a lot of images with embedded english text. </p>
<p>How can I use a standard resource file to swap out images depending on the language?</p>
<p>I have a resx file in my App_GlobalResources directory, but I can't seem to get it plugged into an asp:image control for the imageurl ... | [
{
"answer_id": 244830,
"author": "Oscar Cabrero",
"author_id": 14440,
"author_profile": "https://Stackoverflow.com/users/14440",
"pm_score": 4,
"selected": true,
"text": "<asp:Image ImageUrl=\"<%$resources:Image1 %>\" />\n"
},
{
"answer_id": 245141,
"author": "Dillie-O",
... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2424/"
] |
244,808 | <p>Simple question really - how do I use <code>text_field_with_auto_complete</code> inside a <code>form_for</code> block?</p>
<p>I've tried doing <code>f.text_field_with_auto_complete</code> but that gives an error, and just using <code>text_field_with_auto_complete</code> by itself doesn't seem to do anything.</p>
<... | [
{
"answer_id": 245392,
"author": "Ricardo Acras",
"author_id": 19224,
"author_profile": "https://Stackoverflow.com/users/19224",
"pm_score": 1,
"selected": false,
"text": "<UL>\n <LI ID=\"1\">Item 1</LI>\n < LI ID=\"2\">Item 2< /LI>\n</UL>\n <%= text_field_with_auto_complete ... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1912/"
] |
244,811 | <p>For my web service component, I need to generate a relatively large XML (~500 lines) according to many factors. I am facing a few different choices here:
1. StringBuilder
2. XmlWriter class
3. C# object with serialization???</p>
<p>Which one should I use. Is there any other ways that I am not aware of?</p>
| [
{
"answer_id": 244827,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 1,
"selected": false,
"text": " public static IEnumerable<XElement> AsXElements(this object source)\n {\n foreach (PropertyInfo prop in source.G... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10088/"
] |
244,812 | <p>I have an existing database with the table Transactions in it. I have added a new table called TransactionSequence where each transaction will ultimately have only one record. We are using the sequence table to count transactions for a given account. I have mapped this as a one-to-one mapping where TransactionSequen... | [
{
"answer_id": 244871,
"author": "jonnii",
"author_id": 4590,
"author_profile": "https://Stackoverflow.com/users/4590",
"pm_score": 5,
"selected": true,
"text": "<one-to-one name=\"Sequence\" class=\"TransactionSequence\" property-ref=\"Transaction\"/>\n <many-to-one name=\"Transaction\"... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32196/"
] |
244,826 | <p>I'm stuck with .Net 1.1 application (i.e. I can not use the generics goodies from 2.0 for now), and I was trying to optimize some parts of the code. As it deals a lot with runtime callable wrappers, which need to be released, I ended up to create a utility method which loops until all references are released. The si... | [
{
"answer_id": 244880,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 0,
"selected": false,
"text": "Marshal.ReleaseComObject static void ReleaseObject(ref object comObject)\n{\n if(comObject != null)\n {\n //d... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8220/"
] |
244,875 | <p>I have a custom webpart that is displaying dynamic list data, it needs to render an image from a Picture Library (or at least provide me the URL so I can encapsulate it with an tag), however, none of the fields in the Picture Library seem to contain the image URL? Is there a 'image utility' (SPImageUtility) or som... | [
{
"answer_id": 248978,
"author": "Ryan",
"author_id": 20198,
"author_profile": "https://Stackoverflow.com/users/20198",
"pm_score": 2,
"selected": false,
"text": "SPListItem[\"EncodedAbsUrl\"]\n"
}
] | 2008/10/28 | [
"https://Stackoverflow.com/questions/244875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/105/"
] |
244,879 | <p>We are re-platforming for a client, and they are concerned about SEO. Their current site supports SEO friendly URLs, and so does the new platform. So for those, we are just going to create the same URL mapping. However, they have a large number of other URLs that are not SEO friendly that they want to permanently re... | [
{
"answer_id": 246326,
"author": "Liam",
"author_id": 18333,
"author_profile": "https://Stackoverflow.com/users/18333",
"pm_score": 0,
"selected": false,
"text": "header(\"Location: /new.html\",TRUE,301);\n"
}
] | 2008/10/28 | [
"https://Stackoverflow.com/questions/244879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
244,881 | <p>Can dynamic variables in C# 4.0 be members on a class or passed into or returned from methods? var from C# 3.0 couldn't but I haven't seen any mention anywhere of whether it is possible or not with dynamic.</p>
| [
{
"answer_id": 245015,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": false,
"text": "var dynamic var dynamic dynamic dynamic dynamic"
},
{
"answer_id": 2508443,
"author": "Mohsen Afshin",
"... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11829/"
] |
244,882 | <p>I want my website to have a checkbox that users can click so that they will not have to log in each time they visit my website. I know I will need to store a cookie on their computer to implement this, but what should be contained in that cookie? </p>
<p>Also, are there common mistakes to watch out for to keep thi... | [
{
"answer_id": 572740,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "@splattne"
}
] | 2008/10/28 | [
"https://Stackoverflow.com/questions/244882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9323/"
] |
244,884 | <p>I'm really stumped on this one. I want to output a list and have the tag file take care of commas, singular versus plural, etc. but when I display the list it completely ignores whitespace so everythingrunstogetherlikethis. I tried using the HTML entities "thinsp", "ensp" and "emsp" (I can't use "nbsp", these have t... | [
{
"answer_id": 245305,
"author": "alex77",
"author_id": 1555,
"author_profile": "https://Stackoverflow.com/users/1555",
"pm_score": 2,
"selected": false,
"text": "<pre>"
},
{
"answer_id": 2133587,
"author": "gshegosh",
"author_id": 258570,
"author_profile": "https://S... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/484/"
] |
244,886 | <p>Consider the following code:</p>
<pre><code>Public Class Animal
Public Overridable Function Speak() As String
Return "Hello"
End Function
End Class
Public Class Dog
Inherits Animal
Public Overrides Function Speak() As String
Return "Ruff"
End Function
End Class
Dim dog As New Dog
Dim a... | [
{
"answer_id": 244910,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 4,
"selected": false,
"text": "Public Class Dog \n Inherits Animal\n Public Overrides Function Speak() As String\n Return \"Ruff\"\n ... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/81/"
] |
244,892 | <p>I have a protected Excel worksheet, without a password.
What I'd like to do is trap the event that a user unprotects the worksheet, so that I can generate a message (and nag 'em!). I can setup event checking for the application, for when new workbooks are opened, etc., but not for Unprotect.<br>
Does anyone have an... | [
{
"answer_id": 245036,
"author": "Fionnuala",
"author_id": 2548,
"author_profile": "https://Stackoverflow.com/users/2548",
"pm_score": 2,
"selected": false,
"text": "Sub UnprotectTrap()\nIf ActiveSheet.ProtectContents = True Then\n MsgBox \"Tut,tut!\"\n ActiveSheet.Unprotect\nElse\... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244892",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
244,896 | <p>Is it possible via code to programmatically (from .NET for example via SQL query) to ask an Access database if it is corrupt or have tables with corrupt rows in it?</p>
<p>//Andy</p>
| [
{
"answer_id": 244911,
"author": "Fionnuala",
"author_id": 2548,
"author_profile": "https://Stackoverflow.com/users/2548",
"pm_score": 0,
"selected": false,
"text": "Sub CheckForErr(tablename)\nDim rs As dao.Recordset\nDim db As Database\n\nSet db = CurrentDb\n\nSet rs = db.OpenRecordset... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
244,903 | <p>Is there a significance to the word "salt" for a password salt?</p>
| [
{
"answer_id": 245134,
"author": "Fionnuala",
"author_id": 2548,
"author_profile": "https://Stackoverflow.com/users/2548",
"pm_score": 3,
"selected": false,
"text": "(salt away) informal put by (money) secretly. \n"
}
] | 2008/10/28 | [
"https://Stackoverflow.com/questions/244903",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26604/"
] |
244,913 | <p>I need to match a string like "one. two. three. four. five. six. seven. eight. nine. ten. eleven" into groups of four sentences. I need a regular expression to break the string into a group after every fourth period. Something like: </p>
<pre><code> string regex = @"(.*.\s){4}";
System.Text.RegularExpressi... | [
{
"answer_id": 244955,
"author": "configurator",
"author_id": 9536,
"author_profile": "https://Stackoverflow.com/users/9536",
"pm_score": 1,
"selected": false,
"text": "private string AppendNewLineToMatch(Match match) {\n return match.Value + Environment.NewLine;\n}\n string result = ... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4555/"
] |
244,918 | <p>I'm writing an application and I'm trying to tie simple AJAX functionality in. It works well in Mozilla Firefox, but there's an interesting bug in Internet Explorer: Each of the links can only be clicked once. The browser must be completely restarted, simply reloading the page won't work. I've written a <a href="htt... | [
{
"answer_id": 244923,
"author": "pkaeding",
"author_id": 4257,
"author_profile": "https://Stackoverflow.com/users/4257",
"pm_score": 3,
"selected": false,
"text": "Pragma: no-cache\nCache-Control: no-cache\nExpires: Fri, 30 Oct 1998 14:19:41 GMT\n"
},
{
"answer_id": 244931,
... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23335/"
] |
244,926 | <p>I'm using a the TreeView control and it scrolls automatically to left-align TreeViewItem when one of them is clicked. I've gone looking at my Styles and ControlTemplates, but I haven't found anything. Is there a default ControlTemplate that causes this? I want to disable it.</p>
| [
{
"answer_id": 246610,
"author": "Ben Collins",
"author_id": 3279,
"author_profile": "https://Stackoverflow.com/users/3279",
"pm_score": 0,
"selected": false,
"text": " using (Stream sw = File.Open(@\"C:\\TreeViewDefaults.xaml\", FileMode.Truncate, FileAccess.Write))\n {\n ... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3279/"
] |
244,934 | <p>I'd like to create a table which has an integer primary key limited between 000 and 999. Is there any way to enforce this 3 digit limit within the sql?</p>
<p>I'm using sqlite3.
Thanks.</p>
| [
{
"answer_id": 244982,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 2,
"selected": false,
"text": "CHECK CREATE TABLE mytable (\n mytable_id INT PRIMARY KEY CHECK (mytable_id BETWEEN 0 and 999)\n);\n INSERT UPDATE CR... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244934",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20883/"
] |
244,935 | <p>How can I inject the value of an appSettings entry (from app.config or web.config) into a service using the Windsor container? If I wanted to inject the value of a Windsor property into a service, I would do something like this:</p>
<pre><code><properties>
<importantIntegerProperty>666</important... | [
{
"answer_id": 2659265,
"author": "Damian Powell",
"author_id": 30321,
"author_profile": "https://Stackoverflow.com/users/30321",
"pm_score": 4,
"selected": true,
"text": "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<configuration>\n <appSettings>\n <add key=\"theAnswer\" value=\"42... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244935",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30321/"
] |
244,941 | <p>What is the best way to go about monitoring a folder to see when an image file has been added to it? Files are added approximately once a minute and the naming goes like this... image0001.jpg, image0002.jpg, image0003.jpg etc. I need to know when a file has been written to the folder so that my app can access and us... | [
{
"answer_id": 14915777,
"author": "Tanvir",
"author_id": 2246679,
"author_profile": "https://Stackoverflow.com/users/2246679",
"pm_score": 1,
"selected": false,
"text": "List<string> files = new List<string>();\nstring path = @\"C:\\test\\\"; // whatever the path is\n\npublic List<strin... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
244,952 | <p>I am creating a small web page using PHP that will be accessed as an IFRAME from a couple of sites. I'm wanting to restrict access to this site to work ONLY within the "approved" sites, and not other sites or accessed directly. Does anyone have any suggestions? Is this even possible? The PHP site will be Apache,... | [
{
"answer_id": 244956,
"author": "Gareth",
"author_id": 31582,
"author_profile": "https://Stackoverflow.com/users/31582",
"pm_score": 1,
"selected": false,
"text": "if (top.location != location) {\n top.location.href = document.location.href ;\n}\n"
},
{
"answer_id": 245003,
... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31319/"
] |
244,953 | <p>I have a class with a nullable int? datatype set to serialize as an xml element. Is there any way to set it up so the xml serializer will not serialize the element if the value is null? </p>
<p>I've tried to add the [System.Xml.Serialization.XmlElement(IsNullable=false)] attribute, but I get a runtime serializati... | [
{
"answer_id": 245028,
"author": "Jeremy",
"author_id": 9266,
"author_profile": "https://Stackoverflow.com/users/9266",
"pm_score": 4,
"selected": false,
"text": " /// <summary>\n /// Score db record\n /// </summary> \n [System.Xml.Serialization.XmlIgnore()]\n publi... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9266/"
] |
244,959 | <p>Suppose I have the following two strings containing regular expressions. How do I coalesce them? More specifically, I want to have the two expressions as alternatives.</p>
<pre><code>$a = '# /[a-z] #i';
$b = '/ Moo /x';
$c = preg_magic_coalesce('|', $a, $b);
// Desired result should be equivalent to:
// '/ \/[a-zA-Z... | [
{
"answer_id": 244991,
"author": "TJ L",
"author_id": 12605,
"author_profile": "https://Stackoverflow.com/users/12605",
"pm_score": 0,
"selected": false,
"text": "function preg_magic_coalasce($split, $re1, $re2) {\n $re1 = rtrim($re1, \"\\/#is\");\n $re2 = ltrim($re2, \"\\/#\");\n ret... | 2008/10/28 | [
"https://Stackoverflow.com/questions/244959",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1968/"
] |
245,012 | <p>By default Windows (XP) shows the <strong>underlined hotkeys</strong> only, when ALT is pressed. This can be changed in display-properties in the subdialog "Effects" so, that the hotkeys are <strong>always underlined</strong></p>
<p>How can it be changed programmatically? Which API-call or registry-setting can be u... | [
{
"answer_id": 452379,
"author": "Christof Schardt",
"author_id": 26820,
"author_profile": "https://Stackoverflow.com/users/26820",
"pm_score": 3,
"selected": true,
"text": "BOOL b\nSystemParametersInfo(SPI_GETKEYBOARDCUES, 0, &b, 0);\nif (!b) {\n b = TRUE;\n SystemParametersInfo(S... | 2008/10/28 | [
"https://Stackoverflow.com/questions/245012",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26820/"
] |
245,019 | <p>Has anybody else had trouble with getting the .Net Framework source code? Google doesn't have anything to say about this error message, and neither does the CodePlex issue tracker.</p>
<p>Here is the command I'm using to get the source code for the modules that make up mscorlib.dll. Am I doing something obviously... | [
{
"answer_id": 452379,
"author": "Christof Schardt",
"author_id": 26820,
"author_profile": "https://Stackoverflow.com/users/26820",
"pm_score": 3,
"selected": true,
"text": "BOOL b\nSystemParametersInfo(SPI_GETKEYBOARDCUES, 0, &b, 0);\nif (!b) {\n b = TRUE;\n SystemParametersInfo(S... | 2008/10/28 | [
"https://Stackoverflow.com/questions/245019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31205/"
] |
245,027 | <p>...I want to Show the 'delete' button when user is an admin, and show the 'add item' button when user is a contributor:</p>
<pre><code><!-- More code above -->
<asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
<asp:TemplateField ShowHeader="F... | [
{
"answer_id": 245032,
"author": "Keltex",
"author_id": 28260,
"author_profile": "https://Stackoverflow.com/users/28260",
"pm_score": 1,
"selected": false,
"text": "Visible='<%= User.IsInRole(@\"DOMAIN\\CMDB_CONTRIBUTE\") %>'\n"
},
{
"answer_id": 245268,
"author": "tvanfosson... | 2008/10/28 | [
"https://Stackoverflow.com/questions/245027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13959/"
] |
245,045 | <p>I'm looking for a way to add a close button to a .NET ToolTip object similar to the one the NotifyIcon has. I'm using the tooltip as a message balloon called programatically with the Show() method. That works fine but there is no onclick event or easy way to close the tooltip. You have to call the Hide() method some... | [
{
"answer_id": 245128,
"author": "avgbody",
"author_id": 8737,
"author_profile": "https://Stackoverflow.com/users/8737",
"pm_score": 3,
"selected": true,
"text": " 1 class MyToolTip : ToolTip\n 2 {\n 3 public MyToolTip()\n 4 {\n 5 this.Ow... | 2008/10/28 | [
"https://Stackoverflow.com/questions/245045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13556/"
] |
245,055 | <p>So what I have right now is something like this:</p>
<pre><code>PropertyInfo[] info = obj.GetType().GetProperties(BindingFlags.Public);
</code></pre>
<p>where <code>obj</code> is some object.</p>
<p>The problem is some of the properties I want aren't in <code>obj.GetType()</code> they're in one of the base classe... | [
{
"answer_id": 245105,
"author": "Seibar",
"author_id": 357,
"author_profile": "https://Stackoverflow.com/users/357",
"pm_score": 3,
"selected": false,
"text": "Type.BaseType System.Object Type type = obj.GetType();\nPropertyInfo[] info = type.GetProperties(BindingFlags.Public);\nPropert... | 2008/10/28 | [
"https://Stackoverflow.com/questions/245055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23822/"
] |
245,058 | <p>Lately I've been using XPathDocument and XNavigator to parse an XML file for a given XPath and attribute. It's been working very well, when I know in advance what the XPath is. </p>
<p>Sometimes though, the XPath will be one of several possible XPath values, and I'd like to be able to test whether or not a given XP... | [
{
"answer_id": 245077,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "SelectSingleNode NullReferenceException SelectSingleNode XPathException"
},
{
"answer_id": 245085,
"author": ... | 2008/10/28 | [
"https://Stackoverflow.com/questions/245058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5948/"
] |
245,062 | <p>What's the difference between JavaScript and Java?</p>
| [
{
"answer_id": 245069,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 8,
"selected": false,
"text": "this"
}
] | 2008/10/28 | [
"https://Stackoverflow.com/questions/245062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
245,082 | <p>I'm making a shell script to find bigrams, which works, sort of.</p>
<pre><code>#tokenise words
tr -sc 'a-zA-z0-9.' '\012' < $1 > out1
#create 2nd list offset by 1 word
tail -n+2 out1 > out2
#paste list together
paste out1 out2
#clean up
rm out1 out2
</code></pre>
<p>The only problem is that it pairs wor... | [
{
"answer_id": 245069,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 8,
"selected": false,
"text": "this"
}
] | 2008/10/28 | [
"https://Stackoverflow.com/questions/245082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
245,094 | <p>I have a simple Google App Engine app, that I wrote using ordinary strings. I realize I want to make it handle unicode. Are there any gotchas with this? I'm thinking of all the strings that I currently already have in the live database. (From real users who I don't want to upset.)</p>
| [
{
"answer_id": 1515542,
"author": "Robert",
"author_id": 92584,
"author_profile": "https://Stackoverflow.com/users/92584",
"pm_score": 1,
"selected": false,
"text": "instance.xml = db.Text(xml_string, encoding=\"utf_8\") response = urllib.urlopen(url)\nxml = minidom.parse(response)\n"
... | 2008/10/28 | [
"https://Stackoverflow.com/questions/245094",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8482/"
] |
245,111 | <p>Is it possible in .NET to ascertain whether my application is closing due to Windows being given a shutdown command (as opposed to any old application closing) in order to either write out some temporary cache files or even block the shutdown long enough to prompt for user input?</p>
<p>Whilst my current scope invo... | [
{
"answer_id": 245135,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 2,
"selected": false,
"text": "WM_QUERYENDSESSION"
}
] | 2008/10/28 | [
"https://Stackoverflow.com/questions/245111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5302/"
] |
245,121 | <p>I'm looking for a code library that converts ANSI escape sequences into HTML color, via plain tags or CSS. For example, something that would convert this:</p>
<pre>ESC[00mESC[01;34mbinESC[00m
ESC[01;34mcodeESC[00m
ESC[01;31mdropbox-lnx.x86-0.6.404.tar.gzESC[00m
ESC[00mfooESC[00m</pre>
<p>Into this:</p>
<pre><cod... | [
{
"answer_id": 2975843,
"author": "Alexander Matthes",
"author_id": 358638,
"author_profile": "https://Stackoverflow.com/users/358638",
"pm_score": 7,
"selected": false,
"text": "aha ls --color=always | aha > ls-output.htm\n ls --color=always | aha --black > ls-output.htm\n"
}
] | 2008/10/28 | [
"https://Stackoverflow.com/questions/245121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9084/"
] |
245,124 | <p>I need to set the onload attribute for a newly popped-up window.
The following code works for Firefox:</p>
<pre><code><a onclick="printwindow=window.open('www.google.com');printwindow.document.body.onload=self.print();return false;" href='www.google.com'>
</code></pre>
<p>However, when I try this in IE, I ge... | [
{
"answer_id": 245214,
"author": "Peter Bailey",
"author_id": 8815,
"author_profile": "https://Stackoverflow.com/users/8815",
"pm_score": 0,
"selected": false,
"text": "printwindow.onload\n printwindow.onload=function(){self.print();}\n <a href=\"www.google.com\" onclick=\"var printwindo... | 2008/10/28 | [
"https://Stackoverflow.com/questions/245124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26001/"
] |
245,149 | <p>svn:externals can be great for sucking in central libraries or IP into a project, so that they can be kept in one location accessible for all.</p>
<p>But if I'm asking people to external tags of common IP (so it doesn't change on them) it opens the possibility of them inadvertently committing changes to the tag. <... | [
{
"answer_id": 4823387,
"author": "icasimpan",
"author_id": 579516,
"author_profile": "https://Stackoverflow.com/users/579516",
"pm_score": 1,
"selected": false,
"text": "[external_repo]\n@maintainer = rw\n@others = r\n"
}
] | 2008/10/28 | [
"https://Stackoverflow.com/questions/245149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26568/"
] |
245,168 | <p>How do I properly convert two columns from SQL (2008) using Linq into a <code>Dictionary</code> (for caching)?</p>
<p>I currently loop through the <code>IQueryable</code> b/c I can't get the <code>ToDictionary</code> method to work. Any ideas?
This works:</p>
<pre><code>var query = from p in db.Table
sel... | [
{
"answer_id": 245174,
"author": "yfeldblum",
"author_id": 12349,
"author_profile": "https://Stackoverflow.com/users/12349",
"pm_score": 8,
"selected": true,
"text": "var dictionary = db\n .Table\n .Select(p => new { p.Key, p.Value })\n .AsEnumerable()\n .ToDictionary(kvp => ... | 2008/10/28 | [
"https://Stackoverflow.com/questions/245168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17729/"
] |
245,178 | <p>I read some properties from an xml file, amongst which is a string that refers to an llblgen object for example 'article'. For now I have set up a rather long </p>
<pre><code>Select Case myString
Case "article"
return New ArticleEntity()
</code></pre>
<p>Etc. which is getting rather ugly as it gets longer an... | [
{
"answer_id": 245181,
"author": "cfeduke",
"author_id": 5645,
"author_profile": "https://Stackoverflow.com/users/5645",
"pm_score": 2,
"selected": false,
"text": "return Activator.CreateInstance(Type.GetType(\"Some.Type.String\"));\n Some.Type.String"
},
{
"answer_id": 245191,
... | 2008/10/28 | [
"https://Stackoverflow.com/questions/245178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31489/"
] |
245,180 | <p>I am writing a stored procedure where I have an input parameter called <em>my_size</em> that is an <em>INTEGER</em>. I want to be able to use it in a <code>LIMIT</code> clause in a <code>SELECT</code> statement. Apparently this is not supported, is there a way to work around this?</p>
<pre><code># I want something ... | [
{
"answer_id": 7051824,
"author": "user888112",
"author_id": 888112,
"author_profile": "https://Stackoverflow.com/users/888112",
"pm_score": 4,
"selected": false,
"text": "Declare rowCount int;\nSet rowCount = 100;\nSet SQL_SELECT_LIMIT = rowCount;\nSelect blah blah\nSet SQL_SELECT_LIMIT... | 2008/10/28 | [
"https://Stackoverflow.com/questions/245180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24694/"
] |
245,183 | <p>How do you go about verifying the type of an uploaded file reliably without using the extension? I'm guessing that you have to examine the header / read some of the bytes, but I really have no idea how to go about it. Im using c# and asp.net.</p>
<p>Thanks for any advice.</p>
<hr>
<p>ok, so from the above links I... | [
{
"answer_id": 245201,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 2,
"selected": false,
"text": "file tar file"
},
{
"answer_id": 245479,
"author": "Jon B",
"author_id": 27414,
"author_profi... | 2008/10/28 | [
"https://Stackoverflow.com/questions/245183",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27805/"
] |
245,192 | <p>When are objects or something else said to be "first-class" in a given programming language, and why? In what way do they differ from languages where they are not?</p>
<p>When one says "everything is an object" (like in Python), do they indeed mean that "everything is first-class"?</p>
| [
{
"answer_id": 245208,
"author": "Brian R. Bondy",
"author_id": 3153,
"author_profile": "https://Stackoverflow.com/users/3153",
"pm_score": 9,
"selected": true,
"text": "// f: function that takes a number and returns a number\n// deltaX: small positive number\n// returns a function that ... | 2008/10/28 | [
"https://Stackoverflow.com/questions/245192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18770/"
] |
245,236 | <p>Is there a pure-Java equivalent to <jsp:forward page="..." /> that I can use within a <% ... %> block?</p>
<p>For example, I currently have a JSP page something like this:</p>
<pre><code><%
String errorMessage = SomeClass.getInstance().doSomething();
if (errorMessage != null) {
session.... | [
{
"answer_id": 245257,
"author": "Adam",
"author_id": 8604,
"author_profile": "https://Stackoverflow.com/users/8604",
"pm_score": 6,
"selected": true,
"text": "someObject pageContext.forward(\"<some relative jsp>\");\n"
},
{
"answer_id": 245515,
"author": "Jack Leow",
"au... | 2008/10/28 | [
"https://Stackoverflow.com/questions/245236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1119/"
] |
245,237 | <p>which would you recommend?
which is faster, reliable?
apache mod_python or nginx/lighttpd FastCGI?</p>
| [
{
"answer_id": 245660,
"author": "James Bennett",
"author_id": 28070,
"author_profile": "https://Stackoverflow.com/users/28070",
"pm_score": 5,
"selected": true,
"text": ".wsgi"
}
] | 2008/10/28 | [
"https://Stackoverflow.com/questions/245237",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9789/"
] |
245,241 | <p>I'd like to check ancestry using two jQuery objects. They don't have IDs, and are only going to be available as jQuery objects (or DOM nodes if you called <code>get()</code>). jQuery's <code>is()</code> only works with expressions, so this code would be ideal but will not work:</p>
<pre><code>var someDiv = $('#div... | [
{
"answer_id": 245266,
"author": "Gareth",
"author_id": 31582,
"author_profile": "https://Stackoverflow.com/users/31582",
"pm_score": 5,
"selected": true,
"text": "var someDiv = $('#div');\n\n$('a').click(function() {\n if ($(this).parents().index(someDiv) >= 0) {\n alert('boo'... | 2008/10/28 | [
"https://Stackoverflow.com/questions/245241",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32229/"
] |
245,251 | <p>Is there an <strong>efficient</strong> way to create a file with a given size in Java?</p>
<p>In C it can be done with <a href="http://linux.die.net/man/2/ftruncate" rel="noreferrer">ftruncate</a> (see <a href="https://stackoverflow.com/questions/139261/how-to-create-a-file-with-a-given-size-in-linux#245239">that a... | [
{
"answer_id": 245278,
"author": "Diomidis Spinellis",
"author_id": 20520,
"author_profile": "https://Stackoverflow.com/users/20520",
"pm_score": 8,
"selected": true,
"text": "import java.io.*;\n\nclass Test {\n public static void main(String args[]) throws Exception {\n Ra... | 2008/10/28 | [
"https://Stackoverflow.com/questions/245251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4308/"
] |
245,292 | <p>I've been running into this problem with Flex for nearly a year, and each time I work up a quick hack solution that works for the time being. I'd like to see if anyone has a better idea.</p>
<p>Here are the conditions of a problem:</p>
<pre><code>|------Container ------------|
| explicitHeight: 400 (or whateve... | [
{
"answer_id": 267370,
"author": "Glenn",
"author_id": 11814,
"author_profile": "https://Stackoverflow.com/users/11814",
"pm_score": 1,
"selected": false,
"text": "clipContent = true;\nverticalScrollPolicy = \"off\"\n percentHeight = 100 scrollRect = new Rectangle(x, y, w, h);\n"
},
... | 2008/10/28 | [
"https://Stackoverflow.com/questions/245292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23965/"
] |
245,304 | <p>I feel like I should know this, but I haven't been able to figure it out...</p>
<p>I want to get the name of a method--which happens to be an integration test--from inside it so it can print out some diagnostic text. I can, of course, just hard-code the method's name in the string, but I'd like to make the test a ... | [
{
"answer_id": 245314,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 2,
"selected": false,
"text": "traceback extract_stack"
},
{
"answer_id": 245333,
"author": "nosklo",
"author_id": 17160,
"author_pr... | 2008/10/28 | [
"https://Stackoverflow.com/questions/245304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4766/"
] |
245,308 | <p>This one has me scratching my head.</p>
<p>I'm running Subversion 1.3.1 (r19032) on Ubuntu. All was well until recently when I tried to run svnadmin verify prior to a dump. This is the error message:</p>
<blockquote>
<p>svnadmin: Invalid diff stream: insn 0
cannot be decoded</p>
</blockquote>
<p>I have looked... | [
{
"answer_id": 245330,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 2,
"selected": false,
"text": "svnadmin"
}
] | 2008/10/28 | [
"https://Stackoverflow.com/questions/245308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32124/"
] |
245,317 | <p>Has anyone else had any problems using google's Domain Tracking API, I am specifically talking about the _link() method.</p>
<p><a href="http://code.google.com/apis/analytics/docs/gaJS/gaJSApiDomainDirectory.html#_gat.GA_Tracker_._link" rel="nofollow noreferrer">The documentation is here</a></p>
<p>The example pro... | [
{
"answer_id": 245330,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 2,
"selected": false,
"text": "svnadmin"
}
] | 2008/10/28 | [
"https://Stackoverflow.com/questions/245317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25767/"
] |
245,318 | <p>After reading many of the replies to <a href="https://stackoverflow.com/questions/244302/what-do-you-think-of-the-new-c-40-dynamic-keyword">this thread</a>, I see that many of those who dislike it cite the potential for abuse of the new keyword. My question is, what sort of abuse? How could this be abused so badly a... | [
{
"answer_id": 245537,
"author": "Pop Catalin",
"author_id": 4685,
"author_profile": "https://Stackoverflow.com/users/4685",
"pm_score": 3,
"selected": false,
"text": "public dynamic Foo(dynamic other) {\n dynamic clone = other.Clone();\n clone.AssignData(this.Data);\n return clone ;\... | 2008/10/28 | [
"https://Stackoverflow.com/questions/245318",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16942/"
] |
245,334 | <p>Ok, this is very weird. I'm trying to do a database migration, and all of a sudden, I'm getting these errors:</p>
<pre>
[C:\source\fe]: rake db:migrate --trace
(in C:/source/fe)
** Invoke db:migrate (first_time)
** Invoke setup (first_time)
** Invoke gems:install (first_time)
** Invoke gems:set_gem_status (first_ti... | [
{
"answer_id": 245340,
"author": "TheSoftwareJedi",
"author_id": 18941,
"author_profile": "https://Stackoverflow.com/users/18941",
"pm_score": -1,
"selected": false,
"text": "rake aborted!\ncan`'t activate rake\n"
},
{
"answer_id": 296492,
"author": "aronchick",
"author_i... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4322/"
] |
245,337 | <p>I'm using tortoise svn in Windows.</p>
<p>How can I branch in SVN and have it branch my svn:external folders as well?</p>
| [
{
"answer_id": 248367,
"author": "Peter Parker",
"author_id": 23264,
"author_profile": "https://Stackoverflow.com/users/23264",
"pm_score": 6,
"selected": true,
"text": "svn:externals svn:externals svn:externals"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/245337",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
245,338 | <p>I've been working on a SharePoint project and I have gone the route of loading User Controls through a custom web part.</p>
<p>I have several web controls where I need to dynamically generate hyperlinks (in a loop from a database) that will call certain functions of the User Control when clicked.</p>
<p>When I'm b... | [
{
"answer_id": 248367,
"author": "Peter Parker",
"author_id": 23264,
"author_profile": "https://Stackoverflow.com/users/23264",
"pm_score": 6,
"selected": true,
"text": "svn:externals svn:externals svn:externals"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/245338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10420/"
] |
245,342 | <p>Does anybody know how to call the <code>import data</code> built-in dialog excel from a macro (vba)?</p>
<p>I've tried <code>Application.Dialogs.Item(...).Show</code> but I can´t find the right dialog.
Please help.</p>
<p>Thanks in advance.</p>
| [
{
"answer_id": 245378,
"author": "Fionnuala",
"author_id": 2548,
"author_profile": "https://Stackoverflow.com/users/2548",
"pm_score": 0,
"selected": false,
"text": "'Allow user to select text file\nsf = Application _\n .GetOpenFilename(\"Text Files (*.txt), *.txt\")\nIf sf <> False T... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24927/"
] |
245,345 | <p>I have a series of text that contains mixed numbers (ie: a whole part and a fractional part). The problem is that the text is full of human-coded sloppiness:</p>
<ol>
<li>The whole part may or may not exist (ex: "10")</li>
<li>The fractional part may or may not exist (ex: "1/3")</li>
<li>The two parts may be separa... | [
{
"answer_id": 245351,
"author": "Craig Walker",
"author_id": 3488,
"author_profile": "https://Stackoverflow.com/users/3488",
"pm_score": 5,
"selected": true,
"text": "(\\d++(?! */))? *-? *(?:(\\d+) */ *(\\d+))?.*$\n Match the regular expression below and capture its match into backrefer... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3488/"
] |
245,349 | <p>I'd like to show an image in an iPhone app, but the image I'm using is too big.
I'd like to scale it to fit the iPhone screen, I can't find any class to handle it.</p>
| [
{
"answer_id": 245364,
"author": "Max Stewart",
"author_id": 18338,
"author_profile": "https://Stackoverflow.com/users/18338",
"pm_score": 5,
"selected": true,
"text": "UIImageView* view = [[UIImageView alloc] initWithImage: [UIImage imageNamed: @\"your_image.png\"]];\nview.frame = CGRec... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32096/"
] |
245,352 | <p>I have the following intentionally trivial function:</p>
<pre><code>void ReplaceSome(ref string text)
{
StringBuilder sb = new StringBuilder(text);
sb[5] = 'a';
text = sb.ToString();
}
</code></pre>
<p>It appears to be inefficient to convert this to a StringBuilder to index into and replace some of the... | [
{
"answer_id": 245371,
"author": "John Sheehan",
"author_id": 1786,
"author_profile": "https://Stackoverflow.com/users/1786",
"pm_score": -1,
"selected": false,
"text": " string test = \"hello world\";\n Console.WriteLine(test);\n\n test = test.Remove(5, 1);\n test = test.Ins... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245352",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
245,354 | <p>I'm fairly new to Castle Windsor and am looking into the in's and out's of the logging facility. It seems fairly impressive but the only thing i can't work out is where Windsor sets the Logger property on my classes. As in the following code will set Logger to the nullLogger if the class hasn't been setup yet but wh... | [
{
"answer_id": 245478,
"author": "Todd",
"author_id": 31940,
"author_profile": "https://Stackoverflow.com/users/31940",
"pm_score": 4,
"selected": false,
"text": "<facilities> <?xml version=\"1.0\"?>\n<configuration>\n <configSections>\n <section name=\"castle\" type=\"Castle.W... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30572/"
] |
245,355 | <p>Is there any way I can detect when my page has been set as the user's homepage in their browser?</p>
<p>I'm most interested in something in javascript, but I'd be happy to hear about other approaches as well.</p>
<p><strong>Edit</strong>: I'm not looking for anything sneaky. I'm wondering if there is anything tha... | [
{
"answer_id": 245621,
"author": "Már Örlygsson",
"author_id": 16271,
"author_profile": "https://Stackoverflow.com/users/16271",
"pm_score": 1,
"selected": true,
"text": "window.home()"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/245355",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3561/"
] |
245,369 | <p>If I have the following string:</p>
<pre><code>string s = "abcdefghab";
</code></pre>
<p>Then how do I get a string (or char[]) that has just the characters that are repeated in the original string using C# and LINQ. In my example I want to end up with "ab".</p>
<p>Although not necessary, I was trying to do this ... | [
{
"answer_id": 245621,
"author": "Már Örlygsson",
"author_id": 16271,
"author_profile": "https://Stackoverflow.com/users/16271",
"pm_score": 1,
"selected": true,
"text": "window.home()"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/245369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
245,395 | <p>What are some of the lesser know, but important and useful features of Windows batch files?</p>
<p>Guidelines:</p>
<ul>
<li>One feature per answer</li>
<li>Give both a short <strong>description</strong> of the feature and an <strong>example</strong>, not just a link to documentation</li>
<li>Limit answers to <stro... | [
{
"answer_id": 245398,
"author": "Chris Noe",
"author_id": 14749,
"author_profile": "https://Stackoverflow.com/users/14749",
"pm_score": 6,
"selected": false,
"text": "REM blah blah blah\n :: blah blah blah\n"
},
{
"answer_id": 245403,
"author": "RealHowTo",
"author_id": ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14749/"
] |
245,406 | <p>I have done this:</p>
<pre><code>$ z() { echo 'hello world'; }
</code></pre>
<p>How do I get rid of it?</p>
| [
{
"answer_id": 245409,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 9,
"selected": true,
"text": "unset -f z\n unset z\n"
},
{
"answer_id": 59416087,
"author": "Micah Elliott",
"author_id": 326516,
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245406",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28835/"
] |
245,418 | <p>I have an ASHX handler that returns an XML response (FileStructureXML.ashx).</p>
<p>Now I need to get the XML response from the ASHX handler and use it as a data source for my ASPX page.</p>
<p>If I point the XMLDataSource to a static XML file on the server, the treeview populates as expected. However, if I point... | [
{
"answer_id": 245676,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": "XmlDocument treeDoc = new XmlDocument();\ntreeDoc.Load( \"~/FileStructureXML.ashx\" ); // this takes a URL\nFileXml.Dat... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
245,420 | <p>Here's the situation - I've got a shell that loads an external .swf. Now, that .swf is 800x600, but it's an animation piece, and there are elements that extends off the stage. When I load the .swf into the shell and call its width attribute, it returns 1200 - because it's including the elements that break out of the... | [
{
"answer_id": 247078,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 5,
"selected": true,
"text": "Loader swfLoader.contentLoaderInfo.width\nswfLoader.contentLoaderInfo.height\n stage.stageWidth stage.stageHeight"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/245420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14026/"
] |
245,421 | <p>As far as I can tell, the best way to do this is do it in the DataTable.RowChanging event. But what if I want to cancel the action? There is no EventArgs.Cancel option...</p>
| [
{
"answer_id": 246381,
"author": "Mitkins",
"author_id": 23401,
"author_profile": "https://Stackoverflow.com/users/23401",
"pm_score": 0,
"selected": false,
"text": "DataGridView DataTable.RowChanging DataGridView.OnError EventArgs.Cancel true"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/245421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23401/"
] |
245,441 | <p>I want to add complex databinding to my custom winforms control, so I can do the following:</p>
<pre><code>myControl.DisplayMember = "Name";
myControl.ValueMember = "Name";
myControl.DataSource = new List<someObject>();
</code></pre>
<p>Does anyone know what interfaces, etc. have to be implemented to achieve... | [
{
"answer_id": 53775033,
"author": "Chris Tollefson",
"author_id": 10366669,
"author_profile": "https://Stackoverflow.com/users/10366669",
"pm_score": 2,
"selected": false,
"text": "ComplexBindingPropertiesAttribute LookupBindingPropertiesAttribute ComplexBindindPropertiesAttribute DataG... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1736/"
] |
245,447 | <p>Using Python I want to be able to draw text at different angles using PIL.</p>
<p>For example, imagine you were drawing the number around the face of a clock. The number <strong>3</strong> would appear as expected whereas <strong>12</strong> would we drawn rotated counter-clockwise 90 degrees.</p>
<p>Therefore, I... | [
{
"answer_id": 245837,
"author": "user12861",
"author_id": 12861,
"author_profile": "https://Stackoverflow.com/users/12861",
"pm_score": 2,
"selected": false,
"text": "\nimport Image\nim = Image.new(\"RGB\", (100, 100))\nimport ImageDraw\ndraw = ImageDraw.Draw(im)\ndraw.text((50, 50), \"... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245447",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20498/"
] |
245,453 | <p>I'm pretty new to the idea of recursion and this is actually my first attempt at writing a recursive method. </p>
<p>I tried to implement a recursive function Max that passes an array, along with a variable that holds the array's size in order to print the largest element. </p>
<p>It works, but it just doesn't <em... | [
{
"answer_id": 245468,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 4,
"selected": true,
"text": "function Max(data, size) {\n assert(size > 0)\n if (size == 1) {\n return data[0]\n }\n maxtail = Max(d... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245453",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14013/"
] |
245,456 | <p>I'm looking for a way to get the name of the main HTML form so I can submit it from JavaScript.</p>
<p>The reason I can just set the name of the form is because the JavaScript is on a User Control that could get added to many different sites with different form names.</p>
<p>Thanks.</p>
| [
{
"answer_id": 245491,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": -1,
"selected": false,
"text": " document.forms[0].submit();\n"
},
{
"answer_id": 245506,
"author": "Andrew Theken",
"author_id": 32238,
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10420/"
] |
245,465 | <p>How do you connect to a remote server via IP address in the manner that TOAD, SqlDeveloper, are able to connect to databases with just the ip address, username, SID and password?</p>
<p>Whenever I try to specify and IP address, it seems to be taking it locally.</p>
<p>In other words, how should the string for cx_O... | [
{
"answer_id": 1181699,
"author": "Jeffrey Kemp",
"author_id": 103295,
"author_profile": "https://Stackoverflow.com/users/103295",
"pm_score": 5,
"selected": false,
"text": "import cx_Oracle\nconnstr = 'scott/tiger@server:1521/orcl'\nconn = cx_Oracle.connect(connstr)\n"
},
{
"ans... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
245,475 | <p>Having a vector containing pointers to objects then using the clear function doesn't call the destructors for the objects in the vector. I made a function to do this manually but I don't know how to make this a generic function for any kind of objects that might be in the vector.</p>
<pre><code>void buttonVectorCle... | [
{
"answer_id": 245483,
"author": "KeithB",
"author_id": 2298,
"author_profile": "https://Stackoverflow.com/users/2298",
"pm_score": 4,
"selected": true,
"text": "template <class T>\nvoid vectorCleanup(vector<T *>& dVector){\n T* tmpClass;\n for(vector<T*>::size_type i = 0; i < dVec... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/370/"
] |
245,482 | <p>I have form area in my view. If I click button <kbd>A</kbd>, I want to submit to <code>/Books/1</code> and if I click button <kbd>B</kbd>, I want to submit to <code>/Books/2</code></p>
<p>How do I achieve this with MVC?</p>
| [
{
"answer_id": 245501,
"author": "Codewerks",
"author_id": 17729,
"author_profile": "https://Stackoverflow.com/users/17729",
"pm_score": 1,
"selected": false,
"text": "<form id=\"form1\" name=\"form1\" action=\"/Books/1\" method=\"get\">\n<!--...form fields-->\n</form>\n\n\n<form id=\"fo... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5463/"
] |
245,503 | <p>I am interested in mastering prefetch-related functions such as</p>
<p>_mm_prefetch(...)</p>
<p>so when I perform operations that loop over arrays, the memory bandwidth is fully utilized. What are the best resources for learning about this?</p>
<p>I am doing this work in C using GCC 4 series on an intel linux pl... | [
{
"answer_id": 245556,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 2,
"selected": false,
"text": "__builtin_prefetch"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/245503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30636/"
] |
245,507 | <p>I am trying to add different styles within a textarea eg bold, different colors etc</p>
<p>WYSIWYG editors (eg tinyMCE) used in web pages typically do this but I am having trouble working out how they do it.</p>
<p>You cannot do this:</p>
<p><a href="http://www.yart.com.au/test/html.gif">alt text http://www.yart.... | [
{
"answer_id": 245737,
"author": "Prestaul",
"author_id": 5628,
"author_profile": "https://Stackoverflow.com/users/5628",
"pm_score": 4,
"selected": true,
"text": "designMode contentEditable <br> <p> <b> <i>"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/245507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24696/"
] |
245,509 | <p>What's the best algorithm for comparing two arrays to see if they have the same members?</p>
<p>Assume there are no duplicates, the members can be in any order, and that neither is sorted.</p>
<pre><code>compare(
[a, b, c, d],
[b, a, d, c]
) ==> true
compare(
[a, b, e],
[a, b, c]
) ==> false... | [
{
"answer_id": 245510,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": -1,
"selected": false,
"text": "function compare($foo, $bar) {\n if (count($foo) != count($bar)) return false;\n\n foreach ($foo as $f) {\n fore... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245509",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.