qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
176,411 | <p>A question about different methods of outputting html from PHP; what are the performance differences between these:</p>
<p>Method 1 - variable concatenation</p>
<pre><code>$html = '';
$html .= '<ul>';
for ($k = 1; $k < = 1000; $k++){
$html .= '<li> This is list item #'.$k.'</li>';
}
$html ... | [
{
"answer_id": 176434,
"author": "Darryl Hein",
"author_id": 5441,
"author_profile": "https://Stackoverflow.com/users/5441",
"pm_score": 2,
"selected": false,
"text": "<?php <?php echo $html;"
},
{
"answer_id": 176458,
"author": "Erik van Brakel",
"author_id": 909,
"a... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2027/"
] |
176,440 | <p>I have a filter in a combobox with a number of entries. Instead of filtering the datagrid with an exact match, I would like to take the selected value and only display records where the selected value is contained in the datafield.
For example: the user selects a value of "New" and the datagrid displays records wher... | [
{
"answer_id": 176606,
"author": "JustLogic",
"author_id": 21664,
"author_profile": "https://Stackoverflow.com/users/21664",
"pm_score": 2,
"selected": false,
"text": " public function filter(item:Object):Boolean{\n var result:Boolean=false;\n if (item.name.toUpperCase().in... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25463/"
] |
176,446 | <p>Why do I get compiler errors with this Java code?</p>
<pre><code>1 public List<? extends Foo> getFoos()
2 {
3 List<? extends Foo> foos = new ArrayList<? extends Foo>();
4 foos.add(new SubFoo());
5 return foos;
6 }</code></pre>
<p>Where 'SubFoo' is a concrete class that implements Foo,... | [
{
"answer_id": 176478,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 6,
"selected": true,
"text": "1 public List<? extends Foo> getFoos()\n2 {\n3 List<Foo> foos = new ArrayList<Foo>(); /* Or List<SubFoo> */\n4 foos.... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176446",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2197/"
] |
176,459 | <p>Here are the declarations of the variables:</p>
<pre><code>string strFirstName;
string strLastName;
string strAddress;
string strCity;
string strState;
double dblSalary;
string strGender;
int intAge;
</code></pre>
<p>...Do some "cin" statements to get data...</p>
<pre><code>retcode = SQLPrepare(StatementHandle, (... | [
{
"answer_id": 176509,
"author": "1800 INFORMATION",
"author_id": 3146,
"author_profile": "https://Stackoverflow.com/users/3146",
"pm_score": 4,
"selected": true,
"text": "ParameterValuePtr BufferLength retcode = SQLBindParameter(StatementHandle, 1, SQL_PARAM_INPUT, SQL_C_CHAR,\n SQL_L... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25642/"
] |
176,476 | <p>I've been using htmldoc for a while, but I've run into some fairly serious limitations. I need the end solution to work on a Linux box. I'll be calling this library/utility/application from a Perl app, so any Perl interfaces would be a bonus.</p>
| [
{
"answer_id": 29335384,
"author": "MrTux",
"author_id": 3906760,
"author_profile": "https://Stackoverflow.com/users/3906760",
"pm_score": 1,
"selected": false,
"text": "phantomjs rasterize.js 'http://en.wikipedia.org/w/index.php?title=Jakarta&printable=yes' jakarta.pdf\n"
},
{
"... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2901/"
] |
176,479 | <p>I have a image upload form that should take image types (PNG, JPEG, GIF), resize it and then save it to a path. </p>
<p>For some reason I can't get the PNG file types to work, it works fine with JPEG/GIF and the file is copied so it looks like it's something to do with how I'm creating the PNG. </p>
<p>Does PNG cr... | [
{
"answer_id": 176513,
"author": "DreamWerx",
"author_id": 15487,
"author_profile": "https://Stackoverflow.com/users/15487",
"pm_score": 2,
"selected": false,
"text": "GD Support enabled\nGD Version bundled (2.0.28 compatible) \nPNG Support enabled \n"
},
{
"answer_id": 176... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
176,504 | <p>New to visual studio and programing in general.</p>
<p>I am starting to work on a asp.net project. At home I have a computer running Windows 2008 Server with SQL 2008 and Visual 2008 running.</p>
<p>I want to install the same thing on my laptop win2008/sql2008/vs2008 so I can take it with me on the go.</p>
<p>Wha... | [
{
"answer_id": 176894,
"author": "Pablo Venturino",
"author_id": 16732,
"author_profile": "https://Stackoverflow.com/users/16732",
"pm_score": 0,
"selected": false,
"text": "\\\\my_workstation\\path\\to\\project /MIR /E robocopy \"source_folder\" \"destination_folder\" /E /MIR\n"
}
] | 2008/10/06 | [
"https://Stackoverflow.com/questions/176504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25631/"
] |
176,512 | <p>In short, how do you unit test an error condition such as EINTR on a system call.</p>
<p>One particular example I'm working on, which could be a case all by itself, is whether it's necessary to call fclose again when it returns EOF with (errno==EINTR). The behavior depends on the implementation of fclose:</p>
<pre... | [
{
"answer_id": 176821,
"author": "bmdhacks",
"author_id": 14032,
"author_profile": "https://Stackoverflow.com/users/14032",
"pm_score": 2,
"selected": false,
"text": "int scull_release(struct inode *inode, struct file *filp)\n{\n return -EINTR;\n}\n"
},
{
"answer_id": 177001,
... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24310/"
] |
176,514 | <p>What is meant by <code>nvarchar</code>?</p>
<p>What is the difference between <code>char</code>, <code>nchar</code>, <code>varchar</code>, and <code>nvarchar</code> in SQL Server?</p>
| [
{
"answer_id": 176565,
"author": "Brian Kim",
"author_id": 5704,
"author_profile": "https://Stackoverflow.com/users/5704",
"pm_score": 11,
"selected": true,
"text": "nchar nvarchar char varchar char nchar varchar nvarchar char nchar nchar nvarchar"
},
{
"answer_id": 1660254,
... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22471/"
] |
176,527 | <p>I need to enumerate all classes in a package and add them to a List. The non-dynamic version for a single class goes like this:</p>
<pre><code>List allClasses = new ArrayList();
allClasses.add(String.class);
</code></pre>
<p>How can I do this dynamically to add all classes in a package and all its subpackages?</p>... | [
{
"answer_id": 3527428,
"author": "Dave Dopson",
"author_id": 407731,
"author_profile": "https://Stackoverflow.com/users/407731",
"pm_score": 6,
"selected": true,
"text": "private static ArrayList<Class<?>> getClassesForPackage(Package pkg) {\n String pkgname = pkg.getName();\n Arr... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13041/"
] |
176,545 | <p>I am going to be starting a javascript reporting engine for my website, and have started some prototyping using MooTools. I really like being able to do things like this:</p>
<pre><code>function showLeagues(leagues) {
var leagueList = $("leagues");
leagueList.empty();
for(var i = 0; i<leagues.length... | [
{
"answer_id": 176567,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 2,
"selected": false,
"text": "function showLeagues(leagues) {\n var $leagueList = $(\"#leagues\");\n $leagueList.empty();\n $.each(leagues, functio... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/96/"
] |
176,559 | <p>In the Google C++ Style Guide, there's a section on <a href="http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Operator_Overloading" rel="noreferrer">Operator Overloading</a> that has a curious statement:</p>
<blockquote>
<p>Overloading also has surprising
ramifications. For instance, you can't
f... | [
{
"answer_id": 176581,
"author": "Lou Franco",
"author_id": 3937,
"author_profile": "https://Stackoverflow.com/users/3937",
"pm_score": 0,
"selected": false,
"text": "class A;\n\nvoid f(A& x) {\n A* xPointer = &x;\n}\n"
},
{
"answer_id": 176640,
"author": "Pete Kirkham",
... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12193/"
] |
176,572 | <p>I have a UI widget that needs to be put in an IFRAME both for performance reasons and so we can syndicate it out to affiliate sites easily. The UI for the widget includes tool-tips that display over the top of other page content. See screenshot below or <strong><a href="http://www.bookabach.co.nz/" rel="noreferrer">... | [
{
"answer_id": 176670,
"author": "Luke Bennett",
"author_id": 17602,
"author_profile": "https://Stackoverflow.com/users/17602",
"pm_score": 1,
"selected": false,
"text": "<script>"
}
] | 2008/10/06 | [
"https://Stackoverflow.com/questions/176572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11577/"
] |
176,625 | <p>I have the following query in iSeries SQL which I output to a file.</p>
<pre><code>SELECT SSLOTMAK, SSLOTMDL, SSLOTYER, sum(SSCOUNT)
FROM prqhdrss
GROUP BY SSLOTMAK, SSLOTMDL, SSLotyer
HAVING sum(SSCOUNT) > 4
ORDER BY SSLOTMAK, SSLOTMDL, SSLOTYER ... | [
{
"answer_id": 177635,
"author": "pmg",
"author_id": 25324,
"author_profile": "https://Stackoverflow.com/users/25324",
"pm_score": 3,
"selected": true,
"text": "SELECT SSLOTMAK, SSLOTMDL, SSLOTYER, cast(sum(SSCOUNT) as integer)\nFROM prqhdrss\nGROUP BY SSLOTMAK, SSLOTMDL, SSLotyer\nHAVIN... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176625",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11270/"
] |
176,627 | <p>I run into this quite often where a new page is supposedly "tested" and ready to go. But as soon as I change the page from http to https (secure) mode I get the "This page contains both secure and nonsecure items." error.</p>
<p>Usually I can find the problem and fix it pretty quick. Today is different. I've checke... | [
{
"answer_id": 176651,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 1,
"selected": false,
"text": "<script>"
}
] | 2008/10/06 | [
"https://Stackoverflow.com/questions/176627",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3747/"
] |
176,673 | <p>If I have a datetime field, how do I get just records created later than a certain time, ignoring the date altogether?</p>
<p>It's a logging table, it tells when people are connecting and doing something in our application. I want to find out how often people are on later than 5pm. </p>
<p>(Sorry - it is SQL Ser... | [
{
"answer_id": 176684,
"author": "Thilo",
"author_id": 14955,
"author_profile": "https://Stackoverflow.com/users/14955",
"pm_score": 3,
"selected": false,
"text": "SELECT * FROM TABLE \n WHERE TO_CHAR(THE_DATE, 'HH24:MI:SS') BETWEEN '17:00:00' AND '23:59:59';\n"
},
{
"answer_id"... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176673",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22523/"
] |
176,695 | <p>The attached screenshot is from OS X/Firefox 3. Note that the center tab (an image) has a dotted line around it, apparently because it was the most-recently selected tab. Is there a way I can eliminate this dotted line in CSS or JavaScript? (Hmmm...the free image hosting service has reduced the size of the image. Bu... | [
{
"answer_id": 176719,
"author": "Dave Rutledge",
"author_id": 2486915,
"author_profile": "https://Stackoverflow.com/users/2486915",
"pm_score": 5,
"selected": true,
"text": "a:active, a:focus { outline-style: none; -moz-outline-style:none; }\n"
},
{
"answer_id": 176725,
"aut... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17307/"
] |
176,709 | <p>I have a set of configuration items I need to persist to a "human readable" file. These items are in a hierarchy:</p>
<pre>
Device 1
Name
Channel 1
Name
Size
...
Channel N
Name
...
Device M
Name
Channel 1
</pre>
<p>Each of these item could be stored in a Dictionary with a string ... | [
{
"answer_id": 176776,
"author": "Ron Savage",
"author_id": 12476,
"author_profile": "https://Stackoverflow.com/users/12476",
"pm_score": 0,
"selected": false,
"text": "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<configuration>\n<!--*****************************************************... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10703/"
] |
176,712 | <p>I'd like to find the base url of my application, so I can automatically reference other files in my application tree...</p>
<p>So given a file config.php in the base of my application, if a file in a subdirectory includes it, knows what to prefix a url with. </p>
<pre><code>application/config.php
application/admin... | [
{
"answer_id": 176730,
"author": "Jay",
"author_id": 20840,
"author_profile": "https://Stackoverflow.com/users/20840",
"pm_score": 2,
"selected": false,
"text": "<?php\n echo dirname($_SERVER[\"REQUEST_URI\"]);\n?>\n <?php\n echo getcwd();\n?>\n"
},
{
"answer_id": 176736,
... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176712",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14253/"
] |
176,720 | <p>What is the easiest way to do this? Is it possible with managed code?</p>
| [
{
"answer_id": 176734,
"author": "Geoff",
"author_id": 10427,
"author_profile": "https://Stackoverflow.com/users/10427",
"pm_score": 6,
"selected": true,
"text": "this.BackgroundImage = //Image\nthis.FormBorderStyle = FormBorderStyle.None;\nthis.Width = this.BackgroundImage.Width;\nthis.... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4386/"
] |
176,743 | <p>I'm writing a .NET forms control to edit HTML using MSHTML. I am creating some custom elements and want to make them effectively read-only. I thought I could go about this by focusing on the entire element any time focus entered anywhere in that element but the HtmlElement.Focus() doesn't select the entire element... | [
{
"answer_id": 179506,
"author": "dmo",
"author_id": 1807,
"author_profile": "https://Stackoverflow.com/users/1807",
"pm_score": 2,
"selected": true,
"text": "contentEditable=false\n"
}
] | 2008/10/06 | [
"https://Stackoverflow.com/questions/176743",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1807/"
] |
176,745 | <p>Given an aggregation of class instances which refer to each other in a complex, circular, fashion: is it possible that the garbage collector may not be able to free these objects?</p>
<p>I vaguely recall this being an issue in the JVM in the past, but I <em>thought</em> this was resolved years ago. yet, some inves... | [
{
"answer_id": 15748185,
"author": "Rupesh",
"author_id": 1270989,
"author_profile": "https://Stackoverflow.com/users/1270989",
"pm_score": 2,
"selected": false,
"text": "class A {\nprivate B b;\n\npublic void setB(B b) {\n this.b = b;\n}\n}\n\nclass B {\nprivate A a;\n\npublic void s... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176745",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9931/"
] |
176,749 | <p>I have a web service that uses Python's SimpleJSON to serialize JSON, and a javascript/ client that uses Google's Visualization <a href="http://code.google.com/apis/visualization/documentation/reference.html" rel="nofollow noreferrer">API</a>. When I try to read in the JSON response using Google Data Table's Query m... | [
{
"answer_id": 176780,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 3,
"selected": true,
"text": "google.visualization.Query.setResponse(\n{requestId:'0',status:'ok',signature:'1464883469881501252',\ntable:{cols: [{id... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176749",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1227001/"
] |
176,774 | <p>I have 2 tables. Table1 has fields A, B, C, D and Table2 has fields A, B. Field A and B of both tables have same record type. I would like to grab the records from both tables of fields A and B as single result.</p>
<p>Is there any Query or Function in PHP+MySql?</p>
<p>Thanks...</p>
| [
{
"answer_id": 176794,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 3,
"selected": false,
"text": "select a,b from table1\n where <where-clause>\nunion all select a,b from table2\n where <where-clause>\n select a,... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22962/"
] |
176,775 | <p>Currently I am <a href="http://msdn.microsoft.com/en-us/magazine/cc163696.aspx" rel="noreferrer">borrowing <code>java.math.BigInteger</code> from the J# libraries as described here</a>. Having never used a library for working with large integers before, this seems slow, on the order of 10 times slower, even for <cod... | [
{
"answer_id": 498820,
"author": "Steve Severance",
"author_id": 41717,
"author_profile": "https://Stackoverflow.com/users/41717",
"pm_score": 3,
"selected": false,
"text": "F# Microsoft.FSharp.Math"
},
{
"answer_id": 1019202,
"author": "Rasmus Faber",
"author_id": 5542,
... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15537/"
] |
176,777 | <p>I'm trying to build a proxy module for .NET, but I'm having trouble copying the Headers from the current request to the new request. I am setting the headers of the new request, because I want the proxy to support SOAP requests. Here is a portion of my code. I can post everything if need, but this is the only par... | [
{
"answer_id": 11146923,
"author": "Jimmy Schementi",
"author_id": 5721,
"author_profile": "https://Stackoverflow.com/users/5721",
"pm_score": 0,
"selected": false,
"text": "static void CopyHeaders (HttpRequest sourceRequest, HttpWebRequest targetRequest) {\n foreach (string key in so... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23869/"
] |
176,782 | <p>So, I have an autocomplete dropdown with a list of townships. Initially I just had the 20 or so that we had in the database... but recently, we have noticed that some of our data lies in other counties... even other states. So, the answer to that was buy one of those databases with all towns in the US (yes, I know, ... | [
{
"answer_id": 177195,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 0,
"selected": false,
"text": "select top 10 name from cities where @partialname < name order by name;\n var q = (from c in db.Cities\n where... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4140/"
] |
176,791 | <p>I have a legacy application that I needed to implement a configuration page for to change text colors, fonts, etc.</p>
<p>This applications output is also replicated with a PHP web application, where the fonts, colors, etc. are configured in a style sheet.</p>
<p>I've not worked with CSS previously.</p>
<p>Is the... | [
{
"answer_id": 207161,
"author": "Alexey Shatygin",
"author_id": 10915,
"author_profile": "https://Stackoverflow.com/users/10915",
"pm_score": 0,
"selected": false,
"text": "border-color: #008a77;\n tr/ / /s;\n($vari, $value) = split(/:/, _$);\n# # While you read file, you can just at th... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10119/"
] |
176,827 | <p>I have an ASP.NET linkbutton control on my form. I would like to use it for javascript on the client side and prevent it from posting back to the server. (I'd like to use the linkbutton control so I can skin it and disable it in some cases, so a straight up tag is not preferred).</p>
<p>How do I prevent it from po... | [
{
"answer_id": 176829,
"author": "BoltBait",
"author_id": 20848,
"author_profile": "https://Stackoverflow.com/users/20848",
"pm_score": 2,
"selected": false,
"text": "MyButton.Attributes.Add(\"onclick\", \"put your javascript here including... return false;\");\n"
},
{
"answer_id... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/417/"
] |
176,831 | <p>I have a modal popup that initially shows some content but expands a div if a checkbox is selected. The modal expands correctly but doesn't recenter unless you scroll up or down. Is there a javascript event I can tack on to my javascript function to recenter the entire modal?</p>
| [
{
"answer_id": 481797,
"author": "Luke",
"author_id": 14275,
"author_profile": "https://Stackoverflow.com/users/14275",
"pm_score": 4,
"selected": true,
"text": "$find('ModalPopupExtenderClientID')._layout();\n $find('detailsPopUpExtenderId')._layout();\n <ccl:ModalPopupExtender runat=\"... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14275/"
] |
176,840 | <p>It's the first <a href="http://oreilly.com/catalog/opensources/book/larry.html" rel="nofollow noreferrer">great virtue</a> of programmers. All of us have, at one time or another automated a task with a bit of throw-away code. Sometimes it takes a couple seconds tapping out a one-liner, sometimes we spend an exorbita... | [
{
"answer_id": 176930,
"author": "Frew Schmidt",
"author_id": 12448,
"author_profile": "https://Stackoverflow.com/users/12448",
"pm_score": 1,
"selected": false,
"text": "#!/usr/bin/ruby -w\n\nDay = 60 * 60 * 24\n\nFromat = \"hjlsdahjsd/comics/st%Y%m%d.gif\"\n\nt = Time.local(2005, 2, 5)... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1582786/"
] |
176,850 | <p>I've used NUnit before, but not in a while, and never on this machine. I unzipped version 2.4.8 under <code>Program Files</code>, and I keep getting this error when trying to load my tests.</p>
<blockquote>
<p>Could not load file or assembly 'nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09... | [
{
"answer_id": 688174,
"author": "Jeffrey Knight",
"author_id": 83418,
"author_profile": "https://Stackoverflow.com/users/83418",
"pm_score": 4,
"selected": false,
"text": "gacutil /l | find /i \"nunit\" > temp.bat && notepad temp.bat\n gacutil /uf nunit.core,Version=2.4.2.0,Culture=neut... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4525/"
] |
176,851 | <p>I have taken a copy of a database home with me so I can do some testing. However when I try to run a stored procedure I get Cannot open user default database. Login failed.. </p>
<p>I have checked and checked and checked I can open tables in the databases login to sql management studio and access the default as wel... | [
{
"answer_id": 176939,
"author": "flatline",
"author_id": 20846,
"author_profile": "https://Stackoverflow.com/users/20846",
"pm_score": 0,
"selected": false,
"text": "exec sp_change_users_login update_one, 'user', 'login'\n"
},
{
"answer_id": 177048,
"author": "Hector Sosa Jr... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176851",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16989/"
] |
176,856 | <p>What's the best way for constructing headers, and footers? Should you call it all from the controller, or include it from the view file? I'm using CodeIgniter, and I'm wanting to know what's the best practice for this. Loading all the included view files from the controller, like this?</p>
<pre><code>class Page ext... | [
{
"answer_id": 176988,
"author": "gradbot",
"author_id": 17919,
"author_profile": "https://Stackoverflow.com/users/17919",
"pm_score": 2,
"selected": false,
"text": "class Page extends Controller {\n function index() {\n $data['page_title'] = 'Your title';\n \n $this->lo... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24708/"
] |
176,857 | <p>I should probably take this for a forum but figured someone here might know the answer. I'm trying to install sql server 2008 on a home vista machine but it keeps telling 'Restart computer failed' everytime it does a check to make sure pre-reqs are met. I've restarted my computer and even uinstalled/installed .net... | [
{
"answer_id": 15720206,
"author": "Paldom",
"author_id": 1208812,
"author_profile": "https://Stackoverflow.com/users/1208812",
"pm_score": 0,
"selected": false,
"text": "INSTANCENAME=SQL2008\n/SQLSYSADMINACCOUNTS=”yourPcName\\yourUserName”\n/SAPWD=”yourSqlPassword” \n/SQLTEMPDBDIR=”C:\\... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
176,858 | <p>In a static view, how can I view an old version of a file?</p>
<p>Given an empty file (called <code>empty</code> in this example) I can subvert <code>diff</code> to show me the old version:</p>
<pre>
% cleartool diff -ser empty File@@/main/28
</pre>
<p>This feels like a pretty ugly hack. Have I missed a more ... | [
{
"answer_id": 177273,
"author": "Chris Arguin",
"author_id": 25704,
"author_profile": "https://Stackoverflow.com/users/25704",
"pm_score": 2,
"selected": false,
"text": " cat File@@/main/28\n"
},
{
"answer_id": 177350,
"author": "VonC",
"author_id": 6309,
"author_p... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17221/"
] |
176,877 | <p>I want to call <code>ShowDialog()</code> when a keyboard hook event is triggered, but I'm having some difficulties:</p>
<ul>
<li>ShowDialog() blocks, so I can't call it from the hook triggered event, because it will block the OS.</li>
<li>I can start a new thread and call <code>ShowDialog()</code> from there, but I... | [
{
"answer_id": 176906,
"author": "Brody",
"author_id": 17131,
"author_profile": "https://Stackoverflow.com/users/17131",
"pm_score": 3,
"selected": true,
"text": "ShowDialog()"
},
{
"answer_id": 176920,
"author": "Ed S.",
"author_id": 1053,
"author_profile": "https://... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176877",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44972/"
] |
176,902 | <p>How do I run a .jar executable java file from outside NetBeans IDE? (Windows Vista). My project has a .jar file created by Netbeans. We'd like to run it. Either: how do we run the file or how do we create a 'proper' executable file in NetBeans 6.1?</p>
| [
{
"answer_id": 176905,
"author": "Laplie Anderson",
"author_id": 14204,
"author_profile": "https://Stackoverflow.com/users/14204",
"pm_score": 4,
"selected": false,
"text": "java -jar filename.jar\n"
},
{
"answer_id": 176911,
"author": "Josh Moore",
"author_id": 5004,
... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
176,910 | <p>When I want an array of flags it has typically pained me to use an entire byte (or word) to store each one, as would be the result if I made an array of <code>bool</code>s or some other numeric type that could be set to 0 or 1. But now I wonder whether using a structure that is more space-efficient is worth it given... | [
{
"answer_id": 176946,
"author": "Andrew Edgecombe",
"author_id": 11694,
"author_profile": "https://Stackoverflow.com/users/11694",
"pm_score": 0,
"selected": false,
"text": "bool"
}
] | 2008/10/07 | [
"https://Stackoverflow.com/questions/176910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4790/"
] |
176,913 | <p>I basically want to run all JUnit <strong><em>unit</em></strong> tests in my IntelliJ IDEA project (excluding JUnit integration tests), using the static suite() method of JUnit. Why use the static suite() method? Because I can then use IntelliJ IDEA's JUnit test runner to run all unit tests in my application (and ea... | [
{
"answer_id": 178030,
"author": "Roel Spilker",
"author_id": 12634,
"author_profile": "https://Stackoverflow.com/users/12634",
"pm_score": 4,
"selected": true,
"text": "public class ClassEnumerator {\n public static void main(String[] args) throws ClassNotFoundException {\n Li... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13041/"
] |
176,918 | <p>Given a list <code>["foo", "bar", "baz"]</code> and an item in the list <code>"bar"</code>, how do I get its index <code>1</code>?</p>
| [
{
"answer_id": 176921,
"author": "Alex Coventry",
"author_id": 1941213,
"author_profile": "https://Stackoverflow.com/users/1941213",
"pm_score": 13,
"selected": true,
"text": ">>> [\"foo\", \"bar\", \"baz\"].index(\"bar\")\n1\n index list list.index list.index(x[, start[, end]])\n ValueE... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25680/"
] |
176,922 | <p>For decades, in the field of computing (except disk manufacturers), a KB (kilobyte) was understood to mean 1024 bytes. In the past few years, there has been a movement to use KiB ("kibibyte") to mean 1024 bytes, and <i>change the meaning of kilobyte to be 1000 bytes</i>, dooming us to many more years of confusion. O... | [
{
"answer_id": 1402810,
"author": "Noon Silk",
"author_id": 154152,
"author_profile": "https://Stackoverflow.com/users/154152",
"pm_score": 0,
"selected": false,
"text": "1,000"
}
] | 2008/10/07 | [
"https://Stackoverflow.com/questions/176922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15947/"
] |
176,931 | <p>How can I get MSBuild to evaluate and print in a <code><Message /></code> task an absolute path given a relative path?</p>
<p><strong>Property Group</strong></p>
<pre><code><Source_Dir>..\..\..\Public\Server\</Source_Dir>
<Program_Dir>c:\Program Files (x86)\Program\</Program_Dir>
</co... | [
{
"answer_id": 177136,
"author": "brock.holum",
"author_id": 15860,
"author_profile": "https://Stackoverflow.com/users/15860",
"pm_score": 3,
"selected": false,
"text": "public class ResolveRelativePath : Task\n{\n [Required]\n public string RelativePath { get; set; }\n\n [Outpu... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3957/"
] |
176,964 | <p>I want to return top 10 records from each section in one query. Can anyone help with how to do it? Section is one of the columns in the table.</p>
<p>Database is SQL Server 2005. I want to return the top 10 by date entered. Sections are business, local, and feature. For one particular date I want only the top (1... | [
{
"answer_id": 176977,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 5,
"selected": false,
"text": "select *\nfrom Things t\nwhere t.ThingID in (\n select top 10 ThingID\n from Things tt\n where tt.Section = t.S... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14752/"
] |
176,966 | <p>I've been looking for the answer for how to use BSWAP for lower 32-bit sub-register of 64-bit register. For example, <code>0x0123456789abcdef</code> is inside RAX register, and I want to change it to <code>0x01234567efcdab89</code> with a single instruction (because of performance).</p>
<p>So I tried following inli... | [
{
"answer_id": 176981,
"author": "Dan Lenski",
"author_id": 20789,
"author_profile": "https://Stackoverflow.com/users/20789",
"pm_score": -1,
"selected": false,
"text": "gcc -s"
},
{
"answer_id": 178474,
"author": "Dan Lenski",
"author_id": 20789,
"author_profile": "h... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25683/"
] |
176,973 | <p>I am a new to the prefuse visualization toolkit and have a couple of general questions. For my purpose, I would like to perform an initial visualization using prefuse (graphview / graphml). Once rendered, upon a user click of a node, I would like to completely reload a new xml file for a new visualization. I want... | [
{
"answer_id": 13370364,
"author": "alemangui",
"author_id": 1046444,
"author_profile": "https://Stackoverflow.com/users/1046444",
"pm_score": 0,
"selected": false,
"text": "public void refresh(clickedNode){\n visualization.removeGroup(GRAPH);\n visualization.removeGroup(AGGR);\n ... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
176,983 | <p>I am trying to learn CodeIgniter to use for a shopping site, but I am not having luck with the official doc. Does anyone know of anything that will help?</p>
| [
{
"answer_id": 177117,
"author": "jmccartie",
"author_id": 24708,
"author_profile": "https://Stackoverflow.com/users/24708",
"pm_score": 3,
"selected": true,
"text": "<link href=\"<?=base_url();?>content/css/main.css\" rel=\"stylesheet\" type=\"text/css\" />\n"
}
] | 2008/10/07 | [
"https://Stackoverflow.com/questions/176983",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25695/"
] |
176,989 | <p>In the early days of C++ when it was bolted on top of C, you could not use NULL as it was defined as <code>(void*)0</code>. You could not assign NULL to any pointer other than <code>void*</code>, which made it kind of useless. Back in those days, it was accepted that you used <code>0</code> (zero) for null pointers.... | [
{
"answer_id": 177007,
"author": "Martin Cote",
"author_id": 9936,
"author_profile": "https://Stackoverflow.com/users/9936",
"pm_score": 9,
"selected": true,
"text": "NULL NULL NULL nullptr nullptr"
},
{
"answer_id": 177009,
"author": "mxg",
"author_id": 11157,
"autho... | 2008/10/07 | [
"https://Stackoverflow.com/questions/176989",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23744/"
] |
177,011 | <p>OK I have an array of tserversocket and am using the tag property to keep track of its index. When an event is fired off such as _clientconnect i am using Index := (Sender as TServerSocket).Tag; but i get an error that highlights that line and tells me its an invalid typecast. What am I doing wrong if all I want to ... | [
{
"answer_id": 177270,
"author": "Chris Latta",
"author_id": 20977,
"author_profile": "https://Stackoverflow.com/users/20977",
"pm_score": 2,
"selected": false,
"text": "procedure TfrmServer.sskServerClientConnect(Sender: TObject; Socket: TCustomWinSocket);\n Index := (Socket as TServerS... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
177,039 | <p>First, two examples:</p>
<pre><code>// This works
int foo = 43;
long lFoo = foo;
// This doesn't
object foo = (int)43;
long? nullFoo = foo as long?; // returns null
long lFoo = (long)foo; // throws InvalidCastException
if (foo.GetType() == typeof(int))
Console.WriteLine("But foo is an int..."); // This gets wr... | [
{
"answer_id": 177081,
"author": "Nat",
"author_id": 13813,
"author_profile": "https://Stackoverflow.com/users/13813",
"pm_score": 0,
"selected": false,
"text": "object foo = (int)43;\nlong outVal;\nif(long.TryParse(foo.ToString(),out outVal))\n{\n//take action with correct value of long... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15537/"
] |
177,042 | <p>I am having an issue setting up cURL with IIS 6.0, Windows Server 2003, PHP 5.2.6</p>
<p>I have installed to <code>C:\PHP</code></p>
<pre><code>set PHPRC = C:\PHP\php.ini
</code></pre>
<p>copied <code>ssleay32.dll</code> and <code>libeay32.dll</code> to <code>C:\PHP</code></p>
<p>in php.ini, uncommented the line... | [
{
"answer_id": 177112,
"author": "Randy",
"author_id": 9361,
"author_profile": "https://Stackoverflow.com/users/9361",
"pm_score": 2,
"selected": false,
"text": "php -c . -i | find /i \"curl\"\n"
}
] | 2008/10/07 | [
"https://Stackoverflow.com/questions/177042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20641/"
] |
177,052 | <p>I am working on integrating geolocation services into a website and the best source of data I've found so far is MaxMind's GeoIP API with GeoLite City data. Even this data seems to often be questionable though. For example, I am located in downtown Palo Alto, but it locates my IP as being in Portola Valley, which ... | [
{
"answer_id": 205585,
"author": "stevemegson",
"author_id": 25028,
"author_profile": "https://Stackoverflow.com/users/25028",
"pm_score": 2,
"selected": false,
"text": "ORDER BY ( Distance / LOG( Population ) )\n"
}
] | 2008/10/07 | [
"https://Stackoverflow.com/questions/177052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2168/"
] |
177,054 | <p>There's a common way to store multiple values in one variable, by using a bitmask. For example, if a user has read, write and execute privileges on an item, that can be converted to a single number by saying <code>read = 4 (2^2), write = 2 (2^1), execute = 1 (2^0)</code> and then add them together to get 7.</p>
<p>... | [
{
"answer_id": 177092,
"author": "Mike Spross",
"author_id": 17862,
"author_profile": "https://Stackoverflow.com/users/17862",
"pm_score": 3,
"selected": true,
"text": "set_bit get_bit // sets the n-th bit in |bytes|. num_bytes is the number of bytes in the array\n// result is 0 on succe... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177054",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
177,062 | <p>I know that to change the index page for rails I need to do three things: delete the index.html, do something with routes.rb, and probably make an action that the route will point to. It's the details that I am a little fuzzy on :-)</p>
| [
{
"answer_id": 177913,
"author": "allesklar",
"author_id": 19893,
"author_profile": "https://Stackoverflow.com/users/19893",
"pm_score": 3,
"selected": false,
"text": "<h1>My New Index Page</h1>\n<p>Some text here.</p>\n"
}
] | 2008/10/07 | [
"https://Stackoverflow.com/questions/177062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12448/"
] |
177,080 | <p>Method signature in Java:</p>
<pre><code>public List<String> getFilesIn(List<File> directories)
</code></pre>
<p>similar one in ruby</p>
<pre><code>def get_files_in(directories)
</code></pre>
<p>In the case of Java, the type system gives me information about what the method expects and delivers. In ... | [
{
"answer_id": 177110,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 3,
"selected": false,
"text": "i = {}\n=> {}\ni.methods.sort\n=> [\"==\", \"===\", \"=~\", \"[]\", \"[]=\", \"__id__\", \"__send__\", \"all?\", \"an... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3029/"
] |
177,113 | <p>I have a std::string with UTF-8 characters in it.<br>
I want to convert the string to its closest equivalent with ASCII characters.</p>
<p>For example:</p>
<p>Łódź => Lodz<br>
Assunção => Assuncao<br>
Schloß => Schloss</p>
<p>Unfortunatly ICU library is realy unintuitive and I haven't found good documentati... | [
{
"answer_id": 177224,
"author": "shoosh",
"author_id": 9611,
"author_profile": "https://Stackoverflow.com/users/9611",
"pm_score": 2,
"selected": false,
"text": "ICONV_SET_TRANSLITERATE iconvctl()"
},
{
"answer_id": 1533156,
"author": "Steven R. Loomis",
"author_id": 185... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25700/"
] |
177,118 | <p>I saw this question on Reddit, and there were no positive solutions presented, and I thought it would be a perfect question to ask here. This was in a thread about interview questions:</p>
<blockquote>
<p>Write a method that takes an int array of size m, and returns (True/False) if the array consists of the numbers ... | [
{
"answer_id": 177126,
"author": "hazzen",
"author_id": 5066,
"author_profile": "https://Stackoverflow.com/users/5066",
"pm_score": 4,
"selected": false,
"text": "1 m 1 (m * (m + 1)) / 2 O(N) O(N) O(N ^ 2) O(N) [1, 2, 3, 4, 5, 6, 7]\n[1, 1, 4, 5, 5, 6, 6] \n[2, 2, 3, 3, 4, 7, 7]\n [1, 3,... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/658/"
] |
177,121 | <p>In particular, I am interested in:
1) Getting up a <em>free</em> environment setup to do workflows.
2) How to use existing workflow items/states and what is involved in that.</p>
<p>Thanks!</p>
| [
{
"answer_id": 5694752,
"author": "krisragh MSFT",
"author_id": 528570,
"author_profile": "https://Stackoverflow.com/users/528570",
"pm_score": 3,
"selected": false,
"text": "public void HandleLoanRequest (string customerID, Application app)\n{\n if (CheckCredit(customerId, app.Amount... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13990/"
] |
177,122 | <p>This is really two questions, but they are so similar, and to keep it simple, I figured I'd just roll them together:</p>
<ul>
<li><p><strong>Firstly</strong>: Given an established Perl project, what are some decent ways to speed it up beyond just plain in-code optimization?</p></li>
<li><p><strong>Secondly</strong>... | [
{
"answer_id": 177252,
"author": "pjf",
"author_id": 19422,
"author_profile": "https://Stackoverflow.com/users/19422",
"pm_score": 5,
"selected": false,
"text": "Devel::NYTProf"
},
{
"answer_id": 177643,
"author": "brian d foy",
"author_id": 2766176,
"author_profile":... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177122",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/145/"
] |
177,133 | <p>I am trying to override the DataGridViewTextBoxCell's paint method in a derived class so that I can indent the foreground text by some variable amount of pixels. I would like it if the width of the column adjusts so that its total width is the length of my cells text plus the "buffer" indent. Does anyone know of a... | [
{
"answer_id": 177184,
"author": "BFree",
"author_id": 15861,
"author_profile": "https://Stackoverflow.com/users/15861",
"pm_score": 2,
"selected": false,
"text": " if (e.ColumnIndex == 1)\n {\n string val = (string)e.Value;\n e.Value =... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10446/"
] |
177,146 | <p>How do I get the list of open file handles by process id in C#? </p>
<p>I'm interested in digging down and getting the file names as well. </p>
<p>Looking for the programmatic equivalent of what process explorer does. </p>
<p>Most likely this will require interop. </p>
<p>Considering adding a bounty on this, the... | [
{
"answer_id": 177351,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 4,
"selected": false,
"text": "NtQuerySystemInformation"
},
{
"answer_id": 5372541,
"author": "manuc66",
"author_id": 77135,
"autho... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17174/"
] |
177,154 | <p>I'm trying to create an instance of a class at run time. The classes I'm trying to create all inherit from a base class, ConfigMgrObj, and are named <code>ConfigMgr_xxxxxx</code> e.g. <code>ConfigMgr_Collection</code>. They all take a special object that I'm calling oController and a string as arguments.</p>
<p>Thi... | [
{
"answer_id": 177164,
"author": "jop",
"author_id": 11830,
"author_profile": "https://Stackoverflow.com/users/11830",
"pm_score": 0,
"selected": false,
"text": "\"StackOverflowNamespace.\"+ClassToGet"
}
] | 2008/10/07 | [
"https://Stackoverflow.com/questions/177154",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5133/"
] |
177,160 | <p>Is it possible to set an iPhone Xcode project to skip the 'CompressResources' build step?</p>
<p>Specifically, I want to skip the stage where it runs pngcrush on all of my .png files, many of which don't survive the experience in a form which my app can read.</p>
<p><strong>Edit:</strong> the version of pngcrush u... | [
{
"answer_id": 178599,
"author": "jblocksom",
"author_id": 20626,
"author_profile": "https://Stackoverflow.com/users/20626",
"pm_score": 2,
"selected": false,
"text": "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/iphoneos-optimize"
}
] | 2008/10/07 | [
"https://Stackoverflow.com/questions/177160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25352/"
] |
177,161 | <p>I need to get just the first item (actually, just the first key) off a rather large associative array in JavaScript. Here's how I'm doing it currently (using jQuery):</p>
<pre><code>getKey = function (data) {
var firstKey;
$.each(data, function (key, val) {
firstKey = key;
return false;
... | [
{
"answer_id": 177191,
"author": "Jonathan Lonowski",
"author_id": 15031,
"author_profile": "https://Stackoverflow.com/users/15031",
"pm_score": 7,
"selected": true,
"text": "function getKey(data) {\n for (var prop in data)\n return prop;\n}\n function getKey(data) {\n for (var prop... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11577/"
] |
177,188 | <p>I'm not talking about a post build event for a project. Rather, I want to run an executable automatically after the entire solution is built. Is there a way to do a post build event for the solution?</p>
| [
{
"answer_id": 177243,
"author": "Ryan Lundy",
"author_id": 5486,
"author_profile": "https://Stackoverflow.com/users/5486",
"pm_score": 6,
"selected": true,
"text": "Public Sub AfterBuild(scope As vsBuildScope, action As vsBuildAction) _\n Handles BuildEvents.OnBuildDone\n If s... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5469/"
] |
177,189 | <p>Sometime I see many application such as msn, windows media player etc that are single instance applications (when user executes while application is running a new application instance will not created).</p>
<p>In C#, I use <code>Mutex</code> class for this but I don't know how to do this in Java.</p>
| [
{
"answer_id": 177201,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 7,
"selected": true,
"text": "InetAddress.getLocalHost() InetAddress.getByAddress(new byte[] {127, 0, 0, 1}) getLocalHost 127.0.0.1 getLocalHost 127.0.0.1 Man... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24550/"
] |
177,197 | <p>Please anybody can tell me the questions, that can be asked in an interview for below topics</p>
<ul>
<li>Socket Programming</li>
<li>Multi-Threading</li>
</ul>
<p>An advance thanks goes to everybody who provide their time</p>
| [
{
"answer_id": 11804526,
"author": "jxh",
"author_id": 315052,
"author_profile": "https://Stackoverflow.com/users/315052",
"pm_score": 1,
"selected": false,
"text": "accept connect close shutdown connect www.google.com"
}
] | 2008/10/07 | [
"https://Stackoverflow.com/questions/177197",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21599/"
] |
177,205 | <p>What is the data that Process and Thread will not share ? </p>
<p>An advance thanks goes to everybody who provide their time</p>
| [
{
"answer_id": 177336,
"author": "bk1e",
"author_id": 8090,
"author_profile": "https://Stackoverflow.com/users/8090",
"pm_score": 0,
"selected": false,
"text": "FD_CLOEXEC lpSecurityAttributes->bInheritHandle TRUE CreateFile() bInheritHandles TRUE CreateProcess _open() _O_NOINHERIT clone... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177205",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21599/"
] |
177,228 | <p>What is the easiest way of finding out what version of the iPhone SDK is installed on my OS X?</p>
<p>When you log into the Apple's iPhone Developer Center, you can see the build number of the current available version of the SDK, but you have to remember if you have already downloaded that version or not. </p>
<p... | [
{
"answer_id": 46978885,
"author": "greymouser",
"author_id": 404640,
"author_profile": "https://Stackoverflow.com/users/404640",
"pm_score": 0,
"selected": false,
"text": "$ xcrun --sdk iphoneos --show-sdk-path\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Deve... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177228",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2954/"
] |
177,240 | <p>Lets just say you have a table in Oracle:</p>
<pre><code>CREATE TABLE person (
id NUMBER PRIMARY KEY,
given_names VARCHAR2(50),
surname VARCHAR2(50)
);
</code></pre>
<p>with these function-based indices:</p>
<pre><code>CREATE INDEX idx_person_upper_given_names ON person (UPPER(given_names));
CREATE INDEX id... | [
{
"answer_id": 177304,
"author": "CaptainPicard",
"author_id": 15203,
"author_profile": "https://Stackoverflow.com/users/15203",
"pm_score": 2,
"selected": false,
"text": "CREATE INDEX idx_person_upper_surname ON person (UPPER(surname));\n\nSELECT * FROM person WHERE UPPER(surname) LIKE ... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18393/"
] |
177,241 | <p>I know how to load themes dynamically when they are stored locally. Is it possible to store theses themes in the database yet still apply them programmatically as described in referenced MSDN article?</p>
<p>Also - If you do store them in the filesystem, is it possible to change the path of the App_Themes directory... | [
{
"answer_id": 177304,
"author": "CaptainPicard",
"author_id": 15203,
"author_profile": "https://Stackoverflow.com/users/15203",
"pm_score": 2,
"selected": false,
"text": "CREATE INDEX idx_person_upper_surname ON person (UPPER(surname));\n\nSELECT * FROM person WHERE UPPER(surname) LIKE ... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177241",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12442/"
] |
177,242 | <p>Whenever I start our Apache Felix (OSGi) based application under SUN Java ( build 1.6.0_10-rc2-b32 and other 1.6.x builds) I see the following message output on the console (usually under Ubuntu 8.4):</p>
<blockquote>
<p>Warning: The encoding 'UTF-8' is not supported by the Java runtime.</p>
</blockquote>
<p>I'... | [
{
"answer_id": 177934,
"author": "tgdavies",
"author_id": 11002,
"author_profile": "https://Stackoverflow.com/users/11002",
"pm_score": 3,
"selected": false,
"text": "import java.nio.charset.Charset;\n\npublic class TestCharset {\n public static void main(String[] args) {\n Sys... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1720/"
] |
177,251 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/65820/unit-testing-c-code">Unit Testing C Code</a> </p>
</blockquote>
<p>I've seen a few questions specific to C++, but I'm really curious about C. I'm trying to add a standard unit test framework into our buil... | [
{
"answer_id": 177440,
"author": "philant",
"author_id": 18804,
"author_profile": "https://Stackoverflow.com/users/18804",
"pm_score": 0,
"selected": false,
"text": "void test_function_returning_a_pointer(void)\n{\n struct_t *theStruct = function_returning_a_pointer();\n MU_ASSERT(... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25704/"
] |
177,258 | <p>Please can someone help me make sense of the Batch madness?</p>
<p>I'm trying to debug an Axapta 3.0 implementation that has about 50 Batch Jobs. Most of the batched classes do not implement the <strong><code>description()</code></strong> method, so when you look at the <em>Batch List</em> form (Basic>>Inquiries>>B... | [
{
"answer_id": 177357,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "display str Classname()\n{\n return ClassId2Name(this.ClassNum); \n}\n"
},
{
"answer_id": 179362,
"author": "... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
177,259 | <p>Always was interested why are <a href="http://msdn.microsoft.com/en-us/library/system.array.sort.aspx" rel="nofollow noreferrer">Array.Sort()</a> and <a href="http://msdn.microsoft.com/en-us/library/system.array.indexof.aspx" rel="nofollow noreferrer">Array.IndexOf()</a> methods made static and similar <a href="http... | [
{
"answer_id": 414084,
"author": "JacquesB",
"author_id": 7488,
"author_profile": "https://Stackoverflow.com/users/7488",
"pm_score": 2,
"selected": false,
"text": "ArrayList IndexOf Sort Array Array.IndexOf Array.Sort"
}
] | 2008/10/07 | [
"https://Stackoverflow.com/questions/177259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11256/"
] |
177,271 | <p>Can anyone provide some pseudo code for a roulette selection function? How would I implement this:</p>
<p><img src="https://upload.wikimedia.org/math/0/d/2/0d24a82d8e813380f670bf80ae74486b.png" alt="alt text"></p>
<p>I don't really understand how to read this math notation. I never took any probability or statisti... | [
{
"answer_id": 391712,
"author": "Wartin",
"author_id": 48778,
"author_profile": "https://Stackoverflow.com/users/48778",
"pm_score": 3,
"selected": false,
"text": "// Find the sum of fitnesses. The function fitness(i) should \n//return the fitness value for member i**\n\nfloat sumFitn... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/577/"
] |
177,277 | <p>I have a TreeView control in my WinForms .NET application that has multiple levels of childnodes that have childnodes with more childnodes, with no defined depth. When a user selects any parent node (not necessarily at the root level), how can I get a list of all the nodes beneith that parent node?</p>
<p>For examp... | [
{
"answer_id": 177282,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 4,
"selected": false,
"text": "function outputNodes(Node root)\n writeln(root.Text)\n foreach(Node n in root.ChildNodes)\n outputNodes(... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5473/"
] |
177,284 | <p>I have a table that looks something like this:</p>
<pre>
word big expensive smart fast
dog 9 -10 -20 4
professor 2 4 40 -7
ferrari 7 50 0 48
alaska 10 0 1 0
gnat -3 0 0 0
</pre>
<p>Th... | [
{
"answer_id": 177308,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 2,
"selected": false,
"text": "select word, big from myTable order by abs(big)\n select sum(abs(big)) as sumbig, \n sum(abs(expensive)) as sum... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11596/"
] |
177,287 | <p>Is it possible to produce an alert similar to JavaScript's alert("message") in python, with an application running as a daemon.</p>
<p>This will be run in Windows, Most likely XP but 2000 and Vista are also very real possibilities.</p>
<p>Update:<br />
This is intended to run in the background and alert the user w... | [
{
"answer_id": 177312,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 7,
"selected": true,
"text": "import win32api\n\nwin32api.MessageBox(0, 'hello', 'title')\n win32api.MessageBox(0, 'hello', 'title', 0x00001000) \n"
},
{... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177287",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/115/"
] |
177,323 | <p>What is the most efficient way to read the last row with SQL Server?</p>
<p>The table is indexed on a unique key -- the "bottom" key values represent the last row.</p>
| [
{
"answer_id": 177325,
"author": "willurd",
"author_id": 1943957,
"author_profile": "https://Stackoverflow.com/users/1943957",
"pm_score": 4,
"selected": false,
"text": "SELECT * FROM table_name ORDER BY unique_column DESC LIMIT 1 ORDER BY column DESC LIMIT 1"
},
{
"answer_id": 1... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177323",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2536/"
] |
177,331 | <p>what sql query will i need to show the activated server roles in a specific user?</p>
| [
{
"answer_id": 177403,
"author": "sef",
"author_id": 21963,
"author_profile": "https://Stackoverflow.com/users/21963",
"pm_score": 1,
"selected": false,
"text": "select 'ServerRole' = spv.name, 'MemberName' = lgn.name, 'MemberSID' = lgn.sid\nfrom master.dbo.spt_values spv, master.dbo.sys... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177331",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21963/"
] |
177,338 | <p>When you unload a project in Visual Studio, any referencing projects get warning triangles on their reference to the unloaded project. I've written myself a macro to do clever stuff (detect add/remove of project and transform any references from-to file/project dependency), but I can't believe that I'm not missing s... | [
{
"answer_id": 177403,
"author": "sef",
"author_id": 21963,
"author_profile": "https://Stackoverflow.com/users/21963",
"pm_score": 1,
"selected": false,
"text": "select 'ServerRole' = spv.name, 'MemberName' = lgn.name, 'MemberSID' = lgn.sid\nfrom master.dbo.spt_values spv, master.dbo.sys... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11410/"
] |
177,353 | <p>I am using VB.NET. In Visual Studio, if I right-click a property name and click "Find All References", it searches for all instances of the property being used.</p>
<p>However, a property is always used either for assignment (Set method) or retrieval (Get method). Is there any way of searching for only one of these... | [
{
"answer_id": 177426,
"author": "Dandikas",
"author_id": 23436,
"author_profile": "https://Stackoverflow.com/users/23436",
"pm_score": 1,
"selected": false,
"text": "ReSharper.FindUsages ReSharper.FindUsagesAdvanced"
}
] | 2008/10/07 | [
"https://Stackoverflow.com/questions/177353",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10786/"
] |
177,363 | <p>Is there a way to generate a hash of a string so that the hash itself would be of specific length? I've got a function that generates 41-byte hashes (SHA-1), but I need it to be 33-bytes max (because of certain hardware limitations). If I truncate the 41-byte hash to 33, I'd probably (certainly!) lost the uniqueness... | [
{
"answer_id": 177369,
"author": "Robert Gould",
"author_id": 15124,
"author_profile": "https://Stackoverflow.com/users/15124",
"pm_score": 2,
"selected": false,
"text": "/*****Please include following header files*****/\n// string\n/***********************************************/\n\n/*... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177363",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20208/"
] |
177,373 | <p>I have a generic list...</p>
<p>public List<ApprovalEventDto> ApprovalEvents</p>
<p>The ApprovalEventDto has </p>
<pre><code>public class ApprovalEventDto
{
public string Event { get; set; }
public DateTime EventDate { get; set; }
}
</code></pre>
<p>How do I sort the list by the event date?</p>
| [
{
"answer_id": 177380,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 3,
"selected": false,
"text": "using System.Linq;\n\nvoid List<ApprovalEventDto> sort(List<ApprovalEventDto> list)\n { return list.OrderBy(x => x.Event... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6268/"
] |
177,389 | <p>This question will expand on: <a href="https://stackoverflow.com/questions/68774/best-way-to-open-a-socket-in-python">Best way to open a socket in Python</a><br />
When opening a socket how can I test to see if it has been established, and that it did not timeout, or generally fail.
<br /><br />
Edit:
I tried this:<... | [
{
"answer_id": 177411,
"author": "kender",
"author_id": 4172,
"author_profile": "https://Stackoverflow.com/users/4172",
"pm_score": 7,
"selected": true,
"text": "s socket.socket() .connect import socket\ns = socket.socket()\naddress = '127.0.0.1'\nport = 80 # port number is a number, no... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177389",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/115/"
] |
177,393 | <p>In our code we used to have something like this:</p>
<pre><code> *(controller->bigstruct) = ( struct bigstruct ){ 0 };
</code></pre>
<p>This used to work great, and then we upgraded versions of GCC and suddenly started seeing stack overflows. Looking at the assembly, the old GCC code (2.x) was basically doing... | [
{
"answer_id": 177402,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 5,
"selected": true,
"text": "#define InitStruct(var, type) type var; memset(&var, 0, sizeof(type))\n InitStruct(st, BigStruct);\n *(controller->bigstruct) =... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25704/"
] |
177,414 | <p>How can i go about programaticaly getting the IP address of my network as seen from the Internet? Its obviously a property that my router has access to when it connects to the ISP. Is there any way to get this info from a router using a standard protocol. My only other option is to either find a WS which returns my ... | [
{
"answer_id": 177418,
"author": "UnkwnTech",
"author_id": 115,
"author_profile": "https://Stackoverflow.com/users/115",
"pm_score": 1,
"selected": false,
"text": "<?php\necho $_SERVER['REMOTE_ADDR'];\n?>\n"
}
] | 2008/10/07 | [
"https://Stackoverflow.com/questions/177414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
177,437 | <pre><code>const static int foo = 42;
</code></pre>
<p>I saw this in some code here on StackOverflow and I couldn't figure out what it does. Then I saw some confused answers on other forums. My best guess is that it's used in C to hide the constant <code>foo</code> from other modules. Is this correct? If so, why would... | [
{
"answer_id": 177443,
"author": "Kevin",
"author_id": 6386,
"author_profile": "https://Stackoverflow.com/users/6386",
"pm_score": 3,
"selected": false,
"text": "const static int foo = 42;\n"
},
{
"answer_id": 177451,
"author": "Chris Arguin",
"author_id": 25704,
"aut... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2079/"
] |
177,459 | <p>I have a sort of tree structure that represent a hierarchy of layers in a map, divided by types of layers and categories. Each node can be a different class for different types of layers (but all nodes implement a common interface).</p>
<p>I need to convert that class to an ASP.NET TreeView control. Each node in th... | [
{
"answer_id": 193922,
"author": "rabashani",
"author_id": 10977,
"author_profile": "https://Stackoverflow.com/users/10977",
"pm_score": 1,
"selected": false,
"text": "public class Node\n{\n public IDraw genericDrawing;\n public Node[] Childs;\n public Node() { //init you genericDr... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3389/"
] |
177,475 | <p>I am building a desktop application. Our analysis says it would be better built with a RCP. Should I use the eclipse or netbeans platform to build my application . Some of the factors to consider are</p>
<ul>
<li>Performance</li>
<li>Look and Feel</li>
<li>Popularity among target users (developers/testers)</li>
<li... | [
{
"answer_id": 228470,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "http://www.netbeans.org/kb/trails/platform.html\n http://www.nabble.com/Choosing-Netbeans-platform-or-Eclipse-RCP-td16012394.h... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9425/"
] |
177,492 | <p>What I would like to achive is: </p>
<ul>
<li>I go to admin site, apply some filters to the list of objects</li>
<li>I click and object edit, edit, edit, hit 'Save'</li>
<li>Site takes me to the list of objects... unfiltered. I'd like to have the filter from step 1 remembered and applied.</li>
</ul>
<p>Is there an... | [
{
"answer_id": 2645126,
"author": "Ben James",
"author_id": 189179,
"author_profile": "https://Stackoverflow.com/users/189179",
"pm_score": 1,
"selected": false,
"text": "ModelAdmin FilterSpec # in cust_admin/filterspecs.py\nfrom django.contrib.admin.filterspecs import FilterSpec, Choice... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9622/"
] |
177,496 | <p>I have a simple HTML. I am using the JQuery for AJAX purpose. Now, I want to put my javascript function in a separate javascript file. What is the syntax for this? For example, currently my script section in the HTML is something like this:</p>
<pre><code><script>
<script type="text/javascript" src="scrip... | [
{
"answer_id": 177499,
"author": "Mote",
"author_id": 24789,
"author_profile": "https://Stackoverflow.com/users/24789",
"pm_score": -1,
"selected": false,
"text": "$('head').append('<script type=\"text/javascript\" src=\"scripts/scripts.js\"/>')\n"
},
{
"answer_id": 177517,... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177496",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] |
177,506 | <pre class="lang-cpp prettyprint-override"><code>double r = 11.631;
double theta = 21.4;
</code></pre>
<p>In the debugger, these are shown as <code>11.631000000000000</code> and <code>21.399999618530273</code>.</p>
<p>How can I avoid this?</p>
| [
{
"answer_id": 177525,
"author": "Mark Ingram",
"author_id": 986,
"author_profile": "https://Stackoverflow.com/users/986",
"pm_score": 4,
"selected": false,
"text": "double theta = 21.4;\n if (theta == 21.4)\n{\n}\n if (fabs(theta - 21.4) <= 1e-6)\n{\n}\n"
},
{
"answer_id": 17774... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22076/"
] |
177,514 | <p>I was hoping to implement a simple XMPP server in Java. </p>
<p>What I need is a library which can parse and understand xmpp requests from a client. I have looked at Smack (mentioned below) and JSO. Smack appears to be client only so while it might help parsing packets it doesn't know how to respond to clients. I... | [
{
"answer_id": 2427358,
"author": "Bill Barnhill",
"author_id": 204343,
"author_profile": "https://Stackoverflow.com/users/204343",
"pm_score": 3,
"selected": false,
"text": "object Main {\n\n/**\n* @param args the command line arguments\n*/\n def main(args: Array[String]) :Unit = {\n ... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19013/"
] |
177,519 | <p>Im trying to squeeze some extra performance from searching through a table with many rows.
My current reasoning is that if I can throw away some of the seldom used member from the searched table thereby reducing rowsize the amount of pagesplits and hence IO should drop giving a benefit when data start to spill from ... | [
{
"answer_id": 178204,
"author": "Mitch Wheat",
"author_id": 16076,
"author_profile": "https://Stackoverflow.com/users/16076",
"pm_score": 1,
"selected": false,
"text": "SET STATISTICS IO ON\nGO\n\n\n-- Execute your query here\n\n\nSET STATISTICS IO OFF\nGO\n"
}
] | 2008/10/07 | [
"https://Stackoverflow.com/questions/177519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21182/"
] |
177,520 | <p>I am wondering if there are any alternatives to using the Expand key word when performing an LINQ to ADO.net Data Services query. The expand method does get me the data I am interested in, but it requires me to know all of the sub-objects that I am going to be working with in advance. My absolute preference would ... | [
{
"answer_id": 178391,
"author": "Craig Stuntz",
"author_id": 7714,
"author_profile": "https://Stackoverflow.com/users/7714",
"pm_score": 2,
"selected": false,
"text": "me = me.Include(\"MailingAddress\");\n"
},
{
"answer_id": 190016,
"author": "ChrisHDog",
"author_id": 2... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25719/"
] |
177,536 | <p>Is there a simple way to prevent browser from downloading and displaying images, best would be via some magic style tag or javasctipe.</p>
<p>The thing is, I'd like to tweak the company's website a bit to be more usable via mobile devices. The company is a gaming one, there's like 5MBs of images on it's main page (... | [
{
"answer_id": 177654,
"author": "Treb",
"author_id": 22114,
"author_profile": "https://Stackoverflow.com/users/22114",
"pm_score": 0,
"selected": false,
"text": "<link rel=\"stylesheet\" media=\"screen,projection,tv\" href=\"main.css\" type=\"text/css\">\n<link rel=\"stylesheet\" media=... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4172/"
] |
177,538 | <p>Every time I need to do something <em>N</em> times inside an algorithm using C# I write this code</p>
<pre><code>for (int i = 0; i < N; i++)
{
...
}
</code></pre>
<p>Studying Ruby I have learned about method <em>times()</em> which can be used with the same semantics like this</p>
<pre><code>N.times do
... | [
{
"answer_id": 177551,
"author": "cvk",
"author_id": 25397,
"author_profile": "https://Stackoverflow.com/users/25397",
"pm_score": 4,
"selected": false,
"text": "public interface ILoopIterator\n{\n void Do(Action action);\n void Do(Action<int> action);\n}\n\nprivate class LoopItera... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11256/"
] |
177,550 | <p>While estimating straight row and table sizes are fairly simple math, we find it challenging to guess just how much space each index will occupy (for a given table size). What areas can we learn to calculate a better estimate and growth rate for indexes?</p>
| [
{
"answer_id": 23830119,
"author": "Marcello Miorelli",
"author_id": 1501497,
"author_profile": "https://Stackoverflow.com/users/1501497",
"pm_score": 1,
"selected": false,
"text": "--Find out the disk size of an index:\n--USE [DB NAME HERE]\ngo\nSELECT\nOBJECT_NAME(I.OBJECT_ID) AS Table... | 2008/10/07 | [
"https://Stackoverflow.com/questions/177550",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2663/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.