qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
227,305 | <p>I am building up a view with various text and image elements.</p>
<p>I want to display some text in the view with a blurry copy of the text behind it, but not just a text shadow.</p>
<p>How do I apply Gaussian blurred text onto a UIImage or layer?</p>
| [
{
"answer_id": 1256500,
"author": "mahboudz",
"author_id": 86020,
"author_profile": "https://Stackoverflow.com/users/86020",
"pm_score": 3,
"selected": false,
"text": "static void blur(V2fT2f *quad, float t) // t = 1\n{\n GLint tex;\n V2fT2f tmpquad[4];\n float offw = t / Input.... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30342/"
] |
227,312 | <p>Currently we are using prototype and jQuery as our js frameworks. Right now, jQuery is set to $j() to prevent conflicts from prototype.</p>
<p>In the past, we've used a lot of prototype's Element.down(), Element.next(), and Element.previous() to traverse the DOM. However, I need a simple way to retrieve the last ch... | [
{
"answer_id": 227323,
"author": "Nick Berardi",
"author_id": 17,
"author_profile": "https://Stackoverflow.com/users/17",
"pm_score": 1,
"selected": false,
"text": "var lastChild = $(\"#parent :last-child\");\n"
},
{
"answer_id": 227342,
"author": "John Topley",
"author_i... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5203/"
] |
227,318 | <p>I need to write a browser interface for an application running embedded on a single board computer (<a href="http://www.gumstix.com/store/catalog/product_info.php?products_id=178" rel="nofollow noreferrer">Gumstix Verdex</a> for anyone who's interested), so I won't be able to use any web frameworks due to space and ... | [
{
"answer_id": 227857,
"author": "Florian Bösch",
"author_id": 19435,
"author_profile": "https://Stackoverflow.com/users/19435",
"pm_score": 1,
"selected": false,
"text": "from wsgiref.simple_server import make_server\n\ndef application(environ, start_response):\n start_response('200 ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227318",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1288/"
] |
227,340 | <p>For our software we use hardware dongles to protect the software. No protection is perfect but this commercial solution is affordable and keeps honest people honest (as mentioned in another thread). The advantage is the 128 bit key that is stored 'unreadable' on the hardware dongle. </p>
<p>We want to remove this h... | [
{
"answer_id": 227453,
"author": "Hallgrim",
"author_id": 15454,
"author_profile": "https://Stackoverflow.com/users/15454",
"pm_score": 0,
"selected": false,
"text": "bool CheckKey(string keyFromUser) \n return SHA1(key) == \"ABC2983CF293892CD298392FG\";\n}\n"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/227340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30507/"
] |
227,351 | <p>I want to expose the functionality of an SAP program (transaction) as a BAPI.
I need to call a report and supply range filters such that the GUI is bypassed.</p>
<p>Does anyone have a working example of the SUBMIT ... WITH ... ABAP construct, or other suggestions on how to accomplish what I need to do?</p>
| [
{
"answer_id": 231587,
"author": "Esti",
"author_id": 25687,
"author_profile": "https://Stackoverflow.com/users/25687",
"pm_score": 2,
"selected": false,
"text": "SUBMIT SAPF140 \n TO SAP-SPOOL \"optional\"\n SPOOL PARAMETERS print_parameters \"optional\"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26652/"
] |
227,357 | <p>I have a master page, with a help link in the top menu. This link should contain the a dynamic bookmark from the current page, so that the user scrolls to the help for the page he is currently seeing.</p>
<pre><code><a href="help.aspx#[NameOfCurentPage]">Help</a>
</code></pre>
<p>How would you implemen... | [
{
"answer_id": 227387,
"author": "JPrescottSanders",
"author_id": 19444,
"author_profile": "https://Stackoverflow.com/users/19444",
"pm_score": 1,
"selected": false,
"text": "Path.GetFileName(Request.PhysicalPath).ToUpper()\n"
},
{
"answer_id": 227406,
"author": "Dillie-O",
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8547/"
] |
227,376 | <p>I need to round a value up to the nearest multiple of 2.5.</p>
<p>For example:<br>
6 --> 7.5<br>
7.6 --> 10<br>
etc. </p>
<p>This seems like the best way to do this?</p>
<pre><code> Function RoundToIncrement(ByVal originalNumber As Decimal, ByVal increment As Decimal) As Decimal
Dim num = Math.Round(o... | [
{
"answer_id": 227384,
"author": "harpo",
"author_id": 4525,
"author_profile": "https://Stackoverflow.com/users/4525",
"pm_score": 6,
"selected": true,
"text": "Function RoundToIncrement(ByVal orignialNumber As Decimal, ByVal increment As Decimal) As Decimal\n Return Math.Ceiling( ori... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34548/"
] |
227,380 | <p>Consider the following code:</p>
<pre><code>abstract class SomeClassX<T>
{
// blah
}
class SomeClassY: SomeClassX<int>
{
// blah
}
class SomeClassZ: SomeClassX<long>
{
// blah
}
</code></pre>
<p>I want a collection of SomeClassX<T>'s, however, this isn't possible since SomeClassX<... | [
{
"answer_id": 227384,
"author": "harpo",
"author_id": 4525,
"author_profile": "https://Stackoverflow.com/users/4525",
"pm_score": 6,
"selected": true,
"text": "Function RoundToIncrement(ByVal orignialNumber As Decimal, ByVal increment As Decimal) As Decimal\n Return Math.Ceiling( ori... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30521/"
] |
227,383 | <p>How do I programmatically return the maximum of two integers without using any comparison operators and without using <code>if</code>, <code>else</code>, etc?</p>
| [
{
"answer_id": 227393,
"author": "bobwienholt",
"author_id": 24257,
"author_profile": "https://Stackoverflow.com/users/24257",
"pm_score": 2,
"selected": false,
"text": "int max(int a, int b)\n{\n int x = (a - b) >> 31;\n int y = ~x;\n return (y & a) | (x & b); \n}\n... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22471/"
] |
227,401 | <p>I would like to be able to know, in run-time in my code, how much memory a certain object is taking (a Dataset in this case, but i'm looking for a "general" solution).</p>
<p>Is this possible through reflection?</p>
<p>This is for .Net 2.0.</p>
<p>Thanks!</p>
| [
{
"answer_id": 227499,
"author": "justin.m.chase",
"author_id": 12958,
"author_profile": "https://Stackoverflow.com/users/12958",
"pm_score": 0,
"selected": false,
"text": "int size = Marshal.SizeOf(typeof(int));\n"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/227401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3314/"
] |
227,417 | <p>I've run across the following line in a VB6 application.</p>
<pre><code>mobjParentWrkBk.ExcelWorkBook.Application.Selection.Insert Shift:=xlToRight
</code></pre>
<p>Unfortunately Google and other search engines have not been very useful as they seem to omit the := part. </p>
<p>What would be a C# equivalent?</p>
| [
{
"answer_id": 227431,
"author": "John Rudy",
"author_id": 14048,
"author_profile": "https://Stackoverflow.com/users/14048",
"pm_score": 5,
"selected": true,
"text": "Insert Shift Insert Type.Missing Shift"
},
{
"answer_id": 227448,
"author": "shahkalpesh",
"author_id": 2... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227417",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14177/"
] |
227,428 | <p>I am planning a PHP application that needs to store date/times in an MSSQL database. (For the curious, it is a calendar application.) What is the preferred format to store this information?</p>
<p>MSSQL has its own datetime data type, which works well in the database itself and is very readable. However, there aren... | [
{
"answer_id": 227451,
"author": "Kris",
"author_id": 18565,
"author_profile": "https://Stackoverflow.com/users/18565",
"pm_score": 3,
"selected": false,
"text": "date('Y-m-d H:i:s', $myTimeStampInSeconds); $timestamp = strtotime( $yourColumnValue );"
},
{
"answer_id": 227508,
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18986/"
] |
227,430 | <p>Here is my function (<strong>updated</strong>):</p>
<pre><code>Public Shared Function shortenUrl(ByVal URL As String) As String
Return shortenUrl(URL, 32)
End Function
Public Shared Function shortenUrl(ByVal URL As String, ByVal maxLength As Integer) As String
If URL.Length > maxLength Then
Strin... | [
{
"answer_id": 227445,
"author": "Mitchel Sellers",
"author_id": 13279,
"author_profile": "https://Stackoverflow.com/users/13279",
"pm_score": 2,
"selected": true,
"text": "Public Shared Function shortenUrl(ByVal URL As String) As String\n Return shortenUrl(URL, 29)\nEnd Function\nPub... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25515/"
] |
227,434 | <p>I have an XML schema that includes multiple addresses:</p>
<pre><code><xs:element name="personal_address" maxOccurs="1">
<!-- address fields go here -->
</xs:element>
<xs:element name="business_address" maxOccurs="1">
<!-- address fields go here -->
</xs:element>
</code></pre... | [
{
"answer_id": 227522,
"author": "toolkit",
"author_id": 3295,
"author_profile": "https://Stackoverflow.com/users/3295",
"pm_score": 4,
"selected": true,
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\"\n targetNamespace=\"h... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10040/"
] |
227,438 | <p>I'm attempting to determine the row length in bytes of a table by executing the following stored procedure:</p>
<pre><code>CREATE TABLE #tmp
(
[ID] int,
Column_name varchar(640),
Type varchar(640),
Computed varchar(640),
Length int,
Prec int,
Scale int,
Nullable varchar(640),
TrimTrailing... | [
{
"answer_id": 227516,
"author": "Vendoran",
"author_id": 24666,
"author_profile": "https://Stackoverflow.com/users/24666",
"pm_score": 3,
"selected": false,
"text": "CREATE TABLE tblShowContig\n(\n ObjectName CHAR (255),\n ObjectId INT,\n IndexName CHAR (255),\n IndexId INT,... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21826/"
] |
227,440 | <p>I have a Rails application that in the erb code, I use a select box. What I would like to do is reload the page passing the sort parameter. My controller already handles it, but I don't know how to reload the page with the selected value from my select box. Here is my code:</p>
<pre><code><% @options = {:latest ... | [
{
"answer_id": 227829,
"author": "workmad3",
"author_id": 16035,
"author_profile": "https://Stackoverflow.com/users/16035",
"pm_score": 3,
"selected": true,
"text": "<% @options = {:latest => 'lastest' , :alphabetical => 'alphabetical', :pricelow => 'price-low', :pricehigh =>'pricehigh'}... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18642/"
] |
227,447 | <p>When I use this code to output some XML I parsed (and modified) with <code>XmlParser</code></p>
<pre><code>XmlParser parser = new XmlParser()
def root = parser.parseText(feedUrl.toURL().text)
def writer = new StringWriter()
new XmlNodePrinter(new PrintWriter(writer)).print(root)
println writer.toString()
</code></p... | [
{
"answer_id": 228593,
"author": "Ted Naleid",
"author_id": 8912,
"author_profile": "https://Stackoverflow.com/users/8912",
"pm_score": 2,
"selected": true,
"text": "<feed xmlns=\"http://www.w3.org/2005/Atom\" xmlns:creativeCommons=\"http://backend.userland.com/creativeCommonsRssModule\"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227447",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2031/"
] |
227,449 | <p>I'm fairly new to JavaScript. </p>
<p>Given a local machine's folder path (Windows), I was wondering how you can extract the names of all the possible folders in the current path, without the knowledge of how many folders there are or what they are called.</p>
<p>Thank you very much in advance.</p>
| [
{
"answer_id": 227582,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 3,
"selected": false,
"text": "var fso = new ActiveXObject(\"Scripting.FileSystemObject\");\nvar shell = new ActiveXObject(\"WScript.Shell\");\nvar pat... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
227,457 | <p>I'm writing a query to summarize some data. I have a flag in the table that is basically boolean, so I need some sums and counts based on one value of it, and then the same thing for the other value, like so:</p>
<pre><code>select
location
,count(*)
,sum(duration)
from my.table
where type = 'X'
and locati... | [
{
"answer_id": 227475,
"author": "George Eadon",
"author_id": 30530,
"author_profile": "https://Stackoverflow.com/users/30530",
"pm_score": 3,
"selected": false,
"text": "select\n type\n ,location\n ,count(*)\n ,sum(duration)\nfrom my.table\nwhere type IN ('X', 'Y')\n and location ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13791/"
] |
227,459 | <p>How do I get the <a href="http://en.wikipedia.org/wiki/ASCII" rel="noreferrer">ASCII</a> value of a character as an <code>int</code> in Python?</p>
| [
{
"answer_id": 227466,
"author": "Jacob Krall",
"author_id": 3140,
"author_profile": "https://Stackoverflow.com/users/3140",
"pm_score": 6,
"selected": false,
"text": "ord()\n"
},
{
"answer_id": 227472,
"author": "Matt J",
"author_id": 18528,
"author_profile": "https:... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17693/"
] |
227,461 | <p>I want to do some basic filtering on a file. Read it, do processing, write it back. </p>
<p>I'm not looking for "golfing", but want the simplest and most elegant method to achieve this. I came up with:</p>
<pre><code>from __future__ import with_statement
filename = "..." # or sys.argv...
with open(filename) as f... | [
{
"answer_id": 227721,
"author": "Federico A. Ramponi",
"author_id": 18770,
"author_profile": "https://Stackoverflow.com/users/18770",
"pm_score": 2,
"selected": false,
"text": "with open(filename, \"r+\") as f:\n new_txt = process(f.read())\n f.truncate(0)\n f.write(new_txt)\n"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227461",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8206/"
] |
227,470 | <p>I have a search form on each of my pages. If I use form helper, it defaults to <code>$_POST</code>. I'd like the search term to show up in the URI:</p>
<pre><code>http://example.com/search/KEYWORD
</code></pre>
<p>I've been on Google for about an hour, but to no avail. I've only found articles on how <code>$_GET</... | [
{
"answer_id": 227494,
"author": "Justin Voss",
"author_id": 5616,
"author_profile": "https://Stackoverflow.com/users/5616",
"pm_score": -1,
"selected": false,
"text": "$_GET mysite.com/search?q=KEYWORD $_GET['q']"
},
{
"answer_id": 227496,
"author": "64BitBob",
"author_i... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227470",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24708/"
] |
227,473 | <p>I need a well tested Regular Expression (.net style preferred), or some other simple bit of code that will parse a USA/CA phone number into component parts, so:</p>
<ul>
<li>3035551234122</li>
<li>1-303-555-1234x122</li>
<li>(303)555-1234-122</li>
<li>1 (303) 555 -1234-122</li>
</ul>
<p>etc...</p>
<p>all parse in... | [
{
"answer_id": 227509,
"author": "Philip Rieck",
"author_id": 12643,
"author_profile": "https://Stackoverflow.com/users/12643",
"pm_score": 2,
"selected": false,
"text": "^(?:(?:[\\+]?(?<CountryCode>[\\d]{1,3}(?:[ ]+|[\\-.])))?[(]?(?<AreaCode>[\\d]{3})[\\-/)]?(?:[ ]+)?)?(?<Number>[a-zA-Z... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227473",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30529/"
] |
227,485 | <p>I have a little demonstration below of a peculiar problem.</p>
<pre><code>using System;
using System.Windows.Forms;
namespace WindowsApplication1
{
public class TestForm : Form
{
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1;
priv... | [
{
"answer_id": 227528,
"author": "OwenP",
"author_id": 2547,
"author_profile": "https://Stackoverflow.com/users/2547",
"pm_score": 1,
"selected": false,
"text": "Selected this.textBox1.SizeChanged += TextboxSizeChanged;\n }\n\n //Tab Selected\n private vo... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13227/"
] |
227,486 | <p>Does anyone know how to programmaticly find out where the java classloader actually loads the class from? </p>
<p>I often work on large projects where the classpath gets very long and manual searching is not really an option. I recently had a <a href="https://stackoverflow.com/questions/226280/eclipse-class-versi... | [
{
"answer_id": 227492,
"author": "Daniel Spiewak",
"author_id": 9815,
"author_profile": "https://Stackoverflow.com/users/9815",
"pm_score": -1,
"selected": false,
"text": "MyClass MyClass.class.getClassLoader();\n"
},
{
"answer_id": 227569,
"author": "Jon Skeet",
"author_... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25920/"
] |
227,500 | <p>I'm working on a JSP where I need to call methods on object that come from a Bean. The previous version of the page does not use JSTL and it works properly. My new version has a set up like this:</p>
<pre><code><jsp:useBean id="pageBean" scope="request" type="com.epicentric.page.website.PageBean" />
<c:set... | [
{
"answer_id": 227511,
"author": "Vincent Ramdhanie",
"author_id": 27439,
"author_profile": "https://Stackoverflow.com/users/27439",
"pm_score": 2,
"selected": false,
"text": "${pageDividers.size}\n"
},
{
"answer_id": 227551,
"author": "abahgat",
"author_id": 27565,
"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18265/"
] |
227,507 | <p>How can I read an Open Office 3.0 spreadsheet (.ods) from Groovy? I'd like to select specific columns from a named worksheet. Ideally, it would be useful to add a 'where' clause, or other criteria clause.</p>
| [
{
"answer_id": 12933631,
"author": "Aaron Digulla",
"author_id": 34088,
"author_profile": "https://Stackoverflow.com/users/34088",
"pm_score": 0,
"selected": false,
"text": "content.xml"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/227507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
227,519 | <p>I am writing a tool to help students learn regular expressions. I will probably be writing it in Java.</p>
<p>The idea is this: the student types in a regular expression and the tool shows which parts of a text will get matched by the regex. Simple enough.</p>
<p>But I want to support several different regex "flav... | [
{
"answer_id": 227626,
"author": "Markus Jarderot",
"author_id": 22364,
"author_profile": "https://Stackoverflow.com/users/22364",
"pm_score": 1,
"selected": false,
"text": "[^?+*{}()[\\]\\\\] # literal characters\n\\\\[A-Za-z] # Character classes\n\\\\... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17312/"
] |
227,545 | <p>When I build a unit test project before the tests are executed the test output is copied to a TestResults folder and then the tests are executed. The issue I'm having is that not all the files in the Debug/bin directory are copied to the TestResults project.</p>
<p>How can I get a file that is copied to the Debug/... | [
{
"answer_id": 227713,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 8,
"selected": true,
"text": ".testrunconfig"
},
{
"answer_id": 3447009,
"author": "Sanjay10",
"author_id": 61102,
"author_profile"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3957/"
] |
227,552 | <p>I am trying to debug a JavaScript script that gets read in a Firefox extension and executed. I only can see errors via the Firebug console (my code is invisible to Firebug), and it's reporting a "unterminated string literal." </p>
<p>I checked the line and the lines around it and everything seems fine-parentheses, ... | [
{
"answer_id": 1373122,
"author": "VoY",
"author_id": 6254,
"author_profile": "https://Stackoverflow.com/users/6254",
"pm_score": 7,
"selected": true,
"text": "var foo = \"</script>\";\n"
},
{
"answer_id": 4334841,
"author": "Ipsoratio",
"author_id": 527943,
"author_p... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227552",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1227001/"
] |
227,566 | <p>Does anyone have a good articles or tutorial on correctly using dispose and IDisposable. I am trying to explain this to some junior dev and wanted to get some extra material, examples, etc.</p>
| [
{
"answer_id": 228326,
"author": "NotDan",
"author_id": 3291,
"author_profile": "https://Stackoverflow.com/users/3291",
"pm_score": 0,
"selected": false,
"text": "using (MyDisposable obj = new MyDisposable())\n{\n obj.some_stuff();\n\n} //obj is disposed here\n"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/227566",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
227,575 | <p>Here is a snippet of the code :</p>
<pre><code>HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(request.RawUrl);
WebRequest.DefaultWebProxy = null;//Ensure that we will not loop by going again in the proxy
HttpWebResponse response = (HttpWebResponse)webRequest.GetResponse();
string charSet = response.Ch... | [
{
"answer_id": 227598,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": true,
"text": "HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(myURL);\nusing (HttpWebResponse response = (HttpWebResponse... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13913/"
] |
227,590 | <p>For an iPhone app that submits images to a server I need somehow to tie all the images from a particular phone together. With every submit I'd like to send some unique phone id. Looked at <pre>
[[UIDevice mainDevice] uniqueIdentifier]<br>
and
[[NSUserDefaults standardDefaults] stringForKey:@"SBFormattedPhoneNu... | [
{
"answer_id": 227654,
"author": "Ben Gottlieb",
"author_id": 6694,
"author_profile": "https://Stackoverflow.com/users/6694",
"pm_score": 6,
"selected": true,
"text": "[[UIDevice currentDevice] uniqueIdentifier]"
},
{
"answer_id": 228230,
"author": "Jason Harris",
"author... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227590",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30541/"
] |
227,596 | <p>This has been bugging me, I can't get my head around it. I will use the foodstuffs analogy to try and simplify my probelm.</p>
<p>1000 members of the public where asked to pick a variety from each of 13 categories of footstuff. These selections were then stored in a mysql database against their name.</p>
<pre><cod... | [
{
"answer_id": 227794,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 2,
"selected": false,
"text": "PersonId What_Milk What_Bread What_Cheese\n 1 Semi Wheat Swiss\n 2 Skimmed Rolls Fre... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
227,604 | <p>Is there a good way to read RAW image files (especially Canon CR2 and Adobe DNG files) as GDI+ bitmaps that is reasonably fast?</p>
<p>I found an example running under WPF that would read an image using any installed image codec and then display it in an image control. And I modified this example to create a GDI+ b... | [
{
"answer_id": 229045,
"author": "Rune Grimstad",
"author_id": 30366,
"author_profile": "https://Stackoverflow.com/users/30366",
"pm_score": 2,
"selected": false,
"text": "Process.Start StandardOutput public Stream GetImageData(string inputFile, string dcRawExe)\n{\n\n\n var startInfo... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30366/"
] |
227,608 | <p>Is there a simple way to parse a date that may be in MM/DD/yyyy, or M/D/yyyy, or some combination? i.e. the zero is optional before a single digit day or month.</p>
<p>To do it manually, one could use:</p>
<pre><code>String[] dateFields = dateString.split("/");
int month = Integer.parseInt(dateFields[0]);
int day ... | [
{
"answer_id": 227625,
"author": "toolkit",
"author_id": 3295,
"author_profile": "https://Stackoverflow.com/users/3295",
"pm_score": 4,
"selected": false,
"text": "DateFormat df = new SimpleDateFormat(\"MM/dd/yyyy\");\ndf.setLenient(true);\nSystem.out.println(df.parse(\"05/05/1999\"));\n... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227608",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2046/"
] |
227,612 | <p>I am inserting a column in a DataGridView programmatically (i.e., not bound to any data tables/databases) as follows:</p>
<pre><code>int lastIndex = m_DGV.Columns.Count - 1; // Count = 4 in this case
DataGridViewTextBoxColumn col = (DataGridViewTextBoxColumn)m_DGV.Columns[lastIndex];
m_DGV.Columns.RemoveAt(lastInd... | [
{
"answer_id": 241167,
"author": "e-holder",
"author_id": 22252,
"author_profile": "https://Stackoverflow.com/users/22252",
"pm_score": 0,
"selected": false,
"text": "Insert Add AddRange Visible DisplayIndex m_DGV.Columns[i] m_DGV.Rows[n].Cells[i]"
},
{
"answer_id": 355463,
"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22252/"
] |
227,613 | <p>How do I copy a directory including sub directories excluding files or directories that match a certain regex on a Windows system?</p>
| [
{
"answer_id": 227636,
"author": "Niniki",
"author_id": 4155,
"author_profile": "https://Stackoverflow.com/users/4155",
"pm_score": 1,
"selected": false,
"text": "ls -R1 | grep -v <regex to exclude> | awk '{printf(\"cp %s /destination/path\",$1)}' | /bin/sh\n"
},
{
"answer_id": 2... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227613",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2133/"
] |
227,624 | <p>I am trying to create controller actions which will return either JSON or partial html depending upon a parameter. What is the best way to get the result returned to an MVC page asynchronously?</p>
| [
{
"answer_id": 227638,
"author": "Haacked",
"author_id": 598,
"author_profile": "https://Stackoverflow.com/users/598",
"pm_score": 10,
"selected": true,
"text": "public ActionResult SomeActionMethod() {\n return Json(new {foo=\"bar\", baz=\"Blech\"});\n}\n <%= Ajax.ActionLink(\"SomeActi... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227624",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30544/"
] |
227,627 | <p>I have this 'simplified' fortran code</p>
<pre><code>real B(100, 200)
real A(100,200)
... initialize B array code.
do I = 1, 100
do J = 1, 200
A(J,I) = B(J,I)
end do
end do
</code></pre>
<p>One of the programming gurus warned me, that fortran accesses data efficiently in column order, while c accesses d... | [
{
"answer_id": 227680,
"author": "itsmatt",
"author_id": 7862,
"author_profile": "https://Stackoverflow.com/users/7862",
"pm_score": 2,
"selected": false,
"text": "real B(100, 200) \nreal A(100,200)\n\n... initialize B array code.\n\ndo I = 1, 100\n do J = 1, 200\n A(I,J) = B(I,J)\n ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227627",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7734/"
] |
227,634 | <p>I am copying a repository by using svnsync and am receiving this error on the same revision every time.</p>
<blockquote>
<p>Transmitting file data ...svnsync: REPORT of '<a href="https://svn1.avlux.net/xxxxxx.net" rel="nofollow noreferrer">https://svn1.avlux.net/xxxxxx.net</a>': Could not read response body: Secu... | [
{
"answer_id": 228427,
"author": "Mike Deck",
"author_id": 1247,
"author_profile": "https://Stackoverflow.com/users/1247",
"pm_score": 3,
"selected": true,
"text": "svn diff -r134:135 http://your/repo/url > patch.diff\n patch -p0 -i patch.diff\n"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/227634",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5233/"
] |
227,650 | <p>Say I have an MSSQL table with two columns: an int ID column that's the identity column and some other datetime or whatever column. Say the table has 10 records with IDs 1-10. Now I delete the record with ID = 5.</p>
<p>Are there any scenarios where another record will "fill-in" that missing ID? I.e. when would... | [
{
"answer_id": 229079,
"author": "onedaywhen",
"author_id": 15354,
"author_profile": "https://Stackoverflow.com/users/15354",
"pm_score": 0,
"selected": false,
"text": "CREATE TABLE Test \n(\n ID INTEGER IDENTITY(1, 1) NOT NULL, \n data_col INTEGER NOT NULL\n);\n\nINSERT INTO Test (d... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22471/"
] |
227,667 | <p>What type of exception is caught by the beanshell catch(ex): Exception or Throwable?.</p>
<p>Example:</p>
<pre><code>try {
.... } catch (ex) { }
</code></pre>
| [
{
"answer_id": 232275,
"author": "Bob Cross",
"author_id": 5812,
"author_profile": "https://Stackoverflow.com/users/5812",
"pm_score": 3,
"selected": false,
"text": "try {\n new Throwable(\"Something Exceptional\");\n} catch (ex) {\n System.err.println(ex.getMessage());\n}\n"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/227667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
227,674 | <p>I've got a few very short audio clips (less than a second long) to be played on various events (button hover, click, etc). However, there is usually a significant lag between the action and the actual playing of the sound. I have tried both embedding the sound in the .swf, and loading it externally at the start, b... | [
{
"answer_id": 238176,
"author": "James Fassett",
"author_id": 27081,
"author_profile": "https://Stackoverflow.com/users/27081",
"pm_score": 4,
"selected": true,
"text": "function playSound( name:String ):void\n{\n for( var nameSrc:String in soundArray )\n {\n if( name == nameSr... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9330/"
] |
227,701 | <p>I can't for the life of me find a form that doesn't email the results that you submit.</p>
<p>I'm looking to find a form that I can have users enter simple data that i can then spit back out at them in different arrangements. If they submit First and Last, I'll spit out, amongst other things, FirstLast@domain.com. ... | [
{
"answer_id": 227891,
"author": "Kornel",
"author_id": 27009,
"author_profile": "https://Stackoverflow.com/users/27009",
"pm_score": 0,
"selected": false,
"text": "<form onsubmit=\"magic(this);return false\">\n <p><label>First <input name=first/></label>\n <p><label>Last <input na... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
227,708 | <p>I would like to apply some logic to a page containing a CheckBoxList control when the user checks or unchecks individual checkbox items. Say, for instance to dynamically show or hide a related control.</p>
<p>I came up with a way using ASP.Net 2.0 callback mechanism (AJAX) with a combination of client-side Javascri... | [
{
"answer_id": 228448,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 3,
"selected": true,
"text": " <label for=\"something\">CheckBox 1</label>\n <input type='checkbox' id='ctl00_....' value='1' onclick=\"OnCheckBoxCl... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18865/"
] |
227,711 | <p>I found <a href="http://www.jenitennison.com/xslt/grouping/muenchian.html" rel="noreferrer">this page</a> describing the Muenchian method, but I think I'm applying it wrong.</p>
<p>Consider that this would return a set of ages:</p>
<pre><code>/doc/class/person/descriptive[(@name='age')]/value
</code></pre>
<block... | [
{
"answer_id": 227765,
"author": "JacobE",
"author_id": 30056,
"author_profile": "https://Stackoverflow.com/users/30056",
"pm_score": 1,
"selected": false,
"text": "/doc/class/person/descriptive[(@name='age')][not(value=preceding-sibling::descriptive[@name='age']/value)]/value\n"
},
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227711",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/525/"
] |
227,717 | <p>I need to be able to launch a process and read the output into a variable. Then based on the return of the command I can choose to show the full output or just a selected subset.</p>
<p>So to be clear, I want to launch a text based process (psexec actually) and read the output from that command (stdout, stderr, et... | [
{
"answer_id": 227748,
"author": "Pseudo Masochist",
"author_id": 8529,
"author_profile": "https://Stackoverflow.com/users/8529",
"pm_score": 4,
"selected": true,
"text": "System.Diagnostics.Process ProcessStartInfo true RedirectStandardOutput StandardOutput Process StandardError"
},
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24279/"
] |
227,729 | <p>I am a self taught vb6 programmer who uses DAO. Below is an example of a typical piece of code that I could churn out:</p>
<pre><code>Sub cmdMultiplier_Click() 'Button on form, user interface '
dim Rec1 as recordset
dim strSQL as string
strSQL = "select * from tblCustomers where ID = " & CurrentCustome... | [
{
"answer_id": 227764,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "function getCustomer(CurrentCustomerID as Long)\n\nstrSQL = \"select * from tblCustomers where ID = \" & CurrentCustomerID\nse... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227729",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6164/"
] |
227,731 | <p>I need to do some large integer math. Are there any classes or structs out there that represent a 128-bit integer and implement all of the usual operators?</p>
<p>BTW, I realize that <code>decimal</code> can be used to represent a 96-bit int.</p>
| [
{
"answer_id": 227795,
"author": "Larsenal",
"author_id": 337,
"author_profile": "https://Stackoverflow.com/users/337",
"pm_score": 7,
"selected": true,
"text": "var i = System.Numerics.BigInteger.Parse(\"10000000000000000000000000000000\");\n"
},
{
"answer_id": 228874,
"auth... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4066/"
] |
227,738 | <p>I have a case where a 3rd party ad is bleeding through my modal window implementation. I'd like to up the z-index of the modal overlay as high as possible so the ad won't show on top of it. Is there a limit to z-index values? I'm sure if there is it varies by browser. Anyone know?</p>
| [
{
"answer_id": 227782,
"author": "Kornel",
"author_id": 27009,
"author_profile": "https://Stackoverflow.com/users/27009",
"pm_score": 5,
"selected": true,
"text": "z-index z-index wmode=transparent z-index wmode=transparent"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/227738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11577/"
] |
227,743 | <p>Someone told me that it's faster to concatenate strings with StringBuilder. I have changed my code but I do not see any Properties or Methods to get the final build string. </p>
<p>How can I get the string?</p>
| [
{
"answer_id": 227744,
"author": "BlackWasp",
"author_id": 21862,
"author_profile": "https://Stackoverflow.com/users/21862",
"pm_score": 4,
"selected": false,
"text": "using System;\nusing System.Text;\n\npublic sealed class App \n{\n static void Main() \n {\n // Create a St... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227743",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14441/"
] |
227,762 | <p>I am working on an embedded systems project and have run into an issue of the compiler being programatically embedded in the Paradigm C++ IDE. I would like to be able to automate building.</p>
<p>The processor is the AMD186ES. I am not working with the OS - just baremetal stuff.
I need to generate real-mode 16-bit ... | [
{
"answer_id": 12829806,
"author": "Hawken",
"author_id": 800270,
"author_profile": "https://Stackoverflow.com/users/800270",
"pm_score": 4,
"selected": true,
"text": "as as <file>\nld --oformat binary -Ttext 0x0 -e start <file>\n .code16\n.globl start\n.text\nstart:\n .globl start\nstar... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26227/"
] |
227,775 | <p>Let's say I have a class in my web app called class "Foo". It has an initialise() method that is called when the bean is created using Spring. The initialise() method then tries to load an external service and assign it to a field. If the service could not be contacted, the field will be set to null. </p>
<pre>... | [
{
"answer_id": 227812,
"author": "toolkit",
"author_id": 3295,
"author_profile": "https://Stackoverflow.com/users/3295",
"pm_score": 0,
"selected": false,
"text": "public class FooServlet extends HttpServlet {\n\n private MyBean myBean;\n\n public void init() {\n myBean = (M... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30563/"
] |
227,790 | <p>So I'm teaching myself Python, and I'm having an issue with lists. I want to pass my function a list and pop items off it while retaining the original list. How do I make python "instance" the passed list rather that passing a pointer to the original one?</p>
<p>Example:</p>
<pre><code>def burninate(b):
c = []... | [
{
"answer_id": 227802,
"author": "mhawke",
"author_id": 21945,
"author_profile": "https://Stackoverflow.com/users/21945",
"pm_score": 3,
"selected": false,
"text": "burninate() d = burninate(a[:]) d = burninate(list(a)) def burninate(b):\n c=[]\n b=b[:]\n for i in range(3):\n ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5625/"
] |
227,797 | <p>In my cross-platform architecture, I would like to act on a context menu click (right button click) during a mouse click event. In Cocoa, can you detect that the user either Ctrl-Clicked or double-tapped on touchpad (right-click equivalent) DURING the mouseDown event? I am aware of NSView's menuForEvent but do not... | [
{
"answer_id": 227816,
"author": "Ben Gottlieb",
"author_id": 6694,
"author_profile": "https://Stackoverflow.com/users/6694",
"pm_score": 5,
"selected": true,
"text": "-[NSResponder rightMouseDown:]"
},
{
"answer_id": 237156,
"author": "Wil Shipley",
"author_id": 30602,
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8761/"
] |
227,807 | <p>I have a Rails app that sets a cookie and does a redirect to another server once the user is logged in. However, the cookie that the Rails app sets isn't seen by the server for some reason. I've tried setting http_only to false but I still can't even see the cookie unless the domain is the same as my Rails app. Here... | [
{
"answer_id": 24663350,
"author": "Elocution Safari",
"author_id": 43670,
"author_profile": "https://Stackoverflow.com/users/43670",
"pm_score": 0,
"selected": false,
"text": "127.0.0.1 app1.localdev.com, app2.localdev.com"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/227807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/422/"
] |
227,820 | <p>I was just writing some quick code and noticed this complier error </p>
<blockquote>
<p>Using the iteration variable in a lambda expression may have unexpected results.<br>
Instead, create a local variable within the loop and assign it the value of the iteration variable.</p>
</blockquote>
<p>I know what it me... | [
{
"answer_id": 227833,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 7,
"selected": true,
"text": "List<Action> actions = new List<Action>();\n\nfor (int i = 0; i < 10; i++)\n{\n actions.Add(() => Console.WriteLine(i)... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6335/"
] |
227,856 | <p>It seems that the decision to make your objects fully cognizant of their roles within the system, and still avoid having too many dependencies within the domain model on the database, and service layers?</p>
<p>For example: Say that I've got an entity with a revision history, and several "lookup tables" that the da... | [
{
"answer_id": 228001,
"author": "moffdub",
"author_id": 10759,
"author_profile": "https://Stackoverflow.com/users/10759",
"pm_score": 5,
"selected": true,
"text": "entity.saveIn(repository);\n repository.saveEntity(this.foo, this.bar, this.baz);\n repository.save(entity);\n entity.saveI... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21973/"
] |
227,886 | <p>How do I determine the dependencies of a .NET application? Does <a href="http://www.dependencywalker.com/" rel="noreferrer">Dependency Walker</a> work with managed apps? I've downloaded the latest and tried profiling the app, but it just exits without much of an explanation. If it doesn't work with .NET, then is the... | [
{
"answer_id": 308256,
"author": "Patrick from NDepend team",
"author_id": 27194,
"author_profile": "https://Stackoverflow.com/users/27194",
"pm_score": 4,
"selected": false,
"text": "from m in Methods \nlet depth = m.DepthOfIsUsing(\"NHibernate.NHibernateUtil.Entity(Type)\") \nwhere dep... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3114/"
] |
227,897 | <p>I just finished a test as part of a job interview, and one question stumped me, even using Google for reference. I'd like to see what the StackOverflow crew can do with it:</p>
<blockquote>
<p>The <code>memset_16aligned</code> function requires a 16-byte aligned pointer passed to it, or it will crash.</p>
<p>a) How ... | [
{
"answer_id": 227900,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 10,
"selected": true,
"text": "{\n void *mem = malloc(1024+16);\n void *ptr = ((char *)mem+16) & ~ 0x0F;\n memset_16aligned(ptr, 0, 102... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/63/"
] |
227,907 | <p>I am trying to debug an ActiveResource call that is not working.</p>
<p>What's the best way to view the HTTP response to the request ActiveResource is making?</p>
| [
{
"answer_id": 236378,
"author": "Ian Terrell",
"author_id": 9269,
"author_profile": "https://Stackoverflow.com/users/9269",
"pm_score": 3,
"selected": true,
"text": "puts response.inspect # Somewhere buried in ActiveResource:\nclass Network\n def get\n return get_request\n end\n\n ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17965/"
] |
227,909 | <p>I could use some advice on tracking down the cause of memory leaks in C#. I understand what is a memory leak and I get why they occur in C# but I'm wondering what tools/strategies have you used in the past to resolve them?</p>
<p>I am using .NET Memory Profiler and I've found that one of my huge main objects is sta... | [
{
"answer_id": 227966,
"author": "Daniel Earwicker",
"author_id": 27423,
"author_profile": "https://Stackoverflow.com/users/27423",
"pm_score": 5,
"selected": false,
"text": ".load C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\sos.dll\n System.GC.Collect()\n !DumpHeap -type <some-ty... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9401/"
] |
227,924 | <p>I can't see the 'Collection of Repositories" page after adding authentication and access rules to svn. 'guest' can navigate to mydomain.com/svn/public and admin can see both svn/public and svn/private, but none of the users can see /svn. </p>
<p>Is it possible to have 'guest' access mydomain.com/svn and only see ... | [
{
"answer_id": 229104,
"author": "remmelt",
"author_id": 30709,
"author_profile": "https://Stackoverflow.com/users/30709",
"pm_score": 2,
"selected": true,
"text": "<Location /websvn>\n AuthType Basic\n AuthName \"Company WebSVN\"\n AuthUserFile /home/svn/dav_svn.passwd\n Require... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227924",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22934/"
] |
227,928 | <p>I'm building an open source project that uses python and c++ in Windows.
I came to the following error message:</p>
<pre><code> ImportError: No module named win32con
</code></pre>
<p>The same happened in a "prebuilt" code that it's working ( except in my computer :P ) </p>
<p>I think this is kind of "popular" mo... | [
{
"answer_id": 39329641,
"author": "anatoly techtonik",
"author_id": 239247,
"author_profile": "https://Stackoverflow.com/users/239247",
"pm_score": 6,
"selected": false,
"text": "pip install pypiwin32\n pywin32"
},
{
"answer_id": 61448846,
"author": "Thomas Ducrot",
"aut... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20654/"
] |
227,935 | <p>In response to a rightMouse event I want to call a function that displays a context menu, runs it, and responds to the selected menu item. In Windows I can use TrackPopupMenu with the TPM_RETURNCMD flag.</p>
<p>What is the easiest way to implement this in Cocoa? It seems NSMenu:popUpContextMenu wants to post an e... | [
{
"answer_id": 227975,
"author": "Ben Gottlieb",
"author_id": 6694,
"author_profile": "https://Stackoverflow.com/users/6694",
"pm_score": 2,
"selected": false,
"text": "[NSView nextEventMatchingMask:] [NSView nextEventMatchingMask:] NSEvent *localEvent = [[self window] nextEventMatching... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227935",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8761/"
] |
227,939 | <p>We're using HAProxy as a load balancer at the moment, and it regularly makes requests to the downstream boxes to make sure they're alive using an OPTIONS request:</p>
<blockquote>
<p>OPTIONS /index.html HTTP/1.0</p>
</blockquote>
<p>I'm working with getting nginx set up as a reverse proxy with caching (using nca... | [
{
"answer_id": 4662858,
"author": "Mark Rose",
"author_id": 438631,
"author_profile": "https://Stackoverflow.com/users/438631",
"pm_score": 2,
"selected": false,
"text": "httpchk GET http://example.com/check.php\n"
},
{
"answer_id": 9197143,
"author": "rogeriopvl",
"autho... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30575/"
] |
227,950 | <p>I need to compare 2 strings as equal such as these:</p>
<blockquote>
<p>Lubeck == Lübeck</p>
</blockquote>
<p>In JavaScript.</p>
<p>Why? Well, I have an auto-completion field that's going out to a Java service using Lucene, where place names are stored naturally (as Lübeck), but also indexed as normalized text,... | [
{
"answer_id": 228006,
"author": "Markus Jarderot",
"author_id": 22364,
"author_profile": "https://Stackoverflow.com/users/22364",
"pm_score": 7,
"selected": true,
"text": "/**\n * Creates a RegExp that matches the words in the search string.\n * Case and accent insensitive.\n */\nfuncti... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/459/"
] |
227,973 | <p>I've got an application that needs quite a bit of data (1000s of records) to do appropriate testing. The only way I've found to get a decent set of testable, sensible data is to use a <strong>subset of my production DB</strong>. I've converted this to YAML fixtures in the normal `test/fixtures' location.</p>
<p>T... | [
{
"answer_id": 229188,
"author": "derfred",
"author_id": 10286,
"author_profile": "https://Stackoverflow.com/users/10286",
"pm_score": 0,
"selected": false,
"text": "def test_foo\n project = Project.create valid_project.merge(....)\n *do assertions here*\nend\n def valid_project\n ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13216/"
] |
227,977 | <p>Is there a CSS style that IE7 and Firefox will obey that changes the behaviour of a TEXTAREA so that it behaves more like.... um..... more like the thing I'm typing into right now!</p>
| [
{
"answer_id": 227998,
"author": "lewinski",
"author_id": 30491,
"author_profile": "https://Stackoverflow.com/users/30491",
"pm_score": 0,
"selected": false,
"text": "<textarea wrap=\"soft\"></textarea>\n"
},
{
"answer_id": 228071,
"author": "lock",
"author_id": 24744,
... | 2008/10/23 | [
"https://Stackoverflow.com/questions/227977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9328/"
] |
227,984 | <p>I have a JSP page that will display the exact content of another web page on a different server. My understanding was that c:import from the JSTL should be able to include content from files that are not part of the current web application.</p>
<p>I added c:import url="page on my server in a different application"... | [
{
"answer_id": 228240,
"author": "Vladimir Dyuzhev",
"author_id": 1163802,
"author_profile": "https://Stackoverflow.com/users/1163802",
"pm_score": 1,
"selected": false,
"text": "<%@ taglib prefix=\"c\" uri=\"http://java.sun.com/jstl/core\" %>\n...\n<c:import \n url=\"http://www.truenor... | 2008/10/23 | [
"https://Stackoverflow.com/questions/227984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27439/"
] |
227,993 | <p>I want to create a DTS Package to pull data from an Oracle table into a SQL2K
table. How can I insert rows that are not already in the SQL2K table and
update rows that already exist in the SQL2K table?</p>
<p>I guess I could truncate and repopulate the entire table or create a
temporary table and then do update... | [
{
"answer_id": 232976,
"author": "Timothy Khouri",
"author_id": 11917,
"author_profile": "https://Stackoverflow.com/users/11917",
"pm_score": 0,
"selected": false,
"text": "DELETE FROM dbo.WhateverTable \nWHERE WhateverTableID IN (SELECT WhateverTableID FROM MySource)\n INSERT INTO dbo.W... | 2008/10/23 | [
"https://Stackoverflow.com/questions/227993",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24358/"
] |
227,994 | <p>We have the following simple Stored Procedure that runs as an overnight SQL server agent job. Usually it runs in 20 minutes, but recently the MatchEvent and MatchResult tables have grown to over 9 million rows each. This has resulted in the store procedure taking over 2 hours to run, with all 8GB of memory on our SQ... | [
{
"answer_id": 228003,
"author": "shahkalpesh",
"author_id": 23574,
"author_profile": "https://Stackoverflow.com/users/23574",
"pm_score": 0,
"selected": false,
"text": "\nDELETE FROM MatchEvent WHERE\nMatchId IN (SELECT MatchId FROM MatchResult)\n\n\nDELETE FROM MatchResult\n-- OR Trunc... | 2008/10/23 | [
"https://Stackoverflow.com/questions/227994",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17765/"
] |
228,005 | <p>I was wondering if there was an alternative to <code>itoa()</code> for converting an integer to a string because when I run it in visual Studio I get warnings, and when I try to build my program under Linux, I get a compilation error.</p>
| [
{
"answer_id": 228010,
"author": "Leon Timmermans",
"author_id": 4727,
"author_profile": "https://Stackoverflow.com/users/4727",
"pm_score": 6,
"selected": false,
"text": "#include <boost/lexical_cast.hpp>\nint main(int argc, char** argv) {\n std::string foo = boost::lexical_cast<std:... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29326/"
] |
228,025 | <p>How do you insert/update a column through Linq To SQL and Linq To SQL use the default values? In particular I'm concerned with a timestamp field.</p>
<p>I've tried setting that column to readonly and autogenerated, so it stopped trying to put in DateTime.MinValue, but it doesn't seem to be updating on updates.</p>... | [
{
"answer_id": 228080,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 3,
"selected": true,
"text": "public partial class YourDatabaseDataContext\n{\n partial void InsertYourTable(YourTable instance)\n {\n ... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228025",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4050/"
] |
228,036 | <p>I have the following problem using template instantiation [*]. </p>
<p>file <strong>foo.h</strong></p>
<pre><code>class Foo
{
public:
template <typename F>
void func(F f)
private:
int member_;
};
</code></pre>
<p>file <strong>foo.cc</strong></p>
<pre><code>template <typename F>
Foo::func... | [
{
"answer_id": 228370,
"author": "Head Geek",
"author_id": 12193,
"author_profile": "https://Stackoverflow.com/users/12193",
"pm_score": 1,
"selected": false,
"text": "#include"
},
{
"answer_id": 228372,
"author": "SCFrench",
"author_id": 4928,
"author_profile": "http... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228036",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1170277/"
] |
228,038 | <p>I've just had to write a string reverse function in C# 2.0 (i.e. LINQ not available) and came up with this:</p>
<pre><code>public string Reverse(string text)
{
char[] cArray = text.ToCharArray();
string reverse = String.Empty;
for (int i = cArray.Length - 1; i > -1; i--)
{
reverse += cArr... | [
{
"answer_id": 228055,
"author": "Mike Thompson",
"author_id": 2754,
"author_profile": "https://Stackoverflow.com/users/2754",
"pm_score": 4,
"selected": false,
"text": "string s = \"olleh\";\ns.Reverse();\n public static string Reverse(this string input)\n{\n char[] chars = input.ToC... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
228,081 | <p>I'm looking for ideas for a heap-manager to handle a very specific situation: Lots and lots of very small allocations, ranging from 12 to 64 bytes each. Anything bigger, I will pass on to the regular heap-manager, so only tiny blocks need be catered for. Only 4-byte alignment is needed.</p>
<p>My main concerns are<... | [
{
"answer_id": 228132,
"author": "hazzen",
"author_id": 5066,
"author_profile": "https://Stackoverflow.com/users/5066",
"pm_score": 0,
"selected": false,
"text": "typedef struct _allocator {\n void* buffer;\n int start;\n int max;\n} allocator;\n\nvoid init_allocator(size_t size... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29539/"
] |
228,102 | <pre><code><div>
<span>left</span>
<span>right</span>
<!-- new line break, so no more content on that line -->
<table>
...
</table>
</div>
</code></pre>
<p>How can I position those spans (they can be changed to any element) so that depending on how big the table i... | [
{
"answer_id": 228126,
"author": "Rob Allen",
"author_id": 149,
"author_profile": "https://Stackoverflow.com/users/149",
"pm_score": 3,
"selected": false,
"text": "<style type=\"text/css\">\n #wrapper, #top, #tableArea\n {\n width: 100%;\n padding: 10px;\n margin... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
228,125 | <p>I am after a regular expression that validates a percentage from 0 100 and allows two decimal places. </p>
<p>Does anyone know how to do this or know of good web site that has example of common regular expressions used for client side validation in javascript?</p>
<p>@Tom - Thanks for the questions. Ideally there ... | [
{
"answer_id": 228152,
"author": "Julien Grenier",
"author_id": 23051,
"author_profile": "https://Stackoverflow.com/users/23051",
"pm_score": 0,
"selected": false,
"text": "(100|[0-9]{1,2})(\\.[0-9]{1,2})?"
},
{
"answer_id": 228158,
"author": "Czimi",
"author_id": 3906,
... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228125",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5360/"
] |
228,134 | <p>I like Steve Yegge's <a href="http://steve-yegge.blogspot.com/2008/10/universal-design-pattern.html" rel="noreferrer">Prototype Pattern example</a> and decided to whip up a quick proof of concept example.</p>
<p>However, I didn't really think things through. While it is great for dynamically specifying the behavio... | [
{
"answer_id": 228232,
"author": "Jonny Buchanan",
"author_id": 6760,
"author_profile": "https://Stackoverflow.com/users/6760",
"pm_score": 4,
"selected": true,
"text": "prototype AwesomeDragonImmuneToFire AwesomeDragon AwesomeDragon function Dragon()\n{\n this.position = \"starting p... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/364/"
] |
228,145 | <p>I am progamatically creating a SharePoint site using </p>
<pre><code>SPWeb spWeb = spSite.AllWebs.Add(...);
</code></pre>
<p>What code do I need run to set the spWeb to turn off the "Show pages in navigation" option?</p>
<p><strong>Answer:</strong></p>
<pre><code>publishingWeb.IncludePagesInNavigation = false;
<... | [
{
"answer_id": 228211,
"author": "Brian Schmitt",
"author_id": 30492,
"author_profile": "https://Stackoverflow.com/users/30492",
"pm_score": 4,
"selected": true,
"text": "publishingWeb.InheritGlobalNavigation = false;\n // do not show pages in navigation\npublishingWeb.IncludePagesInNavi... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228145",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13813/"
] |
228,164 | <p>The glorified global variable - becomes a gloried global class. Some say breaking object-oriented design.</p>
<p>Give me scenarios, other than the good old logger where it makes sense to use the singleton.</p>
| [
{
"answer_id": 383919,
"author": "Schwern",
"author_id": 14660,
"author_profile": "https://Stackoverflow.com/users/14660",
"pm_score": 3,
"selected": false,
"text": "new() new() create()"
},
{
"answer_id": 4081829,
"author": "Ozgur Zeren",
"author_id": 495232,
"author... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228164",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21537/"
] |
228,165 | <p>I stumbled across my rather ancient photo objects disks, and sadly found out the company (hemera) doesn't provide support for it anymore. this has left me with a whole pile of .hpi files. Luckily, I found <a href="http://www.halley.cc/ed/linux/interop/hemera.html" rel="nofollow noreferrer">this information</a> on ex... | [
{
"answer_id": 228192,
"author": "ypnos",
"author_id": 21974,
"author_profile": "https://Stackoverflow.com/users/21974",
"pm_score": 3,
"selected": true,
"text": "#include <stdio.h>\n#include <stdlib.h>\n\n#define MAX_SIZE 1048576\n\nchar stuff[MAX_SIZE];\n\nint main (int argc, char **ar... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4853/"
] |
228,175 | <p>When using SubSonic, do you return the data as a dataset or do you put that in a strongly typed custom collection or a generic object?</p>
<p>I ran through the subsonic project and for the four stored procs I have in my DB, it gave me a Sps.cs with 4 methods which return a StoredProcedure object.</p>
<p>If you use... | [
{
"answer_id": 228190,
"author": "John Sheehan",
"author_id": 1786,
"author_profile": "https://Stackoverflow.com/users/1786",
"pm_score": 3,
"selected": false,
"text": "ProductCollection coll = new ProductCollection();\ncoll.LoadAndCloseReader(SPs.GetProducts(1).GetReader());\n"
},
{... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
228,200 | <p><code>%AX = (%AH + %AL)</code></p>
<p>So why not <code>%EAX = (%SOME_REGISTER + %AX)</code> for some register <code>%SOME_REGISTER</code>? </p>
| [
{
"answer_id": 228367,
"author": "Mike Thompson",
"author_id": 2754,
"author_profile": "https://Stackoverflow.com/users/2754",
"pm_score": 8,
"selected": true,
"text": "8080/Z80 8086\nA AX\nBC BX\nDE CX\nHL DX\nIX SI \nIY DI\n |63..32|31..16... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10432/"
] |
228,205 | <p>How do you handle update refresh rate from your worker function to your UI ?</p>
<p>Sending everything to the UI or maybe using a timer (from which side ? worker or UI ?)</p>
| [
{
"answer_id": 228367,
"author": "Mike Thompson",
"author_id": 2754,
"author_profile": "https://Stackoverflow.com/users/2754",
"pm_score": 8,
"selected": true,
"text": "8080/Z80 8086\nA AX\nBC BX\nDE CX\nHL DX\nIX SI \nIY DI\n |63..32|31..16... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228205",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2566/"
] |
228,218 | <p>I am very new to Java. My assignment is to create my own method and then create a class to test it in.
My question, do I create the method separate of the class, or within the class? If it is separate of the class, how do I get the class to access my method?</p>
<p>(Are they saved as two separate files?)</p>
<p>Th... | [
{
"answer_id": 228226,
"author": "Dave Markle",
"author_id": 24995,
"author_profile": "https://Stackoverflow.com/users/24995",
"pm_score": 2,
"selected": false,
"text": "public class MyClass {\n\n public static void Hello() {\n //This is your method!\n }\n\n public static void... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228218",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30606/"
] |
228,220 | <p>Let's say we have 2 php variables:</p>
<ul>
<li><strong>$name</strong> = 'caption';</li>
<li><strong>$url</strong> = '<a href="http://domain.com/photo.jpg" rel="nofollow noreferrer">http://domain.com/photo.jpg</a>';</li>
</ul>
<p>The input string of <code>'{@url,<img src="," alt="{@name}" />}'</code> should ... | [
{
"answer_id": 228307,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": -1,
"selected": false,
"text": "<p>Link: <a href=\"{@url}\">{@name}</a> - {@date}</p>"
}
] | 2008/10/23 | [
"https://Stackoverflow.com/questions/228220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
228,221 | <p>I know that I can insert multiple rows using a single statement, if I use the syntax in <a href="https://stackoverflow.com/questions/39576/best-way-to-do-multi-row-insert-in-oracle#39602">this answer</a>. </p>
<p>However, one of the values I am inserting is taken from a sequence, i.e. </p>
<pre><code>insert into T... | [
{
"answer_id": 228294,
"author": "WW.",
"author_id": 14663,
"author_profile": "https://Stackoverflow.com/users/14663",
"pm_score": 6,
"selected": true,
"text": "insert into TABLE_NAME (COL1,COL2)\nselect my_seq.nextval, a\nfrom\n(SELECT 'SOME VALUE' as a FROM DUAL\n UNION ALL\n SELECT 'A... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3751/"
] |
228,225 | <p>Is it possible to prevent the browser from following redirects when sending XMLHttpRequest-s (i.e. to get the redirect status code back and handle it myself)?</p>
| [
{
"answer_id": 28411170,
"author": "Roland Pihlakas",
"author_id": 193017,
"author_profile": "https://Stackoverflow.com/users/193017",
"pm_score": 4,
"selected": false,
"text": "responseURL"
},
{
"answer_id": 33578947,
"author": "user",
"author_id": 3075942,
"author_p... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228225",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30609/"
] |
228,256 | <p>Is there a good, up-to-date listing anywhere that maps User-Agent HTTP Header strings --> operating systems?</p>
| [
{
"answer_id": 228298,
"author": "Dan Herbert",
"author_id": 392,
"author_profile": "https://Stackoverflow.com/users/392",
"pm_score": 4,
"selected": false,
"text": "browser.php Windows NT 6.1 Windows NT 7.0"
},
{
"answer_id": 261012,
"author": "Osama Al-Maadeed",
"author... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5682/"
] |
228,265 | <p>I'm hoping this question isn't too obscure <em>cross fingers</em></p>
<p>I'm looking for a decent reference for <a href="http://netsuite.com" rel="noreferrer">netsuite</a> scripting and api (both of which are based on ASP)</p>
<p>does anybody know where to find this stuff? The netsuite help pages are mediocre at b... | [
{
"answer_id": 11965724,
"author": "Web Developer",
"author_id": 1600039,
"author_profile": "https://Stackoverflow.com/users/1600039",
"pm_score": 2,
"selected": false,
"text": "nlapiGetFieldValue();\nrecord.getFieldValue();\nrec.getValue();\n var val = nlapiGetFieldValue('fieldId');\nif... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2908/"
] |
228,268 | <p><a href="http://blogs.msdn.com/drnick/archive/2007/03/23/preventing-anonymous-access.aspx" rel="noreferrer">http://blogs.msdn.com/drnick/archive/2007/03/23/preventing-anonymous-access.aspx</a> </p>
<p>Can someone clarify whether it is possible to use wsHttpBinding in WCF and disable anonymous access in IIS without ... | [
{
"answer_id": 265895,
"author": "Tobias Hertkorn",
"author_id": 33827,
"author_profile": "https://Stackoverflow.com/users/33827",
"pm_score": 2,
"selected": false,
"text": "public class TestService : ITestService\n{\n [PrincipalPermission(SecurityAction.Demand, Name = \"testdomain\\\\a... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25255/"
] |
228,288 | <p>Is it possible to subscribe to a Windows event that fires when Windows is going into or coming out of Sleep or Hibernate state?</p>
<p>I need my application to be made aware when the computer is going to sleep to do some cleanup and avoid timing issues when it comes out of sleep.</p>
| [
{
"answer_id": 228405,
"author": "Jeff Yates",
"author_id": 23234,
"author_profile": "https://Stackoverflow.com/users/23234",
"pm_score": 5,
"selected": true,
"text": "Microsoft.Win32.SystemEvents.PowerModeChanged"
},
{
"answer_id": 31033210,
"author": "Richard Chambers",
... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5982/"
] |
228,300 | <p>I need to recover form an error case where a file gets left in a locked state. How can I in c# tell this file to reset it's locks? I need to add to this the file is opened by a 3rd party dll and I don't actually have access to the file handle.</p>
| [
{
"answer_id": 228351,
"author": "LizB",
"author_id": 13616,
"author_profile": "https://Stackoverflow.com/users/13616",
"pm_score": 1,
"selected": false,
"text": " try {\n thirdPartyObj = new ThirdPartObj();\n // Some possible error causing object actions\n catch(Exception ex) {\n ... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228300",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22835/"
] |
228,319 | <p>I am using a navigation controller, and I have the style set to :</p>
<pre><code>navController.navigationBar.barStyle = UIBarStyleBlackTranslucent;
</code></pre>
<p>But when I run my program, the navigation controller looks like it is on top of a white background, not my background. When I push a controller, left ... | [
{
"answer_id": 2876401,
"author": "Shizam",
"author_id": 155513,
"author_profile": "https://Stackoverflow.com/users/155513",
"pm_score": 2,
"selected": false,
"text": " self.navigationController.navigationBar.tintColor = [UIColor blackColor];\n self.navigationController.navigationB... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29642/"
] |
228,321 | <p>On an embedded target I use far pointers to access some parts of the memory map. </p>
<p>near pointer (without explicitely specifying __near):</p>
<pre>unsigned int *VariableOnePtr;</pre>
<p>Pointer to near pointer: <pre>unsigned int **VariableOnePtrPtr;</pre></p>
<p>far pointer: <pre>unsigned int *__far Variabl... | [
{
"answer_id": 228331,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 4,
"selected": true,
"text": "unsigned int * __far *VariableThreePtrPtr;\n unsigned int * __far * __far VariableFourPtrPtr;\n"
},
{
"answer_id":... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2386/"
] |
228,353 | <p>A lambda expression which takes a function (of one argument) and a number, and applies the function to twice the number.</p>
| [
{
"answer_id": 228361,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 3,
"selected": false,
"text": "(lambda (f x) (f (* 2 x)))\n (lambda (f x) (f (f x)))\n"
},
{
"answer_id": 228456,
"author": "grettke",
"... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228353",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30622/"
] |
228,375 | <p>How to get the path of the current csproject?</p>
<p>Let's say I have a csproject name <code>MyProj.csproj</code>, inside there is a class that wants to know what is the file path of this csproj, any idea on how to do this? thanks.</p>
| [
{
"answer_id": 33606582,
"author": "weiky",
"author_id": 3346178,
"author_profile": "https://Stackoverflow.com/users/3346178",
"pm_score": 1,
"selected": false,
"text": "string solutionPath = @\"C:\\Users\\...\\PathToSolution\\MySolution.sln\";\nvar msWorkspace = MSBuildWorkspace.Create(... | 2008/10/23 | [
"https://Stackoverflow.com/questions/228375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.