qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
238,004 | <p>I have an access database with 3 tables.</p>
<ul>
<li>People </li>
<li>Gifts</li>
<li>PeopleGifts</li>
</ul>
<p>Using VS 2008, what is the quickest way to get a page up and running which allows me to run queries against these tables and do basic inserts.</p>
<p>I want to have comboboxs bound to fields in the tab... | [
{
"answer_id": 238033,
"author": "Tim Scott",
"author_id": 29493,
"author_profile": "https://Stackoverflow.com/users/29493",
"pm_score": 0,
"selected": false,
"text": "public interface IOleDbDataGateway\n{\n void ExecuteNonQuery(string sql, params object[] args);\n object ExecuteSc... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
238,008 | <p>For a simple linked list in which random access to list elements is not a requirement, are there any significant advantages (performance or otherwise) to using <code>std::list</code> instead of <code>std::vector</code>? If backwards traversal is required, would it be more efficient to use <code>std::slist</code> an... | [
{
"answer_id": 238023,
"author": "Motti",
"author_id": 3848,
"author_profile": "https://Stackoverflow.com/users/3848",
"pm_score": 7,
"selected": true,
"text": "vector vector list vector list"
}
] | 2008/10/26 | [
"https://Stackoverflow.com/questions/238008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17035/"
] |
238,010 | <p>How is it done? What steps do I need to take and what pitfalls and gotchas are there to consider?</p>
| [
{
"answer_id": 238018,
"author": "Nils Pipenbrinck",
"author_id": 15955,
"author_profile": "https://Stackoverflow.com/users/15955",
"pm_score": 4,
"selected": false,
"text": "inline int saturate_to_255 (int a)\n{\n int y;\n asm (\"usat %0, #8, %1\\n\\t\" : \"=r\"(y) : \"r\"(a));\n ret... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8683/"
] |
238,013 | <p>I have an application running only on Windows and a batch file that launches it.
I want to invoke this batch file from Linux, meaning something like Linux batch will launch the windows batch with parameters and this in its turn run my application.</p>
<p>Can I do that? How?</p>
| [
{
"answer_id": 238021,
"author": "dsm",
"author_id": 7780,
"author_profile": "https://Stackoverflow.com/users/7780",
"pm_score": 5,
"selected": true,
"text": "ssh user@windows-box c:/path/to/batch.cmd\n"
}
] | 2008/10/26 | [
"https://Stackoverflow.com/questions/238013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9855/"
] |
238,036 | <p>I'm working on an app which scrapes data from a website and I was wondering how I should go about getting the data. Specifically I need data contained in a number of div tags which use a specific CSS class - Currently (for testing purposes) I'm just checking for </p>
<pre><code>div class = "classname"
</code></pre... | [
{
"answer_id": 238063,
"author": "dave",
"author_id": 14355,
"author_profile": "https://Stackoverflow.com/users/14355",
"pm_score": 3,
"selected": false,
"text": "Parser parser = new Parser(htmlInput);\nCssSelectorNodeFilter cssFilter = \n new CssSelectorNodeFilter(\"DIV.targetClassNa... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238036",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15075/"
] |
238,050 | <p>I am trying to issue a SQL update statement with nHibernate (2.0.1GA) like this:</p>
<pre><code>sqlstring = string.Format("set nocount on;update myusers set geo=geography::Point({0}, {1}, 4326) where userid={2};", mlat, mlong, userid);
_session.CreateSQLQuery(sqlstring).ExecuteUpdate();
</code></pre>
<p>However I ... | [
{
"answer_id": 650451,
"author": "Chris Shaffer",
"author_id": 6744,
"author_profile": "https://Stackoverflow.com/users/6744",
"pm_score": 3,
"selected": true,
"text": "set nocount on;update myusers set geo=geography@p0({0}, {1}, 4326) where userid={2};\n"
},
{
"answer_id": 15247... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1975/"
] |
238,071 | <p>What is the simplest, fastest way to complete the PHP code below such that the output is in a user-friendly format (for example, "October 27, 2006")?</p>
<pre><code>$result = mysql_query("SELECT my_timestamp FROM some_table WHERE id=42", $DB_CONN);
$row = mysql_fetch_array($result);
$formatted_date = ???($row['my_t... | [
{
"answer_id": 238077,
"author": "Aron Rotteveel",
"author_id": 11568,
"author_profile": "https://Stackoverflow.com/users/11568",
"pm_score": 6,
"selected": true,
"text": "$result = mysql_query(\"SELECT DATE_FORMAT(my_timestamp, '%M %d, %Y) AS my_timestamp FROM some_table WHERE id=42\", ... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2659/"
] |
238,073 | <p>When scripting in bash or any other shell in *NIX, while running a command that will take more than a few seconds, a progress bar is needed.</p>
<p>For example, copying a big file, opening a big tar file.</p>
<p>What ways do you recommend to add progress bars to shell scripts?</p>
| [
{
"answer_id": 238094,
"author": "Mitch Haile",
"author_id": 28807,
"author_profile": "https://Stackoverflow.com/users/28807",
"pm_score": 11,
"selected": true,
"text": "\\r \\n \\n echo -ne \\n \\r echo -ne '##### (33%)\\r'\nsleep 1\necho -ne '############# ... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238073",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13523/"
] |
238,081 | <p>So, when playing with the development I can just set <code>settings.DEBUG</code> to <code>True</code> and if an error occures I can see it nicely formatted, with good stack trace and request information.</p>
<p>But on kind of production site I'd rather use <code>DEBUG=False</code> and show visitors some standard er... | [
{
"answer_id": 238111,
"author": "James Bennett",
"author_id": 28070,
"author_profile": "https://Stackoverflow.com/users/28070",
"pm_score": 8,
"selected": true,
"text": "DEBUG = False ADMINS process_exception() process_exception() got_request_exception"
},
{
"answer_id": 6395837... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4172/"
] |
238,102 | <p>I want to do some pattern matching on lists in Python. For example, in Haskell, I can do something like the following:</p>
<pre><code>fun (head : rest) = ...
</code></pre>
<p>So when I pass in a list, <code>head</code> will be the first element, and <code>rest</code> will be the trailing elements.</p>
<p>Likewise... | [
{
"answer_id": 238124,
"author": "James Bennett",
"author_id": 28070,
"author_profile": "https://Stackoverflow.com/users/28070",
"pm_score": 7,
"selected": true,
"text": "split_list = lambda lst: (lst[0], lst[1:])\nhead, rest = split_list(my_func())\n head, *rest = my_func()\n"
},
{
... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28804/"
] |
238,110 | <p>I am trying to get the signature on the method below to work. As this is an Anonymous Type I have some trouble, any help would be great.</p>
<p>When I looked at sortedGameList.ToList() in a QuickWatch window I get the signature </p>
<pre><code>System.Collections.Generic.List<<>f__AnonymousType0<System.... | [
{
"answer_id": 238127,
"author": "Brad Wilson",
"author_id": 1554,
"author_profile": "https://Stackoverflow.com/users/1554",
"pm_score": 3,
"selected": false,
"text": "public class GamesWithDate {\n public DateTime Date { get; set; }\n public List<Game> Games { get; set; }\n}\n var... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17584/"
] |
238,173 | <p>Similar to <a href="https://stackoverflow.com/questions/233030/worst-php-practice-found-in-your-experience">this question</a>...</p>
<p>What are the worst practices you actually found in Java code?</p>
<p>Mine are:</p>
<ul>
<li>using instance variables in servlets (it's not just bad practice but bug, actually)</l... | [
{
"answer_id": 238189,
"author": "Claudiu",
"author_id": 15055,
"author_profile": "https://Stackoverflow.com/users/15055",
"pm_score": 4,
"selected": false,
"text": "if (expensiveFunction() > aVar)\n aVar = expensiveFunction();\nfor (int i=0; i < expensiveFunction(); ++i)\n System.... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/686/"
] |
238,178 | <p>I need the "Select Data Source" dialog added to my application so that the user can manually select a range (or ranges) in Excel and the range is pasted in my text box. This functionality is everywhere in Excel (most notably when selecting a range for a chart). How can I easily do this?</p>
| [
{
"answer_id": 238932,
"author": "dbb",
"author_id": 25675,
"author_profile": "https://Stackoverflow.com/users/25675",
"pm_score": 0,
"selected": false,
"text": "Dim myRange As Range\n On Error Resume Next\n Set myRange = Application.InputBox(prompt:=\"Select the cells you want\", Type... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16794/"
] |
238,183 | <p>Every time I do an <code>hg diff file.ext</code> I end up using a console diff application. I would like to use Kdiff3 or WinMerge (I'm using Windows).</p>
<p>Is there a way to change that? I can't find a reference in Mercurial documentation (<strong>I'm not talking about merge!</strong>). </p>
| [
{
"answer_id": 241018,
"author": "Tute",
"author_id": 4386,
"author_profile": "https://Stackoverflow.com/users/4386",
"pm_score": 7,
"selected": true,
"text": "[extensions]\nhgext.extdiff=\n\n[extdiff]\ncmd.vdiff = kdiff3\n hg vdiff file.ext\n"
},
{
"answer_id": 1445060,
"aut... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238183",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4386/"
] |
238,184 | <p>My application uses measurement instruments that are connected to the PC. I want to make it possible to use similar instruments from different vendors. </p>
<p>So I defined an interface: </p>
<pre><code>interface IMeasurementInterface
{
void Initialize();
void Close();
}
</code></pre>
<p>S... | [
{
"answer_id": 238210,
"author": "Eoin Campbell",
"author_id": 30155,
"author_profile": "https://Stackoverflow.com/users/30155",
"pm_score": 4,
"selected": false,
"text": "public interface IMeasurement<PARAMTYPE> where PARAMTYPE : Parameters\n{\n void Init();\n void Close();\n v... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30507/"
] |
238,194 | <p>I use <a href="http://www.crockford.com/javascript/jsmin.html" rel="nofollow noreferrer">jsmin</a> to compress my javascript files before uploading them to production.</p>
<p>Since I tend to have one "code-behind" javascript file per page, I wind up doing this a lot.</p>
<p>I installed a Windows Powertoy that adds... | [
{
"answer_id": 238204,
"author": "Andrew Cox",
"author_id": 27907,
"author_profile": "https://Stackoverflow.com/users/27907",
"pm_score": 0,
"selected": false,
"text": "jsmin %1 script.min.js\n"
},
{
"answer_id": 238216,
"author": "Nescio",
"author_id": 14484,
"author... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28118/"
] |
238,196 | <p>I have an XML that needs to be databound to a <strong>WPF TreeView</strong>. Here the XML can have different structure. The TreeView should be databound generic enough to load any permutation of hierarchy. However an <strong>XAttribute</strong> on the nodes (called <strong>Title</strong>) should be databound to the ... | [
{
"answer_id": 238253,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "<XmlDataProvider\n x:Key=\"rxPartData\"\n XPath=\"RegexParts\">\n <x:XData>\n <RegexParts\n xmlns=\... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1747/"
] |
238,223 | <p>I'm matching identifiers, but now I have a problem: my identifiers are allowed to contain unicode characters. Therefore the old way to do things is not enough:</p>
<pre><code>t_IDENTIFIER = r"[A-Za-z](\\.|[A-Za-z_0-9])*"
</code></pre>
<p>In <a href="http://freehg.org/u/cheery/aml/" rel="nofollow noreferrer">my mar... | [
{
"answer_id": 238293,
"author": "Cheery",
"author_id": 21711,
"author_profile": "https://Stackoverflow.com/users/21711",
"pm_score": 1,
"selected": false,
"text": "symbols = re.escape(''.join([chr(i) for i in xrange(33, 127) if not chr(i).isalnum()]))\nsymnums = re.escape(''.join([chr(i... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21711/"
] |
238,260 | <p>I have given a location defined by latitude and longitude.
Now i want to calculate a bounding box within e.g. 10 kilometers of that point.</p>
<p>The bounding box should be defined as latmin, lngmin and latmax, lngmax.</p>
<p>I need this stuff in order to use the <a href="http://www.panoramio.com/api/" rel="norefe... | [
{
"answer_id": 238278,
"author": "jcoby",
"author_id": 2884,
"author_profile": "https://Stackoverflow.com/users/2884",
"pm_score": 3,
"selected": false,
"text": "location"
},
{
"answer_id": 238558,
"author": "Federico A. Ramponi",
"author_id": 18770,
"author_profile":... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21672/"
] |
238,267 | <p>I have seen various rules for naming stored procedures. </p>
<p>Some people prefix the sproc name with usp_, others with an abbreviation for the app name, and still others with an owner name. You shouldn't use sp_ in SQL Server unless you really mean it.</p>
<p>Some start the proc name with a verb (Get, Add, Save,... | [
{
"answer_id": 238295,
"author": "driis",
"author_id": 13627,
"author_profile": "https://Stackoverflow.com/users/13627",
"pm_score": 1,
"selected": false,
"text": "shopGetCategories\nshopUpdateItem\n"
},
{
"answer_id": 238330,
"author": "ConcernedOfTunbridgeWells",
"autho... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27637/"
] |
238,284 | <p>I'm building an Android app and I want to copy the text value of an EditText widget. It's possible for the user to press <code>Menu+A</code> then <code>Menu+C</code> to copy the value, but how would I do this programmatically?</p>
| [
{
"answer_id": 238297,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 10,
"selected": true,
"text": "ClipboardManager#setPrimaryClip import android.content.ClipboardManager;\n\n// ...\n\nClipboardManager clipboard = (Clipboar... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9128/"
] |
238,314 | <p>Let's say I have the following ruby code :</p>
<pre><code>
def use_object(object)
puts object.some_method
end
</code></pre>
<p>and , this will work on any object that responds to <strong>some_method</strong>,right?</p>
<p>Assuming that the following java interface exists :</p>
<pre><code>
interface TestInterfa... | [
{
"answer_id": 238327,
"author": "Fabian Buch",
"author_id": 28968,
"author_profile": "https://Stackoverflow.com/users/28968",
"pm_score": 1,
"selected": false,
"text": "interface TestInterface {\n public String some_method();\n}\n public class TestClass implements TestInterface {\n ... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238314",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31610/"
] |
238,317 | <p>I have a route</p>
<pre><code>// Sample URL: /Fixtures/Team/id
routes.MapRoute(
"Fixtures-by-TeamID",
"Fixtures/Team/{teamId}",
new { controller = "Fixtures", action = "GetByTeamID", },
new { teamId = @"\d{1,3}" }
);
</code></pre>
<p>and I am trying to use ActionLink in ASP.net MVC p5. </p>
<p... | [
{
"answer_id": 238339,
"author": "Brad Wilson",
"author_id": 1554,
"author_profile": "https://Stackoverflow.com/users/1554",
"pm_score": 1,
"selected": false,
"text": "<a href=\"<%= Url.FixturesByTeam(g.HomeTeam.TeamID) %>\"><%= g.HomeTeam.TeamName %></a>\n <%= Html.LinkToFixturesByTeam(... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17584/"
] |
238,328 | <p>I am trying to figure out the best way to model a spreadsheet (from the database point of view), taking into account :</p>
<ul>
<li>The spreadsheet can contain a variable number of rows.</li>
<li>The spreadsheet can contain a variable number of columns.</li>
<li>Each column can contain one single value, but its typ... | [
{
"answer_id": 238397,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 2,
"selected": false,
"text": "Spreadsheet <-->> Cell : RowId, ColumnId, ValueType, Contents\n"
}
] | 2008/10/26 | [
"https://Stackoverflow.com/questions/238328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12388/"
] |
238,340 | <p>I have a C# collection of strings. Each string is a sentence that can appear on a page. I also have a collection of page breaks which is a collection of int's. representing the index where the collection of strings are split to a new page.</p>
<p>Example: Each 10 items in the string collection is a page so the coll... | [
{
"answer_id": 238369,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": "List<string> strings = ...\nint pageNum = ...\nint pageSze = ...\n\nif (pageNum < 1) pageNum = 1;\nif (pageSize < 1) pa... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
238,343 | <p>I am trying to place a big number in a C++ variable. The number is 600851475143</p>
<p>I tried unsigned long long int but got an error saying it the constant was too big.
I then tried a bigInt library called BigInt -> <a href="http://mattmccutchen.net/bigint/" rel="nofollow noreferrer">http://mattmccutchen.net/big... | [
{
"answer_id": 238345,
"author": "Martin York",
"author_id": 14065,
"author_profile": "https://Stackoverflow.com/users/14065",
"pm_score": 6,
"selected": true,
"text": "#include <iostream>\n\nint main()\n{\n long long num = 600851475143LL;\n\n std::cout << num;\n}\n"
},
{
"... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8715/"
] |
238,349 | <p>Below is the code that i cannot get to work. I know i have established a connection to the database but this returns nothing. What am i doing wrong?</p>
<pre><code>$result = "SELECT * FROM images WHERE path = ?";
$params = array("blah");
$row = sqlsrv_query($conn, $result, $params);
$finished = sqlsrv_fetch_array(... | [
{
"answer_id": 238502,
"author": "Tom Haigh",
"author_id": 22224,
"author_profile": "https://Stackoverflow.com/users/22224",
"pm_score": 0,
"selected": false,
"text": "$result = \"SELECT * FROM images WHERE path = ?\";\n$params = array(\"blah\");\n$row = sqlsrv_query($conn, $result, $par... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
238,358 | <p>I'm trying to get authentication working to my liking in a CakePHP app and running into a snag. </p>
<p>I want to let the user login from either the home page or from a dedicated login page. I'm using the Auth component to manage login and right now the login itself works. I am submitting the form on the home page ... | [
{
"answer_id": 374106,
"author": "nanoman",
"author_id": 46993,
"author_profile": "https://Stackoverflow.com/users/46993",
"pm_score": 0,
"selected": false,
"text": "$this->Session->del('Auth.redirect');\n"
},
{
"answer_id": 474358,
"author": "Community",
"author_id": -1,... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238358",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7018/"
] |
238,376 | <p>I am writing my own Joomla component (MVC), its based heavily on the newsflash module, because I want to display the latest 5 content items in a sliding tabbed interface, all the hard work is done, but I am having real difficult getting content out of the for loop.</p>
<p>Here is the code I have so far
default.php<... | [
{
"answer_id": 238389,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 3,
"selected": true,
"text": "if $i = 0 == if ($i == 0){\n // First Item here...\n\n}else{\n // Other Items...\n\n} \n"
},
{
"answer... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28241/"
] |
238,379 | <p>How would I even go about forking a child process using Haskell in the first place?</p>
<p>Also, if pipes are an obvious solution to the data sharing question - is there any other way to do it besides using pipes? I'm familiar with the use of shared memory segments in C (the shmget, *shmat, shmdt and shmctl functio... | [
{
"answer_id": 21931154,
"author": "Edward Z. Yang",
"author_id": 23845,
"author_profile": "https://Stackoverflow.com/users/23845",
"pm_score": 0,
"selected": false,
"text": "forkProcess"
}
] | 2008/10/26 | [
"https://Stackoverflow.com/questions/238379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
238,380 | <p>When there are one of more columns that reference another, I'm struggling for the best way to update that column while maintaining referential integrity. For example, if I have a table of labels and descriptions and two entries:</p>
<pre><code>Label | Description
------------------------------------
read | This it... | [
{
"answer_id": 238390,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 2,
"selected": true,
"text": "select TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME,\nREFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAME from \nINFORMATION_SCHEM... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19687/"
] |
238,413 | <p>I am trying to use Lambda Expressions in a project to map to a third party query API. So, I'm parsing the Expression tree by hand.</p>
<p>If I pass in a lambda expression like:</p>
<pre><code>p => p.Title == "title"
</code></pre>
<p>everything works.</p>
<p>However, if my lambda expression looks like:</p>
<p... | [
{
"answer_id": 239359,
"author": "Bevan",
"author_id": 30280,
"author_profile": "https://Stackoverflow.com/users/30280",
"pm_score": 5,
"selected": true,
"text": "public class Class1\n{\n public string Selection { get; set; }\n\n public void Sample()\n {\n Selection = \"E... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49611/"
] |
238,430 | <p>I think I know the answer, but I would like to bounce around some ideas.</p>
<p>I would like to pass several (in this instance 2) somewhat different pieces of data to a View. My initial thought is simply to wrap-up the various objects into a containing object and pass them along that way. Then from the View, I'd h... | [
{
"answer_id": 238447,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "public class Duo<TFirst,TSecond> { /*...*/ }\npublic class Trio<TFirst,TSecond, TThird> { /*...*/ }\n public static class Grou... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2017/"
] |
238,437 | <p>In ASP.NET MVC, you can mark up a controller method with <code>AuthorizeAttribute</code>, like this:</p>
<pre><code>[Authorize(Roles = "CanDeleteTags")]
public void Delete(string tagName)
{
// ...
}
</code></pre>
<p>This means that, if the currently logged-in user is not in the "CanDeleteTags" role, the contro... | [
{
"answer_id": 705485,
"author": "Alan Jackson",
"author_id": 72995,
"author_profile": "https://Stackoverflow.com/users/72995",
"pm_score": 5,
"selected": false,
"text": "// User was redirected here because of authorization section\nif (User.Identity != null && User.Identity.IsAuthentica... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8446/"
] |
238,441 | <p>I have worked on projects for embedded systems in the past where we have rearranged the order of declaration of stack variables to decrease the size of the resulting executable. For instance, if we had:</p>
<pre><code>void func()
{
char c;
int i;
short s;
...
}
</code></pre>
<p>We would reorder th... | [
{
"answer_id": 243740,
"author": "Malkocoglu",
"author_id": 31152,
"author_profile": "https://Stackoverflow.com/users/31152",
"pm_score": 0,
"selected": false,
"text": "#pragma pack(push, 16)\n\ntypedef struct _S_speedy_struct{\n\n double fval[4];\n int64 lval[4];\n int32 ival[8];\n\n}... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13728/"
] |
238,449 | <p>How do I configure SSRS/Windows Server 2003, so that I can setup email delivery via a remote SMTP server that requires username and password.</p>
<p>I can configure SSRS with an SMTP address and other parameters, but nowhere is it possible to configure it with smtp username and password. </p>
<p>I have hunted arou... | [
{
"answer_id": 511691,
"author": "Tom Willwerth",
"author_id": 3334,
"author_profile": "https://Stackoverflow.com/users/3334",
"pm_score": 3,
"selected": false,
"text": "<SMTPServer>x.x.x.x</SMTPServer> <From>you@yourwebserver.com</From> <SendEmailToUserAlias>False</SendEmailToUserAlias>... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1982/"
] |
238,451 | <p>I'm trying to set up Eclipse for php web development. What I would like to do is preview a php web page from within Eclipse, but I cannot figure out how to do this. Is there an integrated web server of some sort that allows this, or do I have to set up IIS/Apache to do it? If so, do I have to have my php files in... | [
{
"answer_id": 238593,
"author": "acrosman",
"author_id": 24215,
"author_profile": "https://Stackoverflow.com/users/24215",
"pm_score": 2,
"selected": false,
"text": "http://localhost/project_name/file.php\n"
}
] | 2008/10/26 | [
"https://Stackoverflow.com/questions/238451",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3291/"
] |
238,452 | <p>I am familiar with C++ RTTI, and find the concept interesting.</p>
<p>Still there exist a lot of more ways to abuse it than to use it correctly (the RTTI-switch dread comes to mind). As a developer, I found (and used) only two viable uses for it (more exactly, one and a half).</p>
<p><strong>Could you share some o... | [
{
"answer_id": 238509,
"author": "1800 INFORMATION",
"author_id": 3146,
"author_profile": "https://Stackoverflow.com/users/3146",
"pm_score": 3,
"selected": false,
"text": "this class base\n{\n void foo(base *b) = 0; // dynamic on the parameter type as well\n};\n\nclass B : public base ... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14089/"
] |
238,460 | <p>When I use the default model binding to bind form parameters to a complex object which is a parameter to an action, the framework remembers the values passed to the first request, meaning that any subsequent request to that action gets the same data as the first. The parameter values and validation state are persist... | [
{
"answer_id": 240829,
"author": "Eilon",
"author_id": 31668,
"author_profile": "https://Stackoverflow.com/users/31668",
"pm_score": 2,
"selected": false,
"text": "[AcceptVerbs(HttpVerbs.Get)]\npublic ActionResult Create() {\n return View(RunTime.Default);\n}\n\n[AcceptVerbs(HttpVerbs... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238460",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12006/"
] |
238,465 | <p>Back in the 90s when I first started out with MFC I used to dynamically link my apps and shipped the relevant MFC DLLs. This caused me a few issues (DLL hell!) and I switched to statically linking instead - not just for MFC, but for the CRT and ATL. Other than larger EXE files, statically linking has never caused ... | [
{
"answer_id": 238493,
"author": "xtofl",
"author_id": 6610,
"author_profile": "https://Stackoverflow.com/users/6610",
"pm_score": 1,
"selected": false,
"text": "p = new LibClass() delete p;"
}
] | 2008/10/26 | [
"https://Stackoverflow.com/questions/238465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9236/"
] |
238,466 | <p>How do you access the items collection of a combo box in a specific row in a DataGridView?</p>
<p>I'm populating the combo as follows:</p>
<pre><code> Dim VATCombo As New DataGridViewComboBoxColumn
With VATCombo
.HeaderText = "VAT Rate"
.Name = .HeaderText
... | [
{
"answer_id": 255989,
"author": "CestLaGalere",
"author_id": 6684,
"author_profile": "https://Stackoverflow.com/users/6684",
"pm_score": 2,
"selected": true,
"text": "Imports System.Collections.Generic\nImports System.Drawing\nImports System.Windows.Forms\n\nFriend Class ComboEditingCon... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20048/"
] |
238,473 | <p>I want to make a really simple iphone app: one screen with a single button... when the button is tapped a new screen appears. That's it. No animations, nothing,</p>
<p>I've tried endlessly to make the NavBar sample project do this... and it works but only if I use a UINavigationController with a table that I can... | [
{
"answer_id": 238477,
"author": "kdbdallas",
"author_id": 26728,
"author_profile": "https://Stackoverflow.com/users/26728",
"pm_score": 4,
"selected": true,
"text": "LoginView *login = [[LoginView alloc] initWithFrame: rect];\n[mainView addSubview: login];\n"
},
{
"answer_id": 2... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238473",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22471/"
] |
238,504 | <p>Is it possible to load child entities in a <strong><em>single</em></strong> query without using DataLoadOptions?</p>
<p>I am using one data context per request in an asp.net web application and trying to get around the linq to sql limitation of not being able to change dataloadoptions once a query has been executed... | [
{
"answer_id": 238696,
"author": "bh213",
"author_id": 28912,
"author_profile": "https://Stackoverflow.com/users/28912",
"pm_score": 0,
"selected": false,
"text": "from a in Albums join o in Users on a.Owner equals o select new {a, o}\n"
},
{
"answer_id": 238761,
"author": "... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24358/"
] |
238,517 | <p>I have intermittent crashes occurring in my ActiveMQ libraries due to the way I'm using the activemq-cpp API. It'd be much easier to debug the issue if I could observe every function being called leading up to the crash. Are there any quick ways to trace the entry and exit of functions in a Visual Studio 2005 c++ ... | [
{
"answer_id": 238522,
"author": "Dima",
"author_id": 13313,
"author_profile": "https://Stackoverflow.com/users/13313",
"pm_score": 3,
"selected": true,
"text": "\nclass Tracer\n{\npublic:\n Tracer(const char *functionName) : functionName_(functionName)\n {\n cout << \"Entering func... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/191808/"
] |
238,523 | <p>If I want to move to C++ and SDL in the future, is Python and pygame a good way to learn SDL?</p>
| [
{
"answer_id": 239464,
"author": "ulukyn",
"author_id": 31748,
"author_profile": "https://Stackoverflow.com/users/31748",
"pm_score": 2,
"selected": false,
"text": "import pygame, sys,os\nfrom pygame.locals import * \n\npygame.init() \n\nwindow = pygame.display.set_mode((468, 60)) \npyga... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
238,525 | <p>I've been running the built-in <a href="http://ant.apache.org/" rel="nofollow noreferrer">Ant</a> from the command line on a Macintosh (10.5.5) and have run into some trouble with the <strong>Mail</strong> task. Running the Mail task produces the following message:</p>
<pre><code>[mail] Failed to initialise MIME ma... | [
{
"answer_id": 239516,
"author": "npellow",
"author_id": 2767300,
"author_profile": "https://Stackoverflow.com/users/2767300",
"pm_score": 1,
"selected": false,
"text": "ant -f fetch all\n all load all the libraries\n antlr load antlr libraries\n bcel load bcel libra... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238525",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31629/"
] |
238,535 | <p>Is it more efficient for a class to access member variables or local variables? For example, suppose you have a (callback) method whose sole responsibility is to receive data, perform calculations on it, then pass it off to other classes. Performance-wise, would it make more sense to have a list of member variables ... | [
{
"answer_id": 238568,
"author": "peterchen",
"author_id": 31317,
"author_profile": "https://Stackoverflow.com/users/31317",
"pm_score": 7,
"selected": true,
"text": "// stack variable: load into eax\nmov eax, [esp+10]\n\n// member variable: load into eax\nmov ecx, [adress of object]\nmo... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
238,537 | <p>I am new to Access. I have a table full of records. I want to write a function to check if any id is null or empty. If so, I want to update it with xxxxx.
The check for id must be run through all tables in a database.
Can anyone provide some sample code?</p>
| [
{
"answer_id": 238551,
"author": "Daren Thomas",
"author_id": 2260,
"author_profile": "https://Stackoverflow.com/users/2260",
"pm_score": 1,
"selected": false,
"text": "update TABLE set FIELD = 'xxxxxx' where ID is null\n"
},
{
"answer_id": 238709,
"author": "micahwittman",
... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
238,547 | <p>I would like to be able to fetch a web page's html and save it to a <code>String</code>, so I can do some processing on it. Also, how could I handle various types of compression.</p>
<p>How would I go about doing that using Java?</p>
| [
{
"answer_id": 238634,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 8,
"selected": true,
"text": "public static void main(String[] args) {\n URL url;\n InputStream is = null;\n BufferedReader br;\n Strin... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2598/"
] |
238,555 | <p>How do I get the value of a <code>MemberInfo</code> object? <code>.Name</code> returns the name of the variable, but I need the value. </p>
<p>I think you can do this with <code>FieldInfo</code> but I don't have a snippet, if you know how to do this can you provide a snippet??</p>
<p>Thanks!</p>
| [
{
"answer_id": 238562,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": false,
"text": "using System;\nusing System.Reflection;\n\npublic class Test\n{\n // public just for the sake of a short example.\n ... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49611/"
] |
238,603 | <p>How can I find out the size of a file I opened with an application written in C ?
I would like to know the size, because I want to put the content of the loaded file into a string, which I allocate using <code>malloc()</code>. Just writing <code>malloc(10000*sizeof(char));</code> is IMHO a bad idea. </p>
| [
{
"answer_id": 238607,
"author": "Rob Walker",
"author_id": 3631,
"author_profile": "https://Stackoverflow.com/users/3631",
"pm_score": 10,
"selected": true,
"text": "fseek(fp, 0L, SEEK_END);\nsz = ftell(fp);\n fseek(fp, 0L, SEEK_SET);\n rewind(fp);\n"
},
{
"answer_id": 238609,
... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25017/"
] |
238,606 | <p>I'm trying to make a simple C# web server that, at this stage, you can access via your browser and will just do a "Hello World". </p>
<p>The problem I'm having is that the server can receive data fine - I get the browser's header information - but the browser doesn't receive anything I send. Furthermore, I can only... | [
{
"answer_id": 238640,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 2,
"selected": true,
"text": "HttpListener httpcfg netsh"
}
] | 2008/10/26 | [
"https://Stackoverflow.com/questions/238606",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19696/"
] |
238,608 | <p>I'm using TortoiseHg 0.5 (which includes Mercurial 1.0.2) on Vista64. My understanding from the <a href="http://hgbook.red-bean.com/hgbookch7.html#x11-1530007.7" rel="noreferrer">Mercurial Book</a> is that Mercurial should handle filenames in a case-insensitive manner on a case-insensitive filesystem (such as NTFS, ... | [
{
"answer_id": 245867,
"author": "Ry4an Brase",
"author_id": 8992,
"author_profile": "https://Stackoverflow.com/users/8992",
"pm_score": 3,
"selected": false,
"text": "hg status -A FOO ! Foo\n? FOO\n"
},
{
"answer_id": 529728,
"author": "Mentat",
"author_id": 30198,
"... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238608",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30198/"
] |
238,615 | <p>I have a quite old templating system written on top of ERB. It relies on ERB templates stored in database. Those are read and rendered. When I want to pass data from one template to another I use the :locals parameter to Rails render method. For setting default variables of those variables in some templates I use th... | [
{
"answer_id": 238715,
"author": "Rômulo Ceccon",
"author_id": 23193,
"author_profile": "https://Stackoverflow.com/users/23193",
"pm_score": 6,
"selected": true,
"text": "defined? perex ||= true\n perex nil nil perex false perex ||= perex.nil? # Assign true only when perex is undefined ... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8621/"
] |
238,620 | <p>I have a subclass "s" of UIView. I want to put some buttons and labels on s. How do I associate my UIView subclass with a nib file?</p>
| [
{
"answer_id": 238806,
"author": "Colin Barrett",
"author_id": 23106,
"author_profile": "https://Stackoverflow.com/users/23106",
"pm_score": 6,
"selected": true,
"text": "-[NSBundle loadNibNamed:owner:options:]"
},
{
"answer_id": 18748065,
"author": "djibouti33",
"author_... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22471/"
] |
238,625 | <p>I have a Visual Studio 2008 solution with two projects (a Word-Template project and a VB.Net console application for testing). Both projects reference a database project which opens a connection to an MS-Access 2007 database file and have references to System.Data.OleDb. In the database project I have a function w... | [
{
"answer_id": 1894000,
"author": "Pescadore",
"author_id": 230087,
"author_profile": "https://Stackoverflow.com/users/230087",
"pm_score": 3,
"selected": false,
"text": "VC# Express VC# Express Configuration Manager Tools -> Options \"Show all settings\" \"Projects and Solutions\" \"Sho... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238625",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4612/"
] |
238,631 | <p>I have Visual Studio 2008 and the Windows SDK for Windows Server 2008 and .NET Framework 3.5
installed. I believe that is the latest platform SDK.</p>
<p>I'm trying to build a signed dll to be installed in SxS.
All the tutorials explain to use a tool called pktextract.exe which is part of the SDK, but I can't seem ... | [
{
"answer_id": 1894000,
"author": "Pescadore",
"author_id": 230087,
"author_profile": "https://Stackoverflow.com/users/230087",
"pm_score": 3,
"selected": false,
"text": "VC# Express VC# Express Configuration Manager Tools -> Options \"Show all settings\" \"Projects and Solutions\" \"Sho... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4697/"
] |
238,660 | <p>When you attempt to declare an unsigned variable in C#.NET with a value outside its value range it is flagged as a compiler error, but if you produce a negative value at runtime and assign it to that variable at runtime the value wraps.</p>
<pre><code>uint z = -1; // Will not compile
uint a = 5;
uint b = 6;
uint c... | [
{
"answer_id": 238669,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": true,
"text": "uint z;\n int.MaxValue int.MinValue class Test\n{\n static void Main()\n {\n checked\n {\n ... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27765/"
] |
238,662 | <pre><code>string[] filesOfType1 = GetFileList1();
string[] filesOfType2 = GetFileList2();
var cookieMap = new Dictionary<string, CookieContainer>();
Action<string, Func<string, KeyValuePair<string, CookieContainer>>> addToMap = (filename, pairGetter) =>
{
KeyValuePair<string,... | [
{
"answer_id": 238729,
"author": "Omer van Kloeten",
"author_id": 4979,
"author_profile": "https://Stackoverflow.com/users/4979",
"pm_score": 1,
"selected": false,
"text": "var cookieMap = (from pair in\n (from f1 in filesOfType1\n select Swallow(... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238662",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3191/"
] |
238,665 | <p>Is there a mechanism to inject dependencies into Linq to Sql or entity framework entities? If so would it be a sensible approach?</p>
| [
{
"answer_id": 238689,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 0,
"selected": false,
"text": "XmlMappingSource"
}
] | 2008/10/26 | [
"https://Stackoverflow.com/questions/238665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29547/"
] |
238,675 | <p>Im looking to build a thread manager for an application.</p>
<p>I have already started threading and it works entirely fine but I would like to be able to programatically kill them or get information on them.</p>
<p>Does anyone have ideas?</p>
| [
{
"answer_id": 238681,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 2,
"selected": false,
"text": "Thread.Abort"
},
{
"answer_id": 239018,
"author": "Jon B",
"author_id": 27414,
"author_profile": "ht... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31642/"
] |
238,684 | <p>I have a Ruby DateTime which gets filled from a form. Additionally I have n hours from the form as well. I'd like to subtract those n hours from the previous DateTime. (To get a time range).</p>
<p>DateTime has two methods "-" and "<<" to subtract day and month, but not hour. (<a href="https://ruby-doc.org/st... | [
{
"answer_id": 238690,
"author": "Matthias Winkelmann",
"author_id": 4494,
"author_profile": "https://Stackoverflow.com/users/4494",
"pm_score": 3,
"selected": false,
"text": "> Time.now - 12.hours\n=> 2019-08-19 05:50:43 +0200\n DateTime Time t = Time.now\nt = t - (hours*60**2)\n Time D... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31644/"
] |
238,702 | <p>In my database, Concessions have a many-to-one relationship with Firms (each Concession has a FirmID). SqlMetal has captured this relationship and generated the appropriate classes, so that each Concession has a Firm element. I'm binding against a query (simplified here) that returns a list of Concessions along with... | [
{
"answer_id": 238717,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 2,
"selected": false,
"text": "from c in Db.Concessions\nselect \n{ \n c.ConcessionID, \n c.Title, \n Title = c.Firm.Title ?? \"\"\n}\... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/239663/"
] |
238,724 | <p>I need advice for rendering an undirected graph with 178,000 nodes and 500,000 edges. I've tried Neato, Tulip, and Cytoscape. Neato doesn't even come remotely close, and Tulip and Cytoscape claim they can handle it but don't seem to be able to. (Tulip does nothing and Cytoscape claims to be working, and then just... | [
{
"answer_id": 5093458,
"author": "Anthony Liekens",
"author_id": 361178,
"author_profile": "https://Stackoverflow.com/users/361178",
"pm_score": 5,
"selected": false,
"text": "sfdp"
},
{
"answer_id": 11093000,
"author": "MRocklin",
"author_id": 616616,
"author_profil... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
238,733 | <p>I want to "remove" a UIView from a superview and add it again at the end... but at the "bottom" of the rest of the UIviews that belong to the superview. </p>
<p>Is this possible?</p>
<p>Any help is very appreciated!</p>
| [
{
"answer_id": 238758,
"author": "Max Stewart",
"author_id": 18338,
"author_profile": "https://Stackoverflow.com/users/18338",
"pm_score": 5,
"selected": true,
"text": "- (void)insertSubview:(UIView *)view atIndex:(NSInteger)index;\n - (void)insertSubview:(UIView *)view belowSubview:(UIV... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23695/"
] |
238,738 | <p>I'm not sure how to look for this online... I think they might be called something different in C++</p>
<p>I want to have a simple event system, somthing like</p>
<pre><code>event myCustomEvent;
myCustomEvent.subscribe( void myHandler(string) );
myCustomEvent.fire("a custom argument");
// myHandler prints out the ... | [
{
"answer_id": 238963,
"author": "Eclipse",
"author_id": 8701,
"author_profile": "https://Stackoverflow.com/users/8701",
"pm_score": 3,
"selected": false,
"text": "[event_source(native)]\nclass CSource {\npublic:\n __event void MyEvent(int nValue);\n};\n\n[event_receiver(native)]\nclas... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1825034/"
] |
238,748 | <p>We have a 3D application that retrieves keyboard presses via the IDirectInputDevice8. Is there any way, when we retrive keyboard events via the win32 API winproc loop back that we can send these commands to the DirectInputDevice?</p>
| [
{
"answer_id": 238774,
"author": "jussij",
"author_id": 14738,
"author_profile": "https://Stackoverflow.com/users/14738",
"pm_score": 0,
"selected": false,
"text": "WM_SYSKEYDOWN\nWM_SYSKEYUP\nWM_KEYDOWN\nWM_KEYUP \nWM_CHAR \n"
}
] | 2008/10/26 | [
"https://Stackoverflow.com/questions/238748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
238,765 | <p>I am parsing an Expression Tree. Given a NodeType of ExpressionType.MemberAccess, how do I get the value of that Field? </p>
<p>From C# MSDN docs:
MemberAccess is A node that represents reading from a field or property. </p>
<p>A code snippet would be incredibly, incredibly helpful. Thanks in advance!!!</p>
<p>M... | [
{
"answer_id": 238798,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 7,
"selected": true,
"text": "Expression MemberExpression MemberExpression PropertyInfo FieldInfo .Expression .Member FieldInfo .GetValue(obj) Field... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49611/"
] |
238,768 | <p>I would to change the menuitems in the default context menu provided in the Web Browser Control. I have already tried: webbrowser.contextmenu = mycontextmenu.
Nothing changed. Is there a way to do this?</p>
| [
{
"answer_id": 1151160,
"author": "Marco Luglio",
"author_id": 14263,
"author_profile": "https://Stackoverflow.com/users/14263",
"pm_score": 1,
"selected": false,
"text": "using System.Windows;\nusing System.Runtime.InteropServices;\nusing mshtml;\n"
}
] | 2008/10/26 | [
"https://Stackoverflow.com/questions/238768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
238,784 | <p>I wrote a class/function to send xml over https via PHP4/cURL, just wondering if this is the correct approach, or if there's a better one.</p>
<p>Note that PHP5 is not an option at present.</p>
<pre><code>/**
* Send XML via http(s) post
*
* curl --header "Content-Type: text/xml" --data "<?xml version="1.0"?&... | [
{
"answer_id": 238790,
"author": "Nick Stinemates",
"author_id": 4960,
"author_profile": "https://Stackoverflow.com/users/4960",
"pm_score": -1,
"selected": false,
"text": "$soap = new SoapClient(\"http://some.url/service/some.wsdl\");\n$args = array(\"someTypeName\" => \"someTypeValue\"... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29854/"
] |
238,792 | <p>I cannot seem to programmatcally scroll in WPF
in a normal Windows Form I would use the code below
but that property does not exist in WPF.</p>
<pre><code>HtmlDocument doc = this.webBrowser1.Document;
doc.Body.ScrollTop = 800;
return;
</code></pre>
<p>Is there an alternative to doing this? </p>
| [
{
"answer_id": 50808320,
"author": "Kyle Delaney",
"author_id": 2122672,
"author_profile": "https://Stackoverflow.com/users/2122672",
"pm_score": 0,
"selected": false,
"text": "if (wb.Document is mshtml.HTMLDocument htmlDoc)\n{\n htmlDoc.parentWindow.scrollTo(0, 0);\n}\n"
}
] | 2008/10/26 | [
"https://Stackoverflow.com/questions/238792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
238,800 | <p>I have a query:</p>
<p>UPDATE choices SET votes = votes + 1 WHERE choice_id = '$user_choice'</p>
<p>But when I execute it in my script, the votes field is updated twice, so the votes will go from 4 to 6 instead to 5. It doesn't seem that it is getting called twice because I echo out stuff to test this and only get... | [
{
"answer_id": 238808,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 2,
"selected": false,
"text": "$pdo = new PDO(...options...);\n$stmt = $pdo->query('UPDATE ...'); // executes once\n$stmt->execute(); // executes a s... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238800",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
238,812 | <p>I have a server dropdownlist in an <a href="http://en.wikipedia.org/wiki/Ajax_%28programming%29" rel="noreferrer">Ajax</a> updatepanel. When I use the mouse to click on an item it fires the postback but when I click the up/down arrow to change entries, this is not firing. What could be reason?</p>
| [
{
"answer_id": 238864,
"author": "Paul Prewett",
"author_id": 15751,
"author_profile": "https://Stackoverflow.com/users/15751",
"pm_score": 0,
"selected": false,
"text": "onKeyDown"
},
{
"answer_id": 238934,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
238,814 | <p>I'm trying to build an in-game Tell A Friend form like in AppStore. Does anybody know if it can be found anywhere in the SDK? I wouldn't like to reinvent the sliced bread.</p>
<p>Thanks!</p>
| [
{
"answer_id": 239375,
"author": "Chris Samuels",
"author_id": 30342,
"author_profile": "https://Stackoverflow.com/users/30342",
"pm_score": 3,
"selected": false,
"text": "NSURL *url = [[NSURL alloc] initWithString: @\"mailto:gilm@myopenid.com?subject=subject&body=body\"];\n[[UIApplicati... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31515/"
] |
238,815 | <p>I currently have a couple of SVN repositories hosted at Unfuddle and I'd like to have a local copy of the repositories as a backup. Ideally, it would be a "live" backup so my local repository would "ping" the remote repository, and if any changes were detected, the changes would be applied to my local repository.</p... | [
{
"answer_id": 238853,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 0,
"selected": false,
"text": "svnadmin dump svnadmin hotcopy"
},
{
"answer_id": 238866,
"author": "CesarB",
"author_id": 28258,
"author_... | 2008/10/26 | [
"https://Stackoverflow.com/questions/238815",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3440/"
] |
238,824 | <p>How do I call a url in order to process the results?</p>
<p>I have a stand-alone reporting servlet which I link to for reports. I want to email these reports now, if I were doing this in the browser, I could just use an xhttprequest, and process the results - I basically want to do the same thing in Java, but I'm n... | [
{
"answer_id": 238845,
"author": "Vincent Ramdhanie",
"author_id": 27439,
"author_profile": "https://Stackoverflow.com/users/27439",
"pm_score": 1,
"selected": false,
"text": "RequestDispatcher dispatcher =\n getServletContext().getRequestDispatcher(\"/url of other resource\");\nif (di... | 2008/10/27 | [
"https://Stackoverflow.com/questions/238824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/943/"
] |
238,878 | <p>I am still very new to Ruby (reading through the Pickaxe and spending most of my time in <code>irb</code>), and now that I know it's possible to patch classes in Ruby, I'm wondering when it's acceptable to do so, specifically whether it's acceptable to patch Ruby's base classes. For example: I answered another Ruby ... | [
{
"answer_id": 238917,
"author": "glenn mcdonald",
"author_id": 7919,
"author_profile": "https://Stackoverflow.com/users/7919",
"pm_score": 3,
"selected": false,
"text": "class MyDateTime < DateTime\n alias...\n def...\n"
}
] | 2008/10/27 | [
"https://Stackoverflow.com/questions/238878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17862/"
] |
238,894 | <p>I am trying to design a 4-bit adder subtracter in verilog. This is only the second thing I have ever written in verilog, and I don't know all the correct syntax yet. This is the module I have so far:</p>
<pre><code>module Question3(carryin, X, Y, Z, S, carryout, overflow);
parameter n = 4;
input carryin, Z;... | [
{
"answer_id": 1005430,
"author": "Steve K",
"author_id": 121394,
"author_profile": "https://Stackoverflow.com/users/121394",
"pm_score": 4,
"selected": true,
"text": "reg [n-1:0] Y_compl;\n\nalways @( Z, Y, X, carryin ) begin\n Y_ = ( ~Y + 4'b0001 );\n if ( Z == 1'b0 ) begin\n {car... | 2008/10/27 | [
"https://Stackoverflow.com/questions/238894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23323/"
] |
238,898 | <p>Has anyone noticed that if you retrieve HTML from the clipboard, it gets the encoding wrong and injects weird characters?</p>
<p>For example, executing a command like this:</p>
<pre><code>string s = (string) Clipboard.GetData(DataFormats.Html)
</code></pre>
<p>Results in stuff like:</p>
<pre><code><FONT size=... | [
{
"answer_id": 19068371,
"author": "Julo",
"author_id": 2826535,
"author_profile": "https://Stackoverflow.com/users/2826535",
"pm_score": 2,
"selected": false,
"text": "byte[] data = Encoding.Default.GetBytes(text);\ntext = Encoding.UTF8.GetString(data);\n public static bool FixMisencode... | 2008/10/27 | [
"https://Stackoverflow.com/questions/238898",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31015/"
] |
238,915 | <p>I've got a UserControl that contains an UpdatePanel. When I put that on a page, it throws the following error:</p>
<blockquote>
<p>Cannot unregister UpdatePanel with ID
'ReviewContentUpdatePanel' since it
was not registered with the
ScriptManager. This might occur if the
UpdatePanel was removed from the
... | [
{
"answer_id": 19006245,
"author": "Steve",
"author_id": 1571391,
"author_profile": "https://Stackoverflow.com/users/1571391",
"pm_score": 2,
"selected": false,
"text": "protected override void OnInit(EventArgs e)\n{\n ScriptManager sm = ScriptManager.GetCurrent(this.Page);\n Metho... | 2008/10/27 | [
"https://Stackoverflow.com/questions/238915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2975/"
] |
238,918 | <p>I have been having some problems trying to get my PHP running. When I try and run any scripts they appear in the source and do not run properly. This is the htaccess file:</p>
<pre><code># Use PHP5 as default
AddHandler application/x-httpd-php5 .php
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
</code></pre>... | [
{
"answer_id": 238926,
"author": "noob source",
"author_id": 29838,
"author_profile": "https://Stackoverflow.com/users/29838",
"pm_score": 3,
"selected": true,
"text": "AddHandler application/x-httpd-php5 .php AddHandler application/x-httpd-php .php AddType AddHandler x-mapp-* LoadModule... | 2008/10/27 | [
"https://Stackoverflow.com/questions/238918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31677/"
] |
238,920 | <p>What's a simple/easy way to access the system clock using Java, so that I can calculate the elapsed time of an event?</p>
| [
{
"answer_id": 238924,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 3,
"selected": false,
"text": "java.lang.System.currentTimeMillis() java.lang.System.nanoTime()"
},
{
"answer_id": 238943,
"author": "jjng... | 2008/10/27 | [
"https://Stackoverflow.com/questions/238920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22371/"
] |
238,931 | <p>I am developing some client side Javascript that is using some JSON web services on a different domain. I have read that some browsers do not allow cross-domain scripting and that I should create a proxy on my local server to serve the data.</p>
<p>Can someone please point me to a simple example of how to do this ... | [
{
"answer_id": 238953,
"author": "eyelidlessness",
"author_id": 17964,
"author_profile": "https://Stackoverflow.com/users/17964",
"pm_score": 0,
"selected": false,
"text": "SomeAjaxAbstraction.Request('proxyScript', {\n parameters: {\n address: 'http://somewhere.com/someapi?som... | 2008/10/27 | [
"https://Stackoverflow.com/questions/238931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10589/"
] |
238,941 | <p><strong>UPDATE:</strong> Thanks to everyone for the responses. I didn't realize document.write() was deprecated. Add a another notch to the learning column. I'll be taking the advice posted here, but leave the original question so that the answers given make sense in context of the original question.</p>
<hr>
<p>I... | [
{
"answer_id": 238957,
"author": "eyelidlessness",
"author_id": 17964,
"author_profile": "https://Stackoverflow.com/users/17964",
"pm_score": 3,
"selected": true,
"text": "var longVar = 'asdfasdf asdf asdf asdfasdf asdfasdf asdf asdfasdf' +\n ' fasdf s9d0af asdf asdf0s,dv z-xcfva-sdfm... | 2008/10/27 | [
"https://Stackoverflow.com/questions/238941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
238,949 | <p>If this is possible, please provide a sample query or two so I can see how it would work. Both tables will be in the same database.</p>
<p>Thanks!</p>
| [
{
"answer_id": 238952,
"author": "Andrew",
"author_id": 826,
"author_profile": "https://Stackoverflow.com/users/826",
"pm_score": 5,
"selected": true,
"text": "insert into <target-table>\n( <column-list> )\nselect <columns>\n from <source-table>\n"
},
{
"answer_id": 239003,
... | 2008/10/27 | [
"https://Stackoverflow.com/questions/238949",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1572436/"
] |
238,956 | <p>On the latest Ubuntu, I have a functioning PHP 5.2.4 installation. I want to use a remote Oracle server from PHP using OCI.</p>
<p>I've downloaded the <em>"Instant Client Package - Basic Lite"</em> (<a href="http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html" rel="nofollow noref... | [
{
"answer_id": 238979,
"author": "Till",
"author_id": 2859,
"author_profile": "https://Stackoverflow.com/users/2859",
"pm_score": 2,
"selected": false,
"text": "(sudo) pecl install oci8\n extension=oci8.so <?php phpinfo(); ?>"
}
] | 2008/10/27 | [
"https://Stackoverflow.com/questions/238956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3401/"
] |
238,977 | <p>How do i take a HTML site that currently has no doctype declaration and make it W3C compliant?</p>
| [
{
"answer_id": 240021,
"author": "Mr. Shiny and New 安宇",
"author_id": 7867,
"author_profile": "https://Stackoverflow.com/users/7867",
"pm_score": 0,
"selected": false,
"text": "<div height=\"100\" width=\"100\" style=\"border: 1px solid red\"></div>\n <head>\n <style> .adbox { height: 1... | 2008/10/27 | [
"https://Stackoverflow.com/questions/238977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
238,980 | <p>I began an iPhone project the other day with a silly development code name, and now I want to change the name of the project since it's nearly finished. </p>
<p>But I'm not sure how to do this with Xcode, trying the obvious of changing the application's name in the info.plist file, causes the signing process to go ... | [
{
"answer_id": 239006,
"author": "Giao",
"author_id": 14099,
"author_profile": "https://Stackoverflow.com/users/14099",
"pm_score": 11,
"selected": true,
"text": "Targets Xcode Build Settings Product Name Packaging"
},
{
"answer_id": 27418699,
"author": "Jeffrey Neo",
"au... | 2008/10/27 | [
"https://Stackoverflow.com/questions/238980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15124/"
] |
238,996 | <p>I've never had a reason to put a label element inside of a legend element (never really thought about it or seen it done). But with the design I'm implementing, it's tempting to do so.</p>
<p>Here's what I'm tempted to do:</p>
<pre><code><fieldset>
<legend><label for="formInfo">I would like infor... | [
{
"answer_id": 239011,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 0,
"selected": false,
"text": "legend"
},
{
"answer_id": 239190,
"author": "joelhardi",
"author_id": 11438,
"author_profile": "https://St... | 2008/10/27 | [
"https://Stackoverflow.com/questions/238996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17252/"
] |
239,002 | <p>Is there a simple way to duplicate all child components under parent component, including their published properties?</p>
<p>For example:</p>
<ul>
<li>TPanel
<ul>
<li>TLabel</li>
<li>TEdit</li>
<li>TListView</li>
<li>TSpecialClassX</li>
</ul></li>
</ul>
<p>Of course the most important factor, it should duplicate... | [
{
"answer_id": 239056,
"author": "Kluge",
"author_id": 8752,
"author_profile": "https://Stackoverflow.com/users/8752",
"pm_score": 0,
"selected": false,
"text": "for (i = 0; i < ComponentCount; ++i) {\n TControl *Comp = dynamic_cast<TControl *>(Components[i]);\n if (Comp) {\n ... | 2008/10/27 | [
"https://Stackoverflow.com/questions/239002",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30787/"
] |
239,004 | <p>We use GNU Make for our system. At the end of our makefiles, we have an include called Makedepends which generates a bunch of .d files using -MM switch on gcc. We then include the .d file for each .cc file using an include $(CXXFILES:.cc=.d) line. But when we delete file or move files, the dependancies step break... | [
{
"answer_id": 239024,
"author": "Adam Liss",
"author_id": 29157,
"author_profile": "https://Stackoverflow.com/users/29157",
"pm_score": 0,
"selected": false,
"text": ".SUFFIXES: .d\n\n%.d::\n makedepend_command_here\n Last Resort info %::\n touch $@\n .d"
},
{
"answer... | 2008/10/27 | [
"https://Stackoverflow.com/questions/239004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20889/"
] |
239,009 | <p>I need to update data to a mssql 2005 database so I have decided to use adodbapi, which is supposed to come built into the standard installation of python 2.1.1 and greater.</p>
<p>It needs pywin32 to work correctly and the open office python 2.3 installation does not have pywin32 built into it. It also seems like ... | [
{
"answer_id": 239179,
"author": "gimel",
"author_id": 6491,
"author_profile": "https://Stackoverflow.com/users/6491",
"pm_score": 0,
"selected": false,
"text": "tools / COM Makepy utility makepy Microsoft ActiveX Data Objects 2.8 Library (2.8)\nMicrosoft ActiveX Data Objects Recordset 2... | 2008/10/27 | [
"https://Stackoverflow.com/questions/239009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21537/"
] |
239,020 | <p>I have a third-party product, a terminal emulator, which provides a DLL that can be linked to a C program to basically automate the driving of this product (send keystrokes, detect what's on the screen and so forth).</p>
<p>I want to drive it from a scripting language (I'm comfortable with Python and slightly less ... | [
{
"answer_id": 239041,
"author": "albertb",
"author_id": 26715,
"author_profile": "https://Stackoverflow.com/users/26715",
"pm_score": 5,
"selected": true,
"text": ">>> from ctypes import *\n>>> windll.user32.MessageBoxA(None, \"Hello world\", \"ctypes\", 0);\n"
}
] | 2008/10/27 | [
"https://Stackoverflow.com/questions/239020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14860/"
] |
239,023 | <p>I have a dependency that I need to inject into one of my classes. This dependency will be lifestyle of <code>Transient</code>. It in-turn has a dependency of type <code>Type</code>. This type should be the type of the original class. I was just wondering if anyone has any idea how I might go about conducting this re... | [
{
"answer_id": 239033,
"author": "jonnii",
"author_id": 4590,
"author_profile": "https://Stackoverflow.com/users/4590",
"pm_score": 0,
"selected": false,
"text": "public interface IRegister{\n RegisterResult MyMethod(object thing);\n}\n"
},
{
"answer_id": 329420,
"author":... | 2008/10/27 | [
"https://Stackoverflow.com/questions/239023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30572/"
] |
239,059 | <p>I am trying to mock out HttpContext so that I can unit test my controller's Request.IsAuthenicated call. I am using the <a href="http://www.hanselman.com/blog/ASPNETMVCSessionAtMix08TDDAndMvcMockHelpers.aspx" rel="noreferrer">code that I found at Scott Hanselman's</a> blog to simulate HttpContext using rhino.mocks. ... | [
{
"answer_id": 239418,
"author": "Rob Cooper",
"author_id": 832,
"author_profile": "https://Stackoverflow.com/users/832",
"pm_score": 0,
"selected": false,
"text": "interface IAuthenticationChecker\n{\n bool IsAuthenticated { get; }\n}\n\npublic class MockAuthenticationChecker : IAuth... | 2008/10/27 | [
"https://Stackoverflow.com/questions/239059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31699/"
] |
239,063 | <p>I came across an article about Car remote entry system at <a href="http://auto.howstuffworks.com/remote-entry2.htm" rel="nofollow noreferrer">http://auto.howstuffworks.com/remote-entry2.htm</a> In the third bullet, author says,</p>
<blockquote>
<p>Both the transmitter and the receiver use the same pseudo-random n... | [
{
"answer_id": 239066,
"author": "Erik Forbes",
"author_id": 16942,
"author_profile": "https://Stackoverflow.com/users/16942",
"pm_score": 5,
"selected": true,
"text": "// Provide the same seed value for both generators:\nSystem.Random r1 = new System.Random(1);\nSystem.Random r2 = new S... | 2008/10/27 | [
"https://Stackoverflow.com/questions/239063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15474/"
] |
239,082 | <p>I'm working on a simple javascript login for a site, and have come up with this:</p>
<pre><code><form id="loginwindow">
<strong>Login to view!</strong>
<p><strong>User ID:</strong>
<input type="text" name="text2">
</p>
<p><strong>Password:</strong>... | [
{
"answer_id": 239086,
"author": "keparo",
"author_id": 19468,
"author_profile": "https://Stackoverflow.com/users/19468",
"pm_score": 6,
"selected": true,
"text": "<input type=\"submit\".../> \n <input type=\"button\".../>\n <form action=\"/post.php\" method=\"post\">\n <!-- \n ...... | 2008/10/27 | [
"https://Stackoverflow.com/questions/239082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27171/"
] |
239,103 | <p>I have a char in c#:</p>
<pre><code>char foo = '2';
</code></pre>
<p>Now I want to get the 2 into an int. I find that Convert.ToInt32 returns the actual decimal value of the char and not the number 2. The following will work:</p>
<pre><code>int bar = Convert.ToInt32(new string(foo, 1));
</code></pre>
<p>int.pa... | [
{
"answer_id": 239107,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 8,
"selected": false,
"text": "int char foo = '2';\nint bar = foo - '0';\n '0' '9' '0' '2'"
},
{
"answer_id": 239109,
"author": "sontek",
... | 2008/10/27 | [
"https://Stackoverflow.com/questions/239103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26854/"
] |
239,122 | <p>Just to clarify, I'm running Sybase 12.5.3, but I am lead to believe that this holds true for SQL Server 2005 too. Basically, I'm trying to write a query that looks a little like this, I've simplified it as much as possible to highlight the problem:</p>
<pre><code>DECLARE @a int, @b int, @c int
SELECT
@a = h... | [
{
"answer_id": 239407,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "DECLARE @a int, @b int, @c int\n\nSELECT\n @a = huzzah.a\n ,@b = huzzah.b\n ,@c = huzzah.c\nFROM (\n SELECT\n ... | 2008/10/27 | [
"https://Stackoverflow.com/questions/239122",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1030/"
] |
239,127 | <p>What is the exact use of an Abstract class? Is not possible to do the same things in an ordinary class as it is an an abstract class? </p>
| [
{
"answer_id": 239156,
"author": "Jay Bazuzi",
"author_id": 5314,
"author_profile": "https://Stackoverflow.com/users/5314",
"pm_score": 1,
"selected": false,
"text": "abstract abstract"
}
] | 2008/10/27 | [
"https://Stackoverflow.com/questions/239127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.