qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
160,298 | <p>This is a part algorithm-logic question (how to do it), part implementation question (how to do it best!). I'm working with Django, so I thought I'd share with that.</p>
<p>In Python, it's worth mentioning that the problem is somewhat related to <a href="https://stackoverflow.com/questions/773/how-do-i-use-pythons-... | [
{
"answer_id": 161082,
"author": "Jonny Buchanan",
"author_id": 6760,
"author_profile": "https://Stackoverflow.com/users/6760",
"pm_score": 3,
"selected": true,
"text": "import itertools\n\ncars = [\n {'car': 'X2', 'mods': [1,2]},\n {'car': 'Y2', 'mods': [2]},\n {'car': 'W2', 'm... | 2008/10/01 | [
"https://Stackoverflow.com/questions/160298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19212/"
] |
160,304 | <p>I am using sybase database to query the daily transaction report. I had subquery within my script. </p>
<p>Here as it goes:</p>
<pre><code>SELECT orders.accountid ,items.x,etc
(SELECT charges.mistotal FROM charges where items.id = charges.id)
FROM items,orders
WHERE date = '2008-10-02'
</code></pre>
<p>Here I am ... | [
{
"answer_id": 160327,
"author": "Adam Pierce",
"author_id": 5324,
"author_profile": "https://Stackoverflow.com/users/5324",
"pm_score": 1,
"selected": false,
"text": "SELECT MAX(charges.mistotal) FROM charges WHERE items.id = charges.id\n"
},
{
"answer_id": 160338,
"author":... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14752/"
] |
160,313 | <p>I'm working on a project where I'm trying to avoid hard-coding DB IDs in a .NET service-oriented project. There are some instances where I <strong>need</strong> to set ID values through code but I don't want to just hard code the IDs since I've done that before and it lead to DB alignment nightmares when the auto-in... | [
{
"answer_id": 160446,
"author": "Vivek",
"author_id": 7418,
"author_profile": "https://Stackoverflow.com/users/7418",
"pm_score": 0,
"selected": false,
"text": "DayOfWeek ConvertToDayOfWeek(this String str)\n{\n return (DayOfWeek)Enum.Parse(typeof(DayOfWeek), str, true);\n}\n"
},
... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/392/"
] |
160,315 | <p>I'm trying to write a resolution selection dialog that pops up when a program first starts up. To prevent boring the user, I want to implement the fairly standard feature that you can turn off that dialog with a checkbox, but get it back by holding down the alt key at startup.</p>
<p>Unfortunately, there is no obvi... | [
{
"answer_id": 160806,
"author": "anjanb",
"author_id": 11142,
"author_profile": "https://Stackoverflow.com/users/11142",
"pm_score": 2,
"selected": false,
"text": "import java.awt.*;\nimport java.awt.event.*;\nimport javax.swing.JFrame;\n\npublic class LockingKeyDemo {\n static Toolk... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160315",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15255/"
] |
160,318 | <p>The kind of simulation game that I have in mind is the kind where you have things to build in various locations and workers/transporters that connect such locations.</p>
<p>Something more like the Settlers series.</p>
<p>Let's assume I don't want any graphics at the moment, <strong>that</strong> I think I can mana... | [
{
"answer_id": 160349,
"author": "Zarkonnen",
"author_id": 15255,
"author_profile": "https://Stackoverflow.com/users/15255",
"pm_score": 2,
"selected": false,
"text": "House"
},
{
"answer_id": 160356,
"author": "Community",
"author_id": -1,
"author_profile": "https://... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160318",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8167/"
] |
160,335 | <p>I've been playing with the .NET built in localization features and they seem to all rely on putting data in resx files. </p>
<p>But most systems can't rely on this because they are database driven. So how do you solve this issue? Is there a built in .NET way, or do you create a translations table in SQL and do it a... | [
{
"answer_id": 164253,
"author": "Kibbee",
"author_id": 1862,
"author_profile": "https://Stackoverflow.com/users/1862",
"pm_score": 2,
"selected": false,
"text": "Item (ItemID, ...)\nItemLocal (ItemID,LocaleID,....)\n Item (ItemID, ...)\nItem_ENUS (ItemID,....)\nItem_ENGB (ItemID,....)\n... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17176/"
] |
160,370 | <p>In svn, I have a branch which was created, say at revision 22334. Commits were then made on the branch.</p>
<p>How do I get a list of all files that were changed on the branch compared to what's on the trunk? I do not want to see files that were changed on the trunk between when the branch was created and "now".</p... | [
{
"answer_id": 160395,
"author": "andy",
"author_id": 21482,
"author_profile": "https://Stackoverflow.com/users/21482",
"pm_score": 7,
"selected": true,
"text": "svn diff -r 22334:HEAD --summarize <url of the branch>\n"
},
{
"answer_id": 5207017,
"author": "Robert Duchnik",
... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2601671/"
] |
160,373 | <pre><code>Function FillAdminAccount() As Boolean
FillAdminAccount = True
Try
SQLconn.ConnectionString = "connect timeout=9999999;" & _
"data source=" & DefaultIserver & ";" & _
"initial catalog=" & Defau... | [
{
"answer_id": 160396,
"author": "oglester",
"author_id": 2017,
"author_profile": "https://Stackoverflow.com/users/2017",
"pm_score": 1,
"selected": false,
"text": "as varchar) as 'userpassword'\n ...as varchar) as [userpassword] ..\n ...as varchar) as userpassword ..\n"
},
{
"an... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21963/"
] |
160,376 | <p>I've noticed that just in the last year or so, many major websites have made the same change to the way their pages are structured. Each has moved their Javascript files from being hosted on the same domain as the page itself (or a subdomain of that), to being hosted on a differently named domain.</p>
<h2>It's not ... | [
{
"answer_id": 160451,
"author": "Steve Jessop",
"author_id": 13005,
"author_profile": "https://Stackoverflow.com/users/13005",
"pm_score": 2,
"selected": false,
"text": "$ host j.imwx.com\nj.imwx.com CNAME twc.vo.llnwd.net\ntwc.vo.llnwd.net A 87.248.211.218\n... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4425/"
] |
160,391 | <p>I've got a ListBox control and I'm presenting a fixed number of ListBoxItem objects in a grid layout. So I've set my ItemsPanelTemplate to be a Grid.</p>
<p>I'm accessing the Grid from code behind to configure the RowDefinitions and ColumnDefinitions.</p>
<p>So far it's all working as I expect. I've got some custo... | [
{
"answer_id": 163728,
"author": "Joel B Fant",
"author_id": 22211,
"author_profile": "https://Stackoverflow.com/users/22211",
"pm_score": 1,
"selected": false,
"text": "DataTemplates ItemTemplate Style ItemContainerStyle ListBoxItem Panel Panel IValueConverters"
},
{
"answer_id"... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14537/"
] |
160,433 | <p>One of your team members has been appointed "technical lead" or "team lead" yet he is technically incompetent and lacks major leadership skills.</p>
<p>By technically incompetent, I mean that the person doesn't know the difference between an abstract class and an interface, doesn't understand why coupling should be... | [
{
"answer_id": 593500,
"author": "leppie",
"author_id": 15541,
"author_profile": "https://Stackoverflow.com/users/15541",
"pm_score": 1,
"selected": false,
"text": "public byte[] ReadBytes(string filename)\n{\n FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read);\n ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24346/"
] |
160,453 | <p>I have two tables: <code>foos</code> and <code>bars</code>, and there is a many-to-one relationship between them: each <code>foo</code> can have many <code>bars</code>. I also have a view <code>foobars</code>, which joins these two tables (its query is like <code>select foo.*, bar.id from foos, bars where bar.foo_id... | [
{
"answer_id": 160616,
"author": "Michał Niedźwiedzki",
"author_id": 2169,
"author_profile": "https://Stackoverflow.com/users/2169",
"pm_score": 2,
"selected": false,
"text": "foos bars bars foos CREATE TABLE foos (\n id SERIAL PRIMARY KEY,\n ....\n);\nCREATE TABLE bars (\n id S... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160453",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19922/"
] |
160,467 | <p>I need to create an ODBC link from an Access 2003 (Jet) database to a SQL Server hosted view which contains aliased field names containing periods such as:</p>
<pre><code>Seq.Group
</code></pre>
<p>In the SQL source behind the view, the field names are encased in square brackets...</p>
<pre><code>SELECT Table._Gr... | [
{
"answer_id": 161015,
"author": "Philippe Grondier",
"author_id": 11436,
"author_profile": "https://Stackoverflow.com/users/11436",
"pm_score": 0,
"selected": false,
"text": "SELECT Table._Group AS [Seq_Group]\n"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/160467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3469/"
] |
160,494 | <pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GenericCount
{
class Program
{
static int Count1<T>(T a) where T : IEnumerable<T>
{
return a.Count();
}
static void Main(string[] args)
{
... | [
{
"answer_id": 160570,
"author": "Darren Kopp",
"author_id": 77,
"author_profile": "https://Stackoverflow.com/users/77",
"pm_score": 3,
"selected": true,
"text": "static int Count1<T>(IEnumerable<T> a)\n{\n return a.Count();\n}\n"
},
{
"answer_id": 160584,
"author": "Jon C... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160494",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
160,497 | <p>I'm using subversion (TortoiseSVN) and I want to remove the .svn folders from my project for deployment, is there an automated way of doing this using subversion or do I have to create a custom script for this?</p>
| [
{
"answer_id": 160502,
"author": "Doug T.",
"author_id": 8123,
"author_profile": "https://Stackoverflow.com/users/8123",
"pm_score": 5,
"selected": false,
"text": "svn export <url-to-repo> <dest-path>\n"
},
{
"answer_id": 160503,
"author": "nobody",
"author_id": 19405,
... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1368/"
] |
160,514 | <p>Are there are good uses of Partial Classes outside the webforms/winforms generated code scenarios? Or is this feature basically to support that?</p>
| [
{
"answer_id": 160825,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 0,
"selected": false,
"text": "#region"
},
{
"answer_id": 228442,
"author": "David Boike",
"author_id": 10039,
"author_profile": "h... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3208/"
] |
160,519 | <p>Can this be done w/ linqtosql?</p>
<pre><code>SELECT City, SUM(DATEDIFF(minute,StartDate,Completed)) AS Downtime
FROM Incidents
GROUP BY City
</code></pre>
| [
{
"answer_id": 160825,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 0,
"selected": false,
"text": "#region"
},
{
"answer_id": 228442,
"author": "David Boike",
"author_id": 10039,
"author_profile": "h... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3396/"
] |
160,532 | <p>I want to export the contents of several tables from MSAccess2003.
The tables contain unicode Japanese characters.
I want to store them as tilde delimited text files.</p>
<p>I can do this manually using File/Export and, in the 'Advanced' dialog selecting tilde as Field Delimiter and the Unicode as the Code Page.</... | [
{
"answer_id": 161017,
"author": "Richard A",
"author_id": 24355,
"author_profile": "https://Stackoverflow.com/users/24355",
"pm_score": 0,
"selected": false,
"text": "ColNameHeader = True\nCharacterSet = Unicode\nFormat = Delimited(~)\n"
},
{
"answer_id": 172881,
"author": "... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24355/"
] |
160,534 | <p>I need to get the "td" element of a table. I do not have the ability to add a mouseover or onclick event to the "td" element, so I need to add them with JQUERY.</p>
<p>I need JQUERY to add the mouseover and onclick event to the all "td" elements in the table.</p>
<p>Thats what I need, maybe someone can help me ou... | [
{
"answer_id": 160547,
"author": "yfeldblum",
"author_id": 12349,
"author_profile": "https://Stackoverflow.com/users/12349",
"pm_score": 6,
"selected": true,
"text": "$(function() {\n $(\"table#mytable td\").mouseover(function() {\n //The onmouseover code\n }).click(function... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7644/"
] |
160,550 | <p>I thought people would be working on little code projects together, but I don't see them, so here's an easy one:</p>
<p>Code that validates a valid US Zip Code. I know there are ZIP code databases out there, but there are still uses, like web pages, quick validation, and also the fact that zip codes keep getting is... | [
{
"answer_id": 160583,
"author": "keparo",
"author_id": 19468,
"author_profile": "https://Stackoverflow.com/users/19468",
"pm_score": 7,
"selected": true,
"text": "/(^\\d{5}$)|(^\\d{5}-\\d{4}$)/ var isValidZip = /(^\\d{5}$)|(^\\d{5}-\\d{4}$)/.test(\"90210\");\n"
},
{
"answer_id":... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160550",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2910/"
] |
160,555 | <p>Here's the situation:
I'm developing a simple application with the following structure:</p>
<ul>
<li>FormMain (startup point)</li>
<li>FormNotification</li>
<li>CompleFunctions</li>
</ul>
<p>Right?</p>
<p>Well, in <strong>FormMain</strong> I have the following function:</p>
<pre><code>private void DoItInNewThrea... | [
{
"answer_id": 3712806,
"author": "Andranik",
"author_id": 447778,
"author_profile": "https://Stackoverflow.com/users/447778",
"pm_score": 0,
"selected": false,
"text": "Form1 private void button1_Click(object sender, EventArgs e)\n{\n Thread t = new Thread(new ThreadStart(this.ShowFo... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4386/"
] |
160,557 | <p>I have a Selenium test case that enters dates into a date selector made up of three pulldowns (year, month, and day). </p>
<pre><code>select validity_Y label=2008
select validity_M label=08
select validity_D label=08
</code></pre>
<p>This part gets repeated a lot throughout the test case. I'd like to reduce it by ... | [
{
"answer_id": 3712806,
"author": "Andranik",
"author_id": 447778,
"author_profile": "https://Stackoverflow.com/users/447778",
"pm_score": 0,
"selected": false,
"text": "Form1 private void button1_Click(object sender, EventArgs e)\n{\n Thread t = new Thread(new ThreadStart(this.ShowFo... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14955/"
] |
160,587 | <p>I'm using <code>Console.WriteLine()</code> from a very simple WPF test application, but when I execute the application from the command line, I'm seeing nothing being written to the console. Does anyone know what might be going on here?</p>
<p>I can reproduce it by creating a WPF application in VS 2008, and simply a... | [
{
"answer_id": 160606,
"author": "Phobis",
"author_id": 19854,
"author_profile": "https://Stackoverflow.com/users/19854",
"pm_score": 8,
"selected": false,
"text": "Trace.WriteLine(\"text\");\n using System.Diagnostics;\n"
},
{
"answer_id": 718505,
"author": "John Leidegren",... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18505/"
] |
160,604 | <p>I'm trying to combine a list of functions like so.</p>
<p>I have this:</p>
<pre><code>Func<int, bool>[] criteria = new Func<int, bool>[3];
criteria[0] = i => i % 2 == 0;
criteria[1] = i => i % 3 == 0;
criteria[2] = i => i % 5 == 0;
</code></pre>
<p>And I want this:</p>
<pre><code>Func<int... | [
{
"answer_id": 160661,
"author": "Brian",
"author_id": 19299,
"author_profile": "https://Stackoverflow.com/users/19299",
"pm_score": 3,
"selected": true,
"text": "Func<int, bool>[] criteria = new Func<int, bool>[3]; \ncriteria[0] = i => i % 2 == 0; \ncriteria[1] = i => i % 3 == 0; \ncrit... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3820/"
] |
160,608 | <p>I've been wondering whether there is a good "git export" solution that creates a copy of a tree without the <code>.git</code> repository directory. There are at least three methods I know of:</p>
<ol>
<li><code>git clone</code> followed by removing the <code>.git</code> repository directory.</li>
<li><a hr... | [
{
"answer_id": 160620,
"author": "jperras",
"author_id": 5570,
"author_profile": "https://Stackoverflow.com/users/5570",
"pm_score": 5,
"selected": false,
"text": "$ git checkout-index --prefix=git-export-dir/ -a"
},
{
"answer_id": 160719,
"author": "Greg Hewgill",
"autho... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160608",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/893/"
] |
160,611 | <p>I'm trying to unit test (JUnit) a DAO i've created. I'm using Spring as my framework, my DAO (JdbcPackageDAO) extends SimpleJdbcDaoSupport. The testing class (JdbcPackageDAOTest) extends AbstractTransactionalDataSourceSpringContextTests. I've overridden the configLocations as follows:</p>
<pre><code>protected St... | [
{
"answer_id": 160627,
"author": "Max Stewart",
"author_id": 18338,
"author_profile": "https://Stackoverflow.com/users/18338",
"pm_score": 2,
"selected": false,
"text": "jdbc:hsqldb:hsql://serverName:port/DBname\n"
},
{
"answer_id": 161220,
"author": "NR.",
"author_id": 1... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17337/"
] |
160,614 | <p>I have a Dynamic Data website built in Visual Studio 2008 using .NET 3.5 SP1. The site works OK on my Vista machine, but I get the following error when running it on a Windows XP machine:</p>
<blockquote>
<p>Server Error in '/FlixManagerWeb'
Application.
------------------------------------------------------... | [
{
"answer_id": 160627,
"author": "Max Stewart",
"author_id": 18338,
"author_profile": "https://Stackoverflow.com/users/18338",
"pm_score": 2,
"selected": false,
"text": "jdbc:hsqldb:hsql://serverName:port/DBname\n"
},
{
"answer_id": 161220,
"author": "NR.",
"author_id": 1... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2762/"
] |
160,633 | <p>Why are flat text files the state of the art for representing source code?</p>
<p>Sure - the preprocessor and compiler need to see a flat file representation of the file, but that's easily created.</p>
<p>It seems to me that some form of XML or binary data could represent lots of ideas that are very difficult to t... | [
{
"answer_id": 1535445,
"author": "Rebol Tutorial",
"author_id": 2687173,
"author_profile": "https://Stackoverflow.com/users/2687173",
"pm_score": 0,
"selected": false,
"text": "In pursuing (interests of) software\n developers,'' says Alsop, Asymetrix\n "
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/160633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8643/"
] |
160,650 | <p>Is there a way to run some custom Javascript whenever a client-side ASP.NET validator (<code>RequiredFieldValidator</code>, <code>RangeValidator</code>, etc) is triggered? </p>
<p>Basically, I have a complicated layout that requires I run a custom script whenever a DOM element is shown or hidden. I'm looking for a ... | [
{
"answer_id": 160844,
"author": "Leon Tayson",
"author_id": 18413,
"author_profile": "https://Stackoverflow.com/users/18413",
"pm_score": 0,
"selected": false,
"text": "function customValidation()\n{\n Page_ClientValidate();\n if(!Page_IsValid)\n { //run your resize script }\n}... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23632/"
] |
160,651 | <p>I would like to provide downloadable files to website users, but want to hide the URL of the files from the user... I'm thinking an HTTPHandler could do the trick, but is it possible to retrieve a file from an external server and stream it to the user?</p>
<p>Perhaps somebody can give me a hint at how to accomplish... | [
{
"answer_id": 160690,
"author": "Carlton Jenke",
"author_id": 1215,
"author_profile": "https://Stackoverflow.com/users/1215",
"pm_score": 0,
"selected": false,
"text": "public class ZipDownloadModule: IHttpHandler, ICompressFilesView, IErrorView \n{\n CompressFilesPresenter _presente... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160651",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21969/"
] |
160,666 | <p>I'd like to have an HTML page which displays a single PNG or JPEG image. I want the image to take up the whole screen but when I do this:</p>
<pre><code><img src="whatever.jpeg" width="100%" height="100%" />
</code></pre>
<p>It just stretches the image and messes up the aspect rat... | [
{
"answer_id": 160674,
"author": "Franci Penov",
"author_id": 17028,
"author_profile": "https://Stackoverflow.com/users/17028",
"pm_score": 2,
"selected": false,
"text": "<img src=\"whatever.jpeg\" width=\"100%\" height=\"auto\" />\n"
},
{
"answer_id": 160717,
"author": "Wayn... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5324/"
] |
160,691 | <p>How do you know if the HTTP compression setup is working? Is there any tool I can use to see the compressed page before it is uncompressed by the browser? Are there any tools to measure the amount compressed and response speed?</p>
| [
{
"answer_id": 18152731,
"author": "bcattle",
"author_id": 1161906,
"author_profile": "https://Stackoverflow.com/users/1161906",
"pm_score": 4,
"selected": false,
"text": "curl -H 'Accept-Encoding: gzip,deflate' -D - http://example.com\n Content-Encoding: gzip"
},
{
"answer_id": ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160691",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17071/"
] |
160,694 | <p>What Javascript libraries can you recommend for syntax highlighting <code> blocks in HTML?</p>
<p>(One suggestion per answer please).</p>
| [
{
"answer_id": 160768,
"author": "Edu Felipe",
"author_id": 21648,
"author_profile": "https://Stackoverflow.com/users/21648",
"pm_score": 3,
"selected": false,
"text": "$(\"code\").chili();\n"
},
{
"answer_id": 3359393,
"author": "balupton",
"author_id": 130638,
"auth... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17453/"
] |
160,697 | <p>I personally like the <em>exclusive or</em>, <code>^</code>, operator when it makes sense in the context of boolean checks because of its conciseness. I much prefer to write</p>
<pre><code>if (boolean1 ^ boolean2)
{
//do it
}
</code></pre>
<p>than</p>
<pre><code>if((boolean1 && !boolean2) || (boolean2 ... | [
{
"answer_id": 160700,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 9,
"selected": true,
"text": "!="
},
{
"answer_id": 160701,
"author": "Dre",
"author_id": 23033,
"author_profile": "https://Stackoverflow... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17123/"
] |
160,724 | <p>I'm working on a Google App Engine project. </p>
<p>My app is working and looking correct locally, but when I try to upload images in an image directory, they're not being displayed at appspot.</p>
<p>As a little troubleshoot, I put a HTML page in "/images/page2.html" and I can load that page at the appspot, but m... | [
{
"answer_id": 211073,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "<img src=\"/images/img.gif\">\n class GetImage(webapp.RequestHandler):\n def get(self):\n self.response.headers['Co... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1179/"
] |
160,726 | <p>I have been thinking a lot about unit testing and how to improve the readability of the unit tests. I thought why not give a character to the classes in the unit test to clarify what they do. </p>
<p>Here is a simple unit test that I wrote: </p>
<pre><code>[TestFixture]
public class when_dave_transfers_money_f... | [
{
"answer_id": 160738,
"author": "Gishu",
"author_id": 1695,
"author_profile": "https://Stackoverflow.com/users/1695",
"pm_score": 2,
"selected": false,
"text": "private Dave GetDave_With_Wamu_And_Woodforest_AccountsHookedUp()\n"
},
{
"answer_id": 160743,
"author": "azamsharp... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160726",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3797/"
] |
160,737 | <p>I would like to create a Crystal Reports report using pre-existing LINQ classes that live in a different project than where the report lives. I can't find a way to do this. I'm using VS2008.</p>
<p>Whenever I expand the "Project Data" tree, I see only classes in my current project. The "History" tree shows me th... | [
{
"answer_id": 160738,
"author": "Gishu",
"author_id": 1695,
"author_profile": "https://Stackoverflow.com/users/1695",
"pm_score": 2,
"selected": false,
"text": "private Dave GetDave_With_Wamu_And_Woodforest_AccountsHookedUp()\n"
},
{
"answer_id": 160743,
"author": "azamsharp... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
160,742 | <p>I'm trying to generate some code at runtime where I put in some boiler-plate stuff and the user is allowed to enter the actual working code. My boiler-plate code looks something like this:</p>
<pre><code>using System;
public class ClassName
{
public double TheFunction(double input)
{
// user enter... | [
{
"answer_id": 160747,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 6,
"selected": true,
"text": "string s = String.Format(\"{{ hello to all }}\");\nConsole.WriteLine(s); //prints '{ hello to all }'\n"
},
{
"a... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4797/"
] |
160,776 | <p>For my server app, I need to check if an ip address is in our blacklist. </p>
<p>What is the most efficient way of comparing ip addresses? Would converting the IP address to integer and comparing them efficient?</p>
| [
{
"answer_id": 160794,
"author": "Mark Glorie",
"author_id": 952,
"author_profile": "https://Stackoverflow.com/users/952",
"pm_score": 2,
"selected": false,
"text": "Sort() Find()"
},
{
"answer_id": 61115899,
"author": "gsaandy",
"author_id": 1419876,
"author_profile"... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1599/"
] |
160,791 | <p>Maybe this is a dumb question, but I have the following behavior in Visual Studio 2005 while designing forms:</p>
<p>1 - Drop a control onto the form (suppose it's a Label, just for discussion)</p>
<p>2 - Drag that label to a specific location (aligning w/other controls, whatever)</p>
<p>3 - Release the mouse but... | [
{
"answer_id": 160794,
"author": "Mark Glorie",
"author_id": 952,
"author_profile": "https://Stackoverflow.com/users/952",
"pm_score": 2,
"selected": false,
"text": "Sort() Find()"
},
{
"answer_id": 61115899,
"author": "gsaandy",
"author_id": 1419876,
"author_profile"... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/672/"
] |
160,813 | <p>I have a few 'helper' style extension methods I use quite regularly now <em>(they are mostly quite simple, intuitive, and work for good not evil, so please don't have this descend into a discussion around whether or not I should use them).</em> They are largely extending core .NET CLR classes.</p>
<p>Currently, I h... | [
{
"answer_id": 15844040,
"author": "Csaba Toth",
"author_id": 292502,
"author_profile": "https://Stackoverflow.com/users/292502",
"pm_score": 0,
"selected": false,
"text": "ObservableCollection ReplaceRange error CS1061: 'System.Collections.ObjectModel.ObservableCollection<WhateverDto>' ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5302/"
] |
160,834 | <p>I am a member of a team that is about to launch a beta of a python (Django specifically) based web site and accompanying suite of backend tools. The team itself has doubled in size from 2 to 4 over the past few weeks and we expect continued growth for the next couple of months at least. One issue that has started ... | [
{
"answer_id": 4060962,
"author": "Brandon Rhodes",
"author_id": 85360,
"author_profile": "https://Stackoverflow.com/users/85360",
"pm_score": 2,
"selected": false,
"text": "develop.py packages .tar.gz virtualenv develop.py"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/160834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2168/"
] |
160,848 | <p>Does the compiler optimize out any multiplications by 1? That is, consider:</p>
<pre><code>int a = 1;
int b = 5 * a;
</code></pre>
<p>Will the expression 5 * a be optimized into just 5? If not, will it if a is defined as:</p>
<pre><code>const int a = 1;
</code></pre>
| [
{
"answer_id": 160850,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 5,
"selected": true,
"text": "const .maxstack 2\n.locals init ([0] int32, [1] int32)\n\nldc.i4.1 //load 1\nstloc.0 //store in 1st local variable\n... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16942/"
] |
160,859 | <p>I understand what are lambda functions in Python, but I can't find what is the meaning of "lambda binding" by searching the Python docs.
A link to read about it would be great.
A trivial explained example would be even better.
Thank you.</p>
| [
{
"answer_id": 160884,
"author": "Dan Lenski",
"author_id": 20789,
"author_profile": "https://Stackoverflow.com/users/20789",
"pm_score": 1,
"selected": false,
"text": "a = dict(foo=\"bar\", zip=\"zap\", zig=\"zag\") # binds a to a newly-created dict object\nb = a # binds b to that same ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15073/"
] |
160,874 | <p>I'm looking for software to create PNG8 format transparent images as per <a href="http://www.sitepoint.com/blogs/2007/09/18/png8-the-clear-winner/" rel="nofollow noreferrer">this article</a>.</p>
<p><strong>NOTE:</strong> I need a Linux solution myself, but please submit answers for other OSes.</p>
| [
{
"answer_id": 342328,
"author": "mercator",
"author_id": 23263,
"author_profile": "https://Stackoverflow.com/users/23263",
"pm_score": 1,
"selected": false,
"text": "/c3 -c3"
},
{
"answer_id": 1143914,
"author": "Ben Hardy",
"author_id": 59441,
"author_profile": "htt... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160874",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/486/"
] |
160,876 | <p>I have a (from what I can tell) perfectly working Linux setup (Ubuntu 8.04) where all tools (nslookup, curl, wget, firefox, etc) are able to resolve addresses. Yet, the following code fails:</p>
<pre><code>$s = new IO::Socket::INET(
PeerAddr => 'stackoverflow.com',
PeerPort => 80,
Proto => 'tcp... | [
{
"answer_id": 160907,
"author": "oz10",
"author_id": 14069,
"author_profile": "https://Stackoverflow.com/users/14069",
"pm_score": -1,
"selected": false,
"text": "use IO::Socket::INET;\n use Net::DNS;\n\nmy $res = Net::DNS::Resolver->new;\n\n# Perform a lookup, using the searchlist if a... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1265/"
] |
160,881 | <p>So this is a question for anyone who has had to integrate the building/compilation of legacy projects/code in a Team Build/MSBuild environment - specifically, Visual Basic 6 applications/projects.</p>
<p><i>Outside</i> of writing a custom build Task (which I am not against) does anyone have any suggestions on how b... | [
{
"answer_id": 160907,
"author": "oz10",
"author_id": 14069,
"author_profile": "https://Stackoverflow.com/users/14069",
"pm_score": -1,
"selected": false,
"text": "use IO::Socket::INET;\n use Net::DNS;\n\nmy $res = Net::DNS::Resolver->new;\n\n# Perform a lookup, using the searchlist if a... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18471/"
] |
160,889 | <p>Here's the deal. Is there a way to have strings tokenized in a line based on multiple regexes?</p>
<p>One example:</p>
<p>I have to get all href tags, their corresponding text and some other text based on a different regex.
So I have 3 expressions and would like to tokenize the line and extract tokens of text matc... | [
{
"answer_id": 160895,
"author": "Swaroop C H",
"author_id": 4869,
"author_profile": "https://Stackoverflow.com/users/4869",
"pm_score": 2,
"selected": false,
"text": "from pyparsing import Word, alphas\ngreet = Word( alphas ) + \",\" + Word( alphas ) + \"!\" # <-- grammar defined here\n... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24382/"
] |
160,890 | <p>I'm a Java head mainly, and I want a way to generate a pseudo-random number between 0 and 74. In Java I would use the method:</p>
<pre><code>Random.nextInt(74)
</code></pre>
<p>I'm not interested in a discussion about seeds or true randomness, just how you accomplish the same task in Objective-C. I've scoured Goog... | [
{
"answer_id": 160910,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 6,
"selected": false,
"text": "#include <time.h>\n#include <stdlib.h>\n...\nsrand(time(NULL));\nint r = rand() % 74;\n random() arc4random() rand()"
},
{... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6044/"
] |
160,904 | <p>I have to write a component that re-creates SQL Server tables (structure and data) in an Oracle database. This component also has to take new data entered into the Oracle database and copy it back into SQL Server.</p>
<p>Translating the data types from SQL Server to Oracle is not a problem. However, a critical di... | [
{
"answer_id": 160933,
"author": "Camilo Díaz Repka",
"author_id": 861,
"author_profile": "https://Stackoverflow.com/users/861",
"pm_score": 4,
"selected": true,
"text": "-> ' '"
},
{
"answer_id": 161001,
"author": "Dr8k",
"author_id": 6014,
"author_profile": "https:/... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160904",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14606/"
] |
160,905 | <p>I'm working on what I think is a pretty standard django site, but am having trouble getting my admin section to display the proper fields.</p>
<p>Here's my models.py:</p>
<pre><code>class Tech(models.Model):
name = models.CharField(max_length = 30)
class Project(models.Model):
title = models.CharField(max... | [
{
"answer_id": 160916,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 3,
"selected": true,
"text": "TechInline TechInLine python manage.py sqlreset <myapp>\n projects_project_techs"
},
{
"answer_id": 162932,
... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/736/"
] |
160,923 | <p>I am pretty sure I have seen this before, but I haven't found out / remembered how to do it. I want to have a line of code that when executed from the Delphi debugger I want the debugger to pop-up like there was a break point on that line. </p>
<p>Something like:</p>
<pre><code>FooBar := Foo(Bar);
SimulateBreakP... | [
{
"answer_id": 160993,
"author": "Joeri Sebrechts",
"author_id": 20980,
"author_profile": "https://Stackoverflow.com/users/20980",
"pm_score": 6,
"selected": true,
"text": "asm int 3 end;\n"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/160923",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/255/"
] |
160,924 | <p>Sometimes when I try to start Firefox it says "a Firefox process is already running". So I have to do this:</p>
<pre><code>jeremy@jeremy-desktop:~$ ps aux | grep firefox
jeremy 7451 25.0 27.4 170536 65680 ? Sl 22:39 1:18 /usr/lib/firefox-3.0.1/firefox
jeremy 7578 0.0 0.3 3004 768 pts/0 S+ ... | [
{
"answer_id": 160926,
"author": "shoosh",
"author_id": 9611,
"author_profile": "https://Stackoverflow.com/users/9611",
"pm_score": 10,
"selected": true,
"text": "pkill firefox\n"
},
{
"answer_id": 160928,
"author": "Bittercoder",
"author_id": 4843,
"author_profile": ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160924",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/813/"
] |
160,930 | <p>How can I check if a given number is even or odd in C?</p>
| [
{
"answer_id": 160935,
"author": "Chris Young",
"author_id": 9417,
"author_profile": "https://Stackoverflow.com/users/9417",
"pm_score": 10,
"selected": true,
"text": "if (x % 2) { /* x is odd */ }\n /* modulo.c */\n#include <stdio.h>\n\nint main(void)\n{\n int x;\n for (x = 0; x <... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24391/"
] |
160,954 | <p>I have a Rails project which has a Postgres database for the actual application but which needs to pull a heck of a lot of data out of an Oracle database. </p>
<p>database.yml looks like</p>
<pre><code>development:
adapter: postgresql
database: blah blah
...
oracle_db:
adapter: oracle
database: blah bl... | [
{
"answer_id": 160989,
"author": "James Baker",
"author_id": 9365,
"author_profile": "https://Stackoverflow.com/users/9365",
"pm_score": 3,
"selected": true,
"text": "models/legacy_model.rb \"require 'LegacyDataClass'\""
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/160954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15046/"
] |
160,960 | <p>I have a function that takes a struct, and I'm trying to store its variables in array:</p>
<pre><code>int detect_prm(Param prm) {
int prm_arr[] = {prm.field1, prm.field2, prm.field3};
return 0;
}
</code></pre>
<p>But with <code>gcc -Wall -ansi -pedantic-errors -Werror</code> I get the following error:</p>
<b... | [
{
"answer_id": 160969,
"author": "Mike Thompson",
"author_id": 2754,
"author_profile": "https://Stackoverflow.com/users/2754",
"pm_score": 5,
"selected": true,
"text": "int prm_arr[3];\n\nprm_arr[0] = prm.field1;\nprm_arr[1] = prm.field2;\nprm_arr[2] = prm.field3;\n"
},
{
"answer... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9628/"
] |
160,970 | <p>If I have two variables:</p>
<pre><code>Object obj;
String methodName = "getName";
</code></pre>
<p>Without knowing the class of <code>obj</code>, how can I call the method identified by <code>methodName</code> on it?</p>
<p>The method being called has no parameters, and a <code>String</code> return value. It's <... | [
{
"answer_id": 160976,
"author": "Owen",
"author_id": 11442,
"author_profile": "https://Stackoverflow.com/users/11442",
"pm_score": 8,
"selected": false,
"text": "Class<?> c = Class.forName(\"class name\");\nMethod method = c.getDeclaredMethod(\"method name\", parameterTypes);\nmethod.in... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160970",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6340/"
] |
160,971 | <p>I've read some of the recent language vs. language questions with interest... <a href="https://stackoverflow.com/questions/150043/python-v-perl#150103">Perl vs. Python</a>, <a href="https://stackoverflow.com/questions/136977/after-c-python-or-java#137343">Python vs. Java</a>, <a href="https://stackoverflow.com/quest... | [
{
"answer_id": 160996,
"author": "Michael Petrotta",
"author_id": 23897,
"author_profile": "https://Stackoverflow.com/users/23897",
"pm_score": 3,
"selected": false,
"text": "throws"
},
{
"answer_id": 160997,
"author": "LeopardSkinPillBoxHat",
"author_id": 22489,
"aut... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160971",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20789/"
] |
160,974 | <p>Basically I have the following class:</p>
<pre><code>class StateMachine {
...
StateMethod stateA();
StateMethod stateB();
...
};
</code></pre>
<p>The methods stateA() and stateB() should be able return pointers to stateA() and stateB().
How to typedef the StateMethod?</p>
| [
{
"answer_id": 161000,
"author": "1800 INFORMATION",
"author_id": 3146,
"author_profile": "https://Stackoverflow.com/users/3146",
"pm_score": 2,
"selected": false,
"text": "class X\n{\n public:\n typedef const boost::function0<Method> Method;\n\n // some kind of mutually recursive... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160974",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1692070/"
] |
160,995 | <p>I tried this XAML:</p>
<pre><code><Slider Width="250" Height="25" Minimum="0" Maximum="1" MouseLeftButtonDown="slider_MouseLeftButtonDown" MouseLeftButtonUp="slider_MouseLeftButtonUp" />
</code></pre>
<p>And this C#:</p>
<pre><code>private void slider_MouseLeftButtonDown(object sender, MouseButtonEventArgs ... | [
{
"answer_id": 168928,
"author": "cplotts",
"author_id": 22294,
"author_profile": "https://Stackoverflow.com/users/22294",
"pm_score": 4,
"selected": false,
"text": "this.AddHandler\n(\n Slider.MouseLeftButtonDownEvent,\n new MouseButtonEventHandler(slider_MouseLeftButtonDown),\n ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/160995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23939/"
] |
161,022 | <p>I have some styles applied to html for example </p>
<pre><code><body style="background: #C3DAF9;">
</code></pre>
<p>and when I use forms authentication it is ignored. If I put the style into an external .css file then it works. </p>
<p>This doesn't seem like normal behaviour to me. </p>
| [
{
"answer_id": 161501,
"author": "Errico Malatesta",
"author_id": 24439,
"author_profile": "https://Stackoverflow.com/users/24439",
"pm_score": -1,
"selected": false,
"text": "<body bgcolor=\"#C3DAF9\">\n"
},
{
"answer_id": 165385,
"author": "Stephen Price",
"author_id": ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24395/"
] |
161,027 | <p>Let's say I am modelling a process that involves a conversation or exchnage between two actors. For this example, I'll use something easily understandable:-</p>
<ol>
<li>Supplier creates a price list,</li>
<li>Buyer chooses some items to buy and sends a Purchase Order,</li>
<li>Supplier receives the purchase order... | [
{
"answer_id": 161501,
"author": "Errico Malatesta",
"author_id": 24439,
"author_profile": "https://Stackoverflow.com/users/24439",
"pm_score": -1,
"selected": false,
"text": "<body bgcolor=\"#C3DAF9\">\n"
},
{
"answer_id": 165385,
"author": "Stephen Price",
"author_id": ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14663/"
] |
161,030 | <p>In .NET is there a way to enable Assembly.Load tracing? I know while running under the debugger it gives you a nice message like "Loaded 'assembly X'" but I want to get a log of the assembly loads of my running application outside the debugger, preferably intermingled with my Debug/Trace log messages. </p>
<p>I'm t... | [
{
"answer_id": 161035,
"author": "Jeff Yates",
"author_id": 23234,
"author_profile": "https://Stackoverflow.com/users/23234",
"pm_score": 5,
"selected": true,
"text": "AppDomain.CurrentDomain.AssemblyLoad += new AssemblyLoadEventHandler(OnAssemblyLoad);\n"
},
{
"answer_id": 15788... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161030",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12784/"
] |
161,048 | <p>I am trying to send an email from a site I am building, but it ends up in the yahoo spam folder. It is the email that sends credentials. What can I do to legitimize it?</p>
<pre><code>$header = "From: site <sales@site.com>\r\n";
$header .= "To: $name <$email>\r\n";
$header .= "Subject: $subject\r\n";
$h... | [
{
"answer_id": 2194725,
"author": "jschrab",
"author_id": 12694,
"author_profile": "https://Stackoverflow.com/users/12694",
"pm_score": 2,
"selected": false,
"text": "mail('recipient@domain.com', 'Subject', $mail_body, $headers, \" -f sender@domain.com\");\n"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/161048",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3800/"
] |
161,053 | <p>This question may sound fairly elementary, but this is a debate I had with another developer I work with.</p>
<p>I was taking care to stack allocate things where I could, instead of heap allocating them. He was talking to me and watching over my shoulder and commented that it wasn't necessary because they are the s... | [
{
"answer_id": 161073,
"author": "Dan Lenski",
"author_id": 20789,
"author_profile": "https://Stackoverflow.com/users/20789",
"pm_score": 7,
"selected": false,
"text": "sub esp, 0x10\n"
},
{
"answer_id": 163765,
"author": "Max Lybbert",
"author_id": 10593,
"author_pro... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1366/"
] |
161,056 | <p>Is there a CSS editor which automatically expands one-line declarations as multi-line declarations on focus ? To clarify my thought, see example below:</p>
<p>Original CSS:</p>
<pre><code>div#main { color: orange; margin: 1em 0; border: 1px solid black; }
</code></pre>
<p>But when focusing on it, editor automatic... | [
{
"answer_id": 162432,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "https://Stackoverflow.com/users/15459",
"pm_score": 0,
"selected": false,
"text": "function ExpandContractCSS()\n local ext = string.lower(props[\"FileExt\"])\n if ext ~= \"css\" then return end\n local ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
161,064 | <p>I'm running autoconf and configure sets SHELL to '/bin/sh'.
This creates huge problems. How to force SHELL to be '/bin/bash' for autoconf?</p>
<p>I'm trying to get this running on osx, it's working on linux. Linux is using SHELL=/bin/bash. osx defaults to /bin/sh.</p>
| [
{
"answer_id": 161070,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": -1,
"selected": false,
"text": "ln -f /bin/bash /bin/sh"
},
{
"answer_id": 161071,
"author": "T Percival",
"author_id": 954,
"author_pr... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15054/"
] |
161,074 | <p>Currently running Server 2003 but am looking at reinstalling in the near future due to a change of direction with the domains. Should I take this opportunity to install Windows Server 2008 instead?
I would love to play with new technology and the server is only for a small home business so downtime/performance issue... | [
{
"answer_id": 161780,
"author": "Mike Dimmick",
"author_id": 6970,
"author_profile": "https://Stackoverflow.com/users/6970",
"pm_score": 0,
"selected": false,
"text": "/3GB"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/161074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23988/"
] |
161,084 | <p>I was just wondering if anyone knew of a good way that I could parse the file at the bottom of the post.</p>
<p>I have a database setup with the correct tables for each section eg Refferal Table,Caller Table,Location Table. Each table has the same columns that are show in the file below</p>
<p>I would really like ... | [
{
"answer_id": 161152,
"author": "pbh101",
"author_id": 1266,
"author_profile": "https://Stackoverflow.com/users/1266",
"pm_score": 2,
"selected": false,
"text": "split() = test1.txt"
},
{
"answer_id": 224550,
"author": "Hafthor",
"author_id": 4489,
"author_profile": ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6335/"
] |
161,093 | <p>I have a table that looks like that:</p>
<p><img src="https://i.stack.imgur.com/R0TIr.jpg" alt="alt text"></p>
<p>The rows are sorted by CLNDR_DATE DESC.</p>
<p>I need to find a CLNDR_DATE that corresponds to the highlighted row, in other words:<br>
Find the topmost group of rows WHERE EFFECTIVE_DATE IS NOT NULL,... | [
{
"answer_id": 161105,
"author": "Jonathan Lonowski",
"author_id": 15031,
"author_profile": "https://Stackoverflow.com/users/15031",
"pm_score": 4,
"selected": true,
"text": "SELECT min(CLNDR_DATE) FROM [TABLE]\nWHERE (EFFECTIVE_DATE IS NOT NULL)\n AND (CLNDR_DATE > (\n SELECT max(CL... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10557/"
] |
161,108 | <p>I've been developing web applications for a while and i am quite comfortable with mySql, in fact as many do i use some form of SQL almost every day. I like the syntax and a have zero problems writing queries or optimizing my tables. I have enjoyed this mysql <a href="http://www.tmtm.org/en/mysql/ruby/" rel="nofoll... | [
{
"answer_id": 162267,
"author": "François Beausoleil",
"author_id": 7355,
"author_profile": "https://Stackoverflow.com/users/7355",
"pm_score": 3,
"selected": true,
"text": "Post.find(1)\n SELECT * FROM posts WHERE posts.id = 1\n class Post < ActiveRecord::Base\n validates_presence_of ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161108",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18159/"
] |
161,123 | <p>I want Netbeans 6.1 to store the .netbeans directory in another place than the default. How do I do this?</p>
| [
{
"answer_id": 161142,
"author": "cretzel",
"author_id": 18722,
"author_profile": "https://Stackoverflow.com/users/18722",
"pm_score": 0,
"selected": false,
"text": " <Netbeans>/etc/netbeans.conf\n\n netbeans_default_userdir=<dir>\n"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/161123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18722/"
] |
161,127 | <p>We have a scenario where we want to display a list of items and indicate which is the "current" item (with a little arrow marker or a changed background colour).</p>
<p>ItemsControl is no good to us, because we need the context of "SelectedItem". However, we want to move the selection programattically and not allow... | [
{
"answer_id": 161232,
"author": "Mark Glorie",
"author_id": 952,
"author_profile": "https://Stackoverflow.com/users/952",
"pm_score": 1,
"selected": false,
"text": " <ItemsControl DataContext=\"{Binding Source={StaticResource Things}}\" ItemsSource=\"{Binding}\" Margin=\"0\">\n <Ite... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/615/"
] |
161,166 | <p>Currently I'm trying to erase a sequence of iterators from a set, however GCC's standard library seems to be broken because std::set::erase(iterator) should return the an iterator (next iterator), however in GCC it returns void (which is standard?)</p>
<p>Anyways I want to write:</p>
<pre><code>myIter = mySet.eras... | [
{
"answer_id": 161239,
"author": "Camille",
"author_id": 16990,
"author_profile": "https://Stackoverflow.com/users/16990",
"pm_score": 4,
"selected": true,
"text": "mySet.erase(myIter++);\n"
},
{
"answer_id": 161254,
"author": "PierreBdR",
"author_id": 7136,
"author_p... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15124/"
] |
161,176 | <p>I am working on an ASP site hosted using SUN One (used to be called Chillisoft) server. I am having trouble loading in an XML file, the code I am using is below</p>
<pre><code>dim directory
set directory = Server.CreateObject("MSXML2.DOMDocument")
if(directory.load(Server.MapPath("directory.xml"))) then
Respo... | [
{
"answer_id": 161245,
"author": "AnthonyWJones",
"author_id": 17516,
"author_profile": "https://Stackoverflow.com/users/17516",
"pm_score": 1,
"selected": false,
"text": "Set directory = Server.CreateObject(\"MSXML2.DOMDocument\")\ndirectory.async = false\ndirectory.load(Server.MapPath(... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
161,177 | <p>Does C++ support '<a href="http://java.sun.com/docs/books/tutorial/essential/exceptions/finally.html" rel="noreferrer"><strong>finally</strong></a>' blocks?</p>
<p>What is the <a href="http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization" rel="noreferrer"><strong>RAII idiom</strong></a>?</p>
<p>What... | [
{
"answer_id": 161179,
"author": "Kevin",
"author_id": 6386,
"author_profile": "https://Stackoverflow.com/users/6386",
"pm_score": 8,
"selected": false,
"text": "// A class with implements RAII\nclass lock\n{\n mutex &m_;\n\npublic:\n lock(mutex &m)\n : m_(m)\n {\n m... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6386/"
] |
161,200 | <p>Is there a way to upload a file to a FTP server when behind an HTTP proxy ?</p>
<p>It seems that uploading a file is not supported behind an HTTP Proxy using .Net Webclient. (<a href="http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.proxy.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/librar... | [
{
"answer_id": 161807,
"author": "Alexander",
"author_id": 16724,
"author_profile": "https://Stackoverflow.com/users/16724",
"pm_score": 3,
"selected": false,
"text": "FtpWebRequest FtpWebRequest"
},
{
"answer_id": 162321,
"author": "Alexander",
"author_id": 16724,
"a... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22970/"
] |
161,212 | <p>I need to be able to periodically send email alerts to subscribed users. PHP seems to struggle with sending <em>one</em> message, so I'm looking for good alternatives.</p>
<p>Any language will do, if the implementation is fast enough. The amount of mails sent will eventually be in the thousands.</p>
<p>If purchasi... | [
{
"answer_id": 162087,
"author": "jj33",
"author_id": 430,
"author_profile": "https://Stackoverflow.com/users/430",
"pm_score": 1,
"selected": false,
"text": "MAIL FROM:<me@example.com>\nRCPT TO:<you@example.com>\nDATA\nFrom: Me <me@example.com>\nTo: You <you@example.com>\nSubject: test ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161212",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21716/"
] |
161,221 | <p>I am using the System.Web.Routing assembly in a WebForms application. When running the application deployed on win2008/IIS7 I got the following message.</p>
<blockquote>
<p>Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also m... | [
{
"answer_id": 950695,
"author": "SirDemon",
"author_id": 80813,
"author_profile": "https://Stackoverflow.com/users/80813",
"pm_score": 1,
"selected": false,
"text": "IRouteHandler"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/161221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5360/"
] |
161,222 | <p>I've been using maven2 and hudson for a while to do my continuous integration, but I find that Eclipse and Maven do not play well together. Sure there's a plugin, but it's cranky to mash the maven project into something that eclipse likes and the build times and unit test are too long.
I'm considering switching back... | [
{
"answer_id": 161476,
"author": "Valters Vingolds",
"author_id": 885,
"author_profile": "https://Stackoverflow.com/users/885",
"pm_score": 2,
"selected": false,
"text": "mvn -o verify -Ditest <profiles>\n <profile>\n <id>integration-test</id>\n <activation>\n <property>\n ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17554/"
] |
161,224 | <p>Hibernate has a handful of methods that, one way or another, takes your object and puts it into the database. What are the differences between them, when to use which, and why isn't there just one intelligent method that knows when to use what?</p>
<p>The methods that I have identified thus far are:</p>
<ul>
<li><... | [
{
"answer_id": 10100479,
"author": "Hari Krishna",
"author_id": 1325738,
"author_profile": "https://Stackoverflow.com/users/1325738",
"pm_score": 3,
"selected": false,
"text": "save() persist() save() persist( save() persist() save() long s = session.save(k);\n persist()"
},
{
"a... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2238/"
] |
161,231 | <p><strong>Is there a way of forcing a (child) class to have constructors with particular signatures or particular static methods in C# or Java?</strong></p>
<p>You can't obviously use interfaces for this, and I know that it will have a limited usage. One instance in which I do find it useful is when you want to enfor... | [
{
"answer_id": 161271,
"author": "jop",
"author_id": 11830,
"author_profile": "https://Stackoverflow.com/users/11830",
"pm_score": 2,
"selected": false,
"text": "class Base\n{\n private Base() { }\n public Base(int x) {}\n}\n\nclass Derived : Base\n{\n //public Derived() { } won't com... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7028/"
] |
161,238 | <p>As I understand it, the command to ignore the <em>content</em> of a directory using SVN is this:</p>
<pre><code>svn propset svn:ignore "*" tmp/
</code></pre>
<p>This should set the ignore property on the content of the <code>tmp</code> directory, right? In other words, the wildcard is set to be the ignore value on... | [
{
"answer_id": 161338,
"author": "Jonathan Lonowski",
"author_id": 15031,
"author_profile": "https://Stackoverflow.com/users/15031",
"pm_score": 4,
"selected": true,
"text": "* svn propset svn:ignore [value] app config db doc lib log nbproject public ... tmp svn propset svn:ignore tmp -F... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161238",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1944/"
] |
161,251 | <p>Is there a programming language suitable for building web applications, that is compiled, strongly-typed, and isn't ASP.NET?</p>
<p>I thought of using Mono (<a href="http://www.mono-project.com/" rel="nofollow noreferrer">http://www.mono-project.com/</a>), but I wonder if there are any other alternatives.</p>
<p>(... | [
{
"answer_id": 2465962,
"author": "none",
"author_id": 78244,
"author_profile": "https://Stackoverflow.com/users/78244",
"pm_score": 2,
"selected": false,
"text": "* A Web parameters module. This module takes care of retrieving the forms or URL parameters and to build an associative tabl... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23341/"
] |
161,252 | <p>I'm trying to run some commands in paralel, in background, using bash. Here's what I'm trying to do:</p>
<pre><code>forloop {
//this part is actually written in perl
//call command sequence
print `touch .file1.lock; cp bigfile1 /destination; rm .file1.lock;`;
}
</code></pre>
<p>The part between backticks (``... | [
{
"answer_id": 161284,
"author": "GavinCattell",
"author_id": 21644,
"author_profile": "https://Stackoverflow.com/users/21644",
"pm_score": 4,
"selected": false,
"text": "for command in $commands\ndo\n \"$command\" &\ndone\nwait\n wait"
},
{
"answer_id": 161291,
"author": ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23780/"
] |
161,315 | <p>I wrote a small web app using ruby on rails, its main purpose is to upload, store, and display results from xml(files can be up to several MB) files. After running for about 2 months I noticed that the mongrel process was using about 4GB of memory. I did some research on debugging ruby memory leaks and could not f... | [
{
"answer_id": 164206,
"author": "Daniel Beardsley",
"author_id": 13216,
"author_profile": "https://Stackoverflow.com/users/13216",
"pm_score": 4,
"selected": false,
"text": "#Put this in applictation_controller.rb\nbefore_filter :log_ram # or use after_filter\ndef log_ram\n logger.warn... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161315",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5004/"
] |
161,342 | <p>I need to validate the email address of my users. Unfortunately, making a validator that <a href="https://www.rfc-editor.org/rfc/rfc2822#section-3.4.1" rel="nofollow noreferrer">conforms to standards</a> is hard.</p>
<p><a href="http://www.ex-parrot.com/%7Epdw/Mail-RFC822-Address.html" rel="nofollow noreferrer">Here... | [
{
"answer_id": 161362,
"author": "Chris",
"author_id": 4742,
"author_profile": "https://Stackoverflow.com/users/4742",
"pm_score": 4,
"selected": false,
"text": "filter_var($someEmail, FILTER_VALIDATE_EMAIL);"
},
{
"answer_id": 161909,
"author": "Pierre Spring",
"author_i... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1599/"
] |
161,348 | <p>Given the following:</p>
<pre><code>#light
//any function returning bool * 'a
let foo =
let x = ref 10
fun () ->
x := !x - 1
if !x <> 0 then
(true, x)
else
(false, x)
while let (c,x) = foo() in c do print_any x;//can't access x, but would be convinen... | [
{
"answer_id": 161362,
"author": "Chris",
"author_id": 4742,
"author_profile": "https://Stackoverflow.com/users/4742",
"pm_score": 4,
"selected": false,
"text": "filter_var($someEmail, FILTER_VALIDATE_EMAIL);"
},
{
"answer_id": 161909,
"author": "Pierre Spring",
"author_i... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21182/"
] |
161,356 | <p>How can I create a new Word document pro grammatically using Visual Studio Tools for Office? </p>
| [
{
"answer_id": 298600,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "Globals.ThisAddIn.Application.Documents.Add(ref objTemplate, ref missingType, ref missingType, ref missingType); \n objTemplat... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161356",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] |
161,368 | <p>We're moving a solution with 20+ projects from .net 2.0 to 3.5 and at the same time moving from Visual Studio 2005 to 2008. We're also at the same time switching from MS Entlib 2.0 to 4.0. </p>
<ul>
<li>Is there any reasons not to let the
Visual Studio wizard convert the
solution for us?</li>
<li>Is 3.5 fully backw... | [
{
"answer_id": 1048688,
"author": "Christian Hayter",
"author_id": 115413,
"author_profile": "https://Stackoverflow.com/users/115413",
"pm_score": 1,
"selected": false,
"text": "CacheManager cache = CacheFactory.GetCacheManager() CacheManager ICacheManager (TextWriter, Exception) (TextWr... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2538222/"
] |
161,378 | <p>I have a WinForms TreeView with one main node and several sub-nodes.</p>
<p>How can I hide the + (plus sign) in the main node?</p>
| [
{
"answer_id": 161401,
"author": "Doug L.",
"author_id": 19179,
"author_profile": "https://Stackoverflow.com/users/19179",
"pm_score": 5,
"selected": true,
"text": ".ShowRootLines = false ShowRootLines Expand() ShowPlusMinus"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/161378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
161,388 | <p>I'm using @media print in my external css file to hide menus etc. However while printing the little triangle of a dropdownlist still shows. Is there a css setting available to hide it as well and only print the selected item?</p>
| [
{
"answer_id": 161468,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "https://Stackoverflow.com/users/15459",
"pm_score": 1,
"selected": false,
"text": "<select name=\"Snakes\" style=\"width: 200px;\">\n <option value=\"A\">Anaconda</option>\n <option value=\"B\">Boa</optio... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161388",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
161,398 | <p>I'm possibly just stupid, but I'm trying to find a user in Active Directory from C#, using the Login name ("domain\user").</p>
<p>My "Skeleton" AD Search Functionality looks like this usually:</p>
<pre><code>de = new DirectoryEntry(string.Format("LDAP://{0}", ADSearchBase), null, null, AuthenticationTypes.Secure);... | [
{
"answer_id": 161719,
"author": "Joe",
"author_id": 13087,
"author_profile": "https://Stackoverflow.com/users/13087",
"pm_score": 4,
"selected": true,
"text": "String.Format(\"(&(objectCategory=person)(objectClass=user)(sn={0}))\", \n EscapeFilterLiteral(lastName, false)); ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91/"
] |
161,399 | <p>I have a control where I have to check in which page I am, so I can set a certain variable accordingly.</p>
<pre><code>string pageName = this.Page.ToString();
switch (pageName)
{
case "ASP.foo_bar_aspx": doSomething(); break;
default: doSomethingElse(); break;
}
</code></pre>
<p>this works fine locally and on some... | [
{
"answer_id": 161409,
"author": "Oli",
"author_id": 12870,
"author_profile": "https://Stackoverflow.com/users/12870",
"pm_score": 1,
"selected": false,
"text": "HttpContext.Current.Request.FilePath HttpContext.Current.Request..."
},
{
"answer_id": 161411,
"author": "leppie",... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15981/"
] |
161,404 | <p>I have three tables, A, B, C, where A is many to one B, and B is many to one C. I'd like a list of all C's in A. </p>
<p>My tables are something like this: A[id, valueA, lookupB], B[id, valueB, lookupC], C[id, valueC]. I've written a query with two nested SELECTs, but I'm wondering if it's possible to do INNER JOIN... | [
{
"answer_id": 161423,
"author": "kristian",
"author_id": 20377,
"author_profile": "https://Stackoverflow.com/users/20377",
"pm_score": 1,
"selected": false,
"text": "SELECT DISTINCT C.valueC\nFROM \nC\nINNER JOIN B ON C.id = B.lookupC\nINNER JOIN A ON B.id = A.lookupB\n"
},
{
"a... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2973/"
] |
161,432 | <p>Imagine the following type:</p>
<pre><code>public struct Account
{
public int Id;
public double Amount;
}
</code></pre>
<p>What is the best algorithm to synchronize two <code>IList<Account></code> in C# 2.0 ? (No linq) ?</p>
<p>The first list (L1) is the reference list, the second (L2) is the one to... | [
{
"answer_id": 161535,
"author": "Roger Lipscombe",
"author_id": 8446,
"author_profile": "https://Stackoverflow.com/users/8446",
"pm_score": 2,
"selected": false,
"text": "class Program\n{\n static void Main()\n {\n List<string> left = new List<string> { \"Alice\", \"Charles... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4687/"
] |
161,443 | <p>In Kohana/CodeIgniter, I can have a URL in this form:</p>
<pre><code>http://www.name.tld/controller_name/method_name/parameter_1/parameter_2/parameter_3 ...
</code></pre>
<p>And then read the parameters in my controller as follows:</p>
<pre><code>class MyController
{
public function method_name($param_A, $pa... | [
{
"answer_id": 161636,
"author": "Andrew Taylor",
"author_id": 1776,
"author_profile": "https://Stackoverflow.com/users/1776",
"pm_score": 4,
"selected": false,
"text": "$router = new Zend_Controller_Router_Rewrite();\n\n$router->addRoute(\n 'index',\n new Zend_Controller_Router_Ro... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5742/"
] |
161,462 | <p>I'm using <code>org.w3c</code> <code>XML API</code> to open an existing <code>XML</code> file. I'm removing some nodes , and I'm adding others instead.</p>
<p>The problem is that the new nodes that are added are written one after the other, with no newline and no indentation what so ever. While it's true that the <... | [
{
"answer_id": 161478,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 7,
"selected": true,
"text": "Transformer StreamResult transform transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\ntransformer.setOutputProperty(... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161462",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11234/"
] |
161,474 | <p>My basic question is, in .NET, how do I clone WebControls?</p>
<p>I would like to build a custom tag, which can produce multiple copies of its children.
Ultimately I intend to build a tag similar to in JSP/Struts.</p>
<p>But the first hurdle I have is the ability to duplicate/clone the contents of a control.</p>
... | [
{
"answer_id": 1372034,
"author": "Juri",
"author_id": 50109,
"author_profile": "https://Stackoverflow.com/users/50109",
"pm_score": 1,
"selected": false,
"text": "public class MyCustomServerCtrl\n{\n\n ...\n\n public MyCustomServerCtrl Clone()\n {\n return MemberwiseClone() a... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24232/"
] |
161,477 | <p>Is there a typedef equivalent in C#, or someway to get some sort of similar behaviour? I've done some googling, but everywhere I look seems to be negative. Currently I have a situation similar to the following:</p>
<pre><code>class GenericClass<T>
{
public event EventHandler<EventData> MyEvent;
... | [
{
"answer_id": 161484,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 10,
"selected": true,
"text": "using CustomerList = System.Collections.Generic.List<Customer>;\n typedef typedef #include using gcInt.MyEvent += gcInt_... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15537/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.