qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
214,441 | <p>I would like to show a set of consecutive numbers in a UIPickerView component but have it wrap around like the seconds component of the Clock->Timer application. The only behavior I can enable looks like the hours component of the Timer application, where you can scroll in only one direction.</p>
| [
{
"answer_id": 221955,
"author": "David",
"author_id": 28275,
"author_profile": "https://Stackoverflow.com/users/28275",
"pm_score": 5,
"selected": false,
"text": "return [rows objectAtIndex:(row % [rows count])];\n //we want the selection to always be in the SECOND set (so that it looks... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28275/"
] |
214,491 | <p>I'm working with a JavaScript API where most of the functions are asynchronous. The API is the <a href="http://webkit.org/blog/126/webkit-does-html5-client-side-database-storage/" rel="noreferrer">WebKit JavaScript Database API</a> which is a binding to a subset of functionality to manipulate SQLite3 databases. I ... | [
{
"answer_id": 214973,
"author": "johnstok",
"author_id": 27929,
"author_profile": "https://Stackoverflow.com/users/27929",
"pm_score": 1,
"selected": false,
"text": "callA(function(resultA) {\n callB(resultA, function(resultB) {\n callC(); //etc.\n });\n});\n callStack = [\... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29148/"
] |
214,500 | <p>LINQ is one of the greatest improvements to .NET since generics and it saves me tons of time, and lines of code. However, the fluent syntax seems to come much more natural to me than the query expression syntax.</p>
<pre><code>var title = entries.Where(e => e.Approved)
.OrderBy(e => e.Rating).Select(e =&... | [
{
"answer_id": 214610,
"author": "Jay Bazuzi",
"author_id": 5314,
"author_profile": "https://Stackoverflow.com/users/5314",
"pm_score": 6,
"selected": false,
"text": "var titlesQuery = from e in entries\n where e.Approved\n orderby e.Rating\n ... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16340/"
] |
214,517 | <p>The following Perl statements behave identically on Unixish machines. Do they behave differently on Windows? If yes, is it because of the magic \n?</p>
<pre><code> split m/\015\012/ms, $http_msg;
split m/\015\012/s, $http_msg;
</code></pre>
<p>I got a <a href="http://www.nntp.perl.org/group/perl.cpan.testers/... | [
{
"answer_id": 214800,
"author": "bart",
"author_id": 19966,
"author_profile": "https://Stackoverflow.com/users/19966",
"pm_score": 5,
"selected": true,
"text": "m/\\015\\012/ms\nm/\\015\\012/s\n . \\n . ^ $ \\n ^ $ \\r \\015 \\015 /\\015?\\012/\n m//"
},
{
"answer_id": 215256,
... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14783/"
] |
214,536 | <p>What are some good templating engines for web designers? I definitely have my preferences as to what I'd prefer to work with as a programmer. But web designers seem to have a different way of thinking about things and thus may prefer a different system.</p>
<p>So:</p>
<ul>
<li>Web designers: what templating eng... | [
{
"answer_id": 214932,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 4,
"selected": true,
"text": "${...}"
},
{
"answer_id": 214956,
"author": "nosklo",
"author_id": 17160,
"author_profile": "https://Sta... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2147/"
] |
214,537 | <p>I just moved a project to the the beta release of <code>ASP.net MVC</code> framework and the only problem I am having is with <code>jQuery</code> and <code>jQueryUI</code>. </p>
<p>Here's the deal:</p>
<p>In <code>Site.Master</code> are the following script references:</p>
<pre><code><script src="../../Scripts... | [
{
"answer_id": 215395,
"author": "Adhip Gupta",
"author_id": 384,
"author_profile": "https://Stackoverflow.com/users/384",
"pm_score": 0,
"selected": false,
"text": "background: url(images/foo.gif)\n background: url(foo.gif)\n"
},
{
"answer_id": 656066,
"author": "chris",
... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13139/"
] |
214,549 | <p>On the Python side, I can create new numpy record arrays as follows:</p>
<pre><code>numpy.zeros((3,), dtype=[('a', 'i4'), ('b', 'U5')])
</code></pre>
<p>How do I do the same from a C program? I suppose I have to call <code>PyArray_SimpleNewFromDescr(nd, dims, descr)</code>, but how do I construct a <code>PyArray_... | [
{
"answer_id": 214574,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 3,
"selected": false,
"text": "[('a', 'i4'), ('b', 'U5')]"
},
{
"answer_id": 215090,
"author": "Vebjorn Ljosa",
"author_id": 17498,... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17498/"
] |
214,553 | <p>When I enable common control visual style support (InitCommonControls()) and I am using any theme other then Windows Classic Theme, buttons inside a group box appear with a black border with square corners. </p>
<p>Windows Classic Theme appears normal, as well as when I turn off visual styling.</p>
<p>I am using t... | [
{
"answer_id": 214685,
"author": "SmacL",
"author_id": 22564,
"author_profile": "https://Stackoverflow.com/users/22564",
"pm_score": 1,
"selected": false,
"text": "WS_EX_STATICEDGE, WS_EX_WINDOWEDGE and WS_EX_CLIENTEDGE"
},
{
"answer_id": 296594,
"author": "efotinis",
"au... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2067/"
] |
214,568 | <p>Is there a good way to add a .swf programatically to a panel on an asp.net page - ie: I know i could just insert the html tags:</p>
<p>ie: </p>
<pre><code><object type="application/x-shockwave-flash" data="yourflash.swf" width="" height="">
<param name="movie" value="yourflash.swf">
</object>
</c... | [
{
"answer_id": 214685,
"author": "SmacL",
"author_id": 22564,
"author_profile": "https://Stackoverflow.com/users/22564",
"pm_score": 1,
"selected": false,
"text": "WS_EX_STATICEDGE, WS_EX_WINDOWEDGE and WS_EX_CLIENTEDGE"
},
{
"answer_id": 296594,
"author": "efotinis",
"au... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214568",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26685/"
] |
214,583 | <p>In the default asp.net mvc project, in the Site.Master file, there is a menu navigation list:</p>
<pre><code><div id="menucontainer">
<ul id="menu">
<li><%= Html.ActionLink("Home", "Index", "Home")%></li>
<li><%= Html.ActionLink("About Us", "A... | [
{
"answer_id": 215385,
"author": "Jason Whitehorn",
"author_id": 27860,
"author_profile": "https://Stackoverflow.com/users/27860",
"pm_score": 0,
"selected": false,
"text": "public ActionResult Index(){\n ViewData[\"currentAction\"] = \"Index\";\n //... other code\n return Vie... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214583",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29092/"
] |
214,590 | <p>I'm looking for something that will let me parse Atom and RSS in Ruby and Rails. I've looked at the standard RSS library, but is there one library that will auto-detect whatever type of feed it is and parse it for me?</p>
| [
{
"answer_id": 214611,
"author": "Pistos",
"author_id": 28558,
"author_profile": "https://Stackoverflow.com/users/28558",
"pm_score": 4,
"selected": false,
"text": "require 'simple-rss'\nrequire 'open-uri'\nrss = SimpleRSS.parse open('http://slashdot.org/index.rdf')\nrss.channel.title # ... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214590",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4322/"
] |
214,622 | <p>I have a webservice, which takes java.lang.object objects as parameters (because at runtime only know hte type of object)...after doing process, reply response setting java.lang.Object to it.</p>
<p>I am able to send the reuest objects to webservice from calling program, but getting NotSerializable exception while ... | [
{
"answer_id": 214813,
"author": "myplacedk",
"author_id": 28683,
"author_profile": "https://Stackoverflow.com/users/28683",
"pm_score": 1,
"selected": false,
"text": "private void writeObject(java.io.ObjectOutputStream out) throws IOException;\nprivate void readObject(java.io.ObjectInpu... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
214,640 | <p>It's just so much <code>HRESULT E_FAIL</code>, if you know what I'm talking about. </p>
<p>And if you use Visual Studio, you know what I'm talking about.</p>
<p>Similar thread, but not a duplicate: <a href="https://stackoverflow.com/questions/196001/is-the-design-view-for-aspx-pages-in-visual-studio-useful">Is th... | [
{
"answer_id": 3284130,
"author": "ItsPronounced",
"author_id": 355754,
"author_profile": "https://Stackoverflow.com/users/355754",
"pm_score": -1,
"selected": false,
"text": "masterpages web.config <location path=\"MasterPage\">\n<system.web>\n <authorization>\n <allow users=\"?\" /... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13578/"
] |
214,642 | <p>I know it's by design that you can't control what happens when an object is destroyed. I am also aware of defining some class method as a finalizer.</p>
<p>However is the ruby idiom for C++'s RAII (Resources are initialized in constructor, closed in destructor)? How do people manage resources used inside objects ... | [
{
"answer_id": 214648,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": -1,
"selected": false,
"text": "ensure f = File.open(\"testfile\")\nbegin\n # .. process\nrescue\n # .. handle error\nensure\n f.close unless f.ni... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26374/"
] |
214,644 | <p>I have two windows services running on the same machine. Both the services uses</p>
<p>private HttpListener listener;</p>
<p>I specify the baseURL as "<a href="http://IPAddress:8080/" rel="noreferrer">http://IPAddress:8080/</a>" & "<a href="http://IPAddress:8081/" rel="noreferrer">http://IPAddress:8081/</a>" r... | [
{
"answer_id": 214754,
"author": "s3v1",
"author_id": 17554,
"author_profile": "https://Stackoverflow.com/users/17554",
"pm_score": 2,
"selected": false,
"text": "String[] prefixes = { \"http://localhost:8280/\", \"http://localhost:8281/\"};\n\nHttpListener listener = new HttpListener();... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
214,645 | <p>Is there a clever way of adding XML serialization instructions without modifying the serialized class?</p>
<p>I don’t like the default serialization and I can’t modify the class. I was considering inheriting the class, and using Shadows (VB.NET) to re-implement the properties (with the serialization instructions), ... | [
{
"answer_id": 214673,
"author": "benPearce",
"author_id": 4490,
"author_profile": "https://Stackoverflow.com/users/4490",
"pm_score": 0,
"selected": false,
"text": "PropertyInfo[] properties = control.GetType().GetProperties();\nforeach (PropertyInfo property in properties)\n{\n object... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10932/"
] |
214,661 | <p>Essentially what I want is a BlockingQueue of size=1. I have a "listener" thread that simply waits, blocking until an object is put into the queue, and then retrieves it--and a "producer" thread that actually puts the object into the queue.</p>
<p>I can implement this with some synchronized blocks and a BlockingQue... | [
{
"answer_id": 214673,
"author": "benPearce",
"author_id": 4490,
"author_profile": "https://Stackoverflow.com/users/4490",
"pm_score": 0,
"selected": false,
"text": "PropertyInfo[] properties = control.GetType().GetProperties();\nforeach (PropertyInfo property in properties)\n{\n object... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29173/"
] |
214,688 | <p>Apparently, they're "confusing". Is that seriously the reason? Can you think of any others?</p>
| [
{
"answer_id": 215371,
"author": "Cristian Libardo",
"author_id": 16526,
"author_profile": "https://Stackoverflow.com/users/16526",
"pm_score": -1,
"selected": false,
"text": "int myValue;\nReadFromSomewhere(ref myValue);\n int myValue = ReadFromSomewhere();\n"
},
{
"answer_id": ... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214688",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18658/"
] |
214,700 | <p>In the following case I'm calling a <code>Func</code> with pointer passed to it, but in the called function, the parameter shows the pointer value as something totally bogus. Something like below.</p>
<pre><code>bool flag = Func(pfspara);--> pfspara = 0x0091d910
bool Func(PFSPARA pfspara) --> pfspara = 0x00... | [
{
"answer_id": 214711,
"author": "Rasmus Faber",
"author_id": 5542,
"author_profile": "https://Stackoverflow.com/users/5542",
"pm_score": 3,
"selected": false,
"text": "bool Func(PFSPARA pfspara)\n{\n printf(\"%x\\n\", pfspara);\n return false;\n}\n"
}
] | 2008/10/18 | [
"https://Stackoverflow.com/questions/214700",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13432/"
] |
214,714 | <p>I'm trying to get my head around mutable vs immutable objects. Using mutable objects gets a lot of bad press (e.g. returning an array of strings from a method) but I'm having trouble understanding what the negative impacts are of this. What are the best practices around using mutable objects? Should you avoid them w... | [
{
"answer_id": 214718,
"author": "Daniel Spiewak",
"author_id": 9815,
"author_profile": "https://Stackoverflow.com/users/9815",
"pm_score": 9,
"selected": true,
"text": "Person equals Map<Person, String> map = ...\nPerson p = new Person();\nmap.put(p, \"Hey, there!\");\n\np.setName(\"Dan... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6651/"
] |
214,722 | <p>I'm using the contentEditable attribute on a DIV element in Firefox 3.03. Setting it to true allows me to edit the text content of the DIV, as expected.</p>
<p>Then, when I set contentEditable to "false", the div is no longer editable, also as expected. </p>
<p>However the flashing caret (text input cursor) rema... | [
{
"answer_id": 215170,
"author": "Borgar",
"author_id": 27388,
"author_profile": "https://Stackoverflow.com/users/27388",
"pm_score": 4,
"selected": true,
"text": "if ($.browser.mozilla) { // replace with browser detection of your choice\n window.getSelection().removeAllRanges();\n}\n i... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214722",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5023/"
] |
214,730 | <p>I'm creating a gem which has</p>
<ul>
<li>several scripts in the bin directory</li>
<li>the utility classes in the lib directory</li>
<li>and several tests in the test directory</li>
</ul>
<pre>
supertool
bin
toolA
toolB
lib
supertool
supertool.rb
helper.rb
test
tc_main.rb
tc_etc.rb
</p... | [
{
"answer_id": 259783,
"author": "Orion Edwards",
"author_id": 234,
"author_profile": "https://Stackoverflow.com/users/234",
"pm_score": 3,
"selected": true,
"text": "ruby tc_main.rb ruby test/tc_main.rb test_helper.rb $LOAD_PATH << File.expand_path( File.dirname(__FILE__) + '/../lib' )\... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26374/"
] |
214,741 | <p>What is a <code>StackOverflowError</code>, what causes it, and how should I deal with them?</p>
| [
{
"answer_id": 214756,
"author": "Khoth",
"author_id": 20686,
"author_profile": "https://Stackoverflow.com/users/20686",
"pm_score": 6,
"selected": false,
"text": "int foo()\n{\n // more stuff\n foo();\n}\n"
},
{
"answer_id": 11531095,
"author": "Vikram",
"author_id... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29182/"
] |
214,746 | <p>I am writing an .NET wrapper API for the Netflix API.</p>
<p>At this point I can choose to represent URLs as either strings or URI objects. Seems to me there is a good case for both.</p>
<p>So if you were using an API, which would you prefer?</p>
| [
{
"answer_id": 214801,
"author": "Domenic",
"author_id": 3191,
"author_profile": "https://Stackoverflow.com/users/3191",
"pm_score": 0,
"selected": false,
"text": "string Uri UriFormatException Uri"
}
] | 2008/10/18 | [
"https://Stackoverflow.com/questions/214746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5274/"
] |
214,748 | <p>Please bear with me here, I'm a student and new to Java Server Pages.
If I'm being a complete idiot, can someone give me a good link to a tutorial on JSP, since I've been unable to find info on this anywhere. </p>
<p>Okay, here goes... </p>
<p>I'm using Netbeans and trying to pass an object that connects to a dat... | [
{
"answer_id": 214835,
"author": "extraneon",
"author_id": 24582,
"author_profile": "https://Stackoverflow.com/users/24582",
"pm_score": 3,
"selected": true,
"text": "public class FooRepo {\n public static Foo getFoo(Long id) {\n // Read resultSet into foo\n }\n }\n Foo = Foo... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25280/"
] |
214,764 | <p>In my Java development I have had great benefit from the <a href="http://en.wikipedia.org/wiki/JAD_%28JAva_Decompiler%29" rel="noreferrer">Jad/JadClipse</a> decompiler. It made it possible to <em>know</em> why a third-party library failed rather than the usual guesswork.</p>
<p>I am looking for a similar setup for ... | [
{
"answer_id": 214784,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 1,
"selected": false,
"text": "bin"
},
{
"answer_id": 214788,
"author": "splattne",
"author_id": 6461,
"author_profile": "https:... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214764",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24610/"
] |
214,777 | <p>For example, I'm trying to convert 2008-09-26T01:51:42.000Z to 09/26/2008. What's the simplest way of accomplishing this?</p>
| [
{
"answer_id": 214786,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 5,
"selected": false,
"text": ">>> import time\n>>> timestamp = \"2008-09-26T01:51:42.000Z\"\n>>> ts = time.strptime(timestamp[:19], \"%Y-%m-%dT%H:%M:%S... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10708/"
] |
214,825 | <p>My colleague insists on explicitly specifying the namespace in code as opposed to using the <a href="http://msdn.microsoft.com/en-us/library/sf0df423.aspx" rel="noreferrer">using directive</a>. In other words he wants to use the fully qualified name for each type every time this type occurs in code. Something like <... | [
{
"answer_id": 214827,
"author": "gimel",
"author_id": 6491,
"author_profile": "https://Stackoverflow.com/users/6491",
"pm_score": 0,
"selected": false,
"text": "Law of Demeter jQuery JavaScript"
},
{
"answer_id": 214828,
"author": "Jesper Blad Jensen",
"author_id": 11559... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214825",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28722/"
] |
214,843 | <p>I have two projects in CPP. One defines a function which I'd like to invoke from the other.
I added a reference to the first project.
I still get the message of "identifier not found".
Assuming that the CPP file in the first project doesn't have a header, how do I make the second project know about its functions?</p... | [
{
"answer_id": 214846,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 1,
"selected": false,
"text": "extern extern function_in_first_project(int args_go_here);\n"
},
{
"answer_id": 216307,
"author": "Nathan Fel... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
214,850 | <p>What is the best solution to sanitize output HTML in Rails (to avoid XSS attacks)?</p>
<p>I have two options: white_list plugin or sanitize method from Sanitize Helper <a href="http://api.rubyonrails.com/classes/ActionView/Helpers/SanitizeHelper.html" rel="nofollow noreferrer">http://api.rubyonrails.com/classes/Act... | [
{
"answer_id": 237778,
"author": "derfred",
"author_id": 10286,
"author_profile": "https://Stackoverflow.com/users/10286",
"pm_score": 2,
"selected": true,
"text": "<%= h @user.profile %>\n"
},
{
"answer_id": 239336,
"author": "Gareth",
"author_id": 31582,
"author_pro... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18642/"
] |
214,852 | <p>Is there a way to make a python module load a dll in my application directory rather than the version that came with the python installation, without making changes to the python installation (which would then require I made an installer, and be careful I didn't break other apps for people by overwrting python modul... | [
{
"answer_id": 214855,
"author": "André",
"author_id": 9683,
"author_profile": "https://Stackoverflow.com/users/9683",
"pm_score": 0,
"selected": false,
"text": "PYTHONPATH"
},
{
"answer_id": 214868,
"author": "Glyph",
"author_id": 13564,
"author_profile": "https://St... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6266/"
] |
214,862 | <p>I have an Internet Explorer only web application.</p>
<p>I'm exploring what we can do to automate the testing. </p>
<p>Selenium looks like a good tool, but to be able to activate links etc. I need to tell it where they are. The application wasn't built with this kind of testing in mind, so there generally aren't <... | [
{
"answer_id": 215091,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "https://Stackoverflow.com/users/15459",
"pm_score": 4,
"selected": true,
"text": "function getNode(node)\n{\n var nodeExpr = node.tagName;\n if (nodeExpr == null) // Eg. node = #text\n return null;\n ... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21755/"
] |
214,881 | <p>Can you add new statements (like <code>print</code>, <code>raise</code>, <code>with</code>) to Python's syntax?</p>
<p>Say, to allow..</p>
<pre><code>mystatement "Something"
</code></pre>
<p>Or,</p>
<pre><code>new_if True:
print "example"
</code></pre>
<p>Not so much if you <em>should</em>, but rather if it... | [
{
"answer_id": 215042,
"author": "dbr",
"author_id": 745,
"author_profile": "https://Stackoverflow.com/users/745",
"pm_score": 2,
"selected": false,
"text": "Python/ast.c"
},
{
"answer_id": 215697,
"author": "Brian",
"author_id": 9493,
"author_profile": "https://Stack... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/745/"
] |
214,884 | <p>I have a class on which I want to allow several (~20+) configuration options.
Each option turns on or off a piece of functionality, or otherwise alters operations.
To facilitate this, I coded a separate options class with default values. However, I had to litter my code with guard conditions to determine how methods... | [
{
"answer_id": 214949,
"author": "extraneon",
"author_id": 24582,
"author_profile": "https://Stackoverflow.com/users/24582",
"pm_score": 0,
"selected": false,
"text": " public class MyClass {\n\n interface Command {\n void execute(int a);\n }\n\n static class DoThisSimpleCommand im... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14484/"
] |
214,886 | <p>I want to keep my website/s in version control (Subversion specifically) and use <code>svn co</code> to update it when there are stable versions to update, but I'm concerned about the security of doing so, as all the <code>.svn</code> folders will be public, and these include all sorts of private data, not least of ... | [
{
"answer_id": 214887,
"author": "Matthew Scharley",
"author_id": 15537,
"author_profile": "https://Stackoverflow.com/users/15537",
"pm_score": 3,
"selected": false,
"text": ".htaccess RewriteEngine On\nRewriteRule /\\.svn /some-non-existant-404-causing-page\n\n<IfModule autoindex_module... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15537/"
] |
214,891 | <p>Please write a list of tasks that a copy constructor and assignment operator need to do in C++ to keep exception safety, avoid memory leaks etc. </p>
| [
{
"answer_id": 214925,
"author": "Nazgob",
"author_id": 3579,
"author_profile": "https://Stackoverflow.com/users/3579",
"pm_score": -1,
"selected": false,
"text": "Array(const Array& rhs)\n {\n mData = NULL;\n mSize = rhs.size();\n *this = rhs;\n }\n\n Array... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1640962/"
] |
214,899 | <p>Is it possible, with Javascript or some other technology to determine which hyperlink a user has clicked on, without changing the hyperlink source code.</p>
<p>For example:
Can you click on a 'tag' button, then click on a hyperlink hosted in a different iframe, and be able to calculate which hyperlink the user clic... | [
{
"answer_id": 214962,
"author": "bobince",
"author_id": 18936,
"author_profile": "https://Stackoverflow.com/users/18936",
"pm_score": 0,
"selected": false,
"text": "<iframe id=\"framedpage\" src=\"framedpage.html\"></iframe>\n<button type=\"button\" id=\"tagbutton\">Tag</button>\n<scrip... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13911/"
] |
214,903 | <p>I have a small command line program that uses the Team System API. When the correct Team System isn't installed on the machine, the program prints a traceback with System.IO.FileNotFoundException, but it also <strong>crashes</strong> and shows the standard error messasge:</p>
<blockquote>
<p>XXX has encountered a... | [
{
"answer_id": 214921,
"author": "Joe",
"author_id": 13087,
"author_profile": "https://Stackoverflow.com/users/13087",
"pm_score": 0,
"selected": false,
"text": "public class Program\n{\n static void Main()\n {\n try\n {\n WrapperClass.CallApi(...);\n ... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214903",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15109/"
] |
214,913 | <p>I can enumerate many features of functional programming, but when my friend asked me Could you define functional programming for me? I couldn't.</p>
| [
{
"answer_id": 215057,
"author": "Cervo",
"author_id": 16219,
"author_profile": "https://Stackoverflow.com/users/16219",
"pm_score": -1,
"selected": false,
"text": "list is some list of items\nOutList is some empty list\nforeach item in list\n OutList.append(function(item))\nreturn O... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11439/"
] |
214,915 | <p>I'm trying to assign application pool to one web site in IIS7 using vb script:</p>
<pre><code>' Connect to the WMI WebAdministration namespace.'
Set oWebAdmin = GetObject("winmgmts:root\WebAdministration")
' Retrieve the application and display its Web site name and path.'
Set oApp = oWebAdmin.Get("Application.Sit... | [
{
"answer_id": 214935,
"author": "Jim Fiorato",
"author_id": 650,
"author_profile": "https://Stackoverflow.com/users/650",
"pm_score": 1,
"selected": false,
"text": "Set oWebAdmin = GetObject(\"winmgmts:root\\WebAdministration\")\nSet oSite = oWebAdmin.Get(\"Site.Name='Site'\")\noSite.Ap... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
214,927 | <p>When using C++ namespaces, do you prefer to explicitly name them, like this:</p>
<pre><code>std::cout << "Hello, world!\n";
</code></pre>
<p>Or do you prefer <code>using namespace</code>:</p>
<pre><code>using namespace std;
cout << "Hello, world!\n";
</code></pre>
<p>And if if you prefer the latter, ... | [
{
"answer_id": 214933,
"author": "Ferruccio",
"author_id": 4086,
"author_profile": "https://Stackoverflow.com/users/4086",
"pm_score": 5,
"selected": true,
"text": "using namespace using namespace"
},
{
"answer_id": 214961,
"author": "Konrad Rudolph",
"author_id": 1968,
... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9236/"
] |
214,998 | <p>How to dynamically bind data to <code><%Html.Dropdownlist....</code> in ASP.NET MVC?</p>
| [
{
"answer_id": 215023,
"author": "hangy",
"author_id": 11963,
"author_profile": "https://Stackoverflow.com/users/11963",
"pm_score": 4,
"selected": false,
"text": "<%= Html.DropDownList(string.Empty, \n \"myDropDownList\", \n new SelectList((IEnumerable)ViewData[\"stuff\"], \n ... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29215/"
] |
215,011 | <p>How do I make sure the correct encoding (UTF-8) is used by Grails?</p>
| [
{
"answer_id": 217352,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "\nresponse.setContentType(\"text/html; charset=UTF-8\");\nrequest.setCharacterEncoding(\"UTF-8\");\n"
}
] | 2008/10/18 | [
"https://Stackoverflow.com/questions/215011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] |
215,026 | <p>I am trying to run some unit tests in a C# Windows Forms application (Visual Studio 2005), and I get the following error:</p>
<blockquote>
<p>System.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.200, Culture=neutral, PublicKeyToken=764d581291d764f7' or one of its dependencies. The loc... | [
{
"answer_id": 215054,
"author": "Lars Truijens",
"author_id": 1242,
"author_profile": "https://Stackoverflow.com/users/1242",
"pm_score": 10,
"selected": true,
"text": "gacutil /i \"path/to/my.dll\"\n"
},
{
"answer_id": 220029,
"author": "Seth Petry-Johnson",
"author_id"... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
215,030 | <p>The picture below explains all:</p>
<p><a href="http://img133.imageshack.us/img133/4206/accentar9.png" rel="nofollow noreferrer">alt text http://img133.imageshack.us/img133/4206/accentar9.png</a></p>
<p>The variable textInput comes from <code>File.ReadAllText(path);</code> and characters like : ' é è ... do not di... | [
{
"answer_id": 215059,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 2,
"selected": false,
"text": "System.IO.StreamReader System.Text.Encoding.Default string text = System.IO.File.ReadAllText(\"path\", Encoding.GetEn... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215030",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13913/"
] |
215,052 | <p>What is the best choice for a Python GUI application to display large number of thumbnails, e.g. 10000 or more? For performance reasons such thumbnail control must support virtual items, i.e. request application for those thumbnails only which are currently visible to user. </p>
| [
{
"answer_id": 215257,
"author": "Toni Ruža",
"author_id": 6267,
"author_profile": "https://Stackoverflow.com/users/6267",
"pm_score": 2,
"selected": false,
"text": "class GridData(wx.grid.PyGridTableBase):\n def GetColLabelValue(self, col):\n pass\n\n def GetNumberRows(self... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29219/"
] |
215,056 | <p>I just added asp.net calendar control in new page under sample folder in asp.net mvc beta application. when i execute the particaular page that i need and it shows the error following </p>
<p>Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration speci... | [
{
"answer_id": 215078,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 2,
"selected": false,
"text": "<pages enableeventvalidation=\"false\" viewstateencryptionmode=\"Never\">\n"
},
{
"answer_id": 894988,
"author"... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29215/"
] |
215,063 | <p>I want to be able to use a function such as <code>writefln()</code> but without having to add <code>import std.stdio</code> at the top of the file.</p>
<p>Another way to explain it is the way you do it in C++. You can type <code>std::cout << "Test";</code> and that will stop you from having to add <code>using... | [
{
"answer_id": 215067,
"author": "Ferruccio",
"author_id": 4086,
"author_profile": "https://Stackoverflow.com/users/4086",
"pm_score": 2,
"selected": false,
"text": "import using namespace #include"
},
{
"answer_id": 593068,
"author": "zildjohn01",
"author_id": 66341,
... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
215,110 | <p>What is the best way to graph scatter plots in C++? </p>
<p>Do you write data to a file and use another tool? Is there a library like matplotlib in Python?</p>
| [
{
"answer_id": 215117,
"author": "freespace",
"author_id": 8297,
"author_profile": "https://Stackoverflow.com/users/8297",
"pm_score": 6,
"selected": true,
"text": "gnuplot x y plot \"data.txt\" using 1:2 \n gnuplot"
}
] | 2008/10/18 | [
"https://Stackoverflow.com/questions/215110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14069/"
] |
215,114 | <p>I am using running a simple find all and paginating with willpaginate, but I'd also like to have the query sorted by the user. The first solution that came to mind was just use a params[:sort]</p>
<pre><code>http://localhost:3000/posts/?sort=created_at+DESC
@posts = Post.paginate :page => params[:page], :order ... | [
{
"answer_id": 215126,
"author": "Avdi",
"author_id": 20487,
"author_profile": "https://Stackoverflow.com/users/20487",
"pm_score": 2,
"selected": false,
"text": "fetch params.fetch(:sort){ :created_at }\n || params[:sort] || :created_at\n fetch false"
},
{
"answer_id": 215145,
... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10258/"
] |
215,115 | <p>I have an old ASP.NET 1.1 site that I am maintaining. We are working with Google to place analytics code on all pages. Since I can't take advantage of master pages in 1.1, I have my pages include headers/footers/sidebars with User Controls.</p>
<p>What came to mind first is to place the JavaScript in my footer as... | [
{
"answer_id": 215121,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 3,
"selected": false,
"text": "<asp:SomeControl ID=\"SomeControl1\" runat=\"server>\n <script src=\"some.js\" type=\"text/javascript\"></script>\n</asp:... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3047/"
] |
215,119 | <p>Is there a reliable equivalent of xkill for Windows?</p>
<p>For those who don't know what xkill is: it is a Unix tool which basically kills the process of any windows you click on.</p>
<p>A Windows port can be downloaded <a href="http://solo-dev.deviantart.com/art/Windows-xKill-100737525" rel="noreferrer">here</a>... | [
{
"answer_id": 215172,
"author": "JosephStyons",
"author_id": 672,
"author_profile": "https://Stackoverflow.com/users/672",
"pm_score": 3,
"selected": false,
"text": "taskkill /im ProcessName.exe /f\n"
}
] | 2008/10/18 | [
"https://Stackoverflow.com/questions/215119",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8954/"
] |
215,132 | <p>I have a ListCtrl that displays a list of items for the user to select. This works fine except that when the ctrl is not large enough to show all the items, I want it to expand downwards with a vertical scoll bar rather than using a horizontal scroll bar as it expands to the right.</p>
<p>The ListCtrl's creation:</... | [
{
"answer_id": 215216,
"author": "Toni Ruža",
"author_id": 6267,
"author_profile": "https://Stackoverflow.com/users/6267",
"pm_score": 3,
"selected": true,
"text": "import wx\n\nclass Test(wx.Frame):\n def __init__(self):\n wx.Frame.__init__(self, None)\n self.test = wx.... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6266/"
] |
215,139 | <p>Can someone tell me how i can change the .xml file that a flash movie loads using c#. ie: i would like an ActionScript variable that defines the location of the flash movie. I would like to be able to change this variable using c# if possible.</p>
<p>i dont really know how it would look, but something like:</p>
<... | [
{
"answer_id": 215176,
"author": "Argelbargel",
"author_id": 2992,
"author_profile": "https://Stackoverflow.com/users/2992",
"pm_score": 2,
"selected": true,
"text": "\n <object ...>\n <param name=\"flashvars\" value=\"&xmlpath=<path to xml>\"/>\n </object>\n"
},
{
"answer_i... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26685/"
] |
215,144 | <p>I wanted to derive a class from Predicate<IMyInterface>, but it appears as if Predicate<> is sealed. In my case I wanted to simply return the inverted (!) result of the designated function. I have other ways to accomplish the goal. My question is what might the MS designers have been thinking when deciding to ... | [
{
"answer_id": 215152,
"author": "Omer van Kloeten",
"author_id": 4979,
"author_profile": "https://Stackoverflow.com/users/4979",
"pm_score": 2,
"selected": false,
"text": "Predicate<T> p;\nPredicate<T> inverted = t => !p(t);\n"
},
{
"answer_id": 215153,
"author": "Jon Skeet"... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27068/"
] |
215,160 | <p>I have the following javascript:</p>
<pre><code>$.ajax({
type: "POST",
dataType: "json",
url: "/Home/Submit",
data: {
email: strEmail,
message: strMessage
},
success: function(result) {
//alert('here');
alert(result.message);
},
error: function(error) {
alert(error);
}
});
</co... | [
{
"answer_id": 215152,
"author": "Omer van Kloeten",
"author_id": 4979,
"author_profile": "https://Stackoverflow.com/users/4979",
"pm_score": 2,
"selected": false,
"text": "Predicate<T> p;\nPredicate<T> inverted = t => !p(t);\n"
},
{
"answer_id": 215153,
"author": "Jon Skeet"... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23066/"
] |
215,183 | <p>For example, I want just the "filename" of a file in a field. Say I have myimage.jpg I only want to display "myimage" How do I get just that? </p>
| [
{
"answer_id": 215244,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 4,
"selected": true,
"text": "<cfset FileName = ListDeleteAt(FileFullName, ListLen(FileFullName, \".\"), \".\")>\n <cfset ExtensionIndex = ListLen(FileFu... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215183",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26121/"
] |
215,211 | <p>Is there a way to change the colors used by plain Win32 menus (background, text, and highlight) for a single process, <em>without</em> using SetSysColors?</p>
<p>(SetSysColors does a global change, which is bad, and if you crash or forget to set the colors back with SetSysColors again before exiting, they will not ... | [
{
"answer_id": 215249,
"author": "Serge Wautier",
"author_id": 12379,
"author_profile": "https://Stackoverflow.com/users/12379",
"pm_score": 4,
"selected": false,
"text": "MENUINFO mi = { 0 }; \nmi.cbSize = sizeof(mi); \nmi.fMask = MIM_BACKGROUND|MIM_APPLYTOSUBMENUS; \nmi.hbrBack = hBrus... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28258/"
] |
215,213 | <p>I'm trying this:</p>
<pre><code>Type ThreadContextType = typeof(Application).GetNestedType("ThreadContext", System.Reflection.BindingFlags.NonPublic);
MethodInfo FDoIdleMi = ThreadContextType.GetMethod("FDoIdle", BindingFlags.NonPublic |
BindingFlags.Instance, null, new Type[] { typeof(Int32) }, null);
</code><... | [
{
"answer_id": 215230,
"author": "Charlie",
"author_id": 18529,
"author_profile": "https://Stackoverflow.com/users/18529",
"pm_score": 3,
"selected": true,
"text": "Type type = typeof( Application ).GetNestedType( \"ThreadContext\",\n BindingFlags.NonPublic );\nMethodInfo doIdle = typ... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29244/"
] |
215,219 | <p>I have a really long 3 column table. I would like to </p>
<pre><code><table>
<tr><td>Column1</td><td>Column2</td></tr>
<tr><td>Column1</td><td>Column2</td></tr>
<tr><td>Start</td><td>Hiding</td>&l... | [
{
"answer_id": 215227,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 2,
"selected": false,
"text": "<tbody> none table-row-group block"
},
{
"answer_id": 215231,
"author": "Parand",
"author_id": 13055,
"au... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3747/"
] |
215,236 | <p>In Java, is there a programmatic way to find out how many concurrent threads are supported by a CPU?</p>
<p><strong>Update</strong></p>
<p>To clarify, I'm not trying to hammer the CPU with threads and I am aware of Runtime.getRuntime().availableProcessors() function, which provides me part of the information I'm l... | [
{
"answer_id": 215259,
"author": "pipTheGeek",
"author_id": 28552,
"author_profile": "https://Stackoverflow.com/users/28552",
"pm_score": 4,
"selected": false,
"text": "availableProcessors() availableProcessors()"
}
] | 2008/10/18 | [
"https://Stackoverflow.com/questions/215236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20689/"
] |
215,248 | <p>I'm using a ListView in C# to make a grid. I would like to find out a way to be able to highlight a specific cell, programatically. I only need to highlight one cell.</p>
<p>I've experimented with Owner Drawn subitems, but using the below code, I get highlighted cells, but no text! Are there any ideas on how to ... | [
{
"answer_id": 215269,
"author": "Charlie",
"author_id": 18529,
"author_profile": "https://Stackoverflow.com/users/18529",
"pm_score": 5,
"selected": true,
"text": "// create a new list item with a subitem that has white text on a blue background\nListViewItem lvi = new ListViewItem( \"i... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215248",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29249/"
] |
215,252 | <p>I get a "UUID mismatch" warning at the console when I try to build and run my app on my iPhone.</p>
<blockquote>
<p>warning: UUID mismatch detected with
the loaded library - on disk is:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.1.sdk/usr/lib/liblockdown.dylib
=uuid-mismatch-with-loaded... | [
{
"answer_id": 2374659,
"author": "Sam Soffes",
"author_id": 118631,
"author_profile": "https://Stackoverflow.com/users/118631",
"pm_score": 2,
"selected": false,
"text": "$ sudo /Developer/Library/uninstall-devtools --mode=all\n"
},
{
"answer_id": 4289323,
"author": "Andrew ... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1987/"
] |
215,267 | <p>We've been using Trac for task/defect tracking and things were going well enough, but this morning it started serving up a 500 error. Looking in the Apache error_log, I get a stack trace that culminates in:</p>
<pre>
PythonHandler trac.web.modpython_frontend:
ExtractionError: Can't extract file(s) to egg cache
T... | [
{
"answer_id": 215298,
"author": "agnul",
"author_id": 6069,
"author_profile": "https://Stackoverflow.com/users/6069",
"pm_score": 4,
"selected": true,
"text": "export PYTHON_EGG_CACHE=/tmp/python_eggs\n"
},
{
"answer_id": 215303,
"author": "Bob Nadler",
"author_id": 2514... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10116/"
] |
215,271 | <p>I've got a <strong>large</strong> array of primitive types (double).
How do I sort the elements in <strong>descending order</strong>?</p>
<p>Unfortunately the Java API doesn't support sorting of <strong>primitive</strong> types with a Comparator.</p>
<p>The first approach that probably comes to mind is to convert it... | [
{
"answer_id": 215280,
"author": "Jason Cohen",
"author_id": 4926,
"author_profile": "https://Stackoverflow.com/users/4926",
"pm_score": 2,
"selected": false,
"text": "toList() Arrays.sort()"
},
{
"answer_id": 215283,
"author": "Eli Courtwright",
"author_id": 1694,
"a... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4308/"
] |
215,302 | <p>I am trying to create a file in the <code>/tmp</code> directory (working on a Linux UBUNTU 7.10), that has read/write/execute access for any user.</p>
<p>So I am using the</p>
<pre><code>open(fileName,O_CREAT|O_RDWR,0777)
</code></pre>
<p>function to create the file (from a C program) in <code>user1</code> account a... | [
{
"answer_id": 215318,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 2,
"selected": false,
"text": " mode_t oldmask = umask(0);\n fd = open(...);\n oldmask = umask(oldmask);\n assert(oldmask == 0);\n"
},
{
... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215302",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23486/"
] |
215,316 | <p>I've got a tomcat 6 web app running with Apache httpd as the front end. I'm using mod_proxy and mod_proxy_ajp to forward the requests to tomcat. My server is running Ubuntu. Now I'm trying to use mod_rewrite to remove the leading www, so that my canonical website URL is <code>http://example.com</code> rather than <c... | [
{
"answer_id": 215345,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 0,
"selected": false,
"text": "RewriteRule .* www.google.com [RL]"
},
{
"answer_id": 215359,
"author": "K Prime",
"author_id": 29270,
"a... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29262/"
] |
215,361 | <p>I need a regex that matches all strings ending in .cs, but if they end in .g.cs they should not match. I'm using .NET regular expressions.</p>
| [
{
"answer_id": 215366,
"author": "thr",
"author_id": 452521,
"author_profile": "https://Stackoverflow.com/users/452521",
"pm_score": 4,
"selected": true,
"text": "(?<!\\.g)\\.cs$\n ^.*(?<!\\.g)\\.cs$\n"
},
{
"answer_id": 215502,
"author": "ephemient",
"author_id": 20713,
... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215361",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7532/"
] |
215,383 | <p>I have a custom UIView that generates a set of subviews and display them in rows and columns like tiles. What I am trying to achieve is to allow the user to touch the screen and as the finger move, the tiles beneath it disappears. </p>
<p>The code below is the custom UIView that contains the tiles:</p>
<pre><code>... | [
{
"answer_id": 215531,
"author": "Ben Gottlieb",
"author_id": 6694,
"author_profile": "https://Stackoverflow.com/users/6694",
"pm_score": 5,
"selected": true,
"text": " \n\n //In your init method, make sure each tile doesn't respond to clicks on its own\n ...\n tile.userInteractionEnable... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1987/"
] |
215,392 | <p>I am busy writing my thesis (so, I guess this could count as a homework question). Now, one of the things that came up was the Unix <code>select</code> system call. I would like to add a reference to the appropriate man page, but all I can find that seems the slight bit official is the Single Unix Specification site... | [
{
"answer_id": 215402,
"author": "warren",
"author_id": 4418,
"author_profile": "https://Stackoverflow.com/users/4418",
"pm_score": 0,
"selected": false,
"text": "man <command>"
}
] | 2008/10/18 | [
"https://Stackoverflow.com/questions/215392",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2260/"
] |
215,399 | <p>Suppose I have a class where I want the user to be able to have a reference to one of my members. Which is preferred?</p>
<pre><code>class Member;
class ClassWithWeakPtr
{
private:
boost::shared_ptr<Member> _member;
public:
boost::weak_ptr<Member> GetMember();
};
</code></pre>
<p>or</p>
<pre><c... | [
{
"answer_id": 215428,
"author": "Michael Burr",
"author_id": 12711,
"author_profile": "https://Stackoverflow.com/users/12711",
"pm_score": 4,
"selected": false,
"text": "shared_ptr<> weak_ptr<> use weak_ptr<> shared_ptr<> ClassWithCppReference GetMember()"
},
{
"answer_id": 2155... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8123/"
] |
215,412 | <p>Is there a way to programmatically change the screen resolution or enable/disable multiple monitors in Windows XP? For example to change from 1024x768 with one monitor to 1280x1024 on two monitors? I would be most interested in a win32 function to do this but anything that can be tied to a windows shortcut would s... | [
{
"answer_id": 9828304,
"author": "a7drew",
"author_id": 4239,
"author_profile": "https://Stackoverflow.com/users/4239",
"pm_score": -1,
"selected": false,
"text": "#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.\n#Warn ; Recommended for catching... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215412",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6320/"
] |
215,430 | <p>I have to use unsigned integers that could span to more than 4 bytes, what type should I use?</p>
<p>PS Sorry for the "noobism" but that's it :D</p>
<p>NB: I need integers because i have to do divisions and care only for the integer parts and this way int are useful</p>
| [
{
"answer_id": 215459,
"author": "An̲̳̳drew",
"author_id": 17035,
"author_profile": "https://Stackoverflow.com/users/17035",
"pm_score": 2,
"selected": false,
"text": "long long unsigned long long"
}
] | 2008/10/18 | [
"https://Stackoverflow.com/questions/215430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22963/"
] |
215,458 | <p>The calculations in my code are well-tested, but because there is so much GUI code, my overall code coverage is lower than I'd like. Are there any guidelines on unit-testing GUI code? Does it even make sense?</p>
<p>For example, there are graphs in my app. I haven't been able to figure out how to automate the testi... | [
{
"answer_id": 1001011,
"author": "Dema",
"author_id": 407003,
"author_profile": "https://Stackoverflow.com/users/407003",
"pm_score": 3,
"selected": false,
"text": " Scenario: Dialog manipulation\n Given the frame \"SwingSet\" is visible\n When I click the menu \"File/About\"\n ... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2959/"
] |
215,471 | <p>In VS2008 I have written a C# service, an installer, and have created a setup package to install it. The service needs to load an xml file to operate. Where is the best place to put this file in the various filesystem folders offered by the VS setup project, and how do I then refer to these paths from my code?</p>
<... | [
{
"answer_id": 215538,
"author": "mohammedn",
"author_id": 29268,
"author_profile": "https://Stackoverflow.com/users/29268",
"pm_score": 3,
"selected": true,
"text": "string path = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles);\n"
},
{
"answer_id": 7052450,
... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14357/"
] |
215,497 | <p>In Java, are there clear rules on when to use each of access modifiers, namely the default (package private), <code>public</code>, <code>protected</code> and <code>private</code>, while making <code>class</code> and <code>interface</code> and dealing with inheritance?</p>
| [
{
"answer_id": 215505,
"author": "David Segonds",
"author_id": 13673,
"author_profile": "https://Stackoverflow.com/users/13673",
"pm_score": 14,
"selected": true,
"text": "public protected private"
},
{
"answer_id": 12401576,
"author": "Mechanical snail",
"author_id": 319... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/625/"
] |
215,515 | <p>I have a simple class that essentially just holds some values. I have overridden the <code>ToString()</code> method to return a nice string representation.</p>
<p>Now, I want to create a <code>ToXml()</code> method, that will return something like this:</p>
<pre><code><Song>
<Artist>Bla</Artist&... | [
{
"answer_id": 215565,
"author": "Panos",
"author_id": 8049,
"author_profile": "https://Stackoverflow.com/users/8049",
"pm_score": 4,
"selected": false,
"text": "XmlNode XmlElement, XmlAttribute, XmlCDataSection XmlDocument XmlDocument.AppendChild() XmlDocument.ImportNode()"
},
{
... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215515",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91/"
] |
215,516 | <p>I am working on a winforms html editor with multiple editor windows as each editor window will be written to a database field.</p>
<p>I am creating the editor windows as a control array and was hoping to just have one toolbar above them that would handle the events such as apply bold, italic... based on the window ... | [
{
"answer_id": 215637,
"author": "Blair Conrad",
"author_id": 1199,
"author_profile": "https://Stackoverflow.com/users/1199",
"pm_score": 0,
"selected": false,
"text": "[SerializableAttribute]\n[ComVisibleAttribute(true)]\npublic delegate void EventHandler(\n Object sender,\n Event... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16989/"
] |
215,517 | <p>Does anyone know of any code or tools that can strip literal values out of SQL statements?</p>
<p>The reason for asking is I want to correctly judge the SQL workload in our database and I'm worried I might miss out on bad statements whose resource usage get masked because they are displayed as separate statements. ... | [
{
"answer_id": 215527,
"author": "Cade Roux",
"author_id": 18255,
"author_profile": "https://Stackoverflow.com/users/18255",
"pm_score": 0,
"selected": false,
"text": "SQL '' (/'.*'/STRING_LITERAL/) /\\d*/NUMERIC_LITERAL/"
},
{
"answer_id": 215543,
"author": "John Nilsson",
... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29286/"
] |
215,524 | <p>Some iPhone applications, such as Pandora seem to directly manipulate the hardware volume and respond to physical volume button. How is this done?</p>
<p>AudioSessionServices allows you to get the current hardware output volume with the <code>kAudioSessionProperty_CurrentHardwareOutputVolume</code> property, but it... | [
{
"answer_id": 215614,
"author": "catlan",
"author_id": 23028,
"author_profile": "https://Stackoverflow.com/users/23028",
"pm_score": 4,
"selected": true,
"text": "MPVolumeView *volumeView = [[MPVolumeView alloc] initWithFrame:CGRectMake(25, 378, 270, 30)];\n[self.view addSubview:volumeV... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215524",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4468/"
] |
215,537 | <p>So am I crazy for considering doing a beta/production release on Glassfish V3 Prelude?
Since all of my content is dynamic, I'm not even thinking of bothering to set up apache in front either. Doing so complicates the setup by requiring something like AJP or mod_jk and will not offer us much in terms of capability.<... | [
{
"answer_id": 215614,
"author": "catlan",
"author_id": 23028,
"author_profile": "https://Stackoverflow.com/users/23028",
"pm_score": 4,
"selected": true,
"text": "MPVolumeView *volumeView = [[MPVolumeView alloc] initWithFrame:CGRectMake(25, 378, 270, 30)];\n[self.view addSubview:volumeV... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1129162/"
] |
215,548 | <p>Background: Over the next month, I'll be giving three talks about or at least including <code>LINQ</code> in the context of <code>C#</code>. I'd like to know which topics are worth giving a fair amount of attention to, based on what people may find hard to understand, or what they may have a mistaken impression of. ... | [
{
"answer_id": 215572,
"author": "smaclell",
"author_id": 22914,
"author_profile": "https://Stackoverflow.com/users/22914",
"pm_score": 7,
"selected": false,
"text": "LINQ SQL SQL"
},
{
"answer_id": 215580,
"author": "Tim Jarvis",
"author_id": 10387,
"author_profile":... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22656/"
] |
215,557 | <p>How do I implement a circular list that overwrites the oldest entry when it's full? </p>
<p>For a little background, I want to use a circular list within GWT; so using a 3rd party lib is <strong>not</strong> what I want.</p>
| [
{
"answer_id": 215575,
"author": "Adam Davis",
"author_id": 2915,
"author_profile": "https://Stackoverflow.com/users/2915",
"pm_score": 7,
"selected": true,
"text": "/* Very simple queue\n * These are FIFO queues which discard the new data when full.\n *\n * Queue is empty when in == out... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22992/"
] |
215,581 | <p>What is the purpose of the colon before a block in Python?</p>
<p>Example:</p>
<pre><code>if n == 0:
print "The end"
</code></pre>
| [
{
"answer_id": 215676,
"author": "tzot",
"author_id": 6899,
"author_profile": "https://Stackoverflow.com/users/6899",
"pm_score": 7,
"selected": true,
"text": "if a == b \n print a\n if a == b: \n print a\n"
},
{
"answer_id": 1464645,
"author": "Yoo",
"author_id": 3... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14732/"
] |
215,584 | <p>I am currently a student and trying to design a Visual C++ application to allow me to visually insert an oriented graph in order to create a text file with the graph's matrix. At this point I have created an onClick event to create nodes and have used the form's Paint event to draw the nodes. I have also inserted t... | [
{
"answer_id": 215676,
"author": "tzot",
"author_id": 6899,
"author_profile": "https://Stackoverflow.com/users/6899",
"pm_score": 7,
"selected": true,
"text": "if a == b \n print a\n if a == b: \n print a\n"
},
{
"answer_id": 1464645,
"author": "Yoo",
"author_id": 3... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29293/"
] |
215,615 | <p>Erlang support to partition its nodes into groups using the <a href="http://erlang.org/doc/man/global_group.html" rel="nofollow noreferrer">global_group</a> module.
Further, Erlang supports adding nodes on the fly to the node-network. Are these two features usable with each other?<br>
As far as I understand, you hav... | [
{
"answer_id": 2736872,
"author": "TBBle",
"author_id": 166389,
"author_profile": "https://Stackoverflow.com/users/166389",
"pm_score": 2,
"selected": true,
"text": "application:set_env( kernel, global_groups, [GroupTuple|GroupTuples] ),\nkernel:config_change( [ { global_groups, [GroupTu... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23760/"
] |
215,620 | <p>How do I load MS Word document (.doc and .docx) to memory (variable) without doing this?:</p>
<p><em>wordApp.Documents.Open</em> </p>
<p>I don't want to open MS Word, I just want that text inside. </p>
<p>You gave me answer for DOCX, but what about DOC? I want free and high performance solution - not to open 12.0... | [
{
"answer_id": 25975734,
"author": "edi9999",
"author_id": 1993501,
"author_profile": "https://Stackoverflow.com/users/1993501",
"pm_score": 0,
"selected": false,
"text": "DocxTemplater=require('docxtemplater');\ndoc=new DocxTemplater().loadFromFile(\"input.docx\");\nresult=doc.getFullTe... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21209/"
] |
215,624 | <p>I am trying to use some pinvoke code to call a C function. The function fills a buffer with data.</p>
<p>The structure is set up as a DWORD for the length, followed by a string. How do I extract the string from the IntPtr?</p>
<pre><code> IntPtr buffer = Marshal.AllocHGlobal(nRequiredSize);
PInvokedFunction(buf... | [
{
"answer_id": 215627,
"author": "Adam Tegen",
"author_id": 4066,
"author_profile": "https://Stackoverflow.com/users/4066",
"pm_score": 0,
"selected": false,
"text": " IntPtr buffer = Marshal.AllocHGlobal((int)nRequiredSize);\n PInvokedFunction(buffer, nRequiredSize);\n UnmanagedMemorySt... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215624",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4066/"
] |
215,636 | <p>I'm having some trouble with Visual Studio 2008 on my Windows XP SP2 laptop.</p>
<p>What happens is that when I start a program with a few textboxes and stuff like that, the boxes are see-through. I can litteraly see through them and see what's on the underlaying screen. Like if I only have this Form showing and be... | [
{
"answer_id": 215646,
"author": "Cameron",
"author_id": 21475,
"author_profile": "https://Stackoverflow.com/users/21475",
"pm_score": 3,
"selected": true,
"text": "Reset"
}
] | 2008/10/18 | [
"https://Stackoverflow.com/questions/215636",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11795/"
] |
215,638 | <p>I'm trying to access the message in a jthrowable while handing an exception generated when I fail to find a class. However, I am unable to access the message ID of getMessage() on the jthrowable object, and I don't know why. I've tried changing the signature of getMessage to "()Ljava/lang/String" (without the semi... | [
{
"answer_id": 215662,
"author": "Chris R",
"author_id": 23309,
"author_profile": "https://Stackoverflow.com/users/23309",
"pm_score": 4,
"selected": true,
"text": "GetObjectClass java_class = (*jEnv)->FindClass (jEnv, \"java/lang/Throwable\");\nmethod = (*jEnv)->GetMethodID (jEnv, java_... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23309/"
] |
215,667 | <p>I am trying to develop a script to pull some data from a large number of html tables. One problem is that the number of rows that contain the information to create the column headings is indeterminate. I have discovered that the last row of the set of header rows has the attribute border-bottom for each cell with ... | [
{
"answer_id": 215720,
"author": "pantsgolem",
"author_id": 9261,
"author_profile": "https://Stackoverflow.com/users/9261",
"pm_score": 2,
"selected": false,
"text": "borderCells = soup.findAll(\"td\", style=re.compile(\"border-bottom\")})"
},
{
"answer_id": 215727,
"author":... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
215,672 | <p>Does anyone have experience with a query language for the web?</p>
<p>I am looking for project, commercial or not, that does a good job at making a webpage queryable and that even follows links on it to aggregate information from a bunch of pages.</p>
<p>I would prefere a sql or linq like syntax. I could of course... | [
{
"answer_id": 215788,
"author": "Pistos",
"author_id": 28558,
"author_profile": "https://Stackoverflow.com/users/28558",
"pm_score": 2,
"selected": false,
"text": "# load the RedHanded home page\ndoc = Hpricot(open(\"http://redhanded.hobix.com/index.html\"))\n# change the CSS class on l... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215672",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25145/"
] |
215,684 | <p>I have a std::multimap where key is a custom class. Something like this:</p>
<pre><code>Class X {
public:
std::string s;
int x;
operator <(const X& other) const { return s < other.s; }
};
std::multimap<X, int> mymap;
</code></pre>
<p>Now, I'd like to use upper_bound and lower_bound to i... | [
{
"answer_id": 215692,
"author": "Michael Burr",
"author_id": 12711,
"author_profile": "https://Stackoverflow.com/users/12711",
"pm_score": 4,
"selected": true,
"text": "class X upper_bound() lower_bound() class X std::string X::s upper_bound() lower_bound() less<> operator <() class X"
... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14690/"
] |
215,685 | <p>I often find myself trying to come up with good names for complementary pairs of variables; where two variables denote opposing concepts, two participants in some sort of duologue, and so on.</p>
<p>This might be better explained by a counter-example - I maintain an app that prints two graphics as part of a print a... | [
{
"answer_id": 215724,
"author": "Dan Rosenstark",
"author_id": 8047,
"author_profile": "https://Stackoverflow.com/users/8047",
"pm_score": 1,
"selected": false,
"text": "Connection setDestination destination Server target aimHere placeToSendTheData whatever source comingFromHere placeTo... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5017/"
] |
215,689 | <p>I still haven't got my head around decorators in Python.</p>
<p>I've already started using a lot of closures to do things like customize functions and classes in my coding.</p>
<p>Eg.</p>
<pre><code>class Node :
def __init__(self,val,children) :
self.val = val
self.children = children
def mak... | [
{
"answer_id": 215782,
"author": "tzot",
"author_id": 6899,
"author_profile": "https://Stackoverflow.com/users/6899",
"pm_score": 3,
"selected": false,
"text": "def run(rootnode, func):\n def _run(node): # recursive internal function\n func(node)\n for x in node.children... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215689",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8482/"
] |
215,718 | <p>How do I revert a modified file to its previous revision at a specific commit hash (which I determined via <a href="https://git-scm.com/docs/git-log" rel="noreferrer"><code>git log</code></a> and <a href="https://git-scm.com/docs/git-diff" rel="noreferrer"><code>git diff</code></a>)?</p>
| [
{
"answer_id": 35288,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 8,
"selected": false,
"text": "git checkout -- foo\n foo git checkout HEAD^ foo\n"
},
{
"answer_id": 35335,
"author": "Aaron Maenpaa",
"a... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3410/"
] |
215,719 | <p>I'm following the <a href="http://www.asp.net/learn/mvc-videos/video-395.aspx" rel="nofollow noreferrer">ASP.Net MVC "TaskList" example video</a> and on clicking Run in Visual Studio (~14:00 min into the video) I'm getting the following error message in the browser:</p>
<pre><code>Server Error in '/' Application.
... | [
{
"answer_id": 216512,
"author": "Nick Berardi",
"author_id": 17,
"author_profile": "https://Stackoverflow.com/users/17",
"pm_score": 0,
"selected": false,
"text": "routes.MapRoute( _\n \"Default\", _\n \"{controller}/{action}/{id}\", _\n New With { .controller = \"Home\", .acti... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5662/"
] |
215,729 | <p>What is the state of native SVG support in the most popular browsers in their latest releases?</p>
<ul>
<li>Internet explorer</li>
<li>Firefox</li>
<li>Opera</li>
<li>Safari</li>
<li>Chrome</li>
<li>Konqueror</li>
<li>Camino</li>
</ul>
| [
{
"answer_id": 19298539,
"author": "iconoclast",
"author_id": 241142,
"author_profile": "https://Stackoverflow.com/users/241142",
"pm_score": 2,
"selected": false,
"text": "Time.now"
}
] | 2008/10/18 | [
"https://Stackoverflow.com/questions/215729",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
215,735 | <p>I am trying to draw a domain model or class diagram in UML for car dealership. I am stuck with how to present test drive in the model. One way is to have appointment class and then test-drive as sub class. A dealer also offers after-sale vehicle service so i could have appointment/booking class as super class and t... | [
{
"answer_id": 6307687,
"author": "Novalis",
"author_id": 778894,
"author_profile": "https://Stackoverflow.com/users/778894",
"pm_score": 0,
"selected": false,
"text": "-- What kind of entities you have in yor domain?\n-- If they are important for your system under desing, \n what kind... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29312/"
] |
215,741 | <p>MTOM is the W3C Message Transmission Optimization Mechanism, a method of efficiently sending binary data to and from web services.</p>
<p>How does it work in general?</p>
| [
{
"answer_id": 15572342,
"author": "Jops",
"author_id": 1551022,
"author_profile": "https://Stackoverflow.com/users/1551022",
"pm_score": 7,
"selected": false,
"text": "<soap:Envelope>\n <soap:Body>\n <tns:data>\n <xop:include href=\"SomeUniqueID-ThatLeadsToTheImage\... | 2008/10/18 | [
"https://Stackoverflow.com/questions/215741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.