qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
359,359 | <p>I am in need of a case insensitive string enumeration type in my XML schema (.xsd) file. I can get case insensitive by doing the following.</p>
<pre><code><xs:simpleType name="setDigitalPointType">
<xs:restriction base="xs:string">
<xs:pattern value="[Oo][Nn]" />
<xs:pattern... | [
{
"answer_id": 15445351,
"author": "Orvid King",
"author_id": 776797,
"author_profile": "https://Stackoverflow.com/users/776797",
"pm_score": 4,
"selected": false,
"text": "<xs:simpleType name=\"setDigitalPointType\">\n <xs:union>\n <xs:simpleType>\n <xs:restriction ... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43976/"
] |
359,381 | <p>I'm preparing to send mass email to customers which is in html + images.
What are general rules to do make it display correctly in most popular mail clients?</p>
<p>EDIT:</p>
<p>Well it's for my customers - about few k clients.</p>
<p>My question is - how to code this email that it will display correctly in cus... | [
{
"answer_id": 359399,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 2,
"selected": false,
"text": "<style>"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/359381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33093/"
] |
359,393 | <p>I've got a list of links which have a click event attached to them, I need to get the ID from the child A link. So in the example below if I clicked the first list element I'd need google retuned. </p>
<p>I've tried <code>'$this a'</code> but can't quite work out the syntax.</p>
<pre><code>$("ul li").click(functio... | [
{
"answer_id": 359407,
"author": "smoothdeveloper",
"author_id": 17049,
"author_profile": "https://Stackoverflow.com/users/17049",
"pm_score": 7,
"selected": true,
"text": "$(this).find('a:first').attr('id')\n"
},
{
"answer_id": 359500,
"author": "mbillard",
"author_id": ... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45350/"
] |
359,400 | <p>I want to get the path name and arguments of running processes using java code. Is there any solution?</p>
| [
{
"answer_id": 359437,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 2,
"selected": false,
"text": "TASKLIST.EXE"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/359400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
359,422 | <p>I have an ASP.Net web user control that contains a TextBox and a calendar from the Ajax Control Toolkit.</p>
<p>When I include this user control on my page I would like it to participate in input validation (there is a required filed validator set on the TextBox inside the UC), ie. when the page is validated the co... | [
{
"answer_id": 359455,
"author": "Scott Ivey",
"author_id": 36297,
"author_profile": "https://Stackoverflow.com/users/36297",
"pm_score": 5,
"selected": true,
"text": "public string ValidationGroup\n{\n get\n {\n return MyRequiredFieldValidator.ValidationGroup;\n }\n set\n ... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359422",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/77004/"
] |
359,424 | <p>I have a <a href="http://en.wikipedia.org/wiki/Git_%28software%29" rel="noreferrer">Git</a> repository which contains a number of subdirectories. Now I have found that one of the subdirectories is unrelated to the other and should be detached to a separate repository.</p>
<p>How can I do this while keeping the hist... | [
{
"answer_id": 359759,
"author": "Paul",
"author_id": 23356,
"author_profile": "https://Stackoverflow.com/users/23356",
"pm_score": 11,
"selected": true,
"text": "git subtree"
},
{
"answer_id": 955793,
"author": "pgs",
"author_id": 103421,
"author_profile": "https://S... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23896/"
] |
359,426 | <p>Does anyone know a simple load balance algorithm (formula) that relates users connected, cpu load, network load and memory usage?
This will be used to compare various servers and assign to a new user the best at the moment.
Thank You.</p>
| [
{
"answer_id": 359581,
"author": "kgiannakakis",
"author_id": 24054,
"author_profile": "https://Stackoverflow.com/users/24054",
"pm_score": 2,
"selected": false,
"text": "mod_proxy"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/359426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
359,434 | <p>I am training in web developement and am learning about <strong>JSP</strong> & <strong>Servlets</strong>. I have some knowledge of <code>HttpSession</code> - I have used it in some of my sample projects.</p>
<p>In browsers I have seen the option to "delete cookies". If I delete the cookies it deletes the <code>... | [
{
"answer_id": 359482,
"author": "Chris Cudmore",
"author_id": 18907,
"author_profile": "https://Stackoverflow.com/users/18907",
"pm_score": 8,
"selected": false,
"text": "name=bob; password=asdfas"
},
{
"answer_id": 29387911,
"author": "Elangovan",
"author_id": 2614459,
... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44848/"
] |
359,436 | <p>Should be simple and quick: I want a C# equivalent to the following Java code:</p>
<pre><code>orig: for(String a : foo) {
for (String b : bar) {
if (b.equals("buzz")) {
continue orig;
}
}
// other code comes here...
}
</code></pre>
<hr>
<p><strong><em>Edit</em></strong>:
OK it seems there is n... | [
{
"answer_id": 359449,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": true,
"text": "using System;\n\npublic class Test\n{\n static void Main()\n {\n for (int i=0; i < 5; i++)\n {\n ... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] |
359,438 | <p>Does anyone know of any optimization packages out there for R (similar to NUOPT for S+)?</p>
| [
{
"answer_id": 1190707,
"author": "gappy",
"author_id": 143813,
"author_profile": "https://Stackoverflow.com/users/143813",
"pm_score": 4,
"selected": false,
"text": "optim()"
},
{
"answer_id": 14179446,
"author": "dwstu",
"author_id": 1764155,
"author_profile": "http... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2173/"
] |
359,439 | <p>I want to use HTTP GET and POST commands to retrieve URLs from a website and parse the HTML. How do I do this?</p>
| [
{
"answer_id": 360291,
"author": "Rob Hruska",
"author_id": 29995,
"author_profile": "https://Stackoverflow.com/users/29995",
"pm_score": 5,
"selected": true,
"text": "URL url = new URL(\"http://example.com\");\nHttpURLConnection connection = (HttpURLConnection)url.openConnection();\ncon... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359439",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16616/"
] |
359,459 | <p>Given the schema:</p>
<pre>
MACHINE_TYPE { machine_type }
MACHINE { machine, machine_type }
SORT_PLAN { sort_plan, machine_type }
SCHEDULE { day_of_week, machine, sort_plan }
</pre>
<p>and the business rule:</p>
<blockquote>
<p>A sort plan can be assigned to any
machine of the same machine_type.</p>
</blockqu... | [
{
"answer_id": 359508,
"author": "Charles Bretana",
"author_id": 32632,
"author_profile": "https://Stackoverflow.com/users/32632",
"pm_score": 2,
"selected": true,
"text": "MACHINE_TYPE { machine_type }\nMACHINE { machine, machine_type }\nSORT_PLAN { sort_plan}\nMACHINE_SORTPLAN {machine... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21294/"
] |
359,467 | <p>I have a question similar to the one here: <a href="https://stackoverflow.com/questions/341723/event-handlers-inside-a-javascript-loop-need-a-closure#341759">Event handlers inside a Javascript loop - need a closure?</a> but I'm using jQuery and the solution given seems to fire the event when it's bound rather than o... | [
{
"answer_id": 359505,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 5,
"selected": true,
"text": ".click(\n function(indGroup,indValue)\n {\n return function()\n {\n jQuery(\".IndicatorImage\")... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4950/"
] |
359,472 | <p><strong>How can I verify a Google authentication access token?</strong></p>
<p><strong>I need to somehow query Google and ask: Is [given access token] valid for the [example@example.com] Google account?</strong></p>
<h2>Short version</h2>
<p>It's clear how an access token supplied through the <a href="https://code.g... | [
{
"answer_id": 10498732,
"author": "ahmed",
"author_id": 855406,
"author_profile": "https://Stackoverflow.com/users/855406",
"pm_score": 4,
"selected": false,
"text": "function authenticate_google_OAuthtoken($user_id)\n{\n $access_token = google_get_user_token($user_id); // get exis... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5343/"
] |
359,492 | <p>Well I am querying my DB, a table called bookBilling, to get a value under the column of billingID. </p>
<p>In my first query I get the customer ID from a table based on what value the cookie holds.
In my second query I take that custID value and am looking to get the billingID associated with it.</p>
<pre><code>... | [
{
"answer_id": 359537,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 2,
"selected": false,
"text": "SELECT billingID\nFROM bookBilling bb\nINNER JOIN bookSession bs ON bs.custID=bb.custID\nWHERE bs.session= @theCookie\... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27620/"
] |
359,494 | <p>I'm using <a href="http://en.wikipedia.org/wiki/JSLint" rel="noreferrer">JSLint</a> to go through JavaScript, and it's returning many suggestions to replace <code>==</code> (two equals signs) with <code>===</code> (three equals signs) when doing things like comparing <code>idSele_UNVEHtype.value.length == 0</code> i... | [
{
"answer_id": 359509,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 14,
"selected": true,
"text": "==="
},
{
"answer_id": 359547,
"author": "Andreas Grech",
"author_id": 44084,
"author_profile": ... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359494",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44990/"
] |
359,495 | <p>Why are the lists <code>list1Instance</code> and <code>p</code> in the <code>Main</code> method of the below code pointing to the same collection? </p>
<pre><code>class Person
{
public string FirstName = string.Empty;
public string LastName = string.Empty;
public Person(string firstName... | [
{
"answer_id": 359507,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 6,
"selected": true,
"text": "IEnumerable<T>"
},
{
"answer_id": 359515,
"author": "Szymon Rozga",
"author_id": 7583,
"author_profile": "h... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26036/"
] |
359,497 | <p>I have seen a few suggestions on making emacs portable (on Windows). I have this in my site-start.el:</p>
<pre><code>(defvar program-dir (substring data-directory 0 -4))
(setq inhibit-startup-message t)
(setenv "HOME" program-dir)
</code></pre>
<p>I changed the HOME variable so that not only my .emacs init files ... | [
{
"answer_id": 359554,
"author": "ShreevatsaR",
"author_id": 4958,
"author_profile": "https://Stackoverflow.com/users/4958",
"pm_score": 3,
"selected": false,
"text": "emacsclient"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/359497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
359,498 | <p>I'm using ctypes to load a DLL in Python. This works great.</p>
<p>Now we'd like to be able to reload that DLL at runtime. </p>
<p>The straightforward approach would seem to be:
1. Unload DLL
2. Load DLL</p>
<p>Unfortunately I'm not sure what the correct way to unload the DLL is.</p>
<p>_ctypes.FreeLibrary is ... | [
{
"answer_id": 359570,
"author": "Piotr Lesnicki",
"author_id": 38796,
"author_profile": "https://Stackoverflow.com/users/38796",
"pm_score": 5,
"selected": true,
"text": "mydll = ctypes.CDLL('...')\ndel mydll\nmydll = ctypes.CDLL('...')\n"
},
{
"answer_id": 28610285,
"author... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6839/"
] |
359,516 | <p>Id like to be able to write a function that reads an external news site and returns the source code of the target page. Any ideas and/or information to get me started?</p>
| [
{
"answer_id": 359522,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 4,
"selected": true,
"text": "string GetOtherPage(System.Uri url)\n{\n return new System.Net.WebClient().DownloadString(url);\n}\n"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/359516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25515/"
] |
359,528 | <p>I have Visual Studio 2008 Professional and I am having issues with expanding and collapsing method code blocks in ASP.Net Generic Handler pages (.ashx)</p>
<p>I would have thought you could do the same thing like in the code behind of .aspx web pages.</p>
<p>I have this same issue on other boxes even with VS 2008 ... | [
{
"answer_id": 5741158,
"author": "bigEsmurf",
"author_id": 718525,
"author_profile": "https://Stackoverflow.com/users/718525",
"pm_score": 4,
"selected": false,
"text": "App_Code"
},
{
"answer_id": 6829083,
"author": "Kaspars",
"author_id": 863309,
"author_profile": ... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359528",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24522/"
] |
359,541 | <p>I have a small C library in a DLL and I need to call a handful of its methods.</p>
<p>It uses pointers and a few structs but is otherwise quite simple. Problem is I'm not terribly knowledgable on .NET's interop with the unmanaged world and my attempts so far keep hitting memory access violation exceptions (presumab... | [
{
"answer_id": 359843,
"author": "mherle",
"author_id": 42913,
"author_profile": "https://Stackoverflow.com/users/42913",
"pm_score": 3,
"selected": false,
"text": "[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]\npublic struct... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41475/"
] |
359,553 | <p>While debugging a Linux app, I found a pointer with the suspicious value 0x7c7c7c7c. Does that particular value indicate anything?</p>
<p>(I ask because I know from my MSVC days that in a debug build, values like 0xcdcdcdcd or 0xdddddddd would be stored into heap blocks that were uninitialized, freed, or otherwise... | [
{
"answer_id": 359574,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 2,
"selected": false,
"text": "memset()"
},
{
"answer_id": 359792,
"author": "oliver",
"author_id": 2148773,
"author_profile": ... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1175/"
] |
359,582 | <p>A client has installed Sql server 2005 reporting services. When we go to the web bit at <code>http://servername/reports/</code> we just see a blank screen like:
<img src="https://i.stack.imgur.com/nGQXH.jpg" alt="http://img91.imageshack.us/img91/3787/rsblankqx4.jpg"></p>
<p>We are using windows authentication and ... | [
{
"answer_id": 359574,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 2,
"selected": false,
"text": "memset()"
},
{
"answer_id": 359792,
"author": "oliver",
"author_id": 2148773,
"author_profile": ... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23066/"
] |
359,590 | <p>How do I get the reference to a folder for storing per-user-per-application settings when writing an Objective-C Cocoa app in Xcode?</p>
<p>In .NET I would use the <code>Environment.SpecialFolder</code> enumeration:</p>
<pre><code>Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
</code></pre>
... | [
{
"answer_id": 359819,
"author": "Marc Charbonneau",
"author_id": 35136,
"author_profile": "https://Stackoverflow.com/users/35136",
"pm_score": 5,
"selected": true,
"text": "~/Library/Preferences/"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/359590",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6408/"
] |
359,596 | <p>In a .NET application, how can I identify which network interface is used to communicate to a given IP address?</p>
<p>I am running on workstations with multiple network interfaces, IPv4 and v6, and I need to get the address of the "correct" interface used for traffic to my given database server.</p>
| [
{
"answer_id": 359640,
"author": "Paul Nearney",
"author_id": 24071,
"author_profile": "https://Stackoverflow.com/users/24071",
"pm_score": 2,
"selected": false,
"text": "using System.Management;\nstring query = \"SELECT * FROM Win32_NetworkAdapterConfiguration\";\nManagementObjectSearch... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38567/"
] |
359,601 | <p>I'm looking for a single line regex which does the following:</p>
<p>Given a HTML tag with the "name" attribute, I want to replace it with my own attribute. If that tag lacks the name attribute, I want to implant my own attribute. The result should look like this:</p>
<pre><code><IMG name="img1" ...> => &... | [
{
"answer_id": 359724,
"author": "Tim Pietzcker",
"author_id": 20670,
"author_profile": "https://Stackoverflow.com/users/20670",
"pm_score": 0,
"selected": false,
"text": "<(?!/)(/w+)\\s+(name=\"[^\"]+\")?"
},
{
"answer_id": 359773,
"author": "Sean",
"author_id": 45364,
... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9941/"
] |
359,612 | <p>How can I convert a RGB Color to HSV using C#?<br/>
I've searched for a fast method without using any external library.</p>
| [
{
"answer_id": 637025,
"author": "georged",
"author_id": 70347,
"author_profile": "https://Stackoverflow.com/users/70347",
"pm_score": 6,
"selected": true,
"text": "System.Drawing.Color color = System.Drawing.Color.FromArgb(red, green, blue);\nfloat hue = color.GetHue();\nfloat saturatio... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38940/"
] |
359,620 | <p>Can you use a Spring-WS WebserviceTemplate for calling a webservice and avoid that it generates a SOAP-envelope? That is, the message already contains an SOAP-Envelope and I don't want that the WebserviceTemplate wraps another one around it. :-)</p>
<p>The reason I want this is that I'd like to call a webservice th... | [
{
"answer_id": 415769,
"author": "Domchi",
"author_id": 29192,
"author_profile": "https://Stackoverflow.com/users/29192",
"pm_score": 3,
"selected": true,
"text": "<bean id=\"webServiceTemplate\" class=\"org.springframework.ws.client.core.WebServiceTemplate\">\n <property name=\"messa... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21499/"
] |
359,625 | <p>Is there a better, more elegant (and/or possibly faster) way than</p>
<pre><code>boolean isNumber = false;
try{
Double.valueOf(myNumber);
isNumber = true;
} catch (NumberFormatException e) {
}
</code></pre>
<p>...?</p>
<hr>
<p><strong>Edit</strong>:
Since I can't pick two answers I'm going with the regex o... | [
{
"answer_id": 359632,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "String.matches(\"^[\\\\d\\\\-\\\\.]+$\");"
},
{
"answer_id": 359634,
"author": "Jon Skeet",
"author_id": 22656... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359625",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] |
359,633 | <p>Is it best practice to wrap a web service method/call into a try/catch block?</p>
<p>I don't web service requests tend to be the reason why the .NET desktop applications crash? So I was thinking all calls should be wrapped in try/catch to prevent this.</p>
<p>Good idea?</p>
<p>Also, should it throw an exception o... | [
{
"answer_id": 359710,
"author": "Maghis",
"author_id": 45355,
"author_profile": "https://Stackoverflow.com/users/45355",
"pm_score": 2,
"selected": false,
"text": "#if !DEBUG\ncatch (Exception ex)\n{\n // show messagebox, log, etc\n}\n#endif\n"
},
{
"answer_id": 4593824,
... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39677/"
] |
359,635 | <p>What's the best way to implement a classic curry function in actionscript with a nice syntax?</p>
<p>I've tried:</p>
<pre><code>Function.prototype.curry = function()
{
return "helloWorld";
}
trace((function():void {}).curry());
</code></pre>
<p>...approach but that didn't work. </p>
<p>I guess I'm stuck with a ... | [
{
"answer_id": 359774,
"author": "Niels Bosma",
"author_id": 40939,
"author_profile": "https://Stackoverflow.com/users/40939",
"pm_score": 1,
"selected": false,
"text": "public static function curry(func:Function, ... args:Array):*\n{\n var arity:int = func.length;\n var currying:F... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40939/"
] |
359,656 | <p>We are trying to develop an application to view and annotate PDF files in ASP.net. </p>
<p>The function involves capturing x,y coordinates from a click and placing the annotation on that specific location.</p>
<p>Are there available components to do this?</p>
<p>Thanks in advance.</p>
| [
{
"answer_id": 359774,
"author": "Niels Bosma",
"author_id": 40939,
"author_profile": "https://Stackoverflow.com/users/40939",
"pm_score": 1,
"selected": false,
"text": "public static function curry(func:Function, ... args:Array):*\n{\n var arity:int = func.length;\n var currying:F... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
359,657 | <p>I've use Moq to mock my <a href="http://martinfowler.com/eaaCatalog/repository.html" rel="nofollow noreferrer">repositories</a>. However, someone recently said that they prefer to create hard-coded test implementations of their repository interfaces.</p>
<p>What are the pros and cons of each approach?</p>
<p><stro... | [
{
"answer_id": 359692,
"author": "matt b",
"author_id": 4249,
"author_profile": "https://Stackoverflow.com/users/4249",
"pm_score": 0,
"selected": false,
"text": "public interface UserDao {\n User getUser(int userid);\n User getUser(String login);\n}\n\npublic class InMemoryUserDao... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43649/"
] |
359,660 | <p>I have an xml string </p>
<pre><code><grandparent>
<parent>
<child>dave</child>
<child>laurie</child>
<child>gabrielle</child>
</parent>
</grandparrent>
</code></pre>
<p>What I want to get is the data raw xml that's inside the p... | [
{
"answer_id": 361142,
"author": "Jeff Yates",
"author_id": 23234,
"author_profile": "https://Stackoverflow.com/users/23234",
"pm_score": 0,
"selected": false,
"text": "iXMLElm"
},
{
"answer_id": 6261202,
"author": "psp",
"author_id": 724917,
"author_profile": "https:... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31325/"
] |
359,672 | <p>Is there a way other than looping through the Files in a SPFolder to determine if a give filename (string) exists?</p>
| [
{
"answer_id": 363869,
"author": "Lars Fastrup",
"author_id": 27393,
"author_profile": "https://Stackoverflow.com/users/27393",
"pm_score": 6,
"selected": true,
"text": "using (SPSite site = new SPSite(\"http://server/site\"))\nusing (SPWeb web = site.OpenWeb())\n{\n SPFile file = web.G... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359672",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7001/"
] |
359,675 | <h2>Goal</h2>
<p>Java client for Yahoo's HotJobs <a href="http://developer.yahoo.com/hotjobs/resume_search_user_guide/index.html" rel="nofollow noreferrer">Resumé Search REST API</a>. </p>
<h2>Background</h2>
<p>I'm used to writing web-service clients for SOAP APIs, where <a href="https://jax-ws.dev.java.net/jax-ws-... | [
{
"answer_id": 597248,
"author": "StaxMan",
"author_id": 59501,
"author_profile": "https://Stackoverflow.com/users/59501",
"pm_score": 2,
"selected": false,
"text": "@XmlRootElement(\"Response\")\nclass Response {\n public int responseCode;\n public String responseMessage;\n public St... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7679/"
] |
359,699 | <p>I want to pass an enum value as command parameter in WPF, using something like this:</p>
<pre><code><Button
x:Name="uxSearchButton"
Command="{Binding Path=SearchMembersCommand}"
CommandParameter="SearchPageType.First"
Content="Search">
</Button>
</code></pre>
<p><code>SearchPageType<... | [
{
"answer_id": 360076,
"author": "Jobi Joy",
"author_id": 8091,
"author_profile": "https://Stackoverflow.com/users/8091",
"pm_score": 9,
"selected": true,
"text": "<Button CommandParameter=\"{x:Static local:SearchPageType.First}\" .../>\n"
},
{
"answer_id": 360639,
"author": ... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45382/"
] |
359,706 | <p>I'm using PIL (Python Imaging Library). I'd like to draw transparent polygons. It seems that specifying a fill color that includes alpha level does not work. Are their workarounds?</p>
<p>If it can't be done using PIL I'm willing to use something else.</p>
<p>If there is more than one solution, then performance... | [
{
"answer_id": 433638,
"author": "akdom",
"author_id": 145,
"author_profile": "https://Stackoverflow.com/users/145",
"pm_score": 3,
"selected": false,
"text": "color_layer = Image.new('RGBA', base_layer.size, fill_rgb)\nalpha_mask = Image.new('L', base_layer.size, 0)\nalpha_mask_draw = I... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20498/"
] |
359,707 | <p>I've done most of my work on VisualStudio and don't have much experience with gcc or g++. When I tried to compile a (ex. aprogram.cpp) this morning on my pc using cygwin, I got (aprogram.exe) when I tried to compile the same thing on my Ubuntu box I got (aprogram) w/o any extension. I am just wondering if someone be... | [
{
"answer_id": 359714,
"author": "Charlie Martin",
"author_id": 35092,
"author_profile": "https://Stackoverflow.com/users/35092",
"pm_score": 4,
"selected": false,
"text": "-o"
},
{
"answer_id": 359726,
"author": "helloandre",
"author_id": 50,
"author_profile": "https... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41104/"
] |
359,722 | <p>I own a website and I wonder if there is a script that get files for me from other links on the net a load it to my server.</p>
<p>Suppose I found a file with a size of 400 mb, I want to host it on my server. The normal way I used is to download the file to my pc then upload it to my server but is there a script or... | [
{
"answer_id": 359749,
"author": "UnkwnTech",
"author_id": 115,
"author_profile": "https://Stackoverflow.com/users/115",
"pm_score": 2,
"selected": true,
"text": "<?php\n$remotefh = fopen('http://domain.tld/path/to/file.ext', 'r'); \n$localfh = fopen('local/file.ext', 'w');\nwhile(!feof(... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359722",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
359,727 | <p>I've run into strange problem in my Flex/Flashcom application. If client application unexpectedly disconnects from server latter does not call application.onDisconnect handler function. In witch direction should I look? Thank you.</p>
<p><strong>Update</strong> I'm not using server components, but I do host this th... | [
{
"answer_id": 486543,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": true,
"text": "onConnectAccept"
},
{
"answer_id": 501826,
"author": "Willem",
"author_id": 15447,
"author_profile": "https:... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2313/"
] |
359,732 | <p>Why does everyone tell me writing code like this is a bad practice?</p>
<pre><code>if (foo)
Bar();
//or
for(int i = 0 i < count; i++)
Bar(i);
</code></pre>
<p>My biggest argument for omitting the curly braces is that it can sometimes be twice as many lines with them. For example, here is some code to ... | [
{
"answer_id": 359747,
"author": "Elie",
"author_id": 23249,
"author_profile": "https://Stackoverflow.com/users/23249",
"pm_score": 3,
"selected": false,
"text": "if (foo)\n bar();\n"
},
{
"answer_id": 359750,
"author": "George Stocker",
"author_id": 16587,
"author... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45/"
] |
359,733 | <p>I recently learnt that oracle has a feature which was pretty useful to me - as the designer/implementator didn't care much about data history - I can query the historical state of a record if it's available yet in the oracle cache, like this:</p>
<pre><code>select *
from ( select *
from sometable whe... | [
{
"answer_id": 359810,
"author": "Dave Costa",
"author_id": 6568,
"author_profile": "https://Stackoverflow.com/users/6568",
"pm_score": 0,
"selected": false,
"text": "SELECT *\n FROM sometable\n VERSIONS BETWEEN TIMESTAMP systimestamp - 1 AND systimestamp\n"
},
{
"answer_id": 3... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11621/"
] |
359,742 | <p>I have a windows application that I want to run as a windows service - how can I do this ?</p>
| [
{
"answer_id": 359818,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 1,
"selected": false,
"text": "static class Program\n{\n static void Main()\n {\n ServiceBase[] ServicesToRun;\n ServicesT... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26809/"
] |
359,745 | <p>I have a microcontroller that must download a large file from a PC serial port (115200 baud) and write it to serial flash memory over SPI (~2 MHz). The flash writes must be in 256 byte blocks preceded by a write command and page address. The total RAM available on the system is 1 kB with an 80 byte stack size.</p>
... | [
{
"answer_id": 359955,
"author": "joshperry",
"author_id": 30587,
"author_profile": "https://Stackoverflow.com/users/30587",
"pm_score": 3,
"selected": true,
"text": "typedef struct data_buffer {\n char flags;\n char[128] data;\n}\n"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/359745",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1491/"
] |
359,758 | <p>How do I set tab ordering in WPF? I have an ItemsControl with some items expanded and some collapsed and would like to skip the collapsed ones when I'm tabbing.</p>
<p>Any ideas?</p>
| [
{
"answer_id": 360585,
"author": "Jab",
"author_id": 29676,
"author_profile": "https://Stackoverflow.com/users/29676",
"pm_score": 7,
"selected": true,
"text": "KeyboardNavigation.IsTabStop=\"False\"\n"
},
{
"answer_id": 591668,
"author": "Drew Noakes",
"author_id": 24874... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41304/"
] |
359,763 | <h2>Short version</h2>
<p>How do i use an API call when i cannot guarantee that the window
handle will remain valid? </p>
<p>i can guarantee that i'm holding a reference to my form (so the form is not being disposed). That doesn't guarantee that the form's <strong>handle</strong> will stay valid all that time. </p>
... | [
{
"answer_id": 1980367,
"author": "Serghei Gorodetki",
"author_id": 240925,
"author_profile": "https://Stackoverflow.com/users/240925",
"pm_score": 0,
"selected": false,
"text": "this.RightToLeft = RightToLeft.Yes;\n"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/359763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
359,775 | <p>If I want to display an underlined value in a TextBlock, I have to use a Run element. (If there's a better/easier way, I'd love to hear about it.)</p>
<pre><code><TextBlock>
<Run TextDecorations="Underline" Text="MyText" />
</TextBlock>
</code></pre>
<p>Ideally, to implement this within a DataT... | [
{
"answer_id": 359833,
"author": "Sacha Bruttin",
"author_id": 20761,
"author_profile": "https://Stackoverflow.com/users/20761",
"pm_score": 0,
"selected": false,
"text": "<TextBlock Text=\"MyText\" TextDecorations=\"Underline\" />\n"
},
{
"answer_id": 359854,
"author": "josh... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30095/"
] |
359,782 | <p>I have a mysql table that relies on the unix epoch time stamp equivalent of the date of the entry to sort and filter in various parts of the website. I'm trying to implement a date picker that will enter the date into the form field in the mm/dd/yyyy format. I've been struggling with converting that date into the un... | [
{
"answer_id": 359914,
"author": "Matt",
"author_id": 42135,
"author_profile": "https://Stackoverflow.com/users/42135",
"pm_score": 5,
"selected": true,
"text": "strtotime($_POST['app_date']);\n"
},
{
"answer_id": 359943,
"author": "Community",
"author_id": -1,
"autho... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45389/"
] |
359,788 | <p>I have the name of a function in JavaScript as a string. How do I convert that into a function pointer so I can call it later?</p>
<p>Depending on the circumstances, I may need to pass various arguments into the method too.</p>
<p>Some of the functions may take the form of <code>namespace.namespace.function(args[.... | [
{
"answer_id": 359799,
"author": "Eli Courtwright",
"author_id": 1694,
"author_profile": "https://Stackoverflow.com/users/1694",
"pm_score": 6,
"selected": false,
"text": "window[\"foo\"](arg1, arg2);\n"
},
{
"answer_id": 359842,
"author": "annakata",
"author_id": 13018,
... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5791/"
] |
359,816 | <p>I am very new to grails.I am doing one sample project for image uploading and displaying.Right now my project uploads the images and stores into the images directory.Now i want to display all the images stored in the "image" directory.
I dont know how to write the gsp code for display all images.</p>
<p>For display... | [
{
"answer_id": 359844,
"author": "mat",
"author_id": 42083,
"author_profile": "https://Stackoverflow.com/users/42083",
"pm_score": 2,
"selected": false,
"text": "<g:each in=\"${imageList}\" var=\"image\">\n<img src=\"${createLinkTo(dir: 'images', file: image.filename)}\" alt=\"Grails\"/>... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40945/"
] |
359,821 | <p>I want to style the last TD in a table without using a CSS class on the particular TD.</p>
<pre><code><table>
<tbody>
<tr>
<td>One</td>
<td>Two</td>
<td>Three</td>
<td>Four</td>
<td>Five</td>
</t... | [
{
"answer_id": 359838,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 6,
"selected": true,
"text": "table td + td + td + td + td {\n border: none;\n}\n"
},
{
"answer_id": 359849,
"author": "yoavf",
"author_id... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
359,824 | <p>I have a chunk of <a href="http://en.wikipedia.org/wiki/MultiDimensional_eXpressions" rel="nofollow noreferrer">MDX</a> that I'd like to throw into an ASP.NET form. Hopefully just binding the results to a gridview. Are there any good links or snippets? I'm using VB.NET, but I am able to port from C# if no Visual ... | [
{
"answer_id": 359838,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 6,
"selected": true,
"text": "table td + td + td + td + td {\n border: none;\n}\n"
},
{
"answer_id": 359849,
"author": "yoavf",
"author_id... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13954/"
] |
359,827 | <p>I need to compare 2 strings in C# and treat accented letters the same as non-accented letters. For example:</p>
<pre><code>string s1 = "hello";
string s2 = "héllo";
s1.Equals(s2, StringComparison.InvariantCultureIgnoreCase);
s1.Equals(s2, StringComparison.OrdinalIgnoreCase);
</code></pre>
<p>These 2 strings need ... | [
{
"answer_id": 359874,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": -1,
"selected": false,
"text": "using System;\nusing System.Globalization;\n\nclass Sample {\n public static void Main() {\n String str1 = \"change\";\... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/343/"
] |
359,829 | <p>As our PHP5 OO application grew (in both size and traffic), we decided to revisit the __autoload() strategy.</p>
<p>We always name the file by the class definition it contains, so class Customer would be contained within Customer.php. We used to list the directories in which a file can potentially exist, until the ... | [
{
"answer_id": 359906,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "\n load_class($class_name, $instansiate);\n"
},
{
"answer_id": 359965,
"author": "Rob Hruska",
"author_id": 29... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8437/"
] |
359,831 | <p>I'm new to RhinoMock's just been doing state unit testing up till now.</p>
<p>How do you test void functions?</p>
<p>Getting the following complie error when setting up expectation,</p>
<p><em>Expression does not produce a value</em></p>
<p>Basically I want to test that a certain mock's method is called a certai... | [
{
"answer_id": 555675,
"author": "Judah Gabriel Himango",
"author_id": 536,
"author_profile": "https://Stackoverflow.com/users/536",
"pm_score": 0,
"selected": false,
"text": "Expect.Call(() => someVoidFunction());\n"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/359831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31766/"
] |
359,836 | <p>I'm trying to determine if any changes were made to a particular entity object. Essentially, I want to know if SubmitChanges() will actually change anything. I would prefer to be able to determine this after SubmitChanges() has been called, but it doesn't really matter.</p>
<p>Anyone know how I would do this?</p>
| [
{
"answer_id": 361185,
"author": "Jeremy Cantrell",
"author_id": 18866,
"author_profile": "https://Stackoverflow.com/users/18866",
"pm_score": 2,
"selected": true,
"text": "Public Function HasChanges(ByVal obj As Object) As Boolean\n Dim cs = GetChangeSet()\n If cs.Updates.Contains... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359836",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18866/"
] |
359,851 | <p>how can I debug a dll that is not loaded by the java application.</p>
<p>The scenario is this: my java app is loading the jni.dll that is using another dll and that dll is using another dll.</p>
<p>java<->jni.dll<->dll<->dll </p>
<p>I have the source code for all modules</p>
<p>I am using visual studio ... | [
{
"answer_id": 359950,
"author": "Martin Cowie",
"author_id": 42429,
"author_profile": "https://Stackoverflow.com/users/42429",
"pm_score": 0,
"selected": false,
"text": "_asm int 3;"
},
{
"answer_id": 2211768,
"author": "cx0der",
"author_id": 95768,
"author_profile":... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359851",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
359,870 | <p>I am working in a .NET environment where the system occasionally generates log entries for a customer. Messages are then appended to a customer log which can be reviewed at a later time.</p>
<p>For example, if a customer is subscribing to a new service, or a customer has a failed payment attempt, these messages get... | [
{
"answer_id": 360130,
"author": "Treb",
"author_id": 22114,
"author_profile": "https://Stackoverflow.com/users/22114",
"pm_score": 1,
"selected": false,
"text": "enum LogMessages\n{\n OutOfDiskSpace = 1;\n OutOfMemory = 2;\n OutOfCoffee = 3;\n}\n"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/359870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42272/"
] |
359,880 | <p>I have been tasked with creating a new frontend for a legacy website.</p>
<p>It is written in php (pre-oo), and uses a MySQL database. The hosting provides a .Net package, but does not offer Ms Sql Server. </p>
<p>This is fine, as the database is working fine, but I really want to use Asp.net for the pages. Howeve... | [
{
"answer_id": 359892,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 3,
"selected": false,
"text": "string MyConString = \"SERVER=localhost;\" +\n \"DATABASE=mydatabase;\" +\n \"UID=testuser;\" +\n \"PA... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359880",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21124/"
] |
359,881 | <p>What is the most efficient way of setting values in C# multi-dimensional arrays using a linear index? For example given an array...</p>
<pre><code>int[,,] arr2 = { {{0,1,2}, {3,4,5}, {6,7,8}}
, {{9,10,11}, {12,13,14}, {15,16,17}}
, {{18,19,20}, {21,22,23}, {24,25,26}}
};
</... | [
{
"answer_id": 359924,
"author": "Nicholas Mancuso",
"author_id": 8945,
"author_profile": "https://Stackoverflow.com/users/8945",
"pm_score": 0,
"selected": false,
"text": "SetValue()"
},
{
"answer_id": 360022,
"author": "JB King",
"author_id": 8745,
"author_profile":... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39648/"
] |
359,885 | <p>My application has just started exhibiting strange behaviour.</p>
<p>I can boot it through the Carbide Debugger (using TRK) and it works fine with no visible errors and is left installed on the device.</p>
<p>Any further attempts to launch the application fail, even after a restart. Uninstalling and downloading th... | [
{
"answer_id": 359924,
"author": "Nicholas Mancuso",
"author_id": 8945,
"author_profile": "https://Stackoverflow.com/users/8945",
"pm_score": 0,
"selected": false,
"text": "SetValue()"
},
{
"answer_id": 360022,
"author": "JB King",
"author_id": 8745,
"author_profile":... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359885",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33604/"
] |
359,887 | <p>I am building a search box (input field) which should make a server call to filter a grid with the text being inserted on it but I need to make this in an smart way, I need to fire the server call only if the user has stopped.
Right now I'm trying to implement it, but if someone knows how to do it I'll be very plea... | [
{
"answer_id": 359908,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 6,
"selected": true,
"text": "var searchTimeout;\ndocument.getElementById('searchBox').onkeypress = function () {\n if (searchTimeout != undefined) clearT... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33205/"
] |
359,891 | <p>I've hit upon a problem with WSADuplicateSocket, which I'm using to duplicate a socket for use by a different process. It works find when both processes are running under the same Windows user, but fails with error code 10022 (WSAEINVAL) when they are running under different users.</p>
<p>Specifically, the process ... | [
{
"answer_id": 359908,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 6,
"selected": true,
"text": "var searchTimeout;\ndocument.getElementById('searchBox').onkeypress = function () {\n if (searchTimeout != undefined) clearT... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35090/"
] |
359,894 | <p>I'm using an image component that has a FromBinary method. Wondering how do I convert my input stream into a byte array</p>
<pre><code>HttpPostedFile file = context.Request.Files[0];
byte[] buffer = new byte[file.ContentLength];
file.InputStream.Read(buffer, 0, file.ContentLength);
ImageElement image = ImageElemen... | [
{
"answer_id": 359984,
"author": "Wolfwyrd",
"author_id": 15570,
"author_profile": "https://Stackoverflow.com/users/15570",
"pm_score": 9,
"selected": true,
"text": "byte[] fileData = null;\nusing (var binaryReader = new BinaryReader(Request.Files[0].InputStream))\n{\n fileData = bina... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/461880/"
] |
359,895 | <p>I'm seeing a lot of Javascript errors in IE8 on pages which worked fine in IE7 (and Firefox, Chrome, and Safari). I know that IE made some changes to things like Javascript security. Some of these don't give clear error messages - things like cross-domain violations can end up throwing very vague exceptions.</p>
<p... | [
{
"answer_id": 363092,
"author": "scunliffe",
"author_id": 6144,
"author_profile": "https://Stackoverflow.com/users/6144",
"pm_score": 5,
"selected": true,
"text": "1.) document.getElementById( id ); //now only returns the CORRECT matches!\n"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/359895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5/"
] |
359,903 | <p>Kind of a weird question, but. I need to have a list of strings i need to make sure that every string in that list is the same.</p>
<p>E.g:</p>
<pre><code>a = ['foo', 'foo', 'boo'] #not valid
b = ['foo', 'foo', 'foo'] #valid
</code></pre>
<p>Whats the best way to go about doing that?</p>
<p>FYI, i don't know how... | [
{
"answer_id": 359945,
"author": "Jordan Parmer",
"author_id": 20133,
"author_profile": "https://Stackoverflow.com/users/20133",
"pm_score": 4,
"selected": true,
"text": "if a.count( \"foo\" ) != len(a)\n"
},
{
"answer_id": 359952,
"author": "Andrew Cox",
"author_id": 279... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359903",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34395/"
] |
359,905 | <p>I have a UserControl Library solution which has the following </p>
<p>UserControl
---UserControl project</p>
<pre><code> ---UserControl Test Project
</code></pre>
<p>IN my test project, I am able to add my usercontrol to the tool box. When i drag it and drop it in my forms, it fails. I put in logging and f... | [
{
"answer_id": 359940,
"author": "Joe",
"author_id": 13087,
"author_profile": "https://Stackoverflow.com/users/13087",
"pm_score": 0,
"selected": false,
"text": "if (this.Site != null && this.Site.DesignMode)\n{\n ... design time behavior\n}\nelse\n{\n ... runtime behavior (read co... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38230/"
] |
359,921 | <p>I've got a test class in a module that extends another test class in one of its dependency modules. How can I import the dependency's test code into the test scope of the dependent module?</p>
<p>To illiterate, I've got two modules, "module-one" being a dependency of "module-two". <code>SubTestCase</code> is a subc... | [
{
"answer_id": 1206760,
"author": "Rich Seller",
"author_id": 123582,
"author_profile": "https://Stackoverflow.com/users/123582",
"pm_score": 5,
"selected": false,
"text": " <plugin>\n <groupId>org.apache.maven.plugins</groupId>\n <artifactId>maven-jar-plugin</artifactId>\n <ex... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359921",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4893/"
] |
359,928 | <p>I want to use a signals/slots library in a project that doesn't use QT. I have pretty basic requirements: </p>
<ol>
<li>Connect two functions with any number of parameters.</li>
<li>Signals can be connected to multiple slots.</li>
<li>Manual disconnection of signal/slot connection.</li>
<li>Decent performance - the... | [
{
"answer_id": 4561541,
"author": "Rodrigo Lopez",
"author_id": 36295,
"author_profile": "https://Stackoverflow.com/users/36295",
"pm_score": 2,
"selected": false,
"text": "COREEXTERN template class COREIMPEXP has_slots<SIGSLOT_DEFAULT_MT_POLICY>;\n"
},
{
"answer_id": 25554107,
... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33982/"
] |
359,931 | <p>EDIT: I found out that I can get it to compile if I cast the IMetadataType object to the TMetadata type. Why do I need to do this?</p>
<p>EDIT #2: The "Values" property is a .NET dictionary of type <TMetadata, TData>.</p>
<p>I have this generic method:</p>
<pre><code>private void FillMetadata<TMetadat... | [
{
"answer_id": 4561541,
"author": "Rodrigo Lopez",
"author_id": 36295,
"author_profile": "https://Stackoverflow.com/users/36295",
"pm_score": 2,
"selected": false,
"text": "COREEXTERN template class COREIMPEXP has_slots<SIGSLOT_DEFAULT_MT_POLICY>;\n"
},
{
"answer_id": 25554107,
... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44626/"
] |
359,933 | <p>Since IronPython doesn't support attributes I am wondering if there is another way to decorate IronPython classes with attributes, perhaps with reflection?</p>
| [
{
"answer_id": 4561541,
"author": "Rodrigo Lopez",
"author_id": 36295,
"author_profile": "https://Stackoverflow.com/users/36295",
"pm_score": 2,
"selected": false,
"text": "COREEXTERN template class COREIMPEXP has_slots<SIGSLOT_DEFAULT_MT_POLICY>;\n"
},
{
"answer_id": 25554107,
... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1740/"
] |
359,957 | <p>I'm trying to find out the last time a computer came out of standby/hibernate. I know I could get this by watching Win32_PowerManagementEvent, but that doesn't work in this instance as I need something I can poll - any ideas? It doesn't have to be WMI, I'm just assuming that's the place it would be.</p>
<p>Thanks!<... | [
{
"answer_id": 360157,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "Register-WmiEvent -query \"Select * From Win32_PowerManagementEvent where EventType=7\" -messagedata \"Power Management Resume... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
359,959 | <p>When parsing HTML for certain web pages (most notably, any windows live page) I encounter a lot of URL’s in the following format.</p>
<p>http\x3a\x2f\x2fjs.wlxrs.com\x2fjt6xQREgnzkhGufPqwcJjg\x2fempty.htm</p>
<p>These appear to be partially UTF8 escaped strings (\x2f = /, \x3a=:, etc …). Is there a .Net API that ... | [
{
"answer_id": 1421687,
"author": "Timwi",
"author_id": 33225,
"author_profile": "https://Stackoverflow.com/users/33225",
"pm_score": 3,
"selected": true,
"text": "HttpUtility.UrlDecode()"
},
{
"answer_id": 14286569,
"author": "Royi Namir",
"author_id": 859154,
"autho... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359959",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23283/"
] |
359,978 | <p>I have written a C# Windows Forms application to merge the files and folders from a remote folder on one machine ("source" folder is a mapped drive - "Z:\folder") with another remote folder on a different machine ("destination" folder is a UNC path to a shared folder - "\\computername\sharedfolder"). I have Full per... | [
{
"answer_id": 360025,
"author": "Rob Prouse",
"author_id": 30827,
"author_profile": "https://Stackoverflow.com/users/30827",
"pm_score": 3,
"selected": false,
"text": "@ECHO OFF\nSET CASPOL=%windir%\\Microsoft.NET\\Framework\\v2.0.50727\\CasPol.exe\nCLS\n\n%CASPOL% -pp off\n%CASPOL% -m ... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45405/"
] |
359,986 | <p>I have a multilingual ASP.NET site; one of the languages is Arabic (ar-SA). To switch between cultures, I use this code: </p>
<pre><code>Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(Name)
Thread.CurrentThread.CurrentUICulture = New CultureInfo(Name)
</code></pre>
<p>When displaying the d... | [
{
"answer_id": 360170,
"author": "Herb Caudill",
"author_id": 239663,
"author_profile": "https://Stackoverflow.com/users/239663",
"pm_score": 5,
"selected": true,
"text": "ar-AE 11 ديسمبر 2008 \nar-BH 11 ديسمبر 2008 \nar-DZ 11 ديسمبر 2008 \nar-EG 11 ديسمبر 2008 \nar-IQ 11 كانون الأول 200... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/239663/"
] |
359,992 | <p>In my Symbian S60 application, my Options menu works as expected. But the Exit button does nothing.</p>
<p>I am developing with Carbide and have used the UI Designer to add items to the options menu.</p>
<p>Does anyone know how to enable the exit button, or why else it might not work?</p>
<p>Thanks!</p>
| [
{
"answer_id": 360032,
"author": "Kasprzol",
"author_id": 5957,
"author_profile": "https://Stackoverflow.com/users/5957",
"pm_score": 3,
"selected": true,
"text": "appui::HandleCommandL"
},
{
"answer_id": 360044,
"author": "ayaz",
"author_id": 23191,
"author_profile":... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359992",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33604/"
] |
360,007 | <p>I'm trying to deploy <a href="http://code.google.com/p/elmah/" rel="nofollow noreferrer">elmah</a>. For inexplicable reasons, I'm getting an error: .axd files are explicitly forbidden. I've already fixed what I can control (my web.config) and solutions requiring collaboration from the system admin are <em>not</em>... | [
{
"answer_id": 424939,
"author": "MatthewMartin",
"author_id": 33264,
"author_profile": "https://Stackoverflow.com/users/33264",
"pm_score": 3,
"selected": true,
"text": "<add verb=\"POST,GET,HEAD\" path=\"elmah.ashx\" type=\"Elmah.ErrorLogPageFactory, Elmah\" />\n"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/360007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33264/"
] |
360,013 | <p>I'm curious if it's possible to intercept the default methods of 'Edit' mode on a UITableView. Typically you get a free 'delete' button if you side swipe a UITableViewCell that has delegate methods associated with it. I'd like to change the delete to some other, arbitrary selector. Instead of deleting the cell, I'd ... | [
{
"answer_id": 365099,
"author": "Lily Ballard",
"author_id": 582,
"author_profile": "https://Stackoverflow.com/users/582",
"pm_score": 2,
"selected": false,
"text": "editAction"
},
{
"answer_id": 1249754,
"author": "Adam Prall",
"author_id": 1822483,
"author_profile"... | 2008/12/11 | [
"https://Stackoverflow.com/questions/360013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40882/"
] |
360,016 | <p>Today our virtual W2003 server storing our SVN repository (too) became very-very busy. It turned out that it had only 88KB free space left on the C: drive. Not that good. Due to access problems, the only way we could reboot it by killing the busy processes from task manager (McAffee, SqlServer, services.exe) and the... | [
{
"answer_id": 365099,
"author": "Lily Ballard",
"author_id": 582,
"author_profile": "https://Stackoverflow.com/users/582",
"pm_score": 2,
"selected": false,
"text": "editAction"
},
{
"answer_id": 1249754,
"author": "Adam Prall",
"author_id": 1822483,
"author_profile"... | 2008/12/11 | [
"https://Stackoverflow.com/questions/360016",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24451/"
] |
360,024 | <p>I'd like to set a connection string programmatically, with absolutely no change to any config files / registry keys.</p>
<p>I have this piece of code, but unfortunately it throws an exception with "the configuration is read only".</p>
<pre><code>ConfigurationManager.ConnectionStrings.Clear();
string connectionStri... | [
{
"answer_id": 360052,
"author": "Robert S.",
"author_id": 7565,
"author_profile": "https://Stackoverflow.com/users/7565",
"pm_score": 1,
"selected": false,
"text": "Resources.Default.ConnectionString = \"Server=myserver;\" // etc"
},
{
"answer_id": 377573,
"author": "David G... | 2008/12/11 | [
"https://Stackoverflow.com/questions/360024",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11236/"
] |
360,028 | <p>Moments ago <a href="http://twitter.com/codinghorror/status/1051535711" rel="nofollow noreferrer">Jeff Atwood said the following on twitter</a>:</p>
<blockquote>
<p>Look, I love rapid new software releases, but the frequency of WordPress releases is just ridiculous.</p>
</blockquote>
<p>Which makes me think, <st... | [
{
"answer_id": 360091,
"author": "chills42",
"author_id": 23855,
"author_profile": "https://Stackoverflow.com/users/23855",
"pm_score": 3,
"selected": false,
"text": "releaseDelta = updateTime/((1/365)*(60*60*8))\n"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/360028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/383/"
] |
360,030 | <p>I have a Java method which returns an array of doubles. I would then like to store these values in individual variables in the calling function. Is there an elegant way of doing this in Java.</p>
<p>I could write it as this:</p>
<pre><code>double[] returnValues = calculateSomeDoubles();
double firstVar = returnVa... | [
{
"answer_id": 360060,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": "https://Stackoverflow.com/users/20654",
"pm_score": 1,
"selected": false,
"text": " SomeUtility.fill( myObject , withDoublesFromMethod() );\n"
},
{
"answer_id": 360117,
"author": "Nick Holt",
... | 2008/12/11 | [
"https://Stackoverflow.com/questions/360030",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/277/"
] |
360,036 | <p>Is there any way to split a long string of HTML after N words? Obviously I could use:</p>
<pre><code>' '.join(foo.split(' ')[:n])
</code></pre>
<p>to get the first n words of a plain text string, but that might split in the middle of an html tag, and won't produce valid html because it won't close the tags that ha... | [
{
"answer_id": 360356,
"author": "JV.",
"author_id": 33612,
"author_profile": "https://Stackoverflow.com/users/33612",
"pm_score": 0,
"selected": false,
"text": "import re\nfrom BeautifulSoup import BeautifulSoup\nimport tidy\n\ndef remove_html_tags(data):\n p = re.compile(r'<.*?>')\n... | 2008/12/11 | [
"https://Stackoverflow.com/questions/360036",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3408/"
] |
360,040 | <p>When given a static set of objects (static in the sense that once loaded it seldom if ever changes) into which repeated concurrent lookups are needed with optimal performance, which is better, a <code>HashMap</code> or an array with a binary search using some custom comparator?</p>
<p>Is the answer a function of ob... | [
{
"answer_id": 360059,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 6,
"selected": false,
"text": "hashCode()\n{\n return 0;\n}\n"
},
{
"answer_id": 360138,
"author": "Jimmy",
"author_id": 4435,
... | 2008/12/11 | [
"https://Stackoverflow.com/questions/360040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18941/"
] |
360,063 | <p>I often run into code that has to perform lots of checks and ends up being indented at least five or six levels before really doing anything. I am wondering what alternatives exist.</p>
<p>Below I've posted an example of what I'm talking about (which isn't actual production code, just something I came up with off ... | [
{
"answer_id": 360071,
"author": "ieure",
"author_id": 45224,
"author_profile": "https://Stackoverflow.com/users/45224",
"pm_score": 3,
"selected": false,
"text": "if (input == null) {\n return output;\n}\n"
},
{
"answer_id": 360072,
"author": "Bill the Lizard",
"autho... | 2008/12/11 | [
"https://Stackoverflow.com/questions/360063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18511/"
] |
360,088 | <p>I am planning a fresh installation of <strong>SQL Server 2005</strong> on a new machine, which I have to order. I know that <strong>tempdb tuning</strong> is very important to the overall <strong>performance</strong> of the SQL Server instance.</p>
<p>I've read that it's best practice to create as many tempdb files... | [
{
"answer_id": 362636,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 5,
"selected": false,
"text": "ALTER DATABASE"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/360088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6461/"
] |
360,111 | <p>I have an array of different type objects and I use a BinaryWriter to convert each item to its binary equivalent so I can send the structure over the network.</p>
<p>I currently do something like </p>
<pre><code>for ( i=0;i<tmpArrayList.Count;i++)
{
object x=tmpArrayList[i];
if (x.GetType() == typeof(byt... | [
{
"answer_id": 360121,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": false,
"text": "if (x.GetType() == typeof(byte))\n"
},
{
"answer_id": 360150,
"author": "Jay Bazuzi",
"author_id": 5314,... | 2008/12/11 | [
"https://Stackoverflow.com/questions/360111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32958/"
] |
360,116 | <p><strong>Update 1:</strong><br>
Cannot reproduce this on a co-worker's computer (same setup as mine) so I assume this is a problem with my workstation and not a general one. </p>
<p>I'd appreciate it if someone would close this question as I don't have enough reputation to do it myself. </p>
<p>@MatthewMartin. Th... | [
{
"answer_id": 360121,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": false,
"text": "if (x.GetType() == typeof(byte))\n"
},
{
"answer_id": 360150,
"author": "Jay Bazuzi",
"author_id": 5314,... | 2008/12/11 | [
"https://Stackoverflow.com/questions/360116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41089/"
] |
360,134 | <p>I am using master page on some pages. And that master page is loading the user control. So I want to disable or enable user control on some page load which has master page. </p>
<hr>
<p>Is there anyway can I disable User control on master page Page_load()</p>
<hr>
<pre><code><div class="ucTabCtrl" >
&... | [
{
"answer_id": 360149,
"author": "Steven Behnke",
"author_id": 42588,
"author_profile": "https://Stackoverflow.com/users/42588",
"pm_score": 0,
"selected": false,
"text": "if (null != this.Master)\n{\n userControl.Enabled = false;\n}\n"
},
{
"answer_id": 360557,
"author": ... | 2008/12/11 | [
"https://Stackoverflow.com/questions/360134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21918/"
] |
360,141 | <p>I just installed SQL Server 2008 Express on my Vista SP1 machine. I previously had 2005 on here and used it just fine with the old SQL Server Management Studio Express. I was able to connect with no problems to my PC-NAME\SQLEXPRESS instance (no, PC-NAME is not my computer name ;-).</p>
<p>I uninstalled 2005 and SQ... | [
{
"answer_id": 3461900,
"author": "Govardhana Reddy",
"author_id": 417640,
"author_profile": "https://Stackoverflow.com/users/417640",
"pm_score": 8,
"selected": false,
"text": "\\SQLEXPRESS"
},
{
"answer_id": 5015707,
"author": "SQLSERV",
"author_id": 619515,
"author... | 2008/12/11 | [
"https://Stackoverflow.com/questions/360141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18505/"
] |
360,148 | <p>I'm trying to create a Comments section in my wiki. There's one solution on the Web involving the creation of a "column," but that seemed to just create a second text block under the main article block. This is impractical, because subsequent edits don't create new comments - they seem to just edit the existing co... | [
{
"answer_id": 3461900,
"author": "Govardhana Reddy",
"author_id": 417640,
"author_profile": "https://Stackoverflow.com/users/417640",
"pm_score": 8,
"selected": false,
"text": "\\SQLEXPRESS"
},
{
"answer_id": 5015707,
"author": "SQLSERV",
"author_id": 619515,
"author... | 2008/12/11 | [
"https://Stackoverflow.com/questions/360148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44831/"
] |
360,158 | <p>I'm using VBA in Excel 2003 to apply validation to apply validation to a given range of cells from a named list. The user can then select from a dropdown list of values.</p>
<p>Edit: Here's how I'm setting the validation, given a named range called 'MyLookupList'</p>
<pre><code> With validatedRange.Validati... | [
{
"answer_id": 360750,
"author": "DJ.",
"author_id": 10492,
"author_profile": "https://Stackoverflow.com/users/10492",
"pm_score": 2,
"selected": false,
"text": "Dim sValidationList As String\nDim iRow As Integer\n\n 'build comma-delimited list based on validation range\n With oValidat... | 2008/12/11 | [
"https://Stackoverflow.com/questions/360158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1354/"
] |
360,161 | <p>Im trying to get a completly data copy from a gridview, itryed clone(), tryed cast DataView from DataSouce, but always get nulls or cant get the data, please exists a way to copy data from gridview, modified it and then reload it? or modifyng directly some rows in the gridview?
thanks in advance!</p>
| [
{
"answer_id": 360317,
"author": "dragonjujo",
"author_id": 37344,
"author_profile": "https://Stackoverflow.com/users/37344",
"pm_score": 2,
"selected": true,
"text": "protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)\n{\n if (e.Row.RowType == DataControlRow... | 2008/12/11 | [
"https://Stackoverflow.com/questions/360161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1388553/"
] |
360,167 | <p>I'd like to host custom items in a ToolBar in an ItemsControl. However, the buttons I add are rendered below the toolbar and as regular buttons rather than in the ToolBar with the ToolBar look and feel.</p>
<p>This can be reproduced with a few lines of Xaml (I've excluded the default content). The custom ItemsCon... | [
{
"answer_id": 360371,
"author": "Micah",
"author_id": 17744,
"author_profile": "https://Stackoverflow.com/users/17744",
"pm_score": 2,
"selected": false,
"text": "Style=\"{DynamicResource {x:Static ToolBar.ButtonStyleKey}}\"\n"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/360167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1807/"
] |
360,195 | <p>I'm trying to run a c++ 2d array (pretty simple file) and it works but an error (at least I think it's an error) appears on the end.</p>
<p>The code for the array is;</p>
<pre><code>int myArray[10][10];
for (int i = 0; i <= 9; ++i){
for (int t = 0; t <=9; ++t){
myArray[i][t] = i+t; //This will ... | [
{
"answer_id": 360228,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 3,
"selected": false,
"text": "if(cout) { ... }"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/360195",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33061/"
] |
360,201 | <p>I am looking for a way to clean up the mess when my top-level script exits.</p>
<p>Especially if I want to use <code>set -e</code>, I wish the background process would die when the script exits.</p>
| [
{
"answer_id": 360249,
"author": "Oli",
"author_id": 12870,
"author_profile": "https://Stackoverflow.com/users/12870",
"pm_score": -1,
"selected": false,
"text": "killall"
},
{
"answer_id": 360275,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profil... | 2008/12/11 | [
"https://Stackoverflow.com/questions/360201",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1277510/"
] |
360,216 | <p>I would like to display certain meta data fields in the edit form based on the value of a fields. </p>
<p>Example: Users upload a document to the Doclib to be approved by there manager. They are allowed to change the meta data Name,Case No, Location until the item is approved by the manager. Once the item is approv... | [
{
"answer_id": 366929,
"author": "Toni Frankola",
"author_id": 15626,
"author_profile": "https://Stackoverflow.com/users/15626",
"pm_score": 2,
"selected": true,
"text": "<xsl:choose>\n <xsl:when test=\"@Status != 'Closed'\">\n <SharePoint:FormField runat=\"server\" id=\"ff1{$P... | 2008/12/11 | [
"https://Stackoverflow.com/questions/360216",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2282/"
] |
360,219 | <p>I want to skip to the first line that contains "include".</p>
<pre><code><> until /include/;
</code></pre>
<p>Why does this not work?</p>
| [
{
"answer_id": 360243,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 4,
"selected": true,
"text": "$_"
},
{
"answer_id": 360261,
"author": "Hudson",
"author_id": 14105,
"author_profile": "https://... | 2008/12/11 | [
"https://Stackoverflow.com/questions/360219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44511/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.