qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
376,557 | <p>I have a class named Page with a private property currently called <code>_pageData</code> which stores all the information (such as title, content, keywords etc). </p>
<p>However, this to me doesn't look so good when I refer to it <code>$this->_pageData</code>. I want to think of a better name, and I'd imagine t... | [
{
"answer_id": 376571,
"author": "strager",
"author_id": 39992,
"author_profile": "https://Stackoverflow.com/users/39992",
"pm_score": 3,
"selected": true,
"text": "class Page {\n public $title = '';\n public $keywords = array();\n public $content = '';\n // etc.\n}\n\n$page ... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31671/"
] |
376,566 | <p>In a file called index.asp, which is set up in IIS as a default document for the directory, I'm trying to determine via .asp VBScript if the page was called as the default document versus directly by name, i.e. I'm trying to distinguish between these two cases server-side:</p>
<p><a href="http://someurl/" rel="nofo... | [
{
"answer_id": 376620,
"author": "Diodeus - James MacFarlane",
"author_id": 12579,
"author_profile": "https://Stackoverflow.com/users/12579",
"pm_score": 1,
"selected": false,
"text": "location.href"
},
{
"answer_id": 376929,
"author": "rmdaustin",
"author_id": 47260,
... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376566",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47260/"
] |
376,570 | <p>Is there a best practice for instantiating / calling business logic layer service in a web app? I've got a large number services that I keep instantiating and then disposing for just one method call. </p>
<p>Should these be implemented as providers? Or maybe accessed from a singleton?</p>
<p>Example code:</p>
<... | [
{
"answer_id": 376575,
"author": "Zachary Yates",
"author_id": 8360,
"author_profile": "https://Stackoverflow.com/users/8360",
"pm_score": 2,
"selected": false,
"text": "Services.ProductService.Ship(aProduct)\n"
},
{
"answer_id": 376614,
"author": "lomaxx",
"author_id": 4... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376570",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47261/"
] |
376,582 | <p>I'm having difficulty searching for this. How would I define an element in an XML schema file for XML that looks like this:</p>
<pre><code><option value="test">sometext</option>
</code></pre>
<p>I can't figure out how to define an element that is of type <code>xs:string</code> and also has an attribute... | [
{
"answer_id": 376713,
"author": "David Norman",
"author_id": 34502,
"author_profile": "https://Stackoverflow.com/users/34502",
"pm_score": 9,
"selected": true,
"text": " <xs:element name=\"option\" type=\"AttrElement\" />\n\n <xs:complexType name=\"AttrElement\">\n <xs:simpleConten... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5291/"
] |
376,598 | <p>If I do something like this:</p>
<pre><code>using (SqlCommand cmd = new SqlCommand("SELECT * FROM TBL"))
{
using (SqlDataReader reader = cmd.ExecuteReader())
{
while (reader.Read())
{
string s = reader.GetString(7);
}
}
}
</code></pre>
<p>does the Read() call read th... | [
{
"answer_id": 6408341,
"author": "jmoreno",
"author_id": 234954,
"author_profile": "https://Stackoverflow.com/users/234954",
"pm_score": 1,
"selected": false,
"text": "select * from table"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/376598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14606/"
] |
376,611 | <p>I just don't know that, is there any technical reason for that? Is it more difficult to implement a compiler for a language with weak typing? What is it?</p>
| [
{
"answer_id": 376629,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "int a\n"
},
{
"answer_id": 376636,
"author": "1800 INFORMATION",
"author_id": 3146,
"author_profile": "htt... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34134/"
] |
376,622 | <p>C#: How do you save a list of items like a Combobox to the .NET Settings file?</p>
| [
{
"answer_id": 376643,
"author": "Zachary Yates",
"author_id": 8360,
"author_profile": "https://Stackoverflow.com/users/8360",
"pm_score": 2,
"selected": false,
"text": "StringBuilder sb = new StringBuilder();\nforeach(var item in combo.Items){\n sb.Append(item.ToString() + \";\");\n}\n... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
376,623 | <p>I'm just wondering if there is a quick way to echo undefined variables without getting a warning? (I can change error reporting level but I don't want to.) The smallest I have so far is:</p>
<p><code>isset($variable)?$variable:''</code></p>
<p>I dislike this for a few reasons:</p>
<ul>
<li>It's a bit "wordy" and ... | [
{
"answer_id": 376628,
"author": "Eran Galperin",
"author_id": 10585,
"author_profile": "https://Stackoverflow.com/users/10585",
"pm_score": 4,
"selected": false,
"text": "echo @$variable;\n"
},
{
"answer_id": 376641,
"author": "Alexei Tenitski",
"author_id": 45508,
"... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37947/"
] |
376,642 | <p>I'm not really sure how to title this question but basically I have an interface like this:</p>
<pre><code>public interface IFoo
{
string ToCMD();
}
</code></pre>
<p>a couple of absract classes which implement IFoo like:</p>
<pre><code>public abstract class Foo : IFoo
{
public abstract string ToCMD();
}
p... | [
{
"answer_id": 376650,
"author": "gcores",
"author_id": 40256,
"author_profile": "https://Stackoverflow.com/users/40256",
"pm_score": 1,
"selected": false,
"text": "public interface Foo : IFoo\n{\n}\n\n public interface Bar : IFoo\n{\n}\n"
},
{
"answer_id": 376651,
"author":... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6335/"
] |
376,644 | <p>When doing a Ajax call to an MVC action currently I have my javascript inside the View, not inside its own JS file.</p>
<p>It is then very easy to do this:</p>
<pre><code>var xhr = $.ajax({
url: '<%= Url.Action("DisplayItem","Home") %>/' + el1.siblings("input:hidden").val(),
data: { ajax: "Y" },
... | [
{
"answer_id": 376656,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 3,
"selected": false,
"text": "function doAjax( url, data, elem, callback )\n{\n return $.ajax({\n url: url,\n data: { ajax: data },\... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29376/"
] |
376,655 | <p>I am having a problem setting the Authorize attribute Role value from a variable. The error message says it requires a const variable. When I create a const type variable it works fine but I am trying to load the value from the Web.Config file or anything else that will allow the end user to set this. I'm using in... | [
{
"answer_id": 376670,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 3,
"selected": true,
"text": "User.InRole( \"RoleName\" )"
},
{
"answer_id": 376942,
"author": "Marc Gravell",
"author_id": 23354,
... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45509/"
] |
376,657 | <p>What's the best algorithm to find the smallest non zero positive value from a fixed number (in this case 3) of values or return 0 if there are no positive questions?</p>
<p>My naive approach is below (in Delphi, but feel free to use whatever you like), but I think there's a more elegant way.</p>
<pre><code>value1T... | [
{
"answer_id": 376666,
"author": "Adam Pierce",
"author_id": 5324,
"author_profile": "https://Stackoverflow.com/users/5324",
"pm_score": 2,
"selected": false,
"text": "int maxPositiveValue(int *number, int listSize)\n{\n int i, result = 0;\n\n for(i = 0; i < listSize; i++)\n {\n... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/233/"
] |
376,677 | <p>I'm currently designing a database for a project. Now I'm debating with myself whether I have to create a look-up table for example 'civil status' data which can only contain fixed values like Single, Married, Separated, Widow/Widower. I'm pretty sure that no other values will be added in the future. Should I put th... | [
{
"answer_id": 376902,
"author": "Ben Dempsey",
"author_id": 10987,
"author_profile": "https://Stackoverflow.com/users/10987",
"pm_score": 0,
"selected": false,
"text": "Select * from People where MarriageStatus = \"single\" or is it \"Single\", or is it \"SINGLE\"\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/376677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40538/"
] |
376,683 | <p><strong>Problem:</strong> I am looking for a way to run a test that is able to disambiguate between select controls that have the same value in more than one place.</p>
<p><strong>Example:</strong> </p>
<p>I am trying to choose the third "monday" from a select control</p>
<pre><code>ie.select_list( :id , 'choose-... | [
{
"answer_id": 376957,
"author": "Moss Collum",
"author_id": 13210,
"author_profile": "https://Stackoverflow.com/users/13210",
"pm_score": 3,
"selected": true,
"text": "ie.select_list( :id , 'choose-day' ).select_value( whatever_the_value_was );\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/376683",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42223/"
] |
376,708 | <p>When I have entities in my domain with lists of things, should they be exposed as ILists or IEnumerables? E.g. Order has a bunch of OrderLines. </p>
| [
{
"answer_id": 376721,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 9,
"selected": true,
"text": "IEnumerable<T>"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/376708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43836/"
] |
376,717 | <p>Considering there are so many draconian firewalls in the world, is there any reason I shouldn't run server software on port 80 to guarantee greatest possible accessibility? It seems that the most common firewall exception is to allow outbound connections on port 80. I understand that any sort of packet inspection wo... | [
{
"answer_id": 376768,
"author": "Norman Ramsey",
"author_id": 41661,
"author_profile": "https://Stackoverflow.com/users/41661",
"pm_score": 0,
"selected": false,
"text": "/etc/init.d/apache stop"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/376717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/327/"
] |
376,723 | <p>I'm having trouble capturing this data:</p>
<pre><code> <tr>
<td><span class="bodytext"><b>Contact:</b><b></b></span><span style='font-size:10.0pt;font-family:Verdana;
mso-bidi-font-family:Arial'><b> </b>
... | [
{
"answer_id": 376746,
"author": "Jan Goyvaerts",
"author_id": 33358,
"author_profile": "https://Stackoverflow.com/users/33358",
"pm_score": 2,
"selected": false,
"text": "$text = preg_replace('/<[^<>]+>/', '', $html);\n"
},
{
"answer_id": 376747,
"author": "nickf",
"auth... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24416/"
] |
376,732 | <p>The Zend Framework based site I have been working on is now being migrated to its production server. This server turns out to be nginx (surprise!). Naturally the site does not work correctly as it was developed on Apache and relies on an htaccess file. </p>
<p>My question is... anyone have any experience with this?... | [
{
"answer_id": 376743,
"author": "mooware",
"author_id": 35951,
"author_profile": "https://Stackoverflow.com/users/35951",
"pm_score": 4,
"selected": false,
"text": "server {\n listen 80;\n server_name servername.com;\n\n root /var/www/zendapp/public;\n\n location / {\n index inde... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11252/"
] |
376,738 | <p>I'm writing a PHP application with testability in mind, so my classes always ask in their constructors for the "collaborator objects" they depend on, in respect to the Dependency Injection pattern.</p>
<p>That way, I'm able to pass in mocks or test implementations in my unit tests.</p>
<p>What I want to achieve th... | [
{
"answer_id": 31315229,
"author": "Victor Bocharsky",
"author_id": 3190190,
"author_profile": "https://Stackoverflow.com/users/3190190",
"pm_score": 0,
"selected": false,
"text": "$logger = ValueResolver::resolve($logger, new DefaultLogger);\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/376738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38072/"
] |
376,751 | <p>On top of my head, especially for C/Linux developer:</p>
<ul>
<li><a href="http://petdance.com/ack/" rel="nofollow noreferrer">ack</a></li>
<li><a href="http://git.fishsoup.net/cgit/git-bz/plain/git-bz" rel="nofollow noreferrer">git-bz</a></li>
<li><a href="http://schlueters.de/colorgcc.html" rel="nofollow noreferr... | [
{
"answer_id": 376859,
"author": "Filip Dupanović",
"author_id": 44041,
"author_profile": "https://Stackoverflow.com/users/44041",
"pm_score": 0,
"selected": false,
"text": "- ANT\n- Mylyn\n- TortoiseSVN\n- firebug (think console too!)\n- TextMate\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/376751",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1277510/"
] |
376,762 | <p>I am running a query on Sybase ASE that produces a <code>ResultSet</code> that I then traverse and write the contents out to a file. Sometimes, this will throw a <code>NullPointerException</code>, stating that the <code>ResultSet</code> is <code>null</code>. However, it will do this after printing out one or two rec... | [
{
"answer_id": 376814,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 2,
"selected": false,
"text": "preparedStatement.setLong(1, primaryKey);\nResultSet rs = preparedStatement.executeQuery();\nwhile (rs.next())\n{\n St... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
376,773 | <p>I begin a transaction, which is to insert several records into a table. Can I select the latest inserted record out of the database before the transaction commit?</p>
| [
{
"answer_id": 2656640,
"author": "Noah",
"author_id": 12113,
"author_profile": "https://Stackoverflow.com/users/12113",
"pm_score": 3,
"selected": false,
"text": "SQLite version 3.6.23\nEnter \".help\" for instructions\nEnter SQL statements terminated with a \";\"\n\nsqlite> create tabl... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376773",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26404/"
] |
376,785 | <p>Delphi has a $WARN compiler directive that allows one to selectively enable or disable specific warnings. The Delphi 2009 help file describes the syntax:</p>
<pre><code>{$WARN identifier ON|OFF}
</code></pre>
<p>But it only lists the identifiers for 6 warnings.</p>
<p>I'd like to have a complete list of all the ... | [
{
"answer_id": 377034,
"author": "Jan Goyvaerts",
"author_id": 33358,
"author_profile": "https://Stackoverflow.com/users/33358",
"pm_score": 6,
"selected": false,
"text": "{$WARN ASG_TO_TYPED_CONST OFF}"
},
{
"answer_id": 379785,
"author": "Jan Goyvaerts",
"author_id": 33... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376785",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33358/"
] |
376,786 | <p>The code below continues many lines until it ends with a expected /veotherwise /vechoose. I started working on a development firm a little ago where they use this html version called vhtml. I have search the web but it brings different definitions for vhtml. I have seen some posts in Joomla about vhtml but they d... | [
{
"answer_id": 377034,
"author": "Jan Goyvaerts",
"author_id": 33358,
"author_profile": "https://Stackoverflow.com/users/33358",
"pm_score": 6,
"selected": false,
"text": "{$WARN ASG_TO_TYPED_CONST OFF}"
},
{
"answer_id": 379785,
"author": "Jan Goyvaerts",
"author_id": 33... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47222/"
] |
376,793 | <p>Can someone explain to me why my code:</p>
<pre><code>string messageBody = "abc\n" + stringFromDatabaseProcedure;
</code></pre>
<p>where valueFromDatabaseProcedure is not a value from the SQL database entered as </p>
<pre><code>'line1\nline2'
</code></pre>
<p>results in the string:</p>
<pre><code>"abc\nline1\\n... | [
{
"answer_id": 376800,
"author": "George Stocker",
"author_id": 16587,
"author_profile": "https://Stackoverflow.com/users/16587",
"pm_score": 0,
"selected": false,
"text": "<br />"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/376793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13813/"
] |
376,798 | <p>I inherited an application which uses a java properties file to define configuration parameters such as database name. </p>
<p>There is a class called MyAppProps that looks like this:</p>
<pre><code>public class MyAppProps {
protected static final String PROP_FILENAME = "myapp.properties";
protected static... | [
{
"answer_id": 376878,
"author": "krosenvold",
"author_id": 23691,
"author_profile": "https://Stackoverflow.com/users/23691",
"pm_score": 3,
"selected": false,
"text": "private static final String DATABASE_NAME = \"database_name\"\nprivate static final String DATABASE_USER = \"database_u... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376798",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
376,812 | <p>This is my code:</p>
<pre class="lang-hs prettyprint-override"><code>type HoraAtendimento = (String, Int, Int)
htmlHAtendimento :: [HoraAtendimento] -> Html
htmlHAtendimento [] = toHtml ""
htmlHAtendimento ((da,hia,hfa):[]) = toHtml da +++ "feira "
+++
... | [
{
"answer_id": 376862,
"author": "Apocalisp",
"author_id": 3434,
"author_profile": "https://Stackoverflow.com/users/3434",
"pm_score": 5,
"selected": true,
"text": "map"
},
{
"answer_id": 376868,
"author": "Norman Ramsey",
"author_id": 41661,
"author_profile": "https:... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40480/"
] |
376,840 | <p>I'm using Java and I'm coding a chess engine.</p>
<p>I'm trying to find the index of the first 1 bit and the index of the last 1 bit in a byte.</p>
<p>I'm currently using Long.numberOfTrailingZeros() (or something like that) in Java, and would like to emulate that functionality, except with bytes.</p>
<p>Would it... | [
{
"answer_id": 376855,
"author": "starmole",
"author_id": 35706,
"author_profile": "https://Stackoverflow.com/users/35706",
"pm_score": 2,
"selected": false,
"text": "unsigned int bitcount ( unsigned int i ) {\nunsigned int r = 0;\nwhile ( i ) { r+=i&1; i>>=1; } /* bit shift is >>> in ja... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13852/"
] |
376,844 | <p>I've been sharing image lists across multiple forms in Delphi for years now. I have a TImageList on the main form of my app and then I have other forms that have components where I set the Images property to the image list from the main form (e.g. MyMainForm.MyImageList) at design time.</p>
<p>The problem I'm havin... | [
{
"answer_id": 377347,
"author": "DiGi",
"author_id": 12042,
"author_profile": "https://Stackoverflow.com/users/12042",
"pm_score": 1,
"selected": false,
"text": " fMainForm in 'fMainForm.pas' {MainForm},\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/376844",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/62/"
] |
376,851 | <p>I am using the standard outputcache tag in my MVC app which works great but I need to force it to be dumped at certain times. How do I achieve this? The page that gets cached is built from a very simple route {Controller}/{PageName} - so most pages are something like this: /Pages/About-Us</p>
<p>Here is the outpu... | [
{
"answer_id": 376875,
"author": "Zachary Yates",
"author_id": 8360,
"author_profile": "https://Stackoverflow.com/users/8360",
"pm_score": 4,
"selected": false,
"text": "HttpResponse.RemoveOutputCacheItem()"
},
{
"answer_id": 376899,
"author": "Slee",
"author_id": 34548,
... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376851",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34548/"
] |
376,910 | <p>I have a ListBox and I want to add a context menu to each item in the list. I've seen the "solution" to have the right click select an item and suppress the context menu if on white space, but this solution feels dirty. </p>
<p>Does anyone know a better way?</p>
| [
{
"answer_id": 378056,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 5,
"selected": false,
"text": "#region Private Members\nprivate ContextMenuStrip listboxContextMenu;\n#endregion\n\nprivate void Form1_Load( object sender, E... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40887/"
] |
376,911 | <p>I'm new to both ASP.Net MVC and jQuery and what I'm trying to do is make a form that either adds a new RockBand or updates an existing RockBand based on if the rockbandid is an empty guid or not. I figured now is a good time to get rolling with jQuery. So the first step is to make a list of bands and put an edit l... | [
{
"answer_id": 378056,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 5,
"selected": false,
"text": "#region Private Members\nprivate ContextMenuStrip listboxContextMenu;\n#endregion\n\nprivate void Form1_Load( object sender, E... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1975/"
] |
376,915 | <p>I recently took my Db initiating code out of the __construct of my Page class and placed it just after I initiate the Page class. I removed it from within the Page class because I want to be able to access it from anywhere (other classes for example). It also takes server, username, password and database arguments t... | [
{
"answer_id": 376920,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 0,
"selected": false,
"text": "$db =& JFactory::getDBO();\n"
},
{
"answer_id": 377338,
"author": "troelskn",
"author_id": 18180,
"author_... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31671/"
] |
376,921 | <p>What is the difference between the scalar and list contexts in Perl and does this have any parallel in other languages such as Java or Javascript? </p>
| [
{
"answer_id": 376932,
"author": "nicerobot",
"author_id": 23056,
"author_profile": "https://Stackoverflow.com/users/23056",
"pm_score": 0,
"selected": false,
"text": "sub = {\n return if ( ! defined wantarray ); # void: just return (doesn't make sense for =)\n return @_ if ( wantarray... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376921",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47145/"
] |
376,948 | <p>I was coding with 2 CStringList objects. Each has its own data, for eg one has name and other the phoneno, and both are in sync, i.e, if there is a phoneno there is a name and viceversa.</p>
<p>Now, i have 2 combobox in which i show the names and the respective phonenos. The name combobox is sorted, hence the sync... | [
{
"answer_id": 395656,
"author": "baash05",
"author_id": 31325,
"author_profile": "https://Stackoverflow.com/users/31325",
"pm_score": 0,
"selected": false,
"text": "int aComboElementNo = myNameComboBox.GetCount();\nfor( int aIndex = 0; aIndex < aComboElementNo; aIndex++ )\n{\n int na... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41518/"
] |
376,953 | <p>I am a beginner at SQL Server and I have a question about how best to do this.</p>
<p>I have a table that looks like this:</p>
<p>ID Parent Level<br>
1 NULL 0<br>
2 ... | [
{
"answer_id": 376974,
"author": "LeppyR64",
"author_id": 16592,
"author_profile": "https://Stackoverflow.com/users/16592",
"pm_score": 2,
"selected": false,
"text": "select\n a.id,\n a.level,\n b.level as parentlevel\nfrom\n tablename a\n join tablename b on a.parent = b.id\nwhere\... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47299/"
] |
376,954 | <p>I'm using EPIC, but it seems to have some drawbacks. Are there any other Perl plugins for Eclipse?</p>
| [
{
"answer_id": 3305135,
"author": "MJ.",
"author_id": 243720,
"author_profile": "https://Stackoverflow.com/users/243720",
"pm_score": 0,
"selected": false,
"text": "use base qw/ Class::DBI /;\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/376954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47145/"
] |
376,959 | <p>Let's say I have the following function:</p>
<pre><code>sumAll :: [(Int,Int)] -> Int
sumAll xs = foldr (+) 0 (map f xs)
where f (x,y) = x+y
</code></pre>
<p>The result of <code>sumAll [(1,1),(2,2),(3,3)]</code> will be <code>12</code>.</p>
<p>What I don't understand is where the <code>(x,y)</code> values are... | [
{
"answer_id": 376983,
"author": "Akusete",
"author_id": 40175,
"author_profile": "https://Stackoverflow.com/users/40175",
"pm_score": 4,
"selected": true,
"text": "sumAll :: [(Int,Int)] -> Int\nsumAll xs = foldr (+) 0 (map myFunctionF xs)\n\nmyFunctionF :: (Int,Int) -> Int\nmyFunctionF ... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376959",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40480/"
] |
376,965 | <p>What's the best way to view the data that LoadPostData event is loading to the controls in ASP.NET? </p>
| [
{
"answer_id": 377022,
"author": "Strelok",
"author_id": 2788,
"author_profile": "https://Stackoverflow.com/users/2788",
"pm_score": 3,
"selected": true,
"text": "HttpContext.Current.Request.Form"
},
{
"answer_id": 5759942,
"author": "duozmo",
"author_id": 134610,
"au... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5232/"
] |
376,966 | <p>Is it possible to have a C static library API, which uses C++ internally and hide this from users of the library?</p>
<p>I have writen a portable C++ library I wish to statically link to an iPhone application.</p>
<p>I have created an Xcode project using the Max OS X 'static library' template, and copied the sourc... | [
{
"answer_id": 376987,
"author": "coppro",
"author_id": 16855,
"author_profile": "https://Stackoverflow.com/users/16855",
"pm_score": 2,
"selected": false,
"text": "extern \"C\""
},
{
"answer_id": 377005,
"author": "Martin York",
"author_id": 14065,
"author_profile": ... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40175/"
] |
376,968 | <p>Suppose I have a variable of type Int = 08, how can I convert this to String keeping the leading zero?</p>
<p>For instance:</p>
<pre><code>v :: Int
v = 08
show v
</code></pre>
<p>Output: 8</p>
<p>I want the output to be "08".</p>
<p>Is this possible?</p>
| [
{
"answer_id": 376982,
"author": "mipadi",
"author_id": 28804,
"author_profile": "https://Stackoverflow.com/users/28804",
"pm_score": 5,
"selected": false,
"text": "Text.Printf.printf"
},
{
"answer_id": 377061,
"author": "Adeel Ansari",
"author_id": 42769,
"author_pro... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376968",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40480/"
] |
376,979 | <p>If you are going to start the development of an API for your web application. Is there any kind of guidelines, best practices or standard to build web services. I have seen a few discussions in this topic and I will like to get more information. </p>
<p>At least get pointers on where to get the information.</p>
... | [
{
"answer_id": 379039,
"author": "Rob Williams",
"author_id": 26682,
"author_profile": "https://Stackoverflow.com/users/26682",
"pm_score": 1,
"selected": false,
"text": "web = transported over HTTP(S)\nservice = remote procedure call (RPC)\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/376979",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47222/"
] |
376,988 | <p>I remember reading in some Java book about any operator other than 'instanceof' for comparing the type hierarchy between two objects.</p>
<p>instanceof is the most used and common. I am not able to recall clearly whether there is indeed another way of doing that or not.</p>
| [
{
"answer_id": 376996,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 3,
"selected": false,
"text": "Class.isInstance"
},
{
"answer_id": 377051,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": ... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376988",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37626/"
] |
376,998 | <p>I want to redirect URLs from an old site that used raw URL requests to my new site which I have implemented in CodeIgniter. I simply want to redirect them to my index page. I also would like to get rid of "index.php" in my URLs so that my URLs can be as simple as example.com/this/that. So, this is the <... | [
{
"answer_id": 376996,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 3,
"selected": false,
"text": "Class.isInstance"
},
{
"answer_id": 377051,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": ... | 2008/12/18 | [
"https://Stackoverflow.com/questions/376998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3831/"
] |
377,000 | <p><a href="https://stackoverflow.com/questions/374572/need-help-variable-creation-in-python#374604">That</a> was helpful kgiannakakis.
I'm facing a problem as below:</p>
<pre><code>a = ['zbc','2.3']
for i in range(0,5):
exec('E%d=%s' %(i,a[i]))
</code></pre>
<p>This results in:</p>
<pre>
Traceback (most recent ... | [
{
"answer_id": 377015,
"author": "Charlie Martin",
"author_id": 35092,
"author_profile": "https://Stackoverflow.com/users/35092",
"pm_score": 0,
"selected": false,
"text": "a = ['zbc','2.3']\nfor i in range(0,5): \n exec('E%d=%s' %(i,a[i]))\n"
},
{
"answer_id": 377079,
"au... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46646/"
] |
377,017 | <p>In Python, is there a portable and simple way to test if an executable program exists?</p>
<p>By simple I mean something like the <code>which</code> command which would be just perfect. I don't want to search PATH manually or something involving trying to execute it with <code>Popen</code> & al and see if it fa... | [
{
"answer_id": 377028,
"author": "Jay",
"author_id": 20840,
"author_profile": "https://Stackoverflow.com/users/20840",
"pm_score": 9,
"selected": true,
"text": "def which(program):\n import os\n def is_exe(fpath):\n return os.path.isfile(fpath) and os.access(fpath, os.X_OK)\... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38796/"
] |
377,023 | <p>Does anyone know the query the last synchronization date from sql server (2008).</p>
<p>It is the same information displayed in replication monitor, but I want to be able to get that date from a query.</p>
| [
{
"answer_id": 377528,
"author": "Philippe Grondier",
"author_id": 11436,
"author_profile": "https://Stackoverflow.com/users/11436",
"pm_score": 3,
"selected": true,
"text": "select * from msMerge_sessions\n"
},
{
"answer_id": 8732082,
"author": "RThomas",
"author_id": 26... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36902/"
] |
377,026 | <p>I have a Linq Query where I do the following:</p>
<pre><code>query = context.Select(a => new
{
Course = (CourseType)a.CourseCode,
CourseDetail = sting.Format("Course: {0}\r\nCourse Detail: {1}", ((CourseType)a.CourseCode).ToString(), a.CourseDetail)
});
enum CourseType{
Unknown = 0,
FullTime = 1,
Part... | [
{
"answer_id": 377517,
"author": "roomaroo",
"author_id": 3464,
"author_profile": "https://Stackoverflow.com/users/3464",
"pm_score": 1,
"selected": false,
"text": "class Program\n{\n enum CourseType\n {\n Unknown = 0,\n Fulltime = 1,\n Parttime = 2\n }\n\n ... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21586/"
] |
377,030 | <p>I have some data. I want to go through that data and change cells (for example - Background color), if that data meets a certain condition. Somehow, I've not been able to figure it out how to do this seemingly easy thing in Silverlight.</p>
| [
{
"answer_id": 378169,
"author": "Simon Steele",
"author_id": 4591,
"author_profile": "https://Stackoverflow.com/users/4591",
"pm_score": 4,
"selected": true,
"text": "<my:DataGrid x:Name=\"Grid\" Grid.Row=\"1\" Margin=\"5\" GridlinesVisibility=\"None\" PreparingRow=\"Grid_PreparingRow\"... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377030",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26408/"
] |
377,033 | <p>Is it possible, using actionscript 3 to disable the right click menu?</p>
<p>Any help greatly appreciated!</p>
| [
{
"answer_id": 377581,
"author": "Iain",
"author_id": 11911,
"author_profile": "https://Stackoverflow.com/users/11911",
"pm_score": 5,
"selected": false,
"text": "stage.showDefaultContextMenu = false;\n"
},
{
"answer_id": 1742155,
"author": "Narusake",
"author_id": 212059... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377033",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1748529/"
] |
377,035 | <p>I'm building a photo gallery and what I would like to do is make it so that as the user rolls over an image (let's say for the purposes of this question it's a picture of an apple), all the other images of apples on the page also show their "over" state. </p>
<p>Any and all help would be greatly appreciated, and th... | [
{
"answer_id": 377066,
"author": "kgiannakakis",
"author_id": 24054,
"author_profile": "https://Stackoverflow.com/users/24054",
"pm_score": 3,
"selected": false,
"text": "<img src='' class='apple fruit red' />\n"
},
{
"answer_id": 377230,
"author": "sliderhouserules",
"au... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
377,058 | <p>I need a simple SQL to accomplish the below:</p>
<p>Problem:</p>
<p>When a petrol bunk runs out of fuel, the admin makes note of the DateTime (RunOutDate) when it ran out of fuel and notes also the DateTime (ResupplyDate) when the fuel supply was back on.</p>
<p>I need to create a report on how many <em>days</em>... | [
{
"answer_id": 377068,
"author": "gbn",
"author_id": 27535,
"author_profile": "https://Stackoverflow.com/users/27535",
"pm_score": 2,
"selected": false,
"text": "DATEDIFF(day, '16 Dec 2008 10:10', '16 Dec 2008 10:50') + 1\n"
},
{
"answer_id": 377073,
"author": "Joel Spolsky",... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4718/"
] |
377,072 | <p>I have received a content export of a MOSS 2007 site which I need to get replicated in my environment but I am having problems importing it using <code>stsadm</code>.</p>
<p>The export was done using <code>stsadm</code> though a command similar to:</p>
<blockquote>
<p>stsadm -o export -url <a href="http://localh... | [
{
"answer_id": 454422,
"author": "Aaron Powell",
"author_id": 11388,
"author_profile": "https://Stackoverflow.com/users/11388",
"pm_score": 1,
"selected": true,
"text": "-includeusersecurity"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/377072",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11388/"
] |
377,075 | <p>I have a number of solutions with a large number of projects in them. I would like to be able to define global settings for the solution that are used by all projects. For example an include directory. I want to be able to change the include directory in one place for all projects in the solutions. </p>
<p>When I s... | [
{
"answer_id": 377856,
"author": "Arnout",
"author_id": 3496,
"author_profile": "https://Stackoverflow.com/users/3496",
"pm_score": 1,
"selected": false,
"text": "<Project xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">\n <PropertyGroup>\n <WinUnitIncludeDir>C:\\... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42086/"
] |
377,078 | <p>I'm trying to make a little function to interpolate between two values with a given increment.</p>
<pre><code>[ 1.0 .. 0.5 .. 20.0 ]
</code></pre>
<p>The compiler tells me that this is deprecated, and suggests using ints then casting to float. But this seems a bit long-winded if I have a fractional increment - do ... | [
{
"answer_id": 377111,
"author": "JaredPar",
"author_id": 23283,
"author_profile": "https://Stackoverflow.com/users/23283",
"pm_score": 0,
"selected": false,
"text": "seq { 2 .. 40 } |> Seq.map (fun x -> (float x) / 2.0)\n"
},
{
"answer_id": 377618,
"author": "Tomas Petricek"... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11410/"
] |
377,082 | <p>I'm an OK C/C++ programmer. I find Haskell very intriguing. But it seems to me, that although it's relatively easy to write clean Haskell code, as it mimics math (which I'm very comfortable with) pretty well, it's very hard to write clean code in Haskell that runs fast.</p>
<p>A faster version of quicksort of Haske... | [
{
"answer_id": 382904,
"author": "Norman Ramsey",
"author_id": 41661,
"author_profile": "https://Stackoverflow.com/users/41661",
"pm_score": 6,
"selected": false,
"text": "map"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/377082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47303/"
] |
377,093 | <p>Coming from C++, I find generic programming indispensable. I wonder how people approach that in Haskell?</p>
<p>Say how do write generic swap function in Haskell?</p>
<p>Is there an equivalent concept of partial specialization in Haskell?</p>
<p>In C++, I can partially specialize the generic swap function with a ... | [
{
"answer_id": 377155,
"author": "Daniel Earwicker",
"author_id": 27423,
"author_profile": "https://Stackoverflow.com/users/27423",
"pm_score": 6,
"selected": true,
"text": "measure :: [a] -> Integer\n"
},
{
"answer_id": 377200,
"author": "TheMarko",
"author_id": 31099,
... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47303/"
] |
377,094 | <p>I have a C++ application that uses the Win32 API for Windows, and I'm having a problem with GDI+ dithering, when I don't know why it should be.</p>
<p>I have a custom control (custom window). When I receive the WM_PAINT message, I draw some Polygons using FillPolygon on a Graphics device. This Graphics device was c... | [
{
"answer_id": 377155,
"author": "Daniel Earwicker",
"author_id": 27423,
"author_profile": "https://Stackoverflow.com/users/27423",
"pm_score": 6,
"selected": true,
"text": "measure :: [a] -> Integer\n"
},
{
"answer_id": 377200,
"author": "TheMarko",
"author_id": 31099,
... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377094",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3641/"
] |
377,097 | <p>I want to connect to DB using the iSeries Client Access driver. I use the following connection string:</p>
<p>DRIVER=Client Access ODBC Driver (32-bit);QUERYTIMEOUT=0;PKG=QGPL/DEFAULT(IBM),2,0,1,0,512;LANGUAGEID=ENU;DFTPKGLIB=QGPL;DBQ=QGPL
XXXXXXXX;SYSTEM=XXX.XXXXXXX.XXX;Signon=2</p>
<p>I get an exception when co... | [
{
"answer_id": 377155,
"author": "Daniel Earwicker",
"author_id": 27423,
"author_profile": "https://Stackoverflow.com/users/27423",
"pm_score": 6,
"selected": true,
"text": "measure :: [a] -> Integer\n"
},
{
"answer_id": 377200,
"author": "TheMarko",
"author_id": 31099,
... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
377,105 | <p>In Delphi 2007, in a mouse move event, I try to change the mouse cursor with:</p>
<pre><code>procedure TFr_Board_Display.PaintBox_Proxy_BoardMouseMove(Sender: TObject;
Shift: TShiftState; X, Y: Integer);
begin
if left_mouse_button_down then begin
if some_condition then begin
Cursor := crDrag;
e... | [
{
"answer_id": 377158,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 5,
"selected": true,
"text": "procedure TForm4.FormMouseDown(Sender: TObject; Button: TMouseButton;\n Shift: TShiftState; X, Y: Integer);\nbegin\n ... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47309/"
] |
377,109 | <p>Hi I'm very new to sql but have been passed a job in which I need to query the db(MS SQL 2005) I need to return all workers where a HeadID is given.(tables below)
So I need to get all the managers that match the HeadID and then all the workers that match those managers by ManagerID. How would I do this? Any help or ... | [
{
"answer_id": 377115,
"author": "Chaowlert Chaisrichalermpol",
"author_id": 2398110,
"author_profile": "https://Stackoverflow.com/users/2398110",
"pm_score": 1,
"selected": false,
"text": "USE AdventureWorks;\nGO\nWITH DirectReports(ManagerID, EmployeeID, EmployeeLevel) AS \n(\n SELE... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17510/"
] |
377,114 | <p>Partial template specialization is one of the most important concepts for generic programming in C++. For example: to implement a generic swap function:</p>
<pre><code>template <typename T>
void swap(T &x, T &y) {
const T tmp = x;
y = x;
x = tmp;
}
</code></pre>
<p>To specialize it for a vector... | [
{
"answer_id": 380306,
"author": "finnsson",
"author_id": 24044,
"author_profile": "https://Stackoverflow.com/users/24044",
"pm_score": -1,
"selected": false,
"text": "void Swap<T>(ref T a, ref T b) { \n var c = a; \n a = b; \n b = c;\n}\n"
},
{
"answer_id": 380364,
... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47303/"
] |
377,117 | <p>I must be dense. After asking several questions on StackOverflow, I am still at a loss when it comes to grasping the new routing engine provided with ASP.NET MVC. I think I've narrowed down the problem to a very simple one, which, if solved, would probably allow me to solve the rest of my routing issues. So here ... | [
{
"answer_id": 377142,
"author": "John Sheehan",
"author_id": 1786,
"author_profile": "https://Stackoverflow.com/users/1786",
"pm_score": 0,
"selected": false,
"text": "routes.MapRoute(\n \"Root\",\n \"{controller}/{view}\",\n new { controller = \"Home\", action = \"Index\", vie... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1574/"
] |
377,135 | <p>I want to display documents on my website. The server is hosted on a Debian machine. I was thinking I can allow the upload of support documents then use a Linux app or PHP app to convert the doc into PDF and display that in an HTML page. Are there any APIs or binaries that allow me to do this?</p>
| [
{
"answer_id": 378262,
"author": "jjclarkson",
"author_id": 46425,
"author_profile": "https://Stackoverflow.com/users/46425",
"pm_score": 1,
"selected": false,
"text": " function lpr($STR,$PRN,$TITLE) {\n\n $prn=(isset($PRN) && strlen($PRN))?\"$PRN\":C_DEFAULTPRN ;\n $title=(isset... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377135",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
377,137 | <p>I've been struggling with this for quite awhile and haven't been able to
find a solution. I need a user to be able to view multiple top level
domains with a single login.</p>
<p>My understanding is that this needs to be set in <code>environment.rb</code> and
called with <code>before_dispatch</code>. This is what I'... | [
{
"answer_id": 2891676,
"author": "Kris",
"author_id": 22237,
"author_profile": "https://Stackoverflow.com/users/22237",
"pm_score": 2,
"selected": false,
"text": "ActionController::Base.session = { :domain => \".mydomain.com\" }\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/377137",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
377,156 | <p>Below is my table, a User could have multiple profiles in certain languages, non-English profiles have a higher priority.</p>
<pre>
+----------+--------+----------------+----------------+
|ProfileID |UserID |ProfileLanguage |ProfilePriority |
+----------+--------+----------------+----------------+
|1 |1 ... | [
{
"answer_id": 377165,
"author": "Samiksha",
"author_id": 29515,
"author_profile": "https://Stackoverflow.com/users/29515",
"pm_score": 1,
"selected": false,
"text": "SELECT *\nFROM Profile as tb1 inner join\n(SELECT UserID, MIN(ProfilePriority) AS ProfilePriority\nFROM Profile\nWHERE Pr... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377156",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
377,163 | <p>How do you perform databinding against the MonthCalendar.SelectionRange property? Given the property is of type 'SelectionRange' which is a class I am not sure how to go about it. Any examples would be much appreciated.</p>
| [
{
"answer_id": 377350,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": true,
"text": "MonthCalendar"
},
{
"answer_id": 34543726,
"author": "Vasily Ivanov",
"author_id": 5690058,
"autho... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377163",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6276/"
] |
377,178 | <p>What are all the other things the <code>new</code> operator does other than allocating memory and calling a constructor?</p>
| [
{
"answer_id": 377208,
"author": "Michael Burr",
"author_id": 12711,
"author_profile": "https://Stackoverflow.com/users/12711",
"pm_score": 5,
"selected": true,
"text": "<new>"
},
{
"answer_id": 390585,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_p... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22076/"
] |
377,181 | <p>I have a unmanaged DLL (the scilexer.dll of Scintilla code editor, used by Scintilla.Net from <a href="http://www.codeplex.com/ScintillaNET" rel="noreferrer">CodePlex</a>) that is loaded from a managed application trough the Scintilla.Net component. The windows managed application runs without problem on both 32 and... | [
{
"answer_id": 499190,
"author": "SteinNorheim",
"author_id": 19220,
"author_profile": "https://Stackoverflow.com/users/19220",
"pm_score": 2,
"selected": false,
"text": "public interface ICodec {\n int Decode(IntPtr input, IntPtr output, long inputLength);\n}\n"
},
{
"answer_... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11673/"
] |
377,185 | <p>The db I am querying from is returning some null values.
How do I safeguard against this and make sure the caller gets some data back.</p>
<p>The code I have is:</p>
<p>Using DataReader</p>
<pre><code> while (dr.Read())
{
vo = new PlacementVO();
vo.PlacementID = dr.GetString... | [
{
"answer_id": 377193,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": true,
"text": "IsDBNull(int ordinal)"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/377185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17510/"
] |
377,187 | <p>I currently have code in my ApplicationController to check if a user is logged in and has the required access to perform a given action (the tests take place in a before_filter).</p>
<p>I require the same functionality in the views to decide if I should be showing the admin links in a list view, but how do I best a... | [
{
"answer_id": 377251,
"author": "Hates_",
"author_id": 3410,
"author_profile": "https://Stackoverflow.com/users/3410",
"pm_score": 3,
"selected": true,
"text": "helper_method :current_user, :can_edit_customers?\n\ndef current_user\n @current_user ||= User.find_by_id(session[:user])\n... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15512/"
] |
377,195 | <p>I have a C linux application (A) that spawns another process (P) when it is started. When I want to debug P I start A as usual and I connect with ddd/gdb to P.</p>
<p>Problems appear when I want to debug the entry-point (start of main) of P. If I follow the usual approach when I connect the debugger to P is already... | [
{
"answer_id": 377252,
"author": "codelogic",
"author_id": 43427,
"author_profile": "https://Stackoverflow.com/users/43427",
"pm_score": -1,
"selected": false,
"text": "gdbserver"
},
{
"answer_id": 377295,
"author": "Nathan Fellman",
"author_id": 1084,
"author_profile... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377195",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
377,202 | <p>I recently had a problem in my app where some of the subviews I was creating in a UIViewController subclass's <code>-awakeFromNib</code> method were disappearing from the view. After some poking around I found that moving the code I had put in <code>-awakeFromNib</code> to <code>-viewDidLoad</code> solved the probl... | [
{
"answer_id": 377209,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 4,
"selected": false,
"text": "awakeFromNib"
},
{
"answer_id": 377390,
"author": "Lily Ballard",
"author_id": 582,
"author_profile": "htt... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377202",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17188/"
] |
377,203 | <p>Why does it (apparently) make a difference whether I pass <code>null</code> as an argument directly, or pass an <code>Object</code> that I assigned the <em>value</em> <code>null</code>?</p>
<pre><code>Object testVal = null;
test.foo(testVal); // dispatched to foo(Object)
// test.foo(null); // compilation prob... | [
{
"answer_id": 377238,
"author": "Miserable Variable",
"author_id": 18573,
"author_profile": "https://Stackoverflow.com/users/18573",
"pm_score": 6,
"selected": true,
"text": "foo(testVal)"
},
{
"answer_id": 377459,
"author": "Miserable Variable",
"author_id": 18573,
... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45018/"
] |
377,204 | <p>I use some wx.ListCtrl classes in wx.LC_REPORT mode, augmented with ListCtrlAutoWidthMixin.</p>
<p>The problem is: When user double clicks the column divider (to auto resize column), column width is set to match the width of contents. This is done by the wx library and resizes column to just few pixels when the con... | [
{
"answer_id": 380378,
"author": "Abgan",
"author_id": 46308,
"author_profile": "https://Stackoverflow.com/users/46308",
"pm_score": 2,
"selected": true,
"text": "self.SetColumnWidth(colNum, wx.LIST_AUTOSIZE_USEHEADER)\n\nself.__columnWidth[colNum] = self.GetColumnWidth(c)\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/377204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46308/"
] |
377,213 | <p>I want to know how to simply publish over http = much like <a href="http://en.wikipedia.org/wiki/Mercurial" rel="noreferrer">Mercurial</a>'s hg serve! On the Windows/work box do this:</p>
<pre><code>git serve
</code></pre>
<p>and then on the Linux box SIMPLY go:</p>
<pre><code>git clone http://project project
<... | [
{
"answer_id": 377293,
"author": "seanhodges",
"author_id": 43662,
"author_profile": "https://Stackoverflow.com/users/43662",
"pm_score": 9,
"selected": true,
"text": "cd project\ngit daemon --reuseaddr --base-path=. --export-all --verbose\n"
},
{
"answer_id": 379858,
"author... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21537/"
] |
377,217 | <p>I am using the following methods:</p>
<pre><code>public void M1(Int32 a)
{
// acquire MyMutex
DoSomething(a);
// release MyMutex
}
</code></pre>
<p>and</p>
<pre><code>public void M2(String s, String t)
{
// acquire MyMutex
DoSomethingElse(s, t);
// release MyMutex
}
</code></pre>
<p>From what I have ... | [
{
"answer_id": 377224,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 5,
"selected": true,
"text": "Predicate<T>"
},
{
"answer_id": 377227,
"author": "Brian Rasmussen",
"author_id": 38206,
"author_p... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19756/"
] |
377,218 | <p>I've worked on a couple of projects where we spent a great deal of time discussing and writing elaborate coding standards covering everything from syntax layout to actual best practices. However, I have also found that these are rarely followed to the full extent. Many developers seem to hesitate to reject a code re... | [
{
"answer_id": 452304,
"author": "Scottie T",
"author_id": 6688,
"author_profile": "https://Stackoverflow.com/users/6688",
"pm_score": 0,
"selected": false,
"text": " static // Scope\n void // Type declaration \nfunc(\n\nchar al, //IN: Description of ... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377218",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38206/"
] |
377,219 | <p>I'm studying an introductory course in databases and one of the exercises is to work with MS-Access. However I'm using Linux at home and although I can use the computer classes at the university it is far from convenient (limited open time - my studying time is mostly nights).</p>
<p>So how can I use an Access file... | [
{
"answer_id": 377308,
"author": "codelogic",
"author_id": 43427,
"author_profile": "https://Stackoverflow.com/users/43427",
"pm_score": 4,
"selected": false,
"text": "mdbtools"
},
{
"answer_id": 377485,
"author": "Philippe Grondier",
"author_id": 11436,
"author_profi... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
377,228 | <p>I'm currently using Magento 1.1.6. My store only sells unique items (shirts with exclusive designs) which means at any one time, only 1 unit is available for each items.</p>
<p>How do I omit those items which are already sold from being displayed in the front page?</p>
<p>BTW, I'm using these code to show products... | [
{
"answer_id": 449622,
"author": "stunti",
"author_id": 54949,
"author_profile": "https://Stackoverflow.com/users/54949",
"pm_score": 0,
"selected": false,
"text": "<?php if($_product->isSaleable()): ?>\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/377228",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
377,231 | <p>How do I handle the scenario where I making a synchronous request to the server using XMLHttpRequest and the server is not available?</p>
<pre><code>xmlhttp.open("POST","Page.aspx",false);
xmlhttp.send(null);
</code></pre>
<p>Right now this scenario results into a JavaScript error:
"The system cannot locate the re... | [
{
"answer_id": 377302,
"author": "fasih.rana",
"author_id": 46024,
"author_profile": "https://Stackoverflow.com/users/46024",
"pm_score": 2,
"selected": false,
"text": "xmlHTTP.TimeOut= 2000 \n"
},
{
"answer_id": 377606,
"author": "coder_bro",
"author_id": 46279,
"aut... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46279/"
] |
377,237 | <p>A long time ago I saw this trick in Ruby. Instead of doing (for example)</p>
<pre><code>if array1.empty? and array2.empty? and array3.empty?
</code></pre>
<p>You could call all of the objects at once and append the operation at the end, kind of like</p>
<pre><code>if %w(array1 array2 array3).each { |a| a.empty? }... | [
{
"answer_id": 377280,
"author": "J Cooper",
"author_id": 38803,
"author_profile": "https://Stackoverflow.com/users/38803",
"pm_score": 5,
"selected": true,
"text": "if [array1, array2, array3].all? { |a| a.empty? }"
},
{
"answer_id": 377360,
"author": "Gareth",
"author_i... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377237",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
377,243 | <p>Using the code below, I am returning an nvarchar field from <em>MS SQL 2005</em> and keep getting a System.InvalidCastException.</p>
<pre><code>vo.PlacementID = dr.IsDBNull(0) ? null : dr.GetString(0);
</code></pre>
<p>The vo.PlacementID variable is of type String so there shouldn't be a problem.
The values I am t... | [
{
"answer_id": 377249,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 0,
"selected": false,
"text": "InvalidCastException"
},
{
"answer_id": 377610,
"author": "Kev",
"author_id": 419,
"author_profile": "http... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17510/"
] |
377,257 | <p>FxCops is something new to me, but as always I would like to get to know the new things..
From what I've read, FxCops is already included in VS2008. I guess it's the "Code Analysis" function. Whenever I try to run it though, it seems to start a rebuild and end in the "Finished Rebuilding" state.<br>
I checked the ou... | [
{
"answer_id": 377268,
"author": "NikolaiDante",
"author_id": 39643,
"author_profile": "https://Stackoverflow.com/users/39643",
"pm_score": 3,
"selected": true,
"text": "CA"
},
{
"answer_id": 378457,
"author": "Patrick from NDepend team",
"author_id": 27194,
"author_p... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377257",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11333/"
] |
377,275 | <p>I hope someone can guide me as I'm stuck... I need to write an emergency broadcast system that notifies workstations of an emergency and pops up a little message at the bottom of the user's screen. This seems simple enough but there are about 4000 workstations over multiple subnets. The system needs to be almost rea... | [
{
"answer_id": 377985,
"author": "Tim Farley",
"author_id": 4425,
"author_profile": "https://Stackoverflow.com/users/4425",
"pm_score": 0,
"selected": false,
"text": "NET SEND computername \"This is a test message\"\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/377275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47329/"
] |
377,294 | <p>What's the best way to identify if a string (is or) might be UTF-8 encoded? The Win32 API <code>IsTextUnicode</code> isn't of much help here. Also, the string will not have an UTF-8 BOM, so that cannot be checked for. And, yes, I know that only characters above the ASCII range are encoded with more than 1 byte.</p>
| [
{
"answer_id": 6735792,
"author": "Harry Wood",
"author_id": 338265,
"author_profile": "https://Stackoverflow.com/users/338265",
"pm_score": 1,
"selected": false,
"text": "sudo gem install chardet\n"
},
{
"answer_id": 11129946,
"author": "Ryan",
"author_id": 654953,
"... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6345/"
] |
377,322 | <p>I've seen a lot of example c++ code that wraps function calls in a FAILED() function/method/macro.
Could someone explain to me how this works? And if possible does anyone know a c# equivalent?</p>
| [
{
"answer_id": 377325,
"author": "Johann Gerell",
"author_id": 6345,
"author_profile": "https://Stackoverflow.com/users/6345",
"pm_score": 4,
"selected": true,
"text": "HRESULT"
},
{
"answer_id": 377357,
"author": "unwind",
"author_id": 28169,
"author_profile": "https... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17540/"
] |
377,354 | <p>Is there an elegant way to do this:</p>
<pre><code>SELECT Cols from MyTable WHERE
zip = 90210 OR
zip = 23310 OR
zip = 74245 OR
zip = 77427 OR
zip = 18817 OR
zip = 94566 OR
zip = 34533 OR
zip = 96322 OR
zip = 34566 OR
zip = 52214 OR
zip = 73455 OR
zip = 52675 OR
zip = 54724 OR
zip = 98566 OR
zip = 92344 OR
zip = 90... | [
{
"answer_id": 377358,
"author": "Ben",
"author_id": 11522,
"author_profile": "https://Stackoverflow.com/users/11522",
"pm_score": 5,
"selected": false,
"text": "Select cols from MyTable where zip in (90210, 23310, ... etc.)\n"
},
{
"answer_id": 377367,
"author": "The Archety... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18749/"
] |
377,361 | <p>2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.</p>
<p>What is the sum of the digits of the number 2 power of 1000 (2^1000)?</p>
<p>Can anyone provide the solution or algorithm for this problem in java?</p>
| [
{
"answer_id": 377384,
"author": "Boojum",
"author_id": 37555,
"author_profile": "https://Stackoverflow.com/users/37555",
"pm_score": 3,
"selected": false,
"text": "java.math.BigInteger"
},
{
"answer_id": 377401,
"author": "soulmerge",
"author_id": 44562,
"author_prof... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377361",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40945/"
] |
377,362 | <p>I have a block of code that basically intializes several classes, but they are placed in a sequential order, as later ones reference early ones.</p>
<p>For some reason the last one initializes before the first one...it seems to me there is some sort of threading going on. What I need to know is how can I stop it fr... | [
{
"answer_id": 377384,
"author": "Boojum",
"author_id": 37555,
"author_profile": "https://Stackoverflow.com/users/37555",
"pm_score": 3,
"selected": false,
"text": "java.math.BigInteger"
},
{
"answer_id": 377401,
"author": "soulmerge",
"author_id": 44562,
"author_prof... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46981/"
] |
377,377 | <p>I have the following xsl that sorts my xml alphabetically:</p>
<pre><code><xsl:template match="/">
<xsl:apply-templates />
</xsl:template>
<xsl:key name="rows-by-title" match="Row" use="translate(substring(@Title,1,1),'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')" />
<xsl... | [
{
"answer_id": 380765,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 3,
"selected": true,
"text": "\"per-row\""
},
{
"answer_id": 381431,
"author": "Dimitre Novatchev",
"author_id": 36305,
"author_profi... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12318/"
] |
377,393 | <p>I got a templated control (a repeater) listing some text and other markup. Each item has a radiobutton associated with it, making it possible for the user to select ONE of the items created by the repeater.</p>
<p>The repeater writes the radiobutton setting its id and name generated with the default ASP.NET naming ... | [
{
"answer_id": 405414,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "function SetUniqueRadioButton(nameregex, current)\n{\n re = new RegExp(nameregex);\n for(i = 0; i < document.forms[0].elem... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11619/"
] |
377,400 | <p>Currently i'm using pretty much Unix + Mysql + Perl + Apache with some javascript to make it more ajax like. and i've been looking at sites which are web 2.0 and stackoverflow and really like the simple design and the smooth flow from pages and action, etc.</p>
<p>i'm trying to decide if learning catalyst, mason an... | [
{
"answer_id": 378573,
"author": "Brad Gilbert",
"author_id": 1337,
"author_profile": "https://Stackoverflow.com/users/1337",
"pm_score": 2,
"selected": false,
"text": "EVAL_PERL"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/377400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38124/"
] |
377,406 | <p>This is a really basic question but this is the first time I've used MATLAB and I'm stuck.
I need to simulate a simple series RC network using 3 different numerical integration techniques. I think I understand how to use the ode solvers, but I have no idea how to enter the differential equation of the system. Do I n... | [
{
"answer_id": 378293,
"author": "MatlabDoug",
"author_id": 46439,
"author_profile": "https://Stackoverflow.com/users/46439",
"pm_score": 3,
"selected": true,
"text": "function dy = rigid(t,y)\n"
}
] | 2008/12/18 | [
"https://Stackoverflow.com/questions/377406",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31168/"
] |
377,407 | <p>Assuming Windows, is there a way I can detect from within a batch file if it was launched from an open command prompt or by double-clicking? I'd like to add a pause to the end of the batch process if and only if it was double clicked, so that the window doesn't just disappear along with any useful output it may hav... | [
{
"answer_id": 377472,
"author": "foraidt",
"author_id": 27596,
"author_profile": "https://Stackoverflow.com/users/27596",
"pm_score": 0,
"selected": false,
"text": "-nopause"
},
{
"answer_id": 377933,
"author": "Patrick Cuff",
"author_id": 7903,
"author_profile": "ht... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33346/"
] |
377,417 | <p>A common mistake when configuring the compilation/linking/etc. settings in VC++ 2008 is to set them in Release but not Debug (or vice versa) rather than setting them for "All Configurations". Any suggestions on how to avoid this kind of mistake?</p>
<p>Some beginnings of ideas that I have:</p>
<ul>
<li><p>Find a w... | [
{
"answer_id": 377472,
"author": "foraidt",
"author_id": 27596,
"author_profile": "https://Stackoverflow.com/users/27596",
"pm_score": 0,
"selected": false,
"text": "-nopause"
},
{
"answer_id": 377933,
"author": "Patrick Cuff",
"author_id": 7903,
"author_profile": "ht... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377417",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38659/"
] |
377,423 | <p>I just started writing tests for a lot of code. There's a bunch of classes with dependencies to the file system, that is they read CSV files, read/write configuration files and so on.</p>
<p>Currently the test files are stored in the test directory of the project (it's a Maven2 project) but for several reasons this... | [
{
"answer_id": 377500,
"author": "jamesh",
"author_id": 4737,
"author_profile": "https://Stackoverflow.com/users/4737",
"pm_score": 2,
"selected": false,
"text": "/tmp"
},
{
"answer_id": 510649,
"author": "Wouter Lievens",
"author_id": 7927,
"author_profile": "https:/... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17473/"
] |
377,425 | <p>For learning and demonstrating, I need a macro which prints its parameter <strong>and</strong> evaluates it. I suspect it is a very common case, may be even a FAQ but I cannot find actual references.</p>
<p>My current code is:</p>
<pre><code>#define PRINT(expr) (fprintf(stdout, "%s -> %d\n", __STRING(expr), (ex... | [
{
"answer_id": 377441,
"author": "aib",
"author_id": 1088,
"author_profile": "https://Stackoverflow.com/users/1088",
"pm_score": 5,
"selected": true,
"text": "#include <stdlib.h>\n#include <stdio.h>\n\n#define STR(x) #x\n#define PRINT(expr) (fprintf(stdout, \"%s -> %d\\n\", STR(expr), (e... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377425",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15625/"
] |
377,454 | <p>How do I get my Python program to sleep for 50 milliseconds?</p>
| [
{
"answer_id": 377460,
"author": "Dan Olson",
"author_id": 33346,
"author_profile": "https://Stackoverflow.com/users/33346",
"pm_score": 7,
"selected": false,
"text": "time.sleep()"
},
{
"answer_id": 377463,
"author": "Will Boyce",
"author_id": 5757,
"author_profile":... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1816/"
] |
377,457 | <p>I have a rather large project developed on Sharepoint and Project Server, designed as a multi-tier application. I programmatically manage web parts on certain web part pages. According to the choices of the user in one of the web pages, appropriate web parts are added to the web part collection of another web part p... | [
{
"answer_id": 377460,
"author": "Dan Olson",
"author_id": 33346,
"author_profile": "https://Stackoverflow.com/users/33346",
"pm_score": 7,
"selected": false,
"text": "time.sleep()"
},
{
"answer_id": 377463,
"author": "Will Boyce",
"author_id": 5757,
"author_profile":... | 2008/12/18 | [
"https://Stackoverflow.com/questions/377457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1360/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.