qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
267,707
<p>I have a View that allows a user to enter/edit data for a new Widget. I'd like to form up that data into a json object and send it to my controller via AJAX so I can do the validation on the server without a postback.</p> <p>I've got it all working, except I can't figure out how to pass the data so my controller m...
[ { "answer_id": 267731, "author": "Sugendran", "author_id": 22466, "author_profile": "https://Stackoverflow.com/users/22466", "pm_score": 2, "selected": false, "text": "{ Id : \"id\", Name : \"name\", Price : 1.0 }\n" }, { "answer_id": 269127, "author": "MrDustpan", "autho...
2008/11/06
[ "https://Stackoverflow.com/questions/267707", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34720/" ]
267,719
<p>I just recently installed the MVC beta. However, I assumed because the versioning numbers have changed and because it now uses the GAC instead of the bin folder that it wouldn't break existing applications.</p> <p>However, it has.</p> <p>What steps do I need to follow to ensure my existing preview 3 applications u...
[ { "answer_id": 267762, "author": "Raj", "author_id": 219862, "author_profile": "https://Stackoverflow.com/users/219862", "pm_score": 3, "selected": true, "text": "* System.Web.Mvc\n* System.Web.Routing\n* System.Web.Abstractions\n" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/267719", "https://Stackoverflow.com", "https://Stackoverflow.com/users/364/" ]
267,721
<p>I need to do a date comparison in Mysql without taking into account the time component i.e. i need to convert '2008-11-05 14:30:00' to '2008-11-05'</p> <p>Currently i am doing this:</p> <pre><code>SELECT from_days(to_days(my_date)) </code></pre> <p>Is there a proper way of doing this?</p>
[ { "answer_id": 267732, "author": "Robert Gamble", "author_id": 25222, "author_profile": "https://Stackoverflow.com/users/25222", "pm_score": 9, "selected": true, "text": "SELECT date(my_date)\n" }, { "answer_id": 267733, "author": "Andy Lester", "author_id": 8454, "au...
2008/11/06
[ "https://Stackoverflow.com/questions/267721", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24390/" ]
267,724
<p>I'm writing code to do Xml serialization. With below function.</p> <pre><code>public static string SerializeToXml(object obj) { XmlSerializer serializer = new XmlSerializer(obj.GetType()); using (StringWriter writer = new StringWriter()) { serializer.Serialize(writer, obj); return writer...
[ { "answer_id": 267727, "author": "cfeduke", "author_id": 5645, "author_profile": "https://Stackoverflow.com/users/5645", "pm_score": 9, "selected": true, "text": "private internal" }, { "answer_id": 267904, "author": "Marc Gravell", "author_id": 23354, "author_profile...
2008/11/06
[ "https://Stackoverflow.com/questions/267724", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26349/" ]
267,750
<p>What is the difference in the accessibility of the following variables in Java?</p> <pre><code>public class Joe { public int a; protected int b; private int b; int c; } </code></pre> <p>I'm most interested in what the last one is doing.</p>
[ { "answer_id": 267756, "author": "Daniel Hiller", "author_id": 16193, "author_profile": "https://Stackoverflow.com/users/16193", "pm_score": 4, "selected": true, "text": "public protected private int c private" }, { "answer_id": 267772, "author": "VonC", "author_id": 6309...
2008/11/06
[ "https://Stackoverflow.com/questions/267750", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15055/" ]
267,752
<p>So I've been trying to learn the boost::asio stuff to communicate to a serial device using RS232. The documementation is sparse and the examples are non-existent. Can't figure out exactly how to communicate with the device. The device can't send data so all I need to do is write, but other projects require actual...
[ { "answer_id": 269148, "author": "Judge Maygarden", "author_id": 1491, "author_profile": "https://Stackoverflow.com/users/1491", "pm_score": 5, "selected": true, "text": "boost::asio::write(port, boost::asio::buffer(commands, 4));\n" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/267752", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3176/" ]
267,754
<p>I'm impressed with the simplicity of Microsoft's Virtual Earth Street Address search service.</p> <p>My requirement is to type rough address info with no comma separators into a simple text box, press a find button, wait a few seconds and then observe a result picklist.</p> <p>I mocked up something <a href="http:/...
[ { "answer_id": 269148, "author": "Judge Maygarden", "author_id": 1491, "author_profile": "https://Stackoverflow.com/users/1491", "pm_score": 5, "selected": true, "text": "boost::asio::write(port, boost::asio::buffer(commands, 4));\n" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/267754", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3048/" ]
267,763
<p>Ever since I first wrote</p> <pre><code>if ($a = 5) { # do something with $a, e.g. print "$a"; } </code></pre> <p>and went through the normal puzzling session of </p> <ul> <li>why is the result always true</li> <li>why is $a always 5</li> </ul> <p>until I realized, I'd assigned 5 to $a, instead of perform...
[ { "answer_id": 267778, "author": "Claudiu", "author_id": 15055, "author_profile": "https://Stackoverflow.com/users/15055", "pm_score": 2, "selected": false, "text": "if a = 5: print a\n if for" }, { "answer_id": 267802, "author": "Wairapeti", "author_id": 34370, "auth...
2008/11/06
[ "https://Stackoverflow.com/questions/267763", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31472/" ]
267,764
<p>I need to copy a set of rows from one tab to another tab of the same Excel document by just clicking a button. </p> <p>Also, can I also get information on how can I copy a set of rows that are hidden and paste it in the same tab without copying the "hidden" format?</p>
[ { "answer_id": 270326, "author": "Lance Roberts", "author_id": 13295, "author_profile": "https://Stackoverflow.com/users/13295", "pm_score": 1, "selected": false, "text": "Sub Copybutton_Click()\n\nRange(\"Copyend\").value = Range(\"Copystart\").value\nRange(\"Copyend\").visible = True\n...
2008/11/06
[ "https://Stackoverflow.com/questions/267764", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
267,766
<p>Is it possible to develop custom PLAF themes for Swing? I would appreciate constructive suggestions in this topic Thanks</p>
[ { "answer_id": 270452, "author": "BCunningham", "author_id": 7689, "author_profile": "https://Stackoverflow.com/users/7689", "pm_score": 0, "selected": false, "text": "[javax.swing.plaf.synth][1]" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/267766", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
267,781
<p>Slightly related to my <a href="https://stackoverflow.com/questions/267750/java-instance-variable-accessibility">other question</a>: What is the difference between the following:</p> <pre><code>private class Joe protected class Joe public class Joe class Joe </code></pre> <p>Once again, the difference between the ...
[ { "answer_id": 267793, "author": "erickson", "author_id": 3474, "author_profile": "https://Stackoverflow.com/users/3474", "pm_score": 5, "selected": true, "text": "class Joe" }, { "answer_id": 267815, "author": "VonC", "author_id": 6309, "author_profile": "https://Sta...
2008/11/06
[ "https://Stackoverflow.com/questions/267781", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15055/" ]
267,804
<p>I'm trying to figure out the best way to insert a record into a single table but only if the item doesn't already exist. The KEY in this case is an NVARCHAR(400) field. For this example, lets pretend it's the name of a <em>word</em> in the Oxford English Dictionary / insert your fav dictionary here. Also, i'm guessi...
[ { "answer_id": 267859, "author": "Roger Lipscombe", "author_id": 8446, "author_profile": "https://Stackoverflow.com/users/8446", "pm_score": 6, "selected": true, "text": "INSERT INTO Words (Word)\n SELECT @Word\nWHERE NOT EXISTS (SELECT WordID FROM Words WHERE Word = @Word)\n INSERT I...
2008/11/06
[ "https://Stackoverflow.com/questions/267804", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30674/" ]
267,808
<p>(Note: This is for MySQL's SQL, not SQL Server.)</p> <p>I have a database column with values like "abc def GHI JKL". I want to write a WHERE clause that includes a case-insensitive test for any word that begins with a specific letter. For example, that example would test true for the letters a,c,g,j because there's...
[ { "answer_id": 267910, "author": "Incidently", "author_id": 34187, "author_profile": "https://Stackoverflow.com/users/34187", "pm_score": 4, "selected": true, "text": "SELECT * FROM `articles` WHERE `body` REGEXP '[[:<:]][acgj]'\n" }, { "answer_id": 267912, "author": "Tomalak...
2008/11/06
[ "https://Stackoverflow.com/questions/267808", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17307/" ]
267,825
<p>When we perform a fork in Unix, open file handles are inherited, and if we don't need to use them we should close them. However, when we use libraries, file handles may be opened for which we do not have access to the handle. How do we check for these open file handles?</p>
[ { "answer_id": 267857, "author": "qrdl", "author_id": 28494, "author_profile": "https://Stackoverflow.com/users/28494", "pm_score": 4, "selected": false, "text": "/proc/<pid>/fd lsof man lsof" }, { "answer_id": 267937, "author": "C Pirate", "author_id": 34990, "author...
2008/11/06
[ "https://Stackoverflow.com/questions/267825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30333/" ]
267,832
<p>Hey, in the Programming Pearls book, there is a source code for setting, clearing and testing a bit of the given index in an array of ints that is actually a set representation.</p> <p>The code is the following:</p> <pre><code>#include&lt;stdio.h&gt; #define BITSPERWORD 32 #define SHIFT 5 #define MASK 0x1F #define...
[ { "answer_id": 267839, "author": "VonC", "author_id": 6309, "author_profile": "https://Stackoverflow.com/users/6309", "pm_score": 3, "selected": false, "text": "#define MASK 0x0038\n#define SHIFT 3\n var & MASK\n var & ~MASK\n var &= ~MASK;\n var &= MASK;\n var |= MASK;\n var |= ~MASK;\n...
2008/11/06
[ "https://Stackoverflow.com/questions/267832", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20915/" ]
267,841
<p>I am writing a Rails app that processes data into a graph (using Scruffy). I am wondering how can I render the graph to a blog/string and then send the blog/string directly to the the browser to be displayed (without saving it to a file)? Or do I need to render it, save it to a file, then display the saved image f...
[ { "answer_id": 268036, "author": "Codebeef", "author_id": 12037, "author_profile": "https://Stackoverflow.com/users/12037", "pm_score": 3, "selected": false, "text": "send_data data_string, :filename => 'icon.jpg', :type => 'image/jpeg', :disposition => 'inline'\n <%= image_tag picture_p...
2008/11/06
[ "https://Stackoverflow.com/questions/267841", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5004/" ]
267,843
<p>My Visual Studio (2008) Editor has stopped to underline Errors (this nifty wavy red lines). I can't really tell when, but it can be related to the installation of .Net Framework 3.5 SP 1 or the MVC Beta (which I guess is unlikely). Furthermore have I installed and uninstalled both CodeRush and Resharper for evaluati...
[ { "answer_id": 52571863, "author": "Magmus", "author_id": 7933665, "author_profile": "https://Stackoverflow.com/users/7933665", "pm_score": 2, "selected": false, "text": "class A { \npublic int x; \ns;\n}\n" }, { "answer_id": 65788594, "author": "Jan Macháček", "author_id...
2008/11/06
[ "https://Stackoverflow.com/questions/267843", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16440/" ]
267,858
<p>Can anyone please tell me if Certifying Authorities (CAs) are allowed to make modifications to the Certificate Signing Request (CSR) before actually signing the certificate with their own private key? </p> <p>Specifically, I'd like to know if it's valid for the CA to insert additional fields (such as EKUs) into the...
[ { "answer_id": 267891, "author": "C. K. Young", "author_id": 13, "author_profile": "https://Stackoverflow.com/users/13", "pm_score": 0, "selected": false, "text": "certreq -attrib" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/267858", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34985/" ]
267,861
<p>I'm using SQLAlchemy 0.5rc, and I'd like to add an automatic filter to a relation, so that every time it tries to fetch records for that relation, it ignores the "remote" ones if they're flagged as "logically_deleted" (a boolean field of the child table)</p> <p>For example, if an object "parent" has a "children" re...
[ { "answer_id": 267975, "author": "Matthew Schinckel", "author_id": 188, "author_profile": "https://Stackoverflow.com/users/188", "pm_score": 0, "selected": false, "text": "db.query(Object).filter(Object.first==value).filter(Object.second==False).all()\n" }, { "answer_id": 278710,...
2008/11/06
[ "https://Stackoverflow.com/questions/267861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3497/" ]
267,862
<p>Reading <a href="http://www.paulgraham.com/articles.html" rel="noreferrer">Paul Graham's essays</a> on programming languages one would think that <a href="http://wiki.c2.com/?LispMacro" rel="noreferrer">Lisp macros</a> are the only way to go. As a busy developer, working on other platforms, I have not had the privil...
[ { "answer_id": 267880, "author": "VonC", "author_id": 6309, "author_profile": "https://Stackoverflow.com/users/6309", "pm_score": 7, "selected": false, "text": " (setf x whatever)\n (setf (car somelist) whatever)\n (rplaca somelist whatever)\n" }, { "answer_id": 268041, ...
2008/11/06
[ "https://Stackoverflow.com/questions/267862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4491/" ]
267,869
<p>What is the best way to configure Tomcat 5.5 or later to authenticate users from Windows Active Directory?</p>
[ { "answer_id": 267906, "author": "Blauohr", "author_id": 22176, "author_profile": "https://Stackoverflow.com/users/22176", "pm_score": 5, "selected": false, "text": "<Realm className=\"org.apache.catalina.realm.JNDIRealm\" debug=\"99\"\n connectionURL=\"ldap://youradsserver:389\"\n ...
2008/11/06
[ "https://Stackoverflow.com/questions/267869", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34986/" ]
267,872
<p>I've got a web form with Password and Confirm Password text boxes. I've got a RegularExpressionValidator attached to the first one and CompareValidator to the second one. Now the problem is when i have something in the Password field and nothing in Confirm Password field it does not display an error that fields don'...
[ { "answer_id": 1051581, "author": "David", "author_id": 83852, "author_profile": "https://Stackoverflow.com/users/83852", "pm_score": 3, "selected": false, "text": "<script type=\"text/javascript\">\n<!--\n function cvPasswordRpt_Validate(source, args)\n {\n args.IsValid = (args.Val...
2008/11/06
[ "https://Stackoverflow.com/questions/267872", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10793/" ]
267,892
<p>How are paged results commonly implemented in PHP?</p> <p>I'd like to have a results page with 10 results. Paging forward in the navigation would give me the next and previous sets.</p> <p>Is there a way this is commonly done? Does anyone have simple advice on getting started?</p>
[ { "answer_id": 267902, "author": "keparo", "author_id": 19468, "author_profile": "https://Stackoverflow.com/users/19468", "pm_score": 3, "selected": false, "text": "stackoverflow.com/myResults.php?page=1\n stackoverflow.com/myResults.php?page=2\n" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/267892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
267,893
<p>Is there a way to customize Firebug's keyboard shortcuts? I love being able to step through JavaScript code using Firebug's <em>Script</em> panel, but it looks like I'm limited to either using the default keyboard shortcuts for stepping over/into/out of code or using the mouse to click the appropriate button. </p>...
[ { "answer_id": 438518, "author": "Dirk Vollmar", "author_id": 40347, "author_profile": "https://Stackoverflow.com/users/40347", "pm_score": 1, "selected": false, "text": "%APPDATA%\\Mozilla\\Firefox\\Profiles\\<profile>\\extensions\\firebug@software.joehewitt.com\\content\\firebug\\brows...
2008/11/06
[ "https://Stackoverflow.com/questions/267893", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19020/" ]
267,908
<p>I think most C++ programmers here would agree that polluting the global namespace is a bad idea, but are there times when this rule can be ignored?</p> <p>For example, I have a type that I need to use all over a particular application - should I define it thus:</p> <pre><code>mytypes.h typedef int MY_TYPE; foo.c...
[ { "answer_id": 267914, "author": "Anthony Williams", "author_id": 5597, "author_profile": "https://Stackoverflow.com/users/5597", "pm_score": 4, "selected": true, "text": "MY_TYPE" }, { "answer_id": 267917, "author": "C. K. Young", "author_id": 13, "author_profile": "...
2008/11/06
[ "https://Stackoverflow.com/questions/267908", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9236/" ]
267,941
<p>We have an issue related to a Java application running under a (rather old) FC3 on an Advantech POS board with a Via C3 processor. The java application has several compiled shared libs that are accessed via JNI.</p> <p>Via C3 processor is supposed to be i686 compatible. Some time ago after installing Ubuntu 6.10 on...
[ { "answer_id": 267957, "author": "unwind", "author_id": 28169, "author_profile": "https://Stackoverflow.com/users/28169", "pm_score": 5, "selected": true, "text": "objdump | grep" }, { "answer_id": 2902650, "author": "Tim Kane", "author_id": 349660, "author_profile": ...
2008/11/06
[ "https://Stackoverflow.com/questions/267941", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34880/" ]
267,944
<p>Some background info;</p> <ul> <li>LanguageResource is the base class</li> <li>LanguageTranslatorResource and LanguageEditorResource inherit from LanguageResource</li> <li>LanguageEditorResource defines an IsDirty property</li> <li>LanguageResourceCollection is a collection of LanguageResource</li> <li>LanguageReso...
[ { "answer_id": 267964, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 4, "selected": true, "text": "IEnumerable IEnumerable<T> _resources.Cast<LanguageEditorResource>().Where(r => r.IsDirty)\n Enumerable.Where IEnumera...
2008/11/06
[ "https://Stackoverflow.com/questions/267944", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1535/" ]
267,949
<p>I'm working on a code base in which we have several configurable types. One of those types is 64 bit integer. When we compile for platforms that have no native 64 bit integer type, we simple represent 64 bit integers using a struct similar to</p> <pre><code>typedef struct { unsigned int hi, lo; } int64; </code>...
[ { "answer_id": 267965, "author": "Dan Fego", "author_id": 34426, "author_profile": "https://Stackoverflow.com/users/34426", "pm_score": 1, "selected": false, "text": "#define mytime int64\n" }, { "answer_id": 268065, "author": "quinmars", "author_id": 18687, "author_p...
2008/11/06
[ "https://Stackoverflow.com/questions/267949", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20398/" ]
267,953
<p>I have two applications under <code>tomcat/webapps</code> folder. </p> <pre><code>tomcat/webapps/App1 tomcat/webapps/App2 </code></pre> <p>Both applications share the same libraries. Which are stored for example in <code>tomcat/webapps/App1/WEB-INF/lib</code>.</p> <p>Are both libraries loaded twice in memory?</...
[ { "answer_id": 24514449, "author": "Toni Bünter", "author_id": 2729120, "author_profile": "https://Stackoverflow.com/users/2729120", "pm_score": 3, "selected": false, "text": "common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,\n ${catalina.home}/lib,${catalina.ho...
2008/11/06
[ "https://Stackoverflow.com/questions/267953", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2138/" ]
267,962
<p>I have some text displaying in a larger font size than what it is supposed to. I used Firebug and it shows that the text is 12px as defined in the element's CSS. However Web Developer and CSSViewer both report that the text is 16px, which is what is currently displaying.</p> <p>With all these tools I am unable to q...
[ { "answer_id": 30796389, "author": "Sebastian Zartner", "author_id": 432681, "author_profile": "https://Stackoverflow.com/users/432681", "pm_score": 0, "selected": false, "text": ".wmd-preview" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/267962", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5232/" ]
267,977
<p>I often find a need to put paths in my code in order to find data or in some cases tool-specific modules. I've so far always used autotools because of this--it's just so easy to call sed to replace a few strings at build time. However, I'd like to find a more Pythonic way of doing this, i.e. use distutils or some ...
[ { "answer_id": 268189, "author": "Ali Afshar", "author_id": 28380, "author_profile": "https://Stackoverflow.com/users/28380", "pm_score": 1, "selected": false, "text": "__file__" }, { "answer_id": 348082, "author": "Magnus", "author_id": 34996, "author_profile": "http...
2008/11/06
[ "https://Stackoverflow.com/questions/267977", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
267,982
<p>IMHO Radio buttons should retire. The ComboBox (Drop-Down list mode) should always be preferred.<br>Drop-Down list takes minimal screen space, and you can add/remove items programmatically.<br>No need to resize anything (hard), or disable irrelevant options (ugly).</p> <p>Can you think of a situation when a Radio ...
[ { "answer_id": 268008, "author": "Treb", "author_id": 22114, "author_profile": "https://Stackoverflow.com/users/22114", "pm_score": 0, "selected": false, "text": "* *" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/267982", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11287/" ]
267,998
<p>I have a QGraphicsScene that I want to copy and append to the start of a list. What is the best method of doing this?</p> <pre><code>QGraphicsScene* m_scene = new QGraphicsScene(); QGraphicsScene* m_DuplicateScene; QList&lt;QGraphicsScene *&gt;m_list; </code></pre>
[ { "answer_id": 312047, "author": "strager", "author_id": 39992, "author_profile": "https://Stackoverflow.com/users/39992", "pm_score": 4, "selected": true, "text": "m_scene dynamic_cast clone() QGraphicsItem QGraphicsItem QGraphicsScene QGraphicsItem QList<T *>::push_front m_list.push_fr...
2008/11/06
[ "https://Stackoverflow.com/questions/267998", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24459/" ]
268,010
<p>Is there anyway to decompile java webstart application? </p>
[ { "answer_id": 47574843, "author": "Dragas", "author_id": 6523288, "author_profile": "https://Stackoverflow.com/users/6523288", "pm_score": 0, "selected": false, "text": "codebase resources resources href" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/268010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9774/" ]
268,013
<p>Basically I am inserting an image using the listviews inserting event, trying to resize an image from the fileupload control, and then save it in a SQL database using LINQ.</p> <p>I found some code to create a new bitmap of the content in the fileupload control, but this was to store it in a file on the server, fro...
[ { "answer_id": 268026, "author": "Tamir", "author_id": 30879, "author_profile": "https://Stackoverflow.com/users/30879", "pm_score": 3, "selected": false, "text": "byte[] data;\nusing(System.IO.MemoryStream stream = new System.IO.MemoryStream()) {\n bmp.Save(stream, System.Drawing.Imag...
2008/11/06
[ "https://Stackoverflow.com/questions/268013", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32792/" ]
268,023
<p>I have read the answers for <a href="https://stackoverflow.com/questions/230062/whats-the-best-way-to-check-if-a-file-exists-in-c-cross-platform">What's the best way to check if a file exists in C? (cross platform)</a>, but I'm wondering if there is a better way to do this using standard c++ libs? Preferably without...
[ { "answer_id": 268047, "author": "Andreas Magnusson", "author_id": 5811, "author_profile": "https://Stackoverflow.com/users/5811", "pm_score": 9, "selected": true, "text": "#include <boost/filesystem.hpp>\n\nif ( !boost::filesystem::exists( \"myfile.txt\" ) )\n{\n std::cout << \"Can't f...
2008/11/06
[ "https://Stackoverflow.com/questions/268023", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2079/" ]
268,025
<p>The install instructions are:</p> <pre><code>$ python setup.py build $ sudo python setup.py install # or su first </code></pre> <p>This gives me an .egg file. How do I tell the install to dump the files as a normal, uncompressed library?</p> <p>Thanks!</p>
[ { "answer_id": 268054, "author": "gimel", "author_id": 6491, "author_profile": "https://Stackoverflow.com/users/6491", "pm_score": 2, "selected": false, "text": "easy_install -Z mysql_python" }, { "answer_id": 268101, "author": "monk.e.boy", "author_id": 563932, "auth...
2008/11/06
[ "https://Stackoverflow.com/questions/268025", "https://Stackoverflow.com", "https://Stackoverflow.com/users/563932/" ]
268,037
<p>I am working on creating a custom project template with Visual Studio 2008 Team System edition. I have also created a custom wizard for the custom template.</p> <p>So I have to update the vstemplate file to tell the template to use my custom wizard. But the archive is corrupted!</p> <p>7zip thinks folders within...
[ { "answer_id": 603214, "author": "penyaskito", "author_id": 3008, "author_profile": "https://Stackoverflow.com/users/3008", "pm_score": 0, "selected": false, "text": "<ProjectItem>MyFolder\\MyFile.cs</ProjectItem> <Folder>...<Folder>" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/268037", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19377/" ]
268,045
<p>I am looking for a tool to replace multiple lines through out a project. For example:</p> <pre><code>#include "../DiscreteIO/Discrete.h" #include "../PCI/pci.h" #include "../Arinc429/ARINC429.h" </code></pre> <p>with</p> <pre><code>#include "../PCI/pci.h" #include "../DiscreteIO/DiscreteHW.h" #include "../Discret...
[ { "answer_id": 596755, "author": "Yordan Georgiev", "author_id": 65706, "author_profile": "https://Stackoverflow.com/users/65706", "pm_score": 0, "selected": false, "text": "#see docs at the bottom \nuse strict;\nuse warnings;\nuse Cwd;\n\nuse File::Find;\n\nmy $search_patternFilePath=$A...
2008/11/06
[ "https://Stackoverflow.com/questions/268045", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34989/" ]
268,048
<p>Take the following function:</p> <pre><code>DataTable go() { return someTableAdapter.getSomeData(); } </code></pre> <p>When I set a breakpoint in this function, is there a possibility to inspect the returned value? <code>go()</code> is directly coupled to a datagrid in an <code>.aspx</code> page.</p> <p>The o...
[ { "answer_id": 268052, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 9, "selected": true, "text": "$ReturnValue" }, { "answer_id": 268059, "author": "Yann Semet", "author_id": 5788, "author_profile...
2008/11/06
[ "https://Stackoverflow.com/questions/268048", "https://Stackoverflow.com", "https://Stackoverflow.com/users/56/" ]
268,062
<p>In Delphi 2009 whereabouts do you turn on the option to treat warnings as errors?</p>
[ { "answer_id": 268067, "author": "Jamie", "author_id": 922, "author_profile": "https://Stackoverflow.com/users/922", "pm_score": 5, "selected": true, "text": "Project -> Options - > Delphi Compiler -> Hints and Warnings Output Warnings as errors" }, { "answer_id": 15983831, "...
2008/11/06
[ "https://Stackoverflow.com/questions/268062", "https://Stackoverflow.com", "https://Stackoverflow.com/users/922/" ]
268,064
<p>Looking at <code>System.Collections.Generic.Dictionary&lt;TKey, TValue&gt;</code>, it clearly implements <code>ICollection&lt;KeyValuePair&lt;TKey, TValue&gt;&gt;</code>, but doesn't have the required "<code>void Add(KeyValuePair&lt;TKey, TValue&gt; item)</code>" function.</p> <p>This can also be seen when trying t...
[ { "answer_id": 268083, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 5, "selected": true, "text": "Add(key,value) this[key] Add(KeyValuePair<,>) IDictionary<string, int> Dictionary<string, int> PropertyIDs = new Dicti...
2008/11/06
[ "https://Stackoverflow.com/questions/268064", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4918/" ]
268,069
<p>I have been trying to include a file in a included file e.g</p> <p><strong>main.cpp file</strong></p> <pre><code>#include &lt;includedfile.cpp&gt; int main(){ cout&lt;&lt;name&lt;&lt;endl; } </code></pre> <p><strong>includedfile.cpp</strong></p> <pre><code>#include &lt;iostream&gt; using namespace std; stri...
[ { "answer_id": 268085, "author": "Sander", "author_id": 2928, "author_profile": "https://Stackoverflow.com/users/2928", "pm_score": 3, "selected": false, "text": "name = \"jim\"; // This is outside of any method, so it is an error.\n string name = \"jim\";\n" }, { "answer_id": 26...
2008/11/06
[ "https://Stackoverflow.com/questions/268069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
268,079
<p>I have 3 lists, I will make them simple here. </p> <p>list of letters<br> A<br> B<br> C </p> <p>list of numbers<br> 1<br> 2<br> 3 </p> <p>Mixed<br> A,1<br> A,2<br> B,2<br> B,3<br> C,1<br> C,3</p> <p>I need to know what is missing:<br> A,3<br> B,1<br> C,2</p> <p>The...
[ { "answer_id": 268099, "author": "Tomalak", "author_id": 18771, "author_profile": "https://Stackoverflow.com/users/18771", "pm_score": 2, "selected": false, "text": "SELECT\n Letter + ',' + Number AS Combination\nFROM\n NumberList,\n LetterList\n SELECT\n Combination\nFROM\n AllComb...
2008/11/06
[ "https://Stackoverflow.com/questions/268079", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35003/" ]
268,084
<p>What is the most efficient way to create a <strong>constant</strong> (never changes at runtime) mapping of <code>string</code>s to <code>int</code>s? </p> <p>I've tried using a <a href="https://stackoverflow.com/questions/268064/c-how-can-dictionarykv-implement-icollectionkeyvaluepairkv-without-having-addke">const ...
[ { "answer_id": 268097, "author": "Sander", "author_id": 2928, "author_profile": "https://Stackoverflow.com/users/2928", "pm_score": 1, "selected": false, "text": "interface IActiveUserCountProvider\n{\n int GetMaxForServer(string serverName);\n}\n" }, { "answer_id": 268103, ...
2008/11/06
[ "https://Stackoverflow.com/questions/268084", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4918/" ]
268,088
<p>After I open something with emacsclient, when I kill that buffer (C-x k) I get a confirmation dialog:</p> <pre><code>Buffer `blah' still has clients; kill it? (yes or no) </code></pre> <p>But when I kill buffers opened directly from Emacs I don't. Is there a way not to get them when emacsclient opened them?</p>
[ { "answer_id": 268205, "author": "Touko", "author_id": 28482, "author_profile": "https://Stackoverflow.com/users/28482", "pm_score": 5, "selected": true, "text": "(remove-hook 'kill-buffer-query-functions 'server-kill-buffer-query-function)\n" }, { "answer_id": 268859, "autho...
2008/11/06
[ "https://Stackoverflow.com/questions/268088", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6068/" ]
268,089
<p>From some forum I came to know that Multiple database support is added in Django at lower level, but the higher level apis are not added yet.</p> <p>Can anyone please tell me how one can achieve multiple database connections in Django.</p> <p>Does anyone have any idea by when Django will fully/officially support M...
[ { "answer_id": 271220, "author": "hasen", "author_id": 35364, "author_profile": "https://Stackoverflow.com/users/35364", "pm_score": 0, "selected": false, "text": "django/db/__init__.py connection = backend.DatabaseWrapper(**settings.DATABASE_OPTIONS)" }, { "answer_id": 1836058, ...
2008/11/06
[ "https://Stackoverflow.com/questions/268089", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35009/" ]
268,093
<p>I'd like to create a webpage layout with the sidebar to the right and the main content flowing around the sidebar.</p> <p>Requirements:</p> <ol> <li>Content below the sidebar should occupy all of the available width</li> <li>Content below the sidebar should not wrap when it hits the left of the sidebar</li> <li>Ma...
[ { "answer_id": 268135, "author": "Jonathan Lonowski", "author_id": 15031, "author_profile": "https://Stackoverflow.com/users/15031", "pm_score": 2, "selected": false, "text": "float div#sidebar div#sidebar #sidebar {\n float: right;\n width: 50px;\n}\n <body>\n <div id=\"content\"...
2008/11/06
[ "https://Stackoverflow.com/questions/268093", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5343/" ]
268,105
<p>In a table I have the following schema</p> <pre><code>table1: playerID int primary key, nationalities nvarchar table2: playerID int, pubVisited nvarchar </code></pre> <p>Now, I want to set all the players' playedVisited to null, for player whose nationality is "England", any idea on how to do this? </p>
[ { "answer_id": 268127, "author": "pilsetnieks", "author_id": 6615, "author_profile": "https://Stackoverflow.com/users/6615", "pm_score": 2, "selected": false, "text": "UPDATE table2\nSET\n table2.pubVisited = null\nFROM table1\nWHERE\n table2.playerID = table1.playerID and table1.n...
2008/11/06
[ "https://Stackoverflow.com/questions/268105", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3834/" ]
268,107
<pre> SELECT `name` , COUNT(*) AS `count` FROM `t1`, `t2` WHERE `t2`.`id` = `t1`.`id` GROUP BY `t2`.`id` </pre> <p>I want to obtain the name from t1 and the number of rows in t2 where the id is the same as on t1.</p> <p>I've got the above so far, however it won't return any data if there are no rows in t2 that match....
[ { "answer_id": 268118, "author": "Dheer", "author_id": 17266, "author_profile": "https://Stackoverflow.com/users/17266", "pm_score": 0, "selected": false, "text": "SELECT `name` , COUNT(*) AS `count`\nFROM `t1`, `t2`\nWHERE `t2`.`id` = `t1`.`id`\nGROUP BY `t2`.`id`\nUNION\nSelect name, 0...
2008/11/06
[ "https://Stackoverflow.com/questions/268107", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21559/" ]
268,116
<p>I have the following code block in my xslt;</p> <pre><code> &lt;xsl:when test="StatusData/Status/Temperature &gt; 27"&gt; &lt;td bgcolor="#ffaaaa"&gt; &lt;xsl:value-of select="StatusData/Status/Temperature" /&gt; &lt;/td&gt; &lt;/xsl:when&gt; </code><...
[ { "answer_id": 268140, "author": "Tomalak", "author_id": 18771, "author_profile": "https://Stackoverflow.com/users/18771", "pm_score": 4, "selected": true, "text": "translate() test=\"translate(StatusData/Status/Temperature, \",\", \".\") > 27\"\n test=\"number(translate(StatusData/Statu...
2008/11/06
[ "https://Stackoverflow.com/questions/268116", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35012/" ]
268,120
<p>I am having an string like this</p> <p>string str = "dfdsfdsf8fdfdfd9dfdfd4"</p> <p>I need to check whether the string contains number by looping through the array.</p>
[ { "answer_id": 268148, "author": "kgiannakakis", "author_id": 24054, "author_profile": "https://Stackoverflow.com/users/24054", "pm_score": 6, "selected": true, "text": "bool val = System.Text.RegularExpressions.Regex.IsMatch(str, @\"\\d\");\n" }, { "answer_id": 268151, "auth...
2008/11/06
[ "https://Stackoverflow.com/questions/268120", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22162/" ]
268,121
<p>I have to deal with very large text files (2 GBs), it is mandatory to read/write them line by line. To write 23 millions of lines using ofstream is really slow so, at the beginning, I tried to speed up the process writing large chunks of lines in a memory buffer (for example 256 MB or 512 MB) and then write the buff...
[ { "answer_id": 268335, "author": "Roddy", "author_id": 1737, "author_profile": "https://Stackoverflow.com/users/1737", "pm_score": 5, "selected": true, "text": "dd if=/dev/zero bs=1024 count=2000000 of=file_2GB" }, { "answer_id": 268542, "author": "Martin York", "author_i...
2008/11/06
[ "https://Stackoverflow.com/questions/268121", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35004/" ]
268,123
<p>Is there a single shortcut to start inserting in the new line at end of the file?</p> <p>I'm aware of <kbd>G</kbd> + <kbd>o</kbd> combo.</p>
[ { "answer_id": 268143, "author": "Ignacio Vazquez-Abrams", "author_id": 20862, "author_profile": "https://Stackoverflow.com/users/20862", "pm_score": 4, "selected": false, "text": ":nmap ^A Go\n" }, { "answer_id": 27207461, "author": "gautam", "author_id": 4307380, "a...
2008/11/06
[ "https://Stackoverflow.com/questions/268123", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11439/" ]
268,132
<p>When I ran <a href="http://en.wikipedia.org/wiki/ReSharper" rel="noreferrer">ReSharper</a> on my code, for example:</p> <pre><code> if (some condition) { Some code... } </code></pre> <p>ReSharper gave me the above warning (Invert "if" statement to reduce nesting), and suggested the f...
[ { "answer_id": 268166, "author": "Deestan", "author_id": 6848, "author_profile": "https://Stackoverflow.com/users/6848", "pm_score": 4, "selected": false, "text": "condition" }, { "answer_id": 268170, "author": "Oli", "author_id": 12870, "author_profile": "https://Sta...
2008/11/06
[ "https://Stackoverflow.com/questions/268132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/278/" ]
268,153
<p>I am writing code in VS2005 using its STL. I have one UI thread to read a vector, and a work thread to write to a vector. I use ::boost::shared_ptr as vector element.</p> <pre><code>vector&lt;shared_ptr&lt;Class&gt;&gt; vec; </code></pre> <p>but I find, if I manipulate the vec in both thread in the same time(I can...
[ { "answer_id": 268177, "author": "C. K. Young", "author_id": 13, "author_profile": "https://Stackoverflow.com/users/13", "pm_score": 3, "selected": true, "text": "shared_mutex" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/268153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25749/" ]
268,180
<p>Ok guys and gals, here is my problem:</p> <p>I've built a custom control that uses a textbox to present data to the user. </p> <p>When the user interacts with the control the <strong>value of that textbox is altered with client side javascript</strong>.</p> <p>I also have a button on my page. When the user clicks...
[ { "answer_id": 268297, "author": "James", "author_id": 7837, "author_profile": "https://Stackoverflow.com/users/7837", "pm_score": 2, "selected": true, "text": "this.textBox.Attributes.Add(\"readonly\", \"readonly\");\n" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/268180", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7837/" ]
268,182
<p>We've just been given the following code as a solution for a complicated search query in a new application provided by offshore developers. I'm skeptical of the use of dynamic SQL because I could close the SQL statement using '; and then excute a nasty that will be performed on the database!</p> <p>Any ideas on how...
[ { "answer_id": 268199, "author": "Mitch Wheat", "author_id": 16076, "author_profile": "https://Stackoverflow.com/users/16076", "pm_score": 4, "selected": true, "text": "EXEC sp_executesql" }, { "answer_id": 268378, "author": "digiguru", "author_id": 5055, "author_prof...
2008/11/06
[ "https://Stackoverflow.com/questions/268182", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5055/" ]
268,184
<p>I have classX: </p> <p>Sub New(ByVal item_line_no As String, ByVal item_text As String)</p> <pre><code> ' check to ensure that the parameters do not exceed the file template limits Select Case item_line_no.Length Case Is &gt; m_item_line_no_capacity Throw New ArgumentOutOfRangeException(...
[ { "answer_id": 268276, "author": "kͩeͣmͮpͥ ͩ", "author_id": 26479, "author_profile": "https://Stackoverflow.com/users/26479", "pm_score": 0, "selected": false, "text": "ExpectedExceptionAttribute <Test()> _\nSub testLineNoExceedsMaxLength()\n Try\n\n Dim it As New X(\"aaaaa\", ...
2008/11/06
[ "https://Stackoverflow.com/questions/268184", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11802/" ]
268,207
<p>As the title says really. I've had a look at inheriting from TextBox, but the only sensible override was "OnKeyDown", but that just gives me a key from the Key enum (with no way to use Char.IsNumeric()).</p>
[ { "answer_id": 2927764, "author": "Nidhal", "author_id": 352729, "author_profile": "https://Stackoverflow.com/users/352729", "pm_score": 3, "selected": false, "text": "private void Numclient_KeyDown(object sender, KeyEventArgs e)\n{\n if (e.Key < Key.D0 || e.Key > Key.D9)\n {\n ...
2008/11/06
[ "https://Stackoverflow.com/questions/268207", "https://Stackoverflow.com", "https://Stackoverflow.com/users/986/" ]
268,208
<p>I have a Windows Service written in Delphi which runs a number of programs. </p> <p>On Stopping the service, I want to also close these programs. When the service was originally written, this worked fine, but I think I've updated the tProcess component and now - The subordinate programs are not being closed. </p> ...
[ { "answer_id": 277086, "author": "Darian Miller", "author_id": 35696, "author_profile": "https://Stackoverflow.com/users/35696", "pm_score": 2, "selected": true, "text": "uses Windows;\n\ninterface \n\nfunction MyTerminateAppEnum(hHwnd:HWND; dwData:LPARAM):Boolean; stdcall;\n\nimplemen...
2008/11/06
[ "https://Stackoverflow.com/questions/268208", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1726/" ]
268,251
<p>I'd like to hear what is the motivation behind the bulk of sealed classes in the .Net framework. What is the benefit of sealing a class? I cannot fathom how not allowing inheritance can be useful and most likely not the only one fighting these classes.</p> <p>So, why is the framework designed this way and wouldn't i...
[ { "answer_id": 44872265, "author": "Ohad Schneider", "author_id": 67824, "author_profile": "https://Stackoverflow.com/users/67824", "pm_score": 4, "selected": false, "text": "sealed class" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/268251", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6846/" ]
268,260
<p>I have a written a Visual C++ console application (i.e. subsystem:console) that prints useful diagnositic messages to the console.</p> <p>However, I would like to keep the application minimized most of the time, and instead of minimizing to the taskbar, appear as a nice icon on the system tray. I would also like to...
[ { "answer_id": 268286, "author": "Tamas Czinege", "author_id": 8954, "author_profile": "https://Stackoverflow.com/users/8954", "pm_score": 5, "selected": true, "text": "hWnd hInstance CoCreateGuid() SetConsoleTitle() hWnd FindWindow()" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/268260", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30333/" ]
268,272
<p>I have a dictionary where keys are strings, and values are integers.</p> <pre><code>stats = {'a': 1, 'b': 3000, 'c': 0} </code></pre> <p>How do I get the key with the maximum value? In this case, it is <code>'b'</code>.</p> <hr /> <p>Is there a nicer approach than using an intermediate list with reversed key-value t...
[ { "answer_id": 268285, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 11, "selected": true, "text": "operator.itemgetter import operator\nstats = {'a': 1000, 'b': 3000, 'c': 100}\nmax(stats.iteritems(), key=operator.itemgetter(...
2008/11/06
[ "https://Stackoverflow.com/questions/268272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34598/" ]
268,277
<p>We want to throw an exception, if a user calls DataContext.SubmitChanges() and the DataContext is not tracking anything.</p> <p>That is... it is OK to call SubmitChanges if there are no inserts, updates or deletes. But we want to ensure that the developer didn't forget to attach the entity to the DataContext.</p> ...
[ { "answer_id": 268472, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 2, "selected": true, "text": "ChangeTracker Services" }, { "answer_id": 736871, "author": "bytebender", "author_id": 86452, "aut...
2008/11/06
[ "https://Stackoverflow.com/questions/268277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8547/" ]
268,289
<p>I have a Nant build script which CruiseControl uses to build a solution on-demand.</p> <p>However, we only recently got CruiseControl so our official build number is different from what is listed in CruiseControl.</p> <p>I know CruiseControl injects some properties into build scripts so that I can access the CC bu...
[ { "answer_id": 269236, "author": "Scott Saad", "author_id": 4916, "author_profile": "https://Stackoverflow.com/users/4916", "pm_score": 4, "selected": true, "text": "/// <summary>\n/// Gets the latest change list number from perforce, for ccnet to consume as a build label.\n/// </summary...
2008/11/06
[ "https://Stackoverflow.com/questions/268289", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18818/" ]
268,296
<p>is there a way to have a mysql select statement return fully qualified column names like "table.field" without using AS for every single field?</p> <p>like so:</p> <pre><code>SELECT * FROM table1 LEFT JOIN table2 on table1.f_ID = table2.ID </code></pre> <p>and the result would be: "table1.ID", "table1.name"...
[ { "answer_id": 2309403, "author": "Mihai Stancu", "author_id": 278509, "author_profile": "https://Stackoverflow.com/users/278509", "pm_score": 1, "selected": false, "text": "SELECT table1.ID, table1.name, table2.ID, table2.name\nFROM table1 \nLEFT JOIN table2 on table1.f_ID = table2.ID\n...
2008/11/06
[ "https://Stackoverflow.com/questions/268296", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1427/" ]
268,321
<p>I am looking for a generic, bidirectional 1 to 1 Dictionary class in C# (2), ie. a <code>BiDictionaryOneToOne&lt;T, S&gt;</code> which is guaranteed to only contain one of each value and key (up to RefEquals anyway), and which can be searched using either key or value. Anyone know of one, or should I just implement ...
[ { "answer_id": 268380, "author": "Tomas Pajonk", "author_id": 4694, "author_profile": "https://Stackoverflow.com/users/4694", "pm_score": 2, "selected": false, "text": "public class Mapper<K,T> : IEnumerable<T>\n\n{\n C5.TreeDictionary<K,T> KToTMap = new TreeDictionary<K,T>();\n C5...
2008/11/06
[ "https://Stackoverflow.com/questions/268321", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6091/" ]
268,322
<p>Why doesn't this work?</p> <pre><code>DECLARE @temp table (ShipNo int, Supplier varchar(10) ) INSERT INTO @temp VALUES (1,'CFA') INSERT INTO @temp VALUES (1, 'TFA') INSERT INTO @temp VALUES (2, 'LRA') INSERT INTO @temp VALUES (2, 'LRB') INSERT INTO @temp VALUES (3, 'ABC') INSERT INTO @temp VALUES (4, 'TFA') Decl...
[ { "answer_id": 268367, "author": "RB.", "author_id": 15393, "author_profile": "https://Stackoverflow.com/users/15393", "pm_score": 1, "selected": false, "text": "CASE\nWHEN Boolean_expression THEN result_expression \n [ ...n ] \n[ \n ELSE else_result_expression \n] \nEND\n" }, ...
2008/11/06
[ "https://Stackoverflow.com/questions/268322", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5055/" ]
268,338
<p>Im trying to craft a regex that only returns <code>&lt;link&gt;</code> tag hrefs</p> <p>Why does this regex return all hrefs including &lt;a hrefs?</p> <pre><code>(?&amp;lt;=&amp;lt;link\s+.*?)href\s*=\s*[\'\&quot;][^\'\&quot;]+ </code></pre> <pre class="lang-html prettyprint-override"><code>&lt;link rel=&quot;style...
[ { "answer_id": 268354, "author": "nickf", "author_id": 9021, "author_profile": "https://Stackoverflow.com/users/9021", "pm_score": 0, "selected": false, "text": "/(?<=<link\\s+.*?)href\\s*=\\s*[\\'\\\"][^\\'\\\"]+[^>]*>/\n /(<link\\s+.*?)href\\s*=\\s*[\\'\\\"][^\\'\\\"]+[^>]*>/\n" }, ...
2008/11/06
[ "https://Stackoverflow.com/questions/268338", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17211/" ]
268,357
<p>I have a couple of dropdown boxes on a normal ASP.Net page.</p> <p>I would like the user to be able to change these and to have the page Pseudo-post back to the server and store these changes without the user having to hit a save button.</p> <p>I don't really need to display anything additional as the dropdown its...
[ { "answer_id": 268673, "author": "Aaron Palmer", "author_id": 24908, "author_profile": "https://Stackoverflow.com/users/24908", "pm_score": 3, "selected": true, "text": "<asp:ScriptManager ID=\"ScriptManager1\" runat=\"server\" />\n<asp:UpdatePanel ID=\"UpdatePanel1\" runat=\"server\">\n...
2008/11/06
[ "https://Stackoverflow.com/questions/268357", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11356/" ]
268,381
<p>I am trying to make a copy of a database to a new database on the same server. The server is my local computer running SQL 2008 Express under Windows XP. Doing this should be quite easy using the SMO.Transfer class and it almost works!</p> <p>My code is as follows (somewhat simplified):</p> <pre><code>Server serv...
[ { "answer_id": 320877, "author": "Rune Grimstad", "author_id": 30366, "author_profile": "https://Stackoverflow.com/users/30366", "pm_score": 5, "selected": true, "text": "ServerConnection conn = new ServerConnection(\"rune\\\\sql2008\");\nServer server = new Server(conn);\n\nDatabase new...
2008/11/06
[ "https://Stackoverflow.com/questions/268381", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30366/" ]
268,384
<p>Why does the PRINT statement in T-SQL seem to only sometimes work? What are the constraints on using it? It seems sometimes if a result set is generated, it becomes a null function, I assumed to prevent corrupting the resultset, but could it's output not go out in another result set, such as the row count?</p>
[ { "answer_id": 2928995, "author": "JimCarden", "author_id": 352896, "author_profile": "https://Stackoverflow.com/users/352896", "pm_score": 5, "selected": false, "text": "RAISERROR ('Your message', 0, 1) WITH NOWAIT\n" }, { "answer_id": 11162818, "author": "WEFX", "author...
2008/11/06
[ "https://Stackoverflow.com/questions/268384", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8741/" ]
268,391
<p>I want to use Visual Studio snippets to generate SQL code, for example we have standard naming conventions for foreign keys etc and it would be great if I could just expand a snippet in my SQL script file. </p> <p>However as far as I can tell the only languages that are supported by the Snippet manager are C#, VB J...
[ { "answer_id": 2928995, "author": "JimCarden", "author_id": 352896, "author_profile": "https://Stackoverflow.com/users/352896", "pm_score": 5, "selected": false, "text": "RAISERROR ('Your message', 0, 1) WITH NOWAIT\n" }, { "answer_id": 11162818, "author": "WEFX", "author...
2008/11/06
[ "https://Stackoverflow.com/questions/268391", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28584/" ]
268,418
<p>I generate a XMLDocument based on a dataset by binding the dataset to the XMLDocument object and then display it to user in vb.net. I have a requirement in which certain tags to contain cdata sections rather than text value. After generating the XMLDocument how to change only certain tag to cdata section and keeping...
[ { "answer_id": 268489, "author": "lakshminb7", "author_id": 3113, "author_profile": "https://Stackoverflow.com/users/3113", "pm_score": 0, "selected": false, "text": "\"<tag><![CDATA[Sample HTML tag <head> ]]> </tag>\"\n" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/268418", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3113/" ]
268,421
<p>Heres a tricky one . .</p> <p>I have a webpage (called PageA) that has a header and then simply includes an iframe. Lets call the page within the iframe PageB. PageB simply has a bunch of thumbnails but there are a lot so you have to scroll down on PageA to view them all. </p> <p>When i scroll down to the bottom...
[ { "answer_id": 624093, "author": "tardate", "author_id": 6329, "author_profile": "https://Stackoverflow.com/users/6329", "pm_score": 4, "selected": true, "text": "<script type=\"text/javascript\">\n function gotop() {\n scroll(0,0);\n } \n</script>\n <iframe id=\"myframe\" \n onl...
2008/11/06
[ "https://Stackoverflow.com/questions/268421", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4653/" ]
268,425
<p>In our code base we have a dependency on the ant version used in eclipse.</p> <p>In the the ant.jar has been set up as a library which the project uses</p> <p>This is a pain when moving versions of eclipse as the Ant plugin folder name changes (although I see it is now just called Ant1.7)</p> <p>Is there a way to...
[ { "answer_id": 322434, "author": "clayless", "author_id": 37989, "author_profile": "https://Stackoverflow.com/users/37989", "pm_score": 0, "selected": false, "text": "<echo> ${ant.home} </echo>\n [echo] D:\\java\\eclipse_3.4_jee\\plugins\\org.apache.ant_1.7.0.v200803061910 \n" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/268425", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15352/" ]
268,426
<p>We're using Microsoft.Practices.CompositeUI.EventBroker to handle event subscription and publication in our application. The way that works is that you add an attribute to your event, specifying a topic name, like this:</p> <pre><code>[EventPublication("example", PublicationScope.Global)] public event EventHandler...
[ { "answer_id": 268486, "author": "kͩeͣmͮpͥ ͩ", "author_id": 26479, "author_profile": "https://Stackoverflow.com/users/26479", "pm_score": 1, "selected": false, "text": "DynamicMethod" }, { "answer_id": 268576, "author": "Bogdan Maxim", "author_id": 23795, "author_prof...
2008/11/06
[ "https://Stackoverflow.com/questions/268426", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15371/" ]
268,429
<p>How to 'group by' a query using an alias, for example:</p> <pre><code>select count(*), (select * from....) as alias_column from table group by alias_column </code></pre> <p>I get 'alias_column' : INVALID_IDENTIFIER error message. Why? How to group this query?</p>
[ { "answer_id": 268447, "author": "Tomalak", "author_id": 18771, "author_profile": "https://Stackoverflow.com/users/18771", "pm_score": 7, "selected": true, "text": "select\n count(count_col),\n alias_column\nfrom\n (\n select \n count_col, \n (select value from....) as alias_co...
2008/11/06
[ "https://Stackoverflow.com/questions/268429", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3221/" ]
268,432
<p>ASP.NET 3.5 SP1 adds a great new ScriptCombining feature to the ScriptManager object as demonstrated on <a href="http://www.asp.net/learn/3.5-SP1/video-296.aspx?wwwaspnetrdirset=1" rel="nofollow noreferrer">this video</a>. However he only demonstrates how to use the feature with the ScriptManager on the same page. I...
[ { "answer_id": 269785, "author": "TonyB", "author_id": 3543, "author_profile": "https://Stackoverflow.com/users/3543", "pm_score": 3, "selected": true, "text": " ScriptReference SRef = new ScriptReference();\n SRef.Path = \"~/Scripts/Script.js\";\n\n\n ScriptManager.GetCurrent(P...
2008/11/06
[ "https://Stackoverflow.com/questions/268432", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2756/" ]
268,444
<p>I'm hoping that someone has found a way of doing this already or that there is a library already in existence. It's one of those things that would be nice but is in no way necessary for the time being.</p> <p>The functionality I'm looking for is something like <a href="http://www.datejs.com/" rel="nofollow noreferr...
[ { "answer_id": 268529, "author": "James Curran", "author_id": 12725, "author_profile": "https://Stackoverflow.com/users/12725", "pm_score": 4, "selected": true, "text": "DateTime.Now.ToString(\"ggyyyy$dd-MMM (dddd)\")\n DateTime.ParseExact()" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/268444", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35047/" ]
268,464
<pre><code>&lt;form id="frm_1" name="frm_1" target="_self" method="GET" action="local_page.php" &gt; &lt;/form&gt; &lt;form id="tgt_1" name="tgt_1" target="_blank" method="POST" action="http://stackoverflow.com/" &gt; &lt;/form&gt; &lt;a onclick="test(event, '1'); " href="#" &gt;Click Here&lt;/a&gt; &lt;script&gt; ...
[ { "answer_id": 268477, "author": "nickf", "author_id": 9021, "author_profile": "https://Stackoverflow.com/users/9021", "pm_score": 1, "selected": false, "text": "<a\n href=\"http://www.google.com\"\n target=\"_blank\"\n onclick=\"document.location.href='http://www.yahoo.com'\"\n...
2008/11/06
[ "https://Stackoverflow.com/questions/268464", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24765/" ]
268,468
<p>I noticed that the ASP.NET cache items are inspected (and possibly removed) every 20 seconds (and oddly enough each time at HH:MM:00, HH:MM:20 and HH:MM:40). I spent about 15 minutes looking how to change this parameter without any success. I also tried to set the following in web.config, but it did not help:</p> <...
[ { "answer_id": 270374, "author": "stevemegson", "author_id": 25028, "author_profile": "https://Stackoverflow.com/users/25028", "pm_score": 5, "selected": true, "text": "CacheExpires _tsPerBucket = new TimeSpan(0, 0, 20);\n _tsPerBucket readonly CacheExpires.EnableExpirationTimer() DateTi...
2008/11/06
[ "https://Stackoverflow.com/questions/268468", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15716/" ]
268,475
<p>Within an article-oriented page (such as a blog post), the <code>&lt;h1&gt;</code> element (level 1 heading) is commonly used to markup either:</p> <ul> <li>the blog title (i.e. the often-large site title at the top of the page, <em>not</em> to the <code>&lt;title&gt;</code> element), or</li> <li>the article title<...
[ { "answer_id": 268506, "author": "xsl", "author_id": 11387, "author_profile": "https://Stackoverflow.com/users/11387", "pm_score": 6, "selected": true, "text": "<h1> <h1>Dogs</h1>" }, { "answer_id": 268519, "author": "Mecki", "author_id": 15809, "author_profile": "htt...
2008/11/06
[ "https://Stackoverflow.com/questions/268475", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5343/" ]
268,476
<p>Take a very simple case as an example, say I have this URL:</p> <pre><code>http://www.example.com/65167.html </code></pre> <p>and I wish to serve that content under:</p> <pre><code>http://www.example.com/about </code></pre> <p><strong>UPDATE</strong>: Note that the 'bad' URL is the canonical one (it's produced b...
[ { "answer_id": 268487, "author": "Ignacio Vazquez-Abrams", "author_id": 20862, "author_profile": "https://Stackoverflow.com/users/20862", "pm_score": 3, "selected": true, "text": "RewriteEngine on\nRewriteRule ^/about$ /65167.html [L]\n" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/268476", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5058/" ]
268,483
<p>I'm currently in the process of writing a wizard and want to make each page validate before moving onto the next page.</p> <p>I want to prevent the user from progressing by calling the Validate() method on every child control on the page and and stopping navigation if any of them fail.</p> <p>The problem is that t...
[ { "answer_id": 268514, "author": "Jamey McElveen", "author_id": 30099, "author_profile": "https://Stackoverflow.com/users/30099", "pm_score": 1, "selected": false, "text": "this.Validate(\"GroupName\") Validate()" }, { "answer_id": 2136871, "author": "Eric Smith", "author...
2008/11/06
[ "https://Stackoverflow.com/questions/268483", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4019/" ]
268,490
<p>I'm refactoring some old JavaScript code and there's a lot of DOM manipulation going on.</p> <pre><code>var d = document; var odv = d.createElement("div"); odv.style.display = "none"; this.OuterDiv = odv; var t = d.createElement("table"); t.cellSpacing = 0; t.className = "text"; odv.appendChild(t); </code></pre> ...
[ { "answer_id": 268507, "author": "Adam Bellaire", "author_id": 21632, "author_profile": "https://Stackoverflow.com/users/21632", "pm_score": 7, "selected": false, "text": "$() append() var t = $(\"<table cellspacing='0' class='text'></table>\");\n$.append(t);\n createElement cellSpacing ...
2008/11/06
[ "https://Stackoverflow.com/questions/268490", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4950/" ]
268,496
<p>The default output from Drupal's Form API is:</p> <pre><code>&lt;input id="edit-submit" class="form-submit" type="submit" value="Save" name="op"/&gt; </code></pre> <p>How do I theme that so I get:</p> <pre><code>&lt;button id="edit-submit" class="form-submit" type="submit"&gt; &lt;span&gt;Save&lt;/span&gt; &lt;...
[ { "answer_id": 271635, "author": "larssg", "author_id": 3842, "author_profile": "https://Stackoverflow.com/users/3842", "pm_score": 2, "selected": false, "text": "function mytheme_button($element) {\n return \"<button><span></span></button>\"; # lots of code missing here for clarity\n}\...
2008/11/06
[ "https://Stackoverflow.com/questions/268496", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3842/" ]
268,497
<p>The <a href="https://stackoverflow.com/questions/19235/agile-architectures">Agile architecture question</a> makes me wonder this. </p> <p>Does it depends of what is being build ? Do applications (I mean single computing program here) have an architecture ? </p> <p>UPDATE: to try to clarify the question, I'...
[ { "answer_id": 268512, "author": "VonC", "author_id": 6309, "author_profile": "https://Stackoverflow.com/users/6309", "pm_score": 2, "selected": false, "text": "In my experience, about $30k. \n I would say that \"design\" is what is done to achieve an architecture\n" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/268497", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18804/" ]
268,499
<p>I can use an bitmap in a menu</p> <pre><code>CMenu men; CBitmap b; b.LoadBitmap(IDB_0); men.AppendMenu( MF_ENABLED,1,&amp;b); </code></pre> <p>I can draw an icon into a DC</p> <pre><code> CImageList IL; IL.Create(70, 14, ILC_COLOR16 | ILC_MASK, 1, 0); IL.Add(AfxGetApp()-&gt;LoadIcon(IDI_0)); IL.Draw ( pDC...
[ { "answer_id": 269027, "author": "DavidK", "author_id": 31394, "author_profile": "https://Stackoverflow.com/users/31394", "pm_score": -1, "selected": false, "text": "MENUITEMINFO mii;\nmii.cbSize = sizeof mii;\nmii.fMask = MIIM_BITMAP;\nmii.hbmpItem = bitmapHandle;\nmenu.SetMenuItemInfo(...
2008/11/06
[ "https://Stackoverflow.com/questions/268499", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16582/" ]
268,501
<p>On a Windows 2003 server I have a pure .NET 3.5 <code>C#</code> app (no unmanaged code). It connects to various other remote systems via sockets and acts like a data hub. It runs for 10-15 hours fine with no problem but from time to time it just disappears. If I watch the app using task manager the memory usage rema...
[ { "answer_id": 268511, "author": "kͩeͣmͮpͥ ͩ", "author_id": 26479, "author_profile": "https://Stackoverflow.com/users/26479", "pm_score": 0, "selected": false, "text": "Application.ThreadException" }, { "answer_id": 268616, "author": "HTTP 410", "author_id": 13118, "a...
2008/11/06
[ "https://Stackoverflow.com/questions/268501", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35055/" ]
268,513
<p>Is there an efficient way to take a subset of a C# array and pass it to another peice of code (without modifying the original array)? I use CUDA.net which has a function which copies an array to the GPU. I would like to e.g. pass the function a 10th of the array and thus copy each 10th of the array to the GPU sepera...
[ { "answer_id": 268551, "author": "Eoin Campbell", "author_id": 30155, "author_profile": "https://Stackoverflow.com/users/30155", "pm_score": 2, "selected": false, "text": "int[] myInts = new int[100];\n\n//Code to populate original arrray\n\nfor (int i = 0; i < myInts.Length; i += 10)\n{...
2008/11/06
[ "https://Stackoverflow.com/questions/268513", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4055/" ]
268,526
<p>A site I am working on that is built using PHP is sometimes showing a completely blank page. There are no error messages on the client or on the server. The same page may display sometimes but not others. All pages are working fine in IE7, Firefox 3, Safari and Opera. All pages are XHTML with this meta element:</p> ...
[ { "answer_id": 268571, "author": "DOK", "author_id": 27637, "author_profile": "https://Stackoverflow.com/users/27637", "pm_score": 0, "selected": false, "text": "<script language=\"javascript\"> // no closing tag\nalert('hello world');\n<body>\nhello world\n</body>\n <div> <script> </...
2008/11/06
[ "https://Stackoverflow.com/questions/268526", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18333/" ]
268,543
<p>I have an application with a main form. In this form I have placed three TActionMainMenuBars, because the application essentially runs in three different modes. </p> <p>The menu bars are all constructed from actions stored(proxied) in an TActionManager on the main form. The ActionManager actually references actionl...
[ { "answer_id": 821813, "author": "NineBerry", "author_id": 101087, "author_profile": "https://Stackoverflow.com/users/101087", "pm_score": 2, "selected": false, "text": " if CheckBox1.Checked then\n begin\n Action1.Enabled:= False;\n Action2.Enabled:= True;\n end\n else\n begi...
2008/11/06
[ "https://Stackoverflow.com/questions/268543", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
268,548
<p>I use CruiseControl.NET to automatically build my .NET 3.5 web applications, which works a treat. However, is there any way to automatically create a ZIP file of these builds, and put the ZIP's into a separate directory?</p> <p>I have seen this is possible using NAnt but cannot find an example of how to get this w...
[ { "answer_id": 268635, "author": "domruf", "author_id": 7029, "author_profile": "https://Stackoverflow.com/users/7029", "pm_score": 0, "selected": false, "text": "<target name=\"zipProject\">\n <mkdir dir=\"output\"/>\n <zip destfile=\"output\\sources.zip\" basedir=\"C:\\project\\src...
2008/11/06
[ "https://Stackoverflow.com/questions/268548", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35064/" ]
268,553
<p>I've just come across a property setter that catches exceptions (all Exceptions; I know that's bad, but it's not relevant here), and <em>only</em> logs them. First of all, I think it should through them again as well; why wait for a crash and a log study when you can know something is wrong right away?</p> <p>Howe...
[ { "answer_id": 268573, "author": "Andrew Bullock", "author_id": 28543, "author_profile": "https://Stackoverflow.com/users/28543", "pm_score": 0, "selected": false, "text": "if(Page.IsValid)\n" } ]
2008/11/06
[ "https://Stackoverflow.com/questions/268553", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8741/" ]
268,574
<p>What good ruby gem sources would you recommend, besides <a href="http://gems.rubyforge.org/" rel="noreferrer">http://gems.rubyforge.org/</a> and <a href="http://gems.github.com/" rel="noreferrer">http://gems.github.com/</a>? It seems that RubyForge is missing most of the gems I look for these days...</p>
[ { "answer_id": 268764, "author": "Pistos", "author_id": 28558, "author_profile": "https://Stackoverflow.com/users/28558", "pm_score": 4, "selected": false, "text": "gem sources -a http://gems.github.com\ngem install person-gemname\n gem install person-gemname --source http://gems.github....
2008/11/06
[ "https://Stackoverflow.com/questions/268574", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7202/" ]
268,584
<p>Is there any way to catch all syscalls on Linux? The only solution I know of is using LD_PRELOAD à la <a href="http://packages.qa.debian.org/f/fakeroot.html" rel="nofollow noreferrer">fakeroot</a>, but that only works for dynamically linked applications. Furthermore, this approach requires enumerating all syscalls w...
[ { "answer_id": 268611, "author": "C. K. Young", "author_id": 13, "author_profile": "https://Stackoverflow.com/users/13", "pm_score": 0, "selected": false, "text": "strace LD_PRELOAD" }, { "answer_id": 268636, "author": "Alex B", "author_id": 23643, "author_profile": "...
2008/11/06
[ "https://Stackoverflow.com/questions/268584", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35070/" ]
268,587
<pre><code> class C { T a; public: C(T a): a(a) {;} }; </code></pre> <p>Is it legal?</p>
[ { "answer_id": 268591, "author": "Brian R. Bondy", "author_id": 3153, "author_profile": "https://Stackoverflow.com/users/3153", "pm_score": 7, "selected": true, "text": "class A\n{\n\n A(int a)\n : a(5)//<--- try to initialize a non member variable to 5\n {\n }\n};\n class A\n{...
2008/11/06
[ "https://Stackoverflow.com/questions/268587", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12151/" ]
268,588
<p>I'm trying to get a specific asp:button onclick event to fire when I press the enter key in a specific asp:textbox control.</p> <p>The other factor to be taken into account is that the button is within a asp:Login control template.</p> <p>I've no idea how to do this, suggestions on a postcard please.</p>
[ { "answer_id": 268612, "author": "Andrew Bullock", "author_id": 28543, "author_profile": "https://Stackoverflow.com/users/28543", "pm_score": 0, "selected": false, "text": "$('#myTextBox').keypress(function(e){\n if(e.which == 13)\n $('#myBtn').click();\n});\n" }, { "an...
2008/11/06
[ "https://Stackoverflow.com/questions/268588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11508/" ]